|
@@ -52,20 +52,32 @@
|
|
|
|
|
|
<select id="CleanAndDry" resultType="com.huimv.admin.entity.vo.CleanAndDryVo2">
|
|
|
select *,1 AS 'type' from bill_clean where farm_id=#{farmId} and vistit_type=#{type}
|
|
|
- and img_status in (#{status})
|
|
|
+ and img_status in
|
|
|
+ <foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
+ #{statu}
|
|
|
+ </foreach>
|
|
|
union all
|
|
|
select *,2 AS 'type' from bill_dry where farm_id=#{farmId} and vistit_type=#{type}
|
|
|
- and img_status in (#{status})
|
|
|
+ and img_status in
|
|
|
+ <foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
+ #{statu}
|
|
|
+ </foreach>
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="CleanAndDry2" resultType="com.huimv.admin.entity.vo.CleanAndDryVo2">
|
|
|
- select *,1 AS 'type' from bill_clean where farm_id=#{farmId} and
|
|
|
+ select id,vistit_type,dest_name,dest_id,admission_user_name,admission_user_id,vistit_date,sub_date,farm_id,bill_status,pass_date,pass_user_name,pass_user_id,process_id,check_date,test_location,test_location_id,phone,car_num,img_url,img_status,1 AS 'type' from bill_clean where farm_id=#{farmId} and
|
|
|
vistit_type in (1,2,3,4,5,6)
|
|
|
- and bill_status in (#{status})
|
|
|
+ and bill_status in
|
|
|
+ <foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
+ #{statu}
|
|
|
+ </foreach>
|
|
|
union all
|
|
|
- select *,2 AS 'type' from bill_dry where farm_id=#{farmId} and
|
|
|
+ select id,vistit_type,dest_name,dest_id,admission_user_name,admission_user_id,vistit_date,sub_date,farm_id,bill_status,pass_date,pass_user_name,pass_user_id,process_id,check_date,test_location,test_location_id,phone,car_num,img_url,img_status,2 AS 'type' from bill_dry where farm_id=#{farmId} and
|
|
|
vistit_type in (1,2,3,4,5,6)
|
|
|
- and bill_status in (#{status})
|
|
|
+ and bill_status in
|
|
|
+ <foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
+ #{statu}
|
|
|
+ </foreach>
|
|
|
</select>
|
|
|
</mapper>
|