销售发货,产品调整
This commit is contained in:
@@ -30,20 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
o.company,
|
||||
o.salesman_id,
|
||||
s.name as sales_manager,
|
||||
(CASE
|
||||
WHEN o.order_status = 3 THEN 3
|
||||
WHEN EXISTS (SELECT 1
|
||||
FROM gear_shipping_order so
|
||||
WHERE so.order_id = o.order_id
|
||||
AND so.del_flag = '0'
|
||||
AND CAST(so.status AS SIGNED) >= 3) THEN 2
|
||||
WHEN EXISTS (SELECT 1
|
||||
FROM gear_shipping_order so
|
||||
WHERE so.order_id = o.order_id
|
||||
AND so.del_flag = '0'
|
||||
AND CAST(so.status AS SIGNED) >= 2) THEN 1
|
||||
ELSE o.order_status
|
||||
END) AS order_status,
|
||||
o.order_status AS order_status,
|
||||
o.remark,
|
||||
o.del_flag,
|
||||
o.create_time,
|
||||
@@ -83,20 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
o.company,
|
||||
o.salesman_id,
|
||||
s.name as sales_manager,
|
||||
(CASE
|
||||
WHEN o.order_status = 3 THEN 3
|
||||
WHEN EXISTS (SELECT 1
|
||||
FROM gear_shipping_order so
|
||||
WHERE so.order_id = o.order_id
|
||||
AND so.del_flag = '0'
|
||||
AND CAST(so.status AS SIGNED) >= 3) THEN 2
|
||||
WHEN EXISTS (SELECT 1
|
||||
FROM gear_shipping_order so
|
||||
WHERE so.order_id = o.order_id
|
||||
AND so.del_flag = '0'
|
||||
AND CAST(so.status AS SIGNED) >= 2) THEN 1
|
||||
ELSE o.order_status
|
||||
END) AS order_status,
|
||||
o.order_status AS order_status,
|
||||
o.remark,
|
||||
o.del_flag,
|
||||
o.create_time,
|
||||
|
||||
Reference in New Issue
Block a user