| | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.entity.ApiConfs; |
| | | import com.fzzy.api.utils.RedisConst; |
| | | import com.fzzy.api.utils.RedisUtil; |
| | | import com.fzzy.order.OrderApiService; |
| | | import com.fzzy.order.data.OrderConstant; |
| | | import com.fzzy.order.data.OrderData; |
| | |
| | | @Slf4j |
| | | public class SH2023OrderApiServiceImpl implements OrderApiService { |
| | | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | @Autowired |
| | | private SH2023ApiRemoteService apiRemoteService; |
| | | @Autowired |
| | |
| | | return; |
| | | } |
| | | |
| | | //指令存入缓存,时效24小时 |
| | | String key = RedisConst.buildKey(RedisConst.KYE_ORDER, conf.getKqdm()); |
| | | redisUtil.set(key, orderid, 59 * 60 * 24); |
| | | |
| | | ApiParam param = new ApiParam(); |
| | | param.setPushProtocol(conf.getPushProtocol()); |
| | | param.setKqdm(conf.getKqdm()); |
| | | param.setStart(DateUtils.parseDate(req.getStarttime(), new String[]{"yyyy-MM-dd HH:mm:ss"})); |
| | | param.setEnd(DateUtils.parseDate(req.getEndtime(), new String[]{"yyyy-MM-dd HH:mm:ss"})); |
| | | param.setDeptId(conf.getDeptId()); |
| | | param.setOrderid(orderid); |
| | | |
| | | String[] interfaces = ids.split(","); |
| | | for (String inteId : interfaces) { |