|
|
@@ -1032,6 +1032,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
and a.salesman_id = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="specially == 3">
|
|
|
+ and dep.approval_aid= #{aid,jdbcType=VARCHAR}
|
|
|
and a.order_status=2
|
|
|
<if test="approval ==0">
|
|
|
and a.process_status in(4)
|
|
|
@@ -1046,9 +1047,6 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="manageType ==1">
|
|
|
(4)
|
|
|
</if>
|
|
|
- <if test="manageType ==2">
|
|
|
- (7)
|
|
|
- </if>
|
|
|
</if>
|
|
|
<if test="approval ==2">
|
|
|
and a.approval in
|
|
|
@@ -1058,9 +1056,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="manageType ==1">
|
|
|
(5,6)
|
|
|
</if>
|
|
|
- <if test="manageType ==2">
|
|
|
- (8,9)
|
|
|
- </if>
|
|
|
+
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="specially !=3 ">
|
|
|
@@ -1210,6 +1206,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
and a.salesman_id = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="specially == 3">
|
|
|
+ and dep.approval_aid= #{aid,jdbcType=VARCHAR}
|
|
|
and a.order_status=2
|
|
|
<if test="approval ==0">
|
|
|
and a.process_status in(4)
|
|
|
@@ -1224,9 +1221,6 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="manageType ==1">
|
|
|
(4)
|
|
|
</if>
|
|
|
- <if test="manageType ==2">
|
|
|
- (7)
|
|
|
- </if>
|
|
|
</if>
|
|
|
<if test="approval ==2">
|
|
|
and a.approval in
|
|
|
@@ -1236,9 +1230,7 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="manageType ==1">
|
|
|
(5,6)
|
|
|
</if>
|
|
|
- <if test="manageType ==2">
|
|
|
- (8,9)
|
|
|
- </if>
|
|
|
+
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="specially !=3 ">
|