java110 6 年之前
父節點
當前提交
ff87183a79
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      StoreService/src/main/java/com/java110/store/listener/SaveStoreUserListener.java

+ 3 - 2
StoreService/src/main/java/com/java110/store/listener/SaveStoreUserListener.java

@@ -7,6 +7,7 @@ import com.java110.core.context.DataFlowContext;
 import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.core.factory.GenerateCodeFactory;
 import com.java110.entity.center.Business;
 import com.java110.entity.center.Business;
 import com.java110.po.store.StoreUserPo;
 import com.java110.po.store.StoreUserPo;
+import com.java110.po.store.StoreUserRelPo;
 import com.java110.store.dao.IStoreServiceDao;
 import com.java110.store.dao.IStoreServiceDao;
 import com.java110.utils.constant.BusinessTypeConstant;
 import com.java110.utils.constant.BusinessTypeConstant;
 import com.java110.utils.constant.ResponseConstant;
 import com.java110.utils.constant.ResponseConstant;
@@ -56,12 +57,12 @@ public class SaveStoreUserListener extends AbstractStoreBusinessServiceDataFlowL
         Assert.notEmpty(data, "没有datas 节点,或没有子节点需要处理");
         Assert.notEmpty(data, "没有datas 节点,或没有子节点需要处理");
 
 
         //处理 businessStore 节点
         //处理 businessStore 节点
-        if (!data.containsKey(StoreUserPo.class.getSimpleName())) {
+        if (!data.containsKey(StoreUserRelPo.class.getSimpleName())) {
             throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "没有" + BusinessTypeConstant.BUSINESS_TYPE_SAVE_STORE_USER + "节点");
             throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "没有" + BusinessTypeConstant.BUSINESS_TYPE_SAVE_STORE_USER + "节点");
         }
         }
 
 
 
 
-        JSONArray businessStoreUsers = data.getJSONArray(StoreUserPo.class.getSimpleName());
+        JSONArray businessStoreUsers = data.getJSONArray(StoreUserRelPo.class.getSimpleName());
         doBusinessStoreUser(business, businessStoreUsers);
         doBusinessStoreUser(business, businessStoreUsers);
     }
     }