|
|
@@ -1376,6 +1376,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(StringConstant.DEFAULT_IMG);
|
|
|
info.setAfter(StringConstant.NEW_IMG);
|
|
|
info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
if (StringUtils.hasText(beforeImg) && !beforeImg.equals(afterImg)) {
|
|
|
@@ -1384,6 +1385,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(StringConstant.OLD_IMG);
|
|
|
info.setAfter(StringConstant.NEW_IMG);
|
|
|
info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforePackage = beforeGoods.getPackaging();
|
|
|
@@ -1394,6 +1396,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforePackage);
|
|
|
info.setAfter(afterPackage);
|
|
|
info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforeProduce = beforeGoods.getProduceDate();
|
|
|
@@ -1404,6 +1407,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforeProduce);
|
|
|
info.setAfter(afterProduce);
|
|
|
info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Boolean beforeBreak = beforeGoods.getBreakUp();
|
|
|
@@ -1414,6 +1418,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforeBreak.toString());
|
|
|
info.setAfter(afterBreak.toString());
|
|
|
info.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Double beforeReserve = beforeGoods.getReserve();
|
|
|
@@ -1423,6 +1428,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_RESERVE.getPhrase());
|
|
|
info.setBefore(beforeReserve.toString());
|
|
|
info.setAfter(afterReserve.toString());
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Double beforePackQty = beforeGoods.getMinPackQty();
|
|
|
@@ -1433,6 +1439,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforePackQty.toString());
|
|
|
info.setAfter(afterPackQty.toString());
|
|
|
info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Double beforeBuyQty = beforeGoods.getMinBuyQty();
|
|
|
@@ -1443,6 +1450,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforeBuyQty.toString());
|
|
|
info.setAfter(afterBuyQty.toString());
|
|
|
info.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Short beforeMinDelivery = beforeGoods.getMinDelivery();
|
|
|
@@ -1453,6 +1461,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforeMinDelivery.toString());
|
|
|
info.setAfter(afterMinDelivery.toString());
|
|
|
info.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Short beforeMaxDelivery = beforeGoods.getMaxDelivery();
|
|
|
@@ -1463,6 +1472,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(beforeMaxDelivery.toString());
|
|
|
info.setAfter(afterMaxDelivery.toString());
|
|
|
info.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforeStore = beforeGoods.getStoreid();
|
|
|
@@ -1478,6 +1488,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setAfter(StringConstant.CONSIGNMENT);
|
|
|
}
|
|
|
info.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ info.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
if (beforeGoods.getCurrencyName().equals(afterGoods.getCurrencyName())) {
|
|
|
@@ -1488,6 +1499,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
qtyInfo.setBefore(analyzeQtyNumber(beforeGoods.getPrices()));
|
|
|
qtyInfo.setAfter(analyzeQtyNumber(afterGoods.getPrices()));
|
|
|
qtyInfo.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ qtyInfo.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(qtyInfo);
|
|
|
// 生成分段价格修改记录
|
|
|
ModifyInfo priceInfo = new ModifyInfo();
|
|
|
@@ -1495,6 +1507,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
priceInfo.setBefore(analyzeQtyPrice(beforeGoods.getPrices()));
|
|
|
priceInfo.setAfter(analyzeQtyPrice(afterGoods.getPrices()));
|
|
|
priceInfo.setType(ModifyInfo.TYPE_SALE);
|
|
|
+ priceInfo.setBatchCode(beforeGoods.getBatchCode());
|
|
|
infoList.add(priceInfo);
|
|
|
}
|
|
|
}
|
|
|
@@ -1503,6 +1516,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
GoodsModifyInfo modifyInfo = new GoodsModifyInfo();
|
|
|
modifyInfo.setEnuu(SystemSession.getUser().getEnterprise().getUu());
|
|
|
modifyInfo.setUseruu(SystemSession.getUser().getUserUU());
|
|
|
+ modifyInfo.setOperateName(SystemSession.getUser().getUserName());
|
|
|
modifyInfo.setBatchCode(beforeGoods.getBatchCode());
|
|
|
modifyInfo.setStatus(ModifyInfoStatus.TO_BE_AUDITED.getCode());
|
|
|
modifyInfo.setUpdateTime(new Date());
|