|
@@ -144,7 +144,7 @@ ORDER BY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="listCleanDryGoods" resultType="com.huimv.receive.entity.vo.CleanDryGoodsVo">
|
|
<select id="listCleanDryGoods" resultType="com.huimv.receive.entity.vo.CleanDryGoodsVo">
|
|
|
select id,vistit_Type,test_location,admission_user_name,car_num,clean_time,null as 'dryTime',check_date,sub_date,bill_status,img_status,1 AS 'type' from bill_clean where farm_id=#{farmId} and vistit_type=#{type}
|
|
select id,vistit_Type,test_location,admission_user_name,car_num,clean_time,null as 'dryTime',check_date,sub_date,bill_status,img_status,1 AS 'type' from bill_clean where farm_id=#{farmId} and vistit_type=#{type}
|
|
|
- and test_location_id in
|
|
|
|
|
|
|
+ and admission_user_id in
|
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
|
#{location}
|
|
#{location}
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -154,7 +154,7 @@ ORDER BY
|
|
|
</foreach>
|
|
</foreach>
|
|
|
union all
|
|
union all
|
|
|
select id,vistit_Type,test_location,admission_user_name,car_num,null as 'cleanTime',dry_time,check_date,sub_date,bill_status,img_status,2 AS 'type' from bill_dry where farm_id=#{farmId} and vistit_type=#{type}
|
|
select id,vistit_Type,test_location,admission_user_name,car_num,null as 'cleanTime',dry_time,check_date,sub_date,bill_status,img_status,2 AS 'type' from bill_dry where farm_id=#{farmId} and vistit_type=#{type}
|
|
|
- and test_location_id in
|
|
|
|
|
|
|
+ and admission_user_id in
|
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
|
#{location}
|
|
#{location}
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -164,7 +164,7 @@ ORDER BY
|
|
|
</foreach>
|
|
</foreach>
|
|
|
union all
|
|
union all
|
|
|
select id,vistit_type,test_location as 'testLocation',admission_user_name,car_num,null as 'cleanTime',null as 'dryTime',null as 'checkDate' ,sub_date,bill_status as 'billStatus' ,null,3 AS 'type' from bill_goods_inventory where farm_id=#{farmId}
|
|
select id,vistit_type,test_location as 'testLocation',admission_user_name,car_num,null as 'cleanTime',null as 'dryTime',null as 'checkDate' ,sub_date,bill_status as 'billStatus' ,null,3 AS 'type' from bill_goods_inventory where farm_id=#{farmId}
|
|
|
- and test_location_id in
|
|
|
|
|
|
|
+ and admission_user_id in
|
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
<foreach collection="locations" item="location" separator="," open="(" close=")">
|
|
|
#{location}
|
|
#{location}
|
|
|
</foreach>
|
|
</foreach>
|