| | |
| | | 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.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.dev.IBusinessTableHisV1InnerServiceSMO; |
| | |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "businessTableHis.saveBusinessTableHis") |
| | | public class SaveBusinessTableHisCmd extends AbstractServiceCmdListener { |
| | | public class SaveBusinessTableHisCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveBusinessTableHisCmd.class); |
| | | |
| | |
| | | private IBusinessTableHisV1InnerServiceSMO businessTableHisV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | protected void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "action", "请求报文中未包含action"); |
| | | Assert.hasKeyAndValue(reqJson, "actionObj", "请求报文中未包含actionObj"); |
| | | Assert.hasKeyAndValue(reqJson, "actionObjHis", "请求报文中未包含actionObjHis"); |
| | |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | protected void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | BusinessTableHisPo businessTableHisPo = BeanConvertUtil.covertBean(reqJson, BusinessTableHisPo.class); |
| | | businessTableHisPo.setHisId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |