|
|
@@ -1053,11 +1053,10 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
|
|
|
<sql id="selectOrderNewSql">
|
|
|
<if test="specially ==12">
|
|
|
- <if test="maxStatus !=null">
|
|
|
- and toprc.max_status = #{maxStatus}
|
|
|
- </if>
|
|
|
<if test="manageType==0">
|
|
|
- and toprc.max_process >= #{configType}
|
|
|
+ <if test="maxProcessStatus =null">
|
|
|
+ and toprc.max_process >= #{configType}
|
|
|
+ </if>
|
|
|
<if test="maxProcessStatus =0">
|
|
|
and toprc.max_process= #{configType}
|
|
|
</if>
|
|
|
@@ -1065,6 +1064,10 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
and toprc.max_process > #{configType}
|
|
|
and toprc.max_process in (1,2,3,5)
|
|
|
</if>
|
|
|
+ <if test="maxProcessStatus =2">
|
|
|
+ and toprc.max_process =4
|
|
|
+
|
|
|
+ </if>
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="specially ==7">
|
|
|
@@ -1087,6 +1090,9 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
and a.outsource= #{outsource,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="specially == 0">
|
|
|
+ <if test="maxStatus !=null">
|
|
|
+ and toprc.max_status = #{maxStatus}
|
|
|
+ </if>
|
|
|
<if test="approval ==null">
|
|
|
and a.approval in(0,1,2,4,5,7,8)
|
|
|
</if>
|