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

+ 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.entity.center.Business;
 import com.java110.po.store.StoreUserPo;
+import com.java110.po.store.StoreUserRelPo;
 import com.java110.store.dao.IStoreServiceDao;
 import com.java110.utils.constant.BusinessTypeConstant;
 import com.java110.utils.constant.ResponseConstant;
@@ -56,12 +57,12 @@ public class SaveStoreUserListener extends AbstractStoreBusinessServiceDataFlowL
         Assert.notEmpty(data, "没有datas 节点,或没有子节点需要处理");
 
         //处理 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 + "节点");
         }
 
 
-        JSONArray businessStoreUsers = data.getJSONArray(StoreUserPo.class.getSimpleName());
+        JSONArray businessStoreUsers = data.getJSONArray(StoreUserRelPo.class.getSimpleName());
         doBusinessStoreUser(business, businessStoreUsers);
     }