| | |
| | | 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; |
| | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:@@templateCode@@.Update@@TemplateCode@@ |
| | | * 服务编码:@@templateCode@@.update@@TemplateCode@@ |
| | | * 请求路劲:/app/@@templateCode@@.Update@@TemplateCode@@ |
| | | * add by 吴学文 at @@date@@ mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | |
| | | 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("更新数据失败"); |