From 36b4df7bfbd5e8bad7064521495f631754c731ef Mon Sep 17 00:00:00 2001
From: liup <1454939542@qq.com>
Date: Wed, 15 May 2024 18:33:22 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=8F=9C=E5=93=81=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=92=8C=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/git_toolbox_prj.xml | 15 +
app/build.gradle | 16 +-
.../BottomNavigationNewActivity.java | 2 +-
.../ImageChooseActivity.java | 19 +-
.../ActivityViewModel/LoginActivity.java | 34 +-
.../FragmentViewModel/Home1Fragment.java | 29 +-
.../bnframework/common/base/BaseActivity.java | 1 +
.../bnframework/common/bg/SnowView.java | 16 +-
.../bnframework/common/db/mode/BPA_GOODS.java | 5 -
.../db/mode/BPA_GOODS_PROCESS_DETAIL.java | 2 +-
.../db/mode/BPA_GOODS_SUBATTRIBUTE_GROUP.java | 2 +-
.../db/util/GoodsProcessDetailDBUtil.java | 8 +-
.../db/util/SubAttributeGroupDBUtil.java | 3 +-
.../bnframework/common/glide/GlideUtil.java | 60 +++
.../transform/FitXYRoundRadiusTransform.java | 95 +++++
.../glide/transform/GlideBorderTransform.java | 67 +++
.../glide/transform/GlideRoundTransform.java | 64 +++
.../glide/transform/RoundRadiusTransform.java | 85 ++++
.../transform/TransformationFitXYUtils.java | 155 +++++++
.../bnframework/common/helper/ActiveMax.java | 18 +-
.../bnframework/common/utils/DimensUtil.java | 75 ++++
.../common/utils/ProcessValueUtil.java | 39 ++
.../event/FreshLocalGoodsEvent.java | 12 +
.../bnframework/event/ImageSelectEvent.java | 13 +
.../ui/activity/EditClassifyActivity.java | 3 +
.../ui/activity/EditProcessActivity.java | 9 +
.../ui/adapter/ClassifySpinnerAdapter.java | 60 +++
.../ui/adapter/CloudGoodsAdapter.java | 5 +-
.../adapter/SelectAttributeListAdapter.java | 103 +++++
.../ui/adapter/SelectSubAttributeAdapter.java | 69 ++++
.../bnframework/ui/dialog/AddGoodsDialog.java | 273 +++++++++++++
.../ui/dialog/EditGoodsDialog.java | 382 ++++++++++++++++++
.../ui/fragment/CloudGoodsFragment.java | 119 ++----
.../ui/fragment/HomeFoodsFragment.java | 49 +--
.../ui/fragment/LocalGoodsFragment.java | 72 +++-
.../ui/viewmodel/HomeGoodsViewModel.java | 146 +++++++
.../bnframework/ui/widget/NewToastUtil.java | 70 ++++
.../res/drawable/bg_round25_green_btn.xml | 17 +
.../res/drawable/bg_round25_top_yellow.xml | 6 +
.../selector_select_sub_attribute_bg.xml | 19 +
.../selector_select_sub_attribute_color.xml | 6 +
app/src/main/res/layout/activity_dishtest.xml | 2 +-
app/src/main/res/layout/activity_login.xml | 1 +
.../layout/dialog/layout/dialog_add_goods.xml | 35 ++
.../dialog/layout/dialog_delete_classify.xml | 4 +-
.../dialog/layout/dialog_edit_goods.xml | 60 +++
.../item_h90_spinner_dropdown_text32.xml | 12 +
.../dialog/layout/item_h90_spinner_text32.xml | 17 +
.../layout/layout_add_goods_mainfood.xml | 258 ++++++++++++
.../dialog/layout/layout_add_goods_name.xml | 110 +++++
.../layout/layout_add_goods_sel_classify.xml | 77 ++++
.../dialog/layout/layout_edit_goods_name.xml | 110 +++++
.../layout_edit_goods_sub_attribute.xml | 69 ++++
.../main/res/layout/fragment_local_goods.xml | 1 +
.../layout/item/layout/item_local_goods.xml | 16 +-
.../layout/item_select_attribute_list.xml | 24 ++
.../item/layout/item_select_subattribute.xml | 26 ++
.../layout/item/layout/item_spinner_text.xml | 24 ++
.../layout/item/layout/view_layout_toast.xml | 34 ++
app/src/main/res/values/colors.xml | 2 +
app/src/main/res/values/styles.xml | 37 ++
61 files changed, 2953 insertions(+), 209 deletions(-)
create mode 100644 .idea/git_toolbox_prj.xml
create mode 100644 app/src/main/java/com/bonait/bnframework/common/glide/transform/FitXYRoundRadiusTransform.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/glide/transform/GlideBorderTransform.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/glide/transform/GlideRoundTransform.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/glide/transform/RoundRadiusTransform.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/glide/transform/TransformationFitXYUtils.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/utils/DimensUtil.java
create mode 100644 app/src/main/java/com/bonait/bnframework/common/utils/ProcessValueUtil.java
create mode 100644 app/src/main/java/com/bonait/bnframework/event/FreshLocalGoodsEvent.java
create mode 100644 app/src/main/java/com/bonait/bnframework/event/ImageSelectEvent.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/activity/EditProcessActivity.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/ClassifySpinnerAdapter.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/SelectAttributeListAdapter.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/SelectSubAttributeAdapter.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/dialog/AddGoodsDialog.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/dialog/EditGoodsDialog.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/viewmodel/HomeGoodsViewModel.java
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/widget/NewToastUtil.java
create mode 100644 app/src/main/res/drawable/bg_round25_green_btn.xml
create mode 100644 app/src/main/res/drawable/bg_round25_top_yellow.xml
create mode 100644 app/src/main/res/drawable/selector_select_sub_attribute_bg.xml
create mode 100644 app/src/main/res/drawable/selector_select_sub_attribute_color.xml
create mode 100644 app/src/main/res/layout/dialog/layout/dialog_add_goods.xml
create mode 100644 app/src/main/res/layout/dialog/layout/dialog_edit_goods.xml
create mode 100644 app/src/main/res/layout/dialog/layout/item_h90_spinner_dropdown_text32.xml
create mode 100644 app/src/main/res/layout/dialog/layout/item_h90_spinner_text32.xml
create mode 100644 app/src/main/res/layout/dialog/layout/layout_add_goods_mainfood.xml
create mode 100644 app/src/main/res/layout/dialog/layout/layout_add_goods_name.xml
create mode 100644 app/src/main/res/layout/dialog/layout/layout_add_goods_sel_classify.xml
create mode 100644 app/src/main/res/layout/dialog/layout/layout_edit_goods_name.xml
create mode 100644 app/src/main/res/layout/dialog/layout/layout_edit_goods_sub_attribute.xml
create mode 100644 app/src/main/res/layout/item/layout/item_select_attribute_list.xml
create mode 100644 app/src/main/res/layout/item/layout/item_select_subattribute.xml
create mode 100644 app/src/main/res/layout/item/layout/item_spinner_text.xml
create mode 100644 app/src/main/res/layout/item/layout/view_layout_toast.xml
diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml
new file mode 100644
index 00000000..02b915b8
--- /dev/null
+++ b/.idea/git_toolbox_prj.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 40a49cd5..9dccfee8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,7 +1,13 @@
+import java.text.DateFormat
+import java.text.SimpleDateFormat
+
apply plugin: 'com.android.application'
//apply plugin: 'com.jakewharton.butterknife'
-
+def releaseTime() {
+ DateFormat df = new SimpleDateFormat("yyyyMMddHHmm")
+ return df.format(Calendar.getInstance(Locale.CHINA).getTime())
+}
android {
compileSdk rootProject.ext.compileSdkVersion
@@ -59,6 +65,11 @@ android {
buildFeatures {
viewBinding = true
}
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ outputFileName = "boluo-v${defaultConfig.versionCode}-${releaseTime()}"+"-unsigned-${variant.name}.apk"
+ }
+ }
}
dependencies {
@@ -184,4 +195,7 @@ dependencies {
implementation "com.github.bumptech.glide:okhttp3-integration:4.16.0"
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
+
+ //leak 内存泄漏检测
+ debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-alpha-3'
}
diff --git a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/BottomNavigationNewActivity.java b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/BottomNavigationNewActivity.java
index 23858bbe..13ca1d32 100644
--- a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/BottomNavigationNewActivity.java
+++ b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/BottomNavigationNewActivity.java
@@ -315,7 +315,7 @@ public class BottomNavigationNewActivity extends BaseActivity {
*/
private void MakeThread() {
LogUtils.d("MakeThread()");
- ExecuteTheRecipe.context = this;
+// ExecuteTheRecipe.context = this;
mainTread = new Thread(new Runnable() {
@Override
public void run() {
diff --git a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/ImageChooseActivity.java b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/ImageChooseActivity.java
index 959d0098..cc62310e 100644
--- a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/ImageChooseActivity.java
+++ b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/ImageChooseActivity.java
@@ -1,22 +1,25 @@
package com.bonait.bnframework.ViewModel.ActivityViewModel;
-import androidx.recyclerview.widget.RecyclerView;
-
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
+import androidx.recyclerview.widget.RecyclerView;
+
import com.bonait.bnframework.R;
+import com.bonait.bnframework.ViewModel.Adapter.image_sp_adapter;
+import com.bonait.bnframework.ViewModel.CustomView.image_sp;
import com.bonait.bnframework.common.base.BaseActivity;
import com.bonait.bnframework.common.constant.MessageName;
import com.bonait.bnframework.common.helper.I.MyClickListener;
import com.bonait.bnframework.common.message.MessageManager;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.bonait.bnframework.common.view.MyLayoutManager;
-import com.bonait.bnframework.ViewModel.Adapter.image_sp_adapter;
-import com.bonait.bnframework.ViewModel.CustomView.image_sp;
+import com.bonait.bnframework.event.ImageSelectEvent;
import com.qmuiteam.qmui.widget.QMUITopBarLayout;
+import org.greenrobot.eventbus.EventBus;
+
import java.io.File;
import java.util.ArrayList;
import java.util.List;
@@ -30,7 +33,7 @@ public class ImageChooseActivity extends BaseActivity {
QMUITopBarLayout mTopBar;//顶部标题
@BindView(R.id.recycler_view)
RecyclerView recyclerView;//image列表
- private static final String CACHE_PATH= Environment.getExternalStorageDirectory().getAbsolutePath()+"/hblxiaochaodb/WebImage";
+ public static final String CACHE_PATH= Environment.getExternalStorageDirectory().getAbsolutePath()+"/hblxiaochaodb/WebImage";
List data =new ArrayList<>();
@Override
protected void onCreate(Bundle savedInstanceState) {
@@ -74,6 +77,12 @@ public class ImageChooseActivity extends BaseActivity {
image_sp sp=(image_sp)data;
MessageManager.getInstance().sendMessage(MessageName.ClickImage,sp.url);
finish();
+ recyclerView.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ EventBus.getDefault().post(new ImageSelectEvent(CACHE_PATH+"/"+sp.url));
+ }
+ },500);
}
@Override
public void clickListenerNew(View v, int k, Object data) {
diff --git a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/LoginActivity.java b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/LoginActivity.java
index cb57865c..c57360ca 100644
--- a/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/LoginActivity.java
+++ b/app/src/main/java/com/bonait/bnframework/ViewModel/ActivityViewModel/LoginActivity.java
@@ -4,7 +4,6 @@ import android.animation.ObjectAnimator;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
-import androidx.core.widget.NestedScrollView;
import android.text.Editable;
import android.text.InputType;
import android.text.TextUtils;
@@ -22,9 +21,14 @@ import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
+import androidx.core.widget.NestedScrollView;
+import androidx.lifecycle.LifecycleObserver;
+
+import com.bonait.bnframework.Model.AppLoginPo;
import com.bonait.bnframework.R;
import com.bonait.bnframework.business.ConfigData;
import com.bonait.bnframework.common.base.BaseActivity;
+import com.bonait.bnframework.common.bg.SnowView;
import com.bonait.bnframework.common.constant.ConfigName;
import com.bonait.bnframework.common.constant.Constants;
import com.bonait.bnframework.common.constant.SPConstants;
@@ -38,7 +42,6 @@ import com.bonait.bnframework.common.utils.KeyboardToolUtils;
import com.bonait.bnframework.common.utils.PreferenceUtils;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.bonait.bnframework.manager.ActivityLifecycleManager;
-import com.bonait.bnframework.Model.AppLoginPo;
import com.bonait.bnframework.test.TestActivity;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.HttpParams;
@@ -92,6 +95,8 @@ public class LoginActivity extends BaseActivity implements Validator.ValidationL
ImageView imgPass;
@BindView(R.id.rl_title)
RelativeLayout rl_title;
+ @BindView(R.id.snowView)
+ SnowView snowView;
private long exitTime = 0;
private int screenHeight = 0;//屏幕高度
@@ -124,16 +129,9 @@ public class LoginActivity extends BaseActivity implements Validator.ValidationL
* 对布局进行缩放
*/
private void initView(){
- DisplayManager.scaleView(mEtAccount);
- DisplayManager.scaleView(mEtPassword);
- DisplayManager.scaleView(mCleanPassword);
- DisplayManager.scaleView(mIvCleanAccount);
- DisplayManager.scaleView(mIvShowPwd);
- DisplayManager.scaleView(cbCheckbox);
- DisplayManager.scaleView(mContent);
- DisplayManager.scaleView(imgAccount);
- DisplayManager.scaleView(imgPass);
- DisplayManager.scaleView(rl_title);
+ DisplayManager.scaleViewGroup(findViewById(R.id.root));
+
+ getLifecycle().addObserver((LifecycleObserver) snowView);
}
/**
@@ -544,4 +542,16 @@ public class LoginActivity extends BaseActivity implements Validator.ValidationL
}
return super.onKeyDown(keyCode, event);
}
+
+ @Override
+ public void onDetachedFromWindow() {
+ super.onDetachedFromWindow();
+ getLifecycle().removeObserver((LifecycleObserver) snowView);
+
+ }
+
+ @Override
+ protected void onDestroy() {
+ super.onDestroy();
+ }
}
diff --git a/app/src/main/java/com/bonait/bnframework/ViewModel/FragmentViewModel/Home1Fragment.java b/app/src/main/java/com/bonait/bnframework/ViewModel/FragmentViewModel/Home1Fragment.java
index 012998ec..720abaf4 100644
--- a/app/src/main/java/com/bonait/bnframework/ViewModel/FragmentViewModel/Home1Fragment.java
+++ b/app/src/main/java/com/bonait/bnframework/ViewModel/FragmentViewModel/Home1Fragment.java
@@ -6,14 +6,6 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.appcompat.app.AppCompatActivity;
-import androidx.fragment.app.Fragment;
-import androidx.core.content.ContextCompat;
-import androidx.recyclerview.widget.RecyclerView;
-
import android.os.CountDownTimer;
import android.util.Log;
import android.view.LayoutInflater;
@@ -23,23 +15,30 @@ import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.core.content.ContextCompat;
+import androidx.fragment.app.Fragment;
+import androidx.recyclerview.widget.RecyclerView;
+
import com.bonait.bnframework.R;
+import com.bonait.bnframework.ViewModel.ActivityViewModel.CpxzActivity;
+import com.bonait.bnframework.ViewModel.Adapter.lc_adapter;
+import com.bonait.bnframework.ViewModel.CustomView.MyStatus;
+import com.bonait.bnframework.ViewModel.CustomView.huoli_control;
+import com.bonait.bnframework.ViewModel.CustomView.imagebutton_control;
import com.bonait.bnframework.business.ExecuteTheRecipe;
import com.bonait.bnframework.common.base.BaseFragment;
import com.bonait.bnframework.common.constant.ConfigName;
import com.bonait.bnframework.common.constant.DataBus;
import com.bonait.bnframework.common.db.QueryDB;
-import com.bonait.bnframework.common.db.mode.BPA_GOODS_OLD;
import com.bonait.bnframework.common.db.mode.BPA_GOODSRECIPE;
+import com.bonait.bnframework.common.db.mode.BPA_GOODS_OLD;
import com.bonait.bnframework.common.helper.I.MyClickListener;
import com.bonait.bnframework.common.utils.AlertDialogUtils;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.bonait.bnframework.common.view.MyLayoutManager;
-import com.bonait.bnframework.ViewModel.Adapter.lc_adapter;
-import com.bonait.bnframework.ViewModel.ActivityViewModel.CpxzActivity;
-import com.bonait.bnframework.ViewModel.CustomView.MyStatus;
-import com.bonait.bnframework.ViewModel.CustomView.huoli_control;
-import com.bonait.bnframework.ViewModel.CustomView.imagebutton_control;
import com.capton.colorfulprogressbar.ColorfulProgressbar;
import com.litao.slider.NiftySlider;
import com.orhanobut.logger.Logger;
@@ -452,7 +451,7 @@ public class Home1Fragment extends BaseFragment {
* 商品制作线程
*/
public void MakeThread() {
- ExecuteTheRecipe.context = context;
+// ExecuteTheRecipe.context = context;
new Thread(new Runnable() {
@Override
diff --git a/app/src/main/java/com/bonait/bnframework/common/base/BaseActivity.java b/app/src/main/java/com/bonait/bnframework/common/base/BaseActivity.java
index efa5e108..b3b20a82 100644
--- a/app/src/main/java/com/bonait/bnframework/common/base/BaseActivity.java
+++ b/app/src/main/java/com/bonait/bnframework/common/base/BaseActivity.java
@@ -129,6 +129,7 @@ public class BaseActivity extends QMUIActivity implements EasyPermissions.Permis
@Override
protected void onDestroy() {
+ ActiveMax.destroy(this);
super.onDestroy();
LogUtils.d(getClassName()+"生命周期 onDestroy()");
}
diff --git a/app/src/main/java/com/bonait/bnframework/common/bg/SnowView.java b/app/src/main/java/com/bonait/bnframework/common/bg/SnowView.java
index 193b7787..cc93f95f 100644
--- a/app/src/main/java/com/bonait/bnframework/common/bg/SnowView.java
+++ b/app/src/main/java/com/bonait/bnframework/common/bg/SnowView.java
@@ -4,11 +4,14 @@ import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
-import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.RelativeLayout;
+import androidx.annotation.NonNull;
+import androidx.lifecycle.Lifecycle;
+import androidx.lifecycle.LifecycleEventObserver;
+import androidx.lifecycle.LifecycleOwner;
import com.bonait.bnframework.common.bg.mode.SnowBean;
import com.bonait.bnframework.common.helper.Tools;
@@ -18,7 +21,7 @@ import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
-public class SnowView extends RelativeLayout {
+public class SnowView extends RelativeLayout implements LifecycleEventObserver {
// private final String SNOW = "❄";
// private final String SNOW = "☀❆★❉❈❀✿❃❁";
private final String SNOW = "❄";
@@ -173,6 +176,15 @@ public class SnowView extends RelativeLayout {
return detector.onTouchEvent(event);
}
+ @Override
+ public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) {
+ switch (event) {
+ case ON_DESTROY:
+ destroy();
+ break;
+ }
+ }
+
private class MyGestureDetector implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener {
@Override
diff --git a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS.java b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS.java
index 2a00ae66..2b3a3d9c 100644
--- a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS.java
+++ b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS.java
@@ -32,11 +32,6 @@ public class BPA_GOODS extends ModeBase {
*/
public String classifyId;
- /**
- * 用来区分是否已下载,本地使用
- */
- public boolean isLocal;
-
@Override
public String toString() {
diff --git a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_PROCESS_DETAIL.java b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_PROCESS_DETAIL.java
index 5b7bd4fd..5eb3a30f 100644
--- a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_PROCESS_DETAIL.java
+++ b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_PROCESS_DETAIL.java
@@ -7,7 +7,7 @@ package com.bonait.bnframework.common.db.mode;
*/
public class BPA_GOODS_PROCESS_DETAIL extends ModeBase{
/**
- * 商品属性组合id
+ * 商品属性组合名称 a-b
*/
public String goodsSubAttributeGroupId;
/**
diff --git a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_SUBATTRIBUTE_GROUP.java b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_SUBATTRIBUTE_GROUP.java
index 6a55d179..2ea68d2b 100644
--- a/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_SUBATTRIBUTE_GROUP.java
+++ b/app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_GOODS_SUBATTRIBUTE_GROUP.java
@@ -11,7 +11,7 @@ public class BPA_GOODS_SUBATTRIBUTE_GROUP extends ModeBase{
*/
public String name;
/**
- * 子属性id组合 xxx,xxxx,xxx
+ * 子属性id组合 xxx,xxxx,xxx 暂时不用id匹配 用name匹配
*/
public String subAttributeIdList;
/**
diff --git a/app/src/main/java/com/bonait/bnframework/common/db/util/GoodsProcessDetailDBUtil.java b/app/src/main/java/com/bonait/bnframework/common/db/util/GoodsProcessDetailDBUtil.java
index dfd299db..74401103 100644
--- a/app/src/main/java/com/bonait/bnframework/common/db/util/GoodsProcessDetailDBUtil.java
+++ b/app/src/main/java/com/bonait/bnframework/common/db/util/GoodsProcessDetailDBUtil.java
@@ -80,15 +80,15 @@ public class GoodsProcessDetailDBUtil {
}
/**
- * 根据商品属性组合id查询旗下的工序列表
+ * 根据商品属性组合查询旗下的工序列表
*
- * @param goodsSubAttributeGroupId
+ * @param name
* @return
*/
- public static ArrayList getByGoodsSubAttributeGroupId(String goodsSubAttributeGroupId) {
+ public static ArrayList getByGoodsSubAttributeGroupName(String name) {
String orderby = QueryDB.Desc_Sort_Up + ',' + QueryDB.Desc_Time_Up;
String where = "isDelete=? and goodsSubAttributeGroupId=?";
- String[] args = new String[]{"0", goodsSubAttributeGroupId};
+ String[] args = new String[]{"0", name};
ArrayList data = new ArrayList<>();
ArrayList