java110 лет назад: 4
Родитель
Сommit
21e3c49ce7

+ 3 - 0
java110-utils/src/main/java/com/java110/utils/cache/BusinessTableHisCache.java

@@ -59,6 +59,9 @@ public class BusinessTableHisCache extends BaseCache {
      */
     public static BusinessTableHisDto getBusinessTableHisDto(String action, String actionObj) {
         List<BusinessTableHisDto> businessTableHisDtoDtoDtos = getBusinessTableHiss();
+        if(businessTableHisDtoDtoDtos == null){
+            return null;
+        }
 
         for (BusinessTableHisDto businessTableHisDtoDto : businessTableHisDtoDtoDtos) {
             if (action.equals(businessTableHisDtoDto.getAction()) && actionObj.equals(businessTableHisDtoDto.getActionObj())) {

+ 2 - 0
service-user/src/main/java/com/java110/user/cmd/register/UserRegisterServiceCmd.java

@@ -2,6 +2,7 @@ package com.java110.user.cmd.register;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.AbstractServiceCmdListener;
 import com.java110.core.event.cmd.CmdEvent;
@@ -38,6 +39,7 @@ public class UserRegisterServiceCmd extends AbstractServiceCmdListener {
     }
 
     @Override
+    @Java110Transactional
     protected void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
         reqJson.put("userId", "-1");