| | |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.fee.PayFeeDto; |
| | | import com.java110.dto.payment.PaymentOrderDto; |
| | | import com.java110.dto.paymentPool.PaymentPoolDto; |
| | | import com.java110.dto.paymentPoolConfig.PaymentPoolConfigDto; |
| | | import com.java110.dto.payment.PaymentPoolDto; |
| | | import com.java110.dto.payment.PaymentPoolConfigDto; |
| | | import com.java110.intf.acct.IPaymentPoolConfigV1InnerServiceSMO; |
| | | import com.java110.intf.acct.IPaymentPoolV1InnerServiceSMO; |
| | | import com.java110.intf.fee.IPayFeeV1InnerServiceSMO; |
| | | import com.java110.utils.cache.CommonCache; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | 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 测试数据 |
| | | |
| | | logger.debug(">>>>>>>>>>>>>>>>支付业务下单返回,{}", JSONObject.toJSONString(paymentOrderDto)); |
| | | |