Browse Source

feat(controller): 修复调查信息审核页面查询慢问题

lixuesong 4 years ago
parent
commit
2e85afa450

+ 3 - 3
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmTaskMapper.xml

@@ -1188,13 +1188,13 @@ FROM
 				<where>
 					del_flag = '0' AND enable_flag = '0' AND (task_type_id IN ('15', '16', '18', '30') AND task_from != '2')
 					<if test="query.taskTypeId != null and query.taskTypeId != ''">
-						AND task_type_id = #{query.taskTypeId}
+						AND task_type_id = #{query.taskTypeId, jdbcType=VARCHAR}
 					</if>
 					<if test="query.platAuditStatus != null and query.platAuditStatus != ''">
-						AND plat_audit_status = #{query.platAuditStatus}
+						AND plat_audit_status = #{query.platAuditStatus, jdbcType=VARCHAR}
 					</if>
 					<if test="startDate != null and endDate != null">
-						AND create_time BETWEEN #{startDate} AND #{endDate}
+						AND create_time BETWEEN #{startDate, jdbcType=TIMESTAMP} AND #{endDate, jdbcType=TIMESTAMP}
 					</if>
 				</where>
 				GROUP BY task_content_id, task_type_id