|
@@ -223,7 +223,8 @@
|
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
|
a.name as approverName,
|
|
a.name as approverName,
|
|
|
a2.name as secondaryApproverName,
|
|
a2.name as secondaryApproverName,
|
|
|
- u.user_name as usersName
|
|
|
|
|
|
|
+ u.user_name as usersName,
|
|
|
|
|
+ ap.house_count as houseCount
|
|
|
FROM
|
|
FROM
|
|
|
`application_procedure_temporary` ap
|
|
`application_procedure_temporary` ap
|
|
|
LEFT JOIN admin a on a.id=ap.approver_id
|
|
LEFT JOIN admin a on a.id=ap.approver_id
|
|
@@ -263,7 +264,8 @@
|
|
|
ap.secondary_approver_id as secondaryApproverId,
|
|
ap.secondary_approver_id as secondaryApproverId,
|
|
|
ap.secondary_examine_and_approve_time as secondaryExamineAndApproveTime,
|
|
ap.secondary_examine_and_approve_time as secondaryExamineAndApproveTime,
|
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
|
- u.user_name as usersName
|
|
|
|
|
|
|
+ u.user_name as usersName,
|
|
|
|
|
+ ap.house_count as houseCount
|
|
|
FROM
|
|
FROM
|
|
|
`application_procedure_temporary` ap
|
|
`application_procedure_temporary` ap
|
|
|
LEFT JOIN users u on u.id=ap.users_id and u.deleted=0
|
|
LEFT JOIN users u on u.id=ap.users_id and u.deleted=0
|
|
@@ -272,7 +274,12 @@
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and startTime != '' ">
|
|
<if test="startTime != null and startTime != '' and endTime != null and startTime != '' ">
|
|
|
AND ap.submission_time>=#{startTime} and #{endTime}>=ap.submission_time
|
|
AND ap.submission_time>=#{startTime} and #{endTime}>=ap.submission_time
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+ <if test="orgList != null and orgList.size() > 0">
|
|
|
|
|
+ and ap.orgId in
|
|
|
|
|
+ <foreach collection="orgList" item="orgId" index="index" open="(" close=")" separator=",">
|
|
|
|
|
+ ${orgId}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
|
AND ap.`status`=#{status}
|
|
AND ap.`status`=#{status}
|
|
|
</if>
|
|
</if>
|
|
@@ -295,7 +302,8 @@
|
|
|
ap.secondary_approver_id as secondaryApproverId,
|
|
ap.secondary_approver_id as secondaryApproverId,
|
|
|
ap.secondary_examine_and_approve_time as secondaryExamineAndApproveTime,
|
|
ap.secondary_examine_and_approve_time as secondaryExamineAndApproveTime,
|
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
ap.secondary_examine_and_approve_remark as secondaryExamineAndApproveRemark,
|
|
|
- u.user_name as usersName
|
|
|
|
|
|
|
+ u.user_name as usersName,
|
|
|
|
|
+ ap.house_count as houseCount
|
|
|
FROM
|
|
FROM
|
|
|
`application_procedure_temporary` ap
|
|
`application_procedure_temporary` ap
|
|
|
LEFT JOIN users u on u.id=ap.users_id and u.deleted=0
|
|
LEFT JOIN users u on u.id=ap.users_id and u.deleted=0
|
|
@@ -304,6 +312,12 @@
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and startTime != '' ">
|
|
<if test="startTime != null and startTime != '' and endTime != null and startTime != '' ">
|
|
|
AND ap.submission_time>=#{startTime} and #{endTime}>=ap.submission_time
|
|
AND ap.submission_time>=#{startTime} and #{endTime}>=ap.submission_time
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="orgList != null and orgList.size() > 0">
|
|
|
|
|
+ and ap.orgId in
|
|
|
|
|
+ <foreach collection="orgList" item="orgId" index="index" open="(" close=")" separator=",">
|
|
|
|
|
+ ${orgId}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
and FIND_IN_SET(ap.status,#{status})
|
|
and FIND_IN_SET(ap.status,#{status})
|
|
|
ORDER BY ap.submission_time DESC
|
|
ORDER BY ap.submission_time DESC
|
|
|
</select>
|
|
</select>
|