chenlu
2025-07-16 6f58d2bc0874ff8272a9dc280e6dbaf99121e6de
Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
2个文件已修改
95 ■■■■ 已修改文件
north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java
@@ -1181,7 +1181,10 @@
        date.add(endDate);
        Map<String, Object> result = new HashMap<>();
        BasicData basicData = basicDataMapper
                .selectOne(new QueryWrapper<BasicData>().eq("basic_name", reportingWork.get("process")));
                .selectOne(new QueryWrapper<BasicData>()
                        .eq("basic_name", reportingWork.get("process"))
                        .last("limit 1")
                );
        result.put("data",orderProcessDetailMapper.selectShiftQuantitySv(creatorId, startDate, endDate,basicData==null?null:basicData.getNickname()));
        result.put("date",date);
        return result;
north-glass-erp/src/main/resources/mapper/sd/DeliveryDetailMapper.xml
@@ -1023,50 +1023,49 @@
                                   product_id,
                                   order_number,
                                   CASE
                                       WHEN height &lt; 3660 THEN
                                           ' '
                                       WHEN height &lt; 4000 AND height >= 3660 THEN
                                       WHEN height &lt; 4000 AND height >= 3660 and height>width THEN
                                           '3660&lt;H&lt;4000'
                                       WHEN height &lt; 5000 AND height >= 4000 THEN
                                       WHEN height &lt; 5000 AND height >= 4000 and height>width THEN
                                           '4000&lt;H&lt;5000'
                                       WHEN height &lt; 6000 AND height >= 5000 THEN
                                       WHEN height &lt; 6000 AND height >= 5000 and height>width THEN
                                           '5000&lt;H&lt;6000'
                                       WHEN height &lt; 7000 AND height >= 6000 THEN
                                       WHEN height &lt; 7000 AND height >= 6000 and height>width THEN
                                           '6000&lt;H&lt;7000'
                                       WHEN height &lt; 8000 AND height >= 7000 THEN
                                       WHEN height &lt; 8000 AND height >= 7000 and height>width THEN
                                           '7000&lt;H&lt;8000'
                                       WHEN height &lt; 9000 AND height >= 8000 THEN
                                       WHEN height &lt; 9000 AND height >= 8000 and height>width THEN
                                           '8000&lt;H&lt;9000'
                                       WHEN height &lt; 10000 AND height >= 9000 THEN
                                       WHEN height &lt; 10000 AND height >= 9000 and height>width THEN
                                           '9000&lt;H&lt;10000'
                                       WHEN height &lt; 11000 AND height >= 10000 THEN
                                       WHEN height &lt; 11000 AND height >= 10000 and height>width THEN
                                           '10000&lt;H&lt;11000'
                                       WHEN height &lt; 12000 AND height >= 11000 THEN
                                       WHEN height &lt; 12000 AND height >= 11000 and height>width THEN
                                           '11000&lt;H&lt;12000'
                                       ELSE
                                           ''
                                       END height,
                                   CASE
                                       WHEN width &lt; 3660 THEN
                                           ' '
                                       WHEN width &lt; 4000 AND width >= 3660 THEN
                                       WHEN width &lt; 4000 AND width >= 3660 and width>height THEN
                                           '3660&lt;W&lt;4000'
                                       WHEN width &lt; 5000 AND width >= 4000 THEN
                                       WHEN width &lt; 5000 AND width >= 4000 and width>height THEN
                                           '4000&lt;W&lt;5000'
                                       WHEN width &lt; 6000 AND width >= 5000 THEN
                                       WHEN width &lt; 6000 AND width >= 5000 and width>height THEN
                                           '5000&lt;W&lt;6000'
                                       WHEN width &lt; 7000 AND width >= 6000 THEN
                                       WHEN width &lt; 7000 AND width >= 6000 and width>height THEN
                                           '6000&lt;W&lt;7000'
                                       WHEN width &lt; 8000 AND width >= 7000 THEN
                                       WHEN width &lt; 8000 AND width >= 7000 and width>height THEN
                                           '7000&lt;W&lt;8000'
                                       WHEN width &lt; 9000 AND width >= 8000 THEN
                                       WHEN width &lt; 9000 AND width >= 8000 and width>height THEN
                                           '8000&lt;W&lt;9000'
                                       WHEN width &lt; 10000 AND width >= 9000 THEN
                                       WHEN width &lt; 10000 AND width >= 9000 and width>height THEN
                                           '9000&lt;W&lt;10000'
                                       WHEN width &lt; 11000 AND width >= 10000 THEN
                                       WHEN width &lt; 11000 AND width >= 10000 and width>height THEN
                                           '10000&lt;W&lt;11000'
                                       WHEN width &lt; 12000 AND width >= 11000 THEN
                                       WHEN width &lt; 12000 AND width >= 11000 and width>height THEN
                                           '11000&lt;W&lt;12000'
                                       ELSE
                                           ''
                                       END width
                            from order_detail) as od on dd.order_id = od.order_id and dd.order_number = od.order_number
                 left join product pt on pt.id = od.product_id
@@ -1093,50 +1092,49 @@
                                   product_id,
                                   order_number,
                                   CASE
                                       WHEN height &lt; 3660 THEN
                                           ' '
                                       WHEN height &lt; 4000 AND height >= 3660 THEN
                                       WHEN height &lt; 4000 AND height >= 3660 and height>width THEN
                                           '3660&lt;H&lt;4000'
                                       WHEN height &lt; 5000 AND height >= 4000 THEN
                                       WHEN height &lt; 5000 AND height >= 4000 and height>width THEN
                                           '4000&lt;H&lt;5000'
                                       WHEN height &lt; 6000 AND height >= 5000 THEN
                                       WHEN height &lt; 6000 AND height >= 5000 and height>width THEN
                                           '5000&lt;H&lt;6000'
                                       WHEN height &lt; 7000 AND height >= 6000 THEN
                                       WHEN height &lt; 7000 AND height >= 6000 and height>width THEN
                                           '6000&lt;H&lt;7000'
                                       WHEN height &lt; 8000 AND height >= 7000 THEN
                                       WHEN height &lt; 8000 AND height >= 7000 and height>width THEN
                                           '7000&lt;H&lt;8000'
                                       WHEN height &lt; 9000 AND height >= 8000 THEN
                                       WHEN height &lt; 9000 AND height >= 8000 and height>width THEN
                                           '8000&lt;H&lt;9000'
                                       WHEN height &lt; 10000 AND height >= 9000 THEN
                                       WHEN height &lt; 10000 AND height >= 9000 and height>width THEN
                                           '9000&lt;H&lt;10000'
                                       WHEN height &lt; 11000 AND height >= 10000 THEN
                                       WHEN height &lt; 11000 AND height >= 10000 and height>width THEN
                                           '10000&lt;H&lt;11000'
                                       WHEN height &lt; 12000 AND height >= 11000 THEN
                                       WHEN height &lt; 12000 AND height >= 11000 and height>width THEN
                                           '11000&lt;H&lt;12000'
                                       ELSE
                                           ''
                                       END height,
                                   CASE
                                       WHEN width &lt; 3660 THEN
                                           ' '
                                       WHEN width &lt; 4000 AND width >= 3660 THEN
                                       WHEN width &lt; 4000 AND width >= 3660 and width>height THEN
                                           '3660&lt;W&lt;4000'
                                       WHEN width &lt; 5000 AND width >= 4000 THEN
                                       WHEN width &lt; 5000 AND width >= 4000 and width>height THEN
                                           '4000&lt;W&lt;5000'
                                       WHEN width &lt; 6000 AND width >= 5000 THEN
                                       WHEN width &lt; 6000 AND width >= 5000 and width>height THEN
                                           '5000&lt;W&lt;6000'
                                       WHEN width &lt; 7000 AND width >= 6000 THEN
                                       WHEN width &lt; 7000 AND width >= 6000 and width>height THEN
                                           '6000&lt;W&lt;7000'
                                       WHEN width &lt; 8000 AND width >= 7000 THEN
                                       WHEN width &lt; 8000 AND width >= 7000 and width>height THEN
                                           '7000&lt;W&lt;8000'
                                       WHEN width &lt; 9000 AND width >= 8000 THEN
                                       WHEN width &lt; 9000 AND width >= 8000 and width>height THEN
                                           '8000&lt;W&lt;9000'
                                       WHEN width &lt; 10000 AND width >= 9000 THEN
                                       WHEN width &lt; 10000 AND width >= 9000 and width>height THEN
                                           '9000&lt;W&lt;10000'
                                       WHEN width &lt; 11000 AND width >= 10000 THEN
                                       WHEN width &lt; 11000 AND width >= 10000 and width>height THEN
                                           '10000&lt;W&lt;11000'
                                       WHEN width &lt; 12000 AND width >= 11000 THEN
                                       WHEN width &lt; 12000 AND width >= 11000 and width>height THEN
                                           '11000&lt;W&lt;12000'
                                       ELSE
                                           ''
                                       END width
                            from order_detail) as od on dd.order_id = od.order_id and dd.order_number = od.order_number
                 left join product pt on pt.id = od.product_id