| | |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | 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.IDictV1InnerServiceSMO; |
| | | import com.java110.po.dict.DictPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "statusCd", "请求报文中未包含statusCd"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name"); |
| | | Assert.hasKeyAndValue(reqJson, "tableColumns", "请求报文中未包含tableColumns"); |
| | | Assert.hasKeyAndValue(reqJson, "tableName", "请求报文中未包含tableName"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name"); |
| | | Assert.hasKeyAndValue(reqJson, "tableColumns", "请求报文中未包含tableColumns"); |
| | | Assert.hasKeyAndValue(reqJson, "tableName", "请求报文中未包含tableName"); |
| | | |
| | | } |
| | | |
| | |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | DictPo dictPo = BeanConvertUtil.covertBean(reqJson, DictPo.class); |
| | | DictPo dictPo = BeanConvertUtil.covertBean(reqJson, DictPo.class); |
| | | int flag = dictV1InnerServiceSMOImpl.saveDict(dictPo); |
| | | |
| | | if (flag < 1) { |