From cb9f7e74aa1371afab10334f1a45dba2cf82f621 Mon Sep 17 00:00:00 2001
From: 1098226878 <1098226878@qq.com>
Date: 星期三, 15 九月 2021 11:03:43 +0800
Subject: [PATCH] 优化diamante

---
 java110-generator/src/main/resources/newTemplate/UpdateCmd.txt |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/java110-generator/src/main/resources/newTemplate/UpdateCmd.txt b/java110-generator/src/main/resources/newTemplate/UpdateCmd.txt
index 5591bb6..bb80322 100644
--- a/java110-generator/src/main/resources/newTemplate/UpdateCmd.txt
+++ b/java110-generator/src/main/resources/newTemplate/UpdateCmd.txt
@@ -22,8 +22,8 @@
 import com.java110.core.event.cmd.AbstractServiceCmdListener;
 import com.java110.core.event.cmd.CmdEvent;
 import com.java110.core.factory.GenerateCodeFactory;
-import com.java110.intf.dev.IBusinessTableHisV1InnerServiceSMO;
-import com.java110.po.businessTableHis.BusinessTableHisPo;
+import com.java110.intf.@@shareName@@.I@@TemplateCode@@V1InnerServiceSMO;
+import com.java110.po.@@templateCode@@.@@TemplateCode@@Po;
 import com.java110.utils.exception.CmdException;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.BeanConvertUtil;
@@ -43,7 +43,7 @@
  * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
  * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
  */
-@Java110Cmd(serviceCode = "@@templateCode@@.Update@@TemplateCode@@")
+@Java110Cmd(serviceCode = "@@templateCode@@.update@@TemplateCode@@")
 public class Update@@TemplateCode@@Cmd extends AbstractServiceCmdListener {
 
   private static Logger logger = LoggerFactory.getLogger(Update@@TemplateCode@@Cmd.class);
@@ -53,16 +53,16 @@
     private I@@TemplateCode@@V1InnerServiceSMO @@templateCode@@V1InnerServiceSMOImpl;
 
     @Override
-    protected void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         @@validateTemplateColumns@@
     }
 
     @Override
     @Java110Transactional
-    protected void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
        @@TemplateCode@@Po @@templateCode@@Po = BeanConvertUtil.covertBean(reqJson, @@TemplateCode@@Po.class);
-        int flag = @@templateCode@@V1InnerServiceSMOImpl.update@@TemplateCode@@(businessTableHisPo);
+        int flag = @@templateCode@@V1InnerServiceSMOImpl.update@@TemplateCode@@(@@templateCode@@Po);
 
         if (flag < 1) {
             throw new CmdException("鏇存柊鏁版嵁澶辫触");

--
Gitblit v1.8.0