| | |
| | | orderDetlService.delete(new EntityWrapper<OrderDetl>().eq("order_id", orderId)); |
| | | } |
| | | |
| | | public void report(Long orderId, Long userId) { |
| | | public void report(Long orderId, String username) { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | Order order = this.selectById(orderId); |
| | | Map<String, Object> param = new HashMap<>(); |
| | | param.put("id",order.getOrderNo()); |
| | | param.put("dDate",sdf.format(new Date())); |
| | | param.put("cHandler",userId.toString()); |
| | | param.put("cHandler",username); |
| | | |
| | | List<Map<String,Object>> orderDetlsParam = new ArrayList<>(); |
| | | param.put("orderDetails",orderDetlsParam); |
| | |
| | | |
| | | int code = doHttpRequest(param, "单据审核", url, orderReportPath, null, "127.0.0.1"); |
| | | //int code = doHttpRequest(param, "单据审核", "localhost:8080", "/test/report", null, "127.0.0.1"); |
| | | if(code == 200){ |
| | | if(code == 0){ |
| | | order.setSettle(6L); |
| | | this.updateById(order); |
| | | } |