Kaynağa Gözat

优化代码

java110 3 yıl önce
ebeveyn
işleme
18ec24314c

+ 2 - 0
service-user/src/main/java/com/java110/user/cmd/owner/SaveOwnerMemberCmd.java

@@ -3,6 +3,7 @@ package com.java110.user.cmd.owner;
 import com.alibaba.fastjson.JSONArray;
 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.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
@@ -104,6 +105,7 @@ public class SaveOwnerMemberCmd extends Cmd {
     }
 
     @Override
+    @Java110Transactional
     public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException {
 
         //todo 生成memberId