| | |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.factory.ApplicationContextFactory; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | |
| | | if(reqJson.containsKey("custStartTime") && reqJson.containsKey("custEndTime")){ |
| | | reqJson.put("cycle", (DateUtil.dayCompare( |
| | | DateUtil.getDateFromStringB(reqJson.get("custStartTime").toString().split(" ")[0]), |
| | | DateUtil.getDateFromStringB(reqJson.get("custEndTime").toString().split(" ")[0]) |
| | | ))); |
| | | } |
| | | logger.debug(">>>>>>>>>>>>>>>>支付参数报文,{}", reqJson.toJSONString()); |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = reqJson.getString("cashierUserId"); |
| | |
| | | PaymentOrderDto paymentOrderDto = paymentBusiness.unified(context, reqJson); |
| | | paymentOrderDto.setAppId(appId); |
| | | paymentOrderDto.setUserId(userId); |
| | | paymentOrderDto.setMoney(1); // TODO 测试数据 |
| | | // paymentOrderDto.setMoney(1); // TODO 测试数据 |
| | | |
| | | logger.debug(">>>>>>>>>>>>>>>>支付业务下单返回,{}", JSONObject.toJSONString(paymentOrderDto)); |
| | | |