|
|
@@ -1031,7 +1031,9 @@ 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}
|
|
|
+ <if test="manageType ==0">
|
|
|
+ and dep.approval_aid= #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
and a.order_status=2
|
|
|
<if test="approval ==0">
|
|
|
and a.process_status in(4)
|
|
|
@@ -1205,7 +1207,9 @@ 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}
|
|
|
+ <if test="manageType ==0">
|
|
|
+ and dep.approval_aid= #{aid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
and a.order_status=2
|
|
|
<if test="approval ==0">
|
|
|
and a.process_status in(4)
|