|
|
@@ -1049,8 +1049,11 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="amountStatus == 4">
|
|
|
and a.total_amount > 40
|
|
|
</if>
|
|
|
- <if test="depId != null">
|
|
|
- and a.order_dep = #{depId,jdbcType=VARCHAR}
|
|
|
+ <if test="deps != null">
|
|
|
+ and a.order_dep in
|
|
|
+ <foreach close=")" collection="deps" item="deps" open="(" separator=",">
|
|
|
+ #{deps.id}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="starTime !=null and endTime !=null">
|
|
|
and a.create_time between #{starTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
|
|
|
@@ -1198,8 +1201,11 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
<if test="amountStatus == 4">
|
|
|
and a.total_amount > 40
|
|
|
</if>
|
|
|
- <if test="depId != null">
|
|
|
- and a.order_dep = #{depId,jdbcType=VARCHAR}
|
|
|
+ <if test="deps != null">
|
|
|
+ and a.order_dep in
|
|
|
+ <foreach close=")" collection="deps" item="deps" open="(" separator=",">
|
|
|
+ #{deps.id}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="starTime !=null and endTime !=null">
|
|
|
and a.create_time between #{starTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
|