| | |
| | | * @throws Exception |
| | | */ |
| | | |
| | | public void execute(OrderData req, String orderType, ApiConfs apiConfs) throws ParseException; |
| | | public void execute(OrderData req, String orderType, ApiConfs apiConfs, String orderid) throws ParseException; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | service.execute(data, req.getType(), conf); |
| | | service.execute(data, req.getType(), conf, req.getOrderid()); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("-----指令解析异常-----指令={}", req); |
| | |
| | | package com.fzzy.push.sh2023; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | |
| | | |
| | | |
| | | @Override |
| | | public void execute(OrderData req, String orderType, ApiConfs conf) throws ParseException { |
| | | public void execute(OrderData req, String orderType, ApiConfs conf, String orderid) throws ParseException { |
| | | |
| | | // 若指令类型不为1,则返回 |
| | | if(!OrderConstant.ORDER_TYPE_1.equals(orderType)){ |
| | |
| | | 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) { |
| | |
| | | |
| | | |
| | | @Override |
| | | public void execute(OrderData req, String orderType, ApiConfs apiConfs) { |
| | | public void execute(OrderData req, String orderType, ApiConfs apiConfs, String orderid) { |
| | | |
| | | //TODO 待实现 |
| | | |