|
@@ -58,6 +58,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
IWrapper<ProductInfo> wrapper = IWrapper.getWrapper(condition);
|
|
|
wrapper
|
|
|
.keyword(new KeywordData(ProductInfo::getName), new KeywordData(ProductInfo::getCode))
|
|
|
+ .eq(ProductInfo::getDefinition)
|
|
|
.eq(ProductInfo::getDeptId)
|
|
|
.eq(ProductInfo::getType)
|
|
|
.eq(ProductInfo::getClassifyId)
|
|
@@ -127,7 +128,9 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
productInfoVo.setComputingTime(new Date());
|
|
|
|
|
|
synchronized (this) {
|
|
|
- if (ObjectUtil.equals(productInfoVo.getType(), 1)) {
|
|
|
+ if (productInfoVo.getDefinition() != null && productInfoVo.getDefinition().equals(1)) {
|
|
|
+ productInfoVo.setCode(CodeEnum.MATERIAL.getCode(productInfoVo.getCode()));
|
|
|
+ } else if (ObjectUtil.equals(productInfoVo.getType(), 1)) {
|
|
|
productInfoVo.setCode(CodeEnum.PRODUCT_FINISHED.getCode(productInfoVo.getCode()));
|
|
|
} else {
|
|
|
productInfoVo.setCode(CodeEnum.PRODUCT_PARTIALLY_PREPARED.getCode(productInfoVo.getCode()));
|