Browse Source

商品分类修改

授权码生成工具
pry 4 months ago
parent
commit
3f4f05c327
3 changed files with 5 additions and 4 deletions
  1. +2
    -2
      app/src/main/java/com/bonait/bnframework/common/db/QueryDB.java
  2. +2
    -1
      app/src/main/java/com/bonait/bnframework/common/db/util/GoodsDBUtil.java
  3. +1
    -1
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/AutoTestActivity.java

+ 2
- 2
app/src/main/java/com/bonait/bnframework/common/db/QueryDB.java View File

@@ -2733,9 +2733,9 @@ public class QueryDB {
((BPA_GOODS) data).sort = cursor.getInt((int) cursor.getColumnIndex("sort"));
((BPA_GOODS) data).status = cursor.getInt((int) cursor.getColumnIndex("status"));
((BPA_GOODS) data).url = cursor.getString((int) cursor.getColumnIndex("url"));
((BPA_GOODS) data).propClassifyId = cursor.getString((int) cursor.getColumnIndex("classifyId"));
((BPA_GOODS) data).propClassifyId = cursor.getString((int) cursor.getColumnIndex("propClassifyId"));
((BPA_GOODS) data).goodClassifyid = cursor.getString((int) cursor.getColumnIndex("goodClassifyid"));
((BPA_GOODS) data).isCollect = cursor.getInt((int) cursor.getColumnIndex("isCollect"));

break;
case "BPA_GOODSRECIPE":
data = new BPA_GOODSRECIPE();


+ 2
- 1
app/src/main/java/com/bonait/bnframework/common/db/util/GoodsDBUtil.java View File

@@ -206,7 +206,8 @@ public class GoodsDBUtil {
*/
public static ArrayList<BPA_GOODS> getByClassifyId(String classifyId) {
String orderby = QueryDB.Desc_Sort_Up;
String where = "isDelete=? and classifyId=?";
// String where = "isDelete=? and classifyId=?";
String where = "isDelete=? and goodClassifyid=?";
String[] args = new String[]{"0",classifyId};
ArrayList<BPA_GOODS> data = new ArrayList<>();
ArrayList<Object> obj = QueryDB.Get(BPA_GOODS.class, where, args, orderby);


+ 1
- 1
app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/AutoTestActivity.java View File

@@ -65,7 +65,7 @@ public class AutoTestActivity extends BaseActivity {
}

private void initTopBar() {
mTopBar.setTitle(getString(R.string.top_autotest);
mTopBar.setTitle(getString(R.string.top_autotest));
mTopBar.addLeftImageButton(R.mipmap.fanhui, R.id.topbar).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {


Loading…
Cancel
Save