|
@@ -123,19 +123,20 @@ public class ContractUpdateFlow extends FlowDelegate {
|
|
|
if (ObjectUtil.isNotEmpty(newCp.getId())) {//如果新合同产品ID不为空
|
|
|
//取出旧合同
|
|
|
ContractProduct oldContractProduct = oldContractProductMap.getOrDefault(newCp.getId(), null).get(0);
|
|
|
- //取出旧合同包装方式
|
|
|
- JSONObject oldJson = JSONObject.parseObject(oldContractProduct.getEhsdJson());
|
|
|
- String oldPackMethod = ObjectUtil.isEmpty(oldJson) ? null : oldJson.getString("packMethod");
|
|
|
- //取出新合同包装方式
|
|
|
- JSONObject newJson = JSONObject.parseObject(newCp.getEhsdJson());
|
|
|
- String newPackMethod = ObjectUtil.isEmpty(newJson) ? null : newJson.getString("packMethod");
|
|
|
+// //取出旧合同包装方式
|
|
|
+// JSONObject oldJson = JSONObject.parseObject(oldContractProduct.getEhsdJson());
|
|
|
+// String oldPackMethod = ObjectUtil.isEmpty(oldJson) ? null : oldJson.getString("packMethod");
|
|
|
+// //取出新合同包装方式
|
|
|
+// JSONObject newJson = JSONObject.parseObject(newCp.getEhsdJson());
|
|
|
+// String newPackMethod = ObjectUtil.isEmpty(newJson) ? null : newJson.getString("packMethod");
|
|
|
/**
|
|
|
* 商品英文名、尺寸、包装方式、数量 没有变更---取原本的剩余数量
|
|
|
*/
|
|
|
if (oldContractProduct.getQuantity().compareTo(newCp.getQuantity()) == 0
|
|
|
&& StringUtils.equals(oldContractProduct.getProductName(), newCp.getProductName())
|
|
|
&& StringUtils.equals(oldContractProduct.getProductModel(), newCp.getProductModel())
|
|
|
- && StringUtils.equals(oldPackMethod, newPackMethod)) {
|
|
|
+// && StringUtils.equals(oldPackMethod, newPackMethod)
|
|
|
+ ) {
|
|
|
//取出旧的剩余数量
|
|
|
newCp.setExpendQuantity(oldContractProduct.getExpendQuantity());
|
|
|
}
|