自动化立体仓库 - WMS系统
zyx
2023-10-15 00e1f09d1ce3ed8ab3a9976d7b7af7ef558625af
src/main/java/com/zy/asrs/service/impl/OrderServiceImpl.java
@@ -198,13 +198,13 @@
        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);
@@ -220,7 +220,7 @@
        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);
        }