QueryTempCarFeeOrderCmd.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.java110.fee.cmd.tempCarFee;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.java110.core.annotation.Java110Cmd;
  4. import com.java110.core.context.ICmdDataFlowContext;
  5. import com.java110.core.event.cmd.Cmd;
  6. import com.java110.core.event.cmd.CmdEvent;
  7. import com.java110.intf.fee.ITempCarFeeCreateOrderV1InnerServiceSMO;
  8. import com.java110.utils.exception.CmdException;
  9. import com.java110.utils.util.Assert;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. /**
  12. * 类表述:删除
  13. * 服务编码:feePrintPage.deleteFeePrintPage
  14. * 请求路劲:/app/feePrintPage.DeleteFeePrintPage
  15. * add by 吴学文 at 2021-09-16 22:26:04 mail: 928255095@qq.com
  16. * open source address: https://gitee.com/wuxw7/MicroCommunity
  17. * 官网:http://www.homecommunity.cn
  18. * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  19. * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  20. */
  21. @Java110Cmd(serviceCode = "tempCarFee.queryTempCarFeeOrder")
  22. public class QueryTempCarFeeOrderCmd extends Cmd {
  23. @Autowired
  24. private ITempCarFeeCreateOrderV1InnerServiceSMO tempCarFeeCreateOrderV1InnerServiceSMOImpl;
  25. @Override
  26. public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
  27. Assert.hasKeyAndValue(reqJson, "paId", "paId不能为空");
  28. Assert.hasKeyAndValue(reqJson, "carNum", "carNum不能为空");
  29. }
  30. @Override
  31. public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
  32. cmdDataFlowContext.setResponseEntity(tempCarFeeCreateOrderV1InnerServiceSMOImpl.createOrder(reqJson));
  33. }
  34. }