java110 лет назад: 5
Родитель
Сommit
275cdf45e3

+ 1 - 1
service-store/src/main/java/com/java110/store/listener/allocationStorehouse/AbstractAllocationStorehouseBusinessServiceDataFlowListener.java

@@ -62,7 +62,7 @@ public abstract class AbstractAllocationStorehouseBusinessServiceDataFlowListene
     protected void autoSaveDelBusinessAllocationStorehouse(Business business, JSONObject businessAllocationStorehouse) {
 //自动插入DEL
         Map info = new HashMap();
-        info.put("allocationAllocationStorehousehouseId", businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId"));
+        info.put("asId", businessAllocationStorehouse.getString("asId"));
         info.put("statusCd", StatusConstant.STATUS_CD_VALID);
         List<Map> currentAllocationStorehouseInfos = getAllocationStorehouseServiceDaoImpl().getAllocationStorehouseInfo(info);
         if (currentAllocationStorehouseInfos == null || currentAllocationStorehouseInfos.size() != 1) {

+ 5 - 5
service-store/src/main/java/com/java110/store/listener/allocationStorehouse/DeleteAllocationStorehouseInfoListener.java

@@ -76,7 +76,7 @@ public class DeleteAllocationStorehouseInfoListener extends AbstractAllocationSt
                     JSONObject businessAllocationStorehouse = businessAllocationStorehouses.getJSONObject(_allocationAllocationStorehousehouseIndex);
                     doBusinessAllocationStorehouse(business, businessAllocationStorehouse);
                     if(_obj instanceof JSONObject) {
-                        dataFlowContext.addParamOut("allocationAllocationStorehousehouseId", businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId"));
+                        dataFlowContext.addParamOut("asId", businessAllocationStorehouse.getString("asId"));
                     }
                 }
 
@@ -107,7 +107,7 @@ public class DeleteAllocationStorehouseInfoListener extends AbstractAllocationSt
                 Map businessAllocationStorehouseInfo = businessAllocationStorehouseInfos.get(_allocationAllocationStorehousehouseIndex);
                 flushBusinessAllocationStorehouseInfo(businessAllocationStorehouseInfo,StatusConstant.STATUS_CD_INVALID);
                 allocationAllocationStorehousehouseServiceDaoImpl.updateAllocationStorehouseInfoInstance(businessAllocationStorehouseInfo);
-                dataFlowContext.addParamOut("allocationAllocationStorehousehouseId",businessAllocationStorehouseInfo.get("allocationAllocationStorehousehouse_id"));
+                dataFlowContext.addParamOut("asId",businessAllocationStorehouseInfo.get("as_id"));
             }
         }
 
@@ -157,10 +157,10 @@ public class DeleteAllocationStorehouseInfoListener extends AbstractAllocationSt
      */
     private void doBusinessAllocationStorehouse(Business business,JSONObject businessAllocationStorehouse){
 
-        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"allocationAllocationStorehousehouseId","businessAllocationStorehouse 节点下没有包含 allocationAllocationStorehousehouseId 节点");
+        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"asId","businessAllocationStorehouse 节点下没有包含 asId 节点");
 
-        if(businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId").startsWith("-")){
-            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"allocationAllocationStorehousehouseId 错误,不能自动生成(必须已经存在的allocationAllocationStorehousehouseId)"+businessAllocationStorehouse);
+        if(businessAllocationStorehouse.getString("asId").startsWith("-")){
+            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"asId 错误,不能自动生成(必须已经存在的asId)"+businessAllocationStorehouse);
         }
         //自动插入DEL
         autoSaveDelBusinessAllocationStorehouse(business,businessAllocationStorehouse);

+ 5 - 5
service-store/src/main/java/com/java110/store/listener/allocationStorehouse/SaveAllocationStorehouseInfoListener.java

@@ -68,7 +68,7 @@ public class SaveAllocationStorehouseInfoListener extends AbstractAllocationStor
                 JSONObject businessAllocationStorehouse = businessAllocationStorehouses.getJSONObject(bAllocationStorehouseIndex);
                 doBusinessAllocationStorehouse(business, businessAllocationStorehouse);
                 if(bObj instanceof JSONObject) {
-                    dataFlowContext.addParamOut("allocationAllocationStorehousehouseId", businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId"));
+                    dataFlowContext.addParamOut("asId", businessAllocationStorehouse.getString("asId"));
                 }
             }
         }
