|
@@ -27,7 +27,7 @@
|
|
|
<result column="process_id" property="processId"/>
|
|
|
</resultMap>
|
|
|
<select id="listAll" resultType="com.huimv.receive.entity.vo.FactoryDirectorVo">
|
|
|
- SELECT count(*) count,id,admission_user_name AS 'userName', bill_status, isolate_location, isolate_start_date AS check_date, isolate_start_date AS 'startTime', isolate_end_date AS 'endTime', NULL AS test_location, NULL AS vistit_type, NULL AS dest_name, NULL AS vistit_date,3 AS 'type',sub_date
|
|
|
+ select * from (SELECT count(*) count,id,admission_user_name AS 'userName', bill_status, isolate_location, isolate_start_date AS check_date, isolate_start_date AS 'startTime', isolate_end_date AS 'endTime', NULL AS test_location, NULL AS vistit_type, NULL AS dest_name, NULL AS vistit_date,3 AS 'type',sub_date
|
|
|
FROM bill_isolate WHERE farm_id = #{farmId} AND vistit_type = #{type}
|
|
|
|
|
|
UNION ALL
|
|
@@ -43,7 +43,7 @@ FROM bill_pcr WHERE farm_id = #{farmId} AND vistit_type = #{type}
|
|
|
UNION ALL
|
|
|
|
|
|
SELECT count(*) count, id,admission_user_name AS 'userName', bill_status, NULL, NULL, NULL, NULL, NULL, vistit_type, dest_name, vistit_date,0 AS 'type',sub_date
|
|
|
-FROM bill_personnel_admission WHERE farm_id = #{farmId} AND vistit_type = #{type}
|
|
|
+FROM bill_personnel_admission ) WHERE farm_id = #{farmId} AND vistit_type = #{type}
|
|
|
ORDER BY sub_date DESC
|
|
|
</select>
|
|
|
|