|
|
@@ -1297,6 +1297,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_IMG.getPhrase());
|
|
|
info.setBefore(StringConstant.DEFAULT_IMG);
|
|
|
info.setAfter(StringConstant.NEW_IMG);
|
|
|
+ info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
if (StringUtils.hasText(beforeImg) && !beforeImg.equals(afterImg)) {
|
|
|
@@ -1304,6 +1305,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_IMG.getPhrase());
|
|
|
info.setBefore(StringConstant.OLD_IMG);
|
|
|
info.setAfter(StringConstant.NEW_IMG);
|
|
|
+ info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforePackage = beforeGoods.getPackaging();
|
|
|
@@ -1313,6 +1315,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_PACKAGE.getPhrase());
|
|
|
info.setBefore(beforePackage);
|
|
|
info.setAfter(afterPackage);
|
|
|
+ info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforeProduce = beforeGoods.getProduceDate();
|
|
|
@@ -1322,6 +1325,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_PRODUCE_DATE.getPhrase());
|
|
|
info.setBefore(beforeProduce);
|
|
|
info.setAfter(afterProduce);
|
|
|
+ info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Boolean beforeBreak = beforeGoods.getBreakUp();
|
|
|
@@ -1331,6 +1335,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_BREAK_UP.getPhrase());
|
|
|
info.setBefore(beforeBreak.toString());
|
|
|
info.setAfter(afterBreak.toString());
|
|
|
+ info.setType(ModifyInfo.TYPE_SALE);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Double beforeReserve = beforeGoods.getReserve();
|
|
|
@@ -1349,6 +1354,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_PACKAGE_QTY.getPhrase());
|
|
|
info.setBefore(beforePackQty.toString());
|
|
|
info.setAfter(afterPackQty.toString());
|
|
|
+ info.setType(ModifyInfo.TYPE_BASIC);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Double beforeBuyQty = beforeGoods.getMinBuyQty();
|
|
|
@@ -1358,6 +1364,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_BUY_QTY.getPhrase());
|
|
|
info.setBefore(beforeBuyQty.toString());
|
|
|
info.setAfter(afterBuyQty.toString());
|
|
|
+ info.setType(ModifyInfo.TYPE_SALE);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Short beforeMinDelivery = beforeGoods.getMinDelivery();
|
|
|
@@ -1367,6 +1374,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_MIN_DELIVERY.getPhrase());
|
|
|
info.setBefore(beforeMinDelivery.toString());
|
|
|
info.setAfter(afterMinDelivery.toString());
|
|
|
+ info.setType(ModifyInfo.TYPE_SALE);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
Short beforeMaxDelivery = beforeGoods.getMaxDelivery();
|
|
|
@@ -1376,6 +1384,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setModifyField(ModifyConstant.MODIFY_MAX_DELIVERY.getPhrase());
|
|
|
info.setBefore(beforeMaxDelivery.toString());
|
|
|
info.setAfter(afterMaxDelivery.toString());
|
|
|
+ info.setType(ModifyInfo.TYPE_SALE);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
String beforeStore = beforeGoods.getStoreid();
|
|
|
@@ -1390,6 +1399,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
info.setBefore(StringConstant.SALE_SELF);
|
|
|
info.setAfter(StringConstant.CONSIGNMENT);
|
|
|
}
|
|
|
+ info.setType(ModifyInfo.TYPE_SALE);
|
|
|
infoList.add(info);
|
|
|
}
|
|
|
if (!CollectionUtils.isEmpty(infoList)) {
|