@@ -93,7 +93,7 @@ public class SaveAllocationStorehouseInfoListener extends AbstractAllocationStor
             reFreshShareColumn(info, businessAllocationStorehouseInfo.get(0));
             allocationAllocationStorehousehouseServiceDaoImpl.saveAllocationStorehouseInfoInstance(info);
             if(businessAllocationStorehouseInfo.size() == 1) {
-                dataFlowContext.addParamOut("allocationAllocationStorehousehouseId", businessAllocationStorehouseInfo.get(0).get("allocationAllocationStorehousehouse_id"));
+                dataFlowContext.addParamOut("asId", businessAllocationStorehouseInfo.get(0).get("as_id"));
             }
         }
     }
@@ -149,13 +149,13 @@ public class SaveAllocationStorehouseInfoListener extends AbstractAllocationStor
      */
     private void doBusinessAllocationStorehouse(Business business,JSONObject businessAllocationStorehouse){
 
-        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"allocationAllocationStorehousehouseId","businessAllocationStorehouse 节点下没有包含 allocationAllocationStorehousehouseId 节点");
+        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"asId","asId 节点下没有包含 asId 节点");
 
-        if(businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId").startsWith("-")){
+        if(businessAllocationStorehouse.getString("asId").startsWith("-")){
             //刷新缓存
             //flushAllocationStorehouseId(business.getDatas());
 
-            businessAllocationStorehouse.put("allocationAllocationStorehousehouseId",GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_allocationStorehouseId));
+            businessAllocationStorehouse.put("asId",GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_allocationStorehouseId));
 
         }
 

+ 5 - 5
service-store/src/main/java/com/java110/store/listener/allocationStorehouse/UpdateAllocationStorehouseInfoListener.java

@@ -79,7 +79,7 @@ public class UpdateAllocationStorehouseInfoListener extends AbstractAllocationSt
                     JSONObject businessAllocationStorehouse = businessAllocationStorehouses.getJSONObject(_allocationAllocationStorehousehouseIndex);
                     doBusinessAllocationStorehouse(business, businessAllocationStorehouse);
                     if(_obj instanceof JSONObject) {
-                        dataFlowContext.addParamOut("allocationAllocationStorehousehouseId", businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId"));
+                        dataFlowContext.addParamOut("asId", businessAllocationStorehouse.getString("asId"));
                     }
                 }
             }
@@ -108,7 +108,7 @@ public class UpdateAllocationStorehouseInfoListener extends AbstractAllocationSt
                 flushBusinessAllocationStorehouseInfo(businessAllocationStorehouseInfo,StatusConstant.STATUS_CD_VALID);
                 allocationAllocationStorehousehouseServiceDaoImpl.updateAllocationStorehouseInfoInstance(businessAllocationStorehouseInfo);
                 if(businessAllocationStorehouseInfo.size() == 1) {
-                    dataFlowContext.addParamOut("allocationAllocationStorehousehouseId", businessAllocationStorehouseInfo.get("allocationAllocationStorehousehouse_id"));
+                    dataFlowContext.addParamOut("asId", businessAllocationStorehouseInfo.get("as_id"));
                 }
             }
         }
@@ -159,10 +159,10 @@ public class UpdateAllocationStorehouseInfoListener extends AbstractAllocationSt
      */
     private void doBusinessAllocationStorehouse(Business business,JSONObject businessAllocationStorehouse){
 
-        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"allocationAllocationStorehousehouseId","businessAllocationStorehouse 节点下没有包含 allocationAllocationStorehousehouseId 节点");
+        Assert.jsonObjectHaveKey(businessAllocationStorehouse,"asId","businessAllocationStorehouse 节点下没有包含 asId 节点");
 
-        if(businessAllocationStorehouse.getString("allocationAllocationStorehousehouseId").startsWith("-")){
-            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"allocationAllocationStorehousehouseId 错误,不能自动生成(必须已经存在的allocationAllocationStorehousehouseId)"+businessAllocationStorehouse);
+        if(businessAllocationStorehouse.getString("asId").startsWith("-")){
+            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"asId 错误,不能自动生成(必须已经存在的asId)"+businessAllocationStorehouse);
         }
         //自动保存DEL
         autoSaveDelBusinessAllocationStorehouse(business,businessAllocationStorehouse);