|
@@ -51,30 +51,31 @@
|
|
|
</select>
|
|
|
|
|
|
<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}
|
|
|
+ select *,1 AS 'type' from bill_clean where farm_id=#{farmId} and vistit_type=#{type} and test_location_id=#{location}
|
|
|
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}
|
|
|
+ select *,2 AS 'type' from bill_dry where farm_id=#{farmId} and vistit_type=#{type} and test_location_id=#{location}
|
|
|
and img_status in
|
|
|
<foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
#{statu}
|
|
|
</foreach>
|
|
|
+ ORDER BY sub_date DESC
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="CleanAndDry2" resultType="com.huimv.admin.entity.vo.CleanAndDryVo2">
|
|
|
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)
|
|
|
+ vistit_type in (1,2,3,4,5,6) and img_status=1
|
|
|
and bill_status in
|
|
|
<foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
#{statu}
|
|
|
</foreach>
|
|
|
union all
|
|
|
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)
|
|
|
+ vistit_type in (1,2,3,4,5,6) and img_status=1
|
|
|
and bill_status in
|
|
|
<foreach collection="status" item="statu" separator="," open="(" close=")">
|
|
|
#{statu}
|