陶杰
2024-12-16 da12030e9d76e0a1dacea3c3bd612d646f90066e
1.异常未质检订单修改
2.仓位按照顺序排序
已修改3个文件
22 ■■■■■ 文件已修改
src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/payment/DeliveryOrderMapper.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/payment/OrderMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java
@@ -716,7 +716,8 @@
        }
        if(!Constants.ORDER_STATUS_BACKEND.COLLECTION.name().equals(o.getStatusBackend())
            && !Constants.ORDER_STATUS_BACKEND.SEND.name().equals(o.getStatusBackend())){
            && !Constants.ORDER_STATUS_BACKEND.SEND.name().equals(o.getStatusBackend())
        ){
            throw new ValidationException("订单状态异常,不可提交质检记录");
        }
src/main/resources/mapper/payment/DeliveryOrderMapper.xml
@@ -6,7 +6,9 @@
        SELECT q.*, o.warehouse_name, o.warehouse_location_code, o.payment_time
        FROM t_delivery_order q
        join t_order o on q.order_id = o.id
        WHERE q.deleted = 0 and o.deleted = 0
        left join t_warehouse w on o.warehouse_id=w.id
        left join t_warehouse_location wl on o.warehouse_location_id=wl.id
        WHERE q.deleted = 0 and o.deleted = 0 and w.deleted=0 and wl.deleted=0
        and q.supplier_id = #{supplierId}
        <if test="condition.orderNo != null and condition.orderNo != ''">
            AND q.order_no LIKE concat('%', #{condition.orderNo},'%')
@@ -29,7 +31,8 @@
        <if test="condition.endDate != null">
            AND o.payment_time &lt; #{condition.endDate}
        </if>
        ORDER BY o.payment_time
--         ORDER BY o.payment_time
        order by w.seq,wl.seq asc
    </select>
    <select id="selectDoStationList" resultType="com.mzl.flower.dto.response.payment.DeliveryOrderStationListDTO">
src/main/resources/mapper/payment/OrderMapper.xml
@@ -68,7 +68,7 @@
                and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -174,7 +174,7 @@
                and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -410,7 +410,7 @@
            and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -510,7 +510,7 @@
        and oi.status in ('abnormal','reduce','lack','back')
        )
        and q.transfer_id is null
        and q.status in ('COLLECTION', 'SEND')
        and q.status in ('COLLECTION', 'SEND','RECEIVE')
        union
@@ -529,7 +529,7 @@
        where oi.order_id = q.id
        and oi.status in ('abnormal','reduce','lack','back')
        and q.transfer_id is null
        and q.status in ('COLLECTION', 'SEND')
        and q.status in ('COLLECTION', 'SEND','RECEIVE')
        )
    </select>
@@ -586,7 +586,7 @@
<!--            and (oi.status = 'reduce' or oi.status = 'abnormal')-->
<!--            )-->
<!--            and q.transfer_id is null-->
<!--            and q.status in ('COLLECTION', 'SEND')-->
<!--            and q.status in ('COLLECTION', 'SEND','RECEIVE')-->
<!--        </if>-->
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}