|
|
|
@ -15,8 +15,10 @@ import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.BasicProcessStatus;
|
|
|
|
|
import com.glxp.api.constant.BusinessType;
|
|
|
|
|
import com.glxp.api.dao.system.ClassifyCodeDao;
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
|
import com.glxp.api.entity.system.ClassifyCodeEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrSystemEntity;
|
|
|
|
@ -164,6 +166,8 @@ public class ThrProductsAddDiController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
ThrSystemService thrSystemService;
|
|
|
|
|
@Resource
|
|
|
|
|
ClassifyCodeDao classifyCodeDao;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新DI产品信息
|
|
|
|
@ -328,6 +332,17 @@ public class ThrProductsAddDiController {
|
|
|
|
|
udiRelevanceEntity.setAttributeType(thrProductsAddDiResponse.getAttributeType());
|
|
|
|
|
udiRelevanceEntity.setHcType(thrProductsAddDiResponse.getHcType());
|
|
|
|
|
|
|
|
|
|
String flbm = thrProductsAddDiResponse.getFlbm();
|
|
|
|
|
//是否需要扫码 初始化
|
|
|
|
|
if (StrUtil.isNotEmpty(flbm)){
|
|
|
|
|
ClassifyCodeEntity classifyCodeEntity = classifyCodeDao.ClassifyByCode(flbm);
|
|
|
|
|
if (classifyCodeEntity != null){
|
|
|
|
|
udiProductEntity.setRequireScanCode(1);
|
|
|
|
|
}else {
|
|
|
|
|
udiProductEntity.setRequireScanCode(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
udiProductEntity.setNameCode(null);
|
|
|
|
|
udiProductService.updateUdiInfoByUuid(udiProductEntity);
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity1 = new UdiRelevanceEntity();
|
|
|
|
|