Browse Source

employeeRegisterList

master
yinzuomei 3 years ago
parent
commit
93948c6cea
  1. 16
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEmployeeRegisterDao.xml

16
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEmployeeRegisterDao.xml

@ -41,7 +41,13 @@
INNER join ic_employee_register ier ON ier.ENTERPRISE_ID = ie.ID AND ier.DEL_FLAG = 0
left JOIN ic_employee_register_detail rd ON rd.REGISTER_ID = ier.ID AND rd.DEL_FLAG = 0
WHERE ie.DEL_FLAG = 0
AND CONCAT(AGENCY_PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{agencyId},'%')
AND CONCAT(ie.AGENCY_PIDS,':',ie.AGENCY_ID) LIKE CONCAT('%',#{agencyId},'%')
<if test='null != natStartDate and natStartDate != ""'>
AND DATE_FORMAT(rd.LATEST_NAT_TIME,'%Y-%m-%d') >= #{natStartDate}
</if>
<if test='null != natEndDate and natEndDate != ""'>
AND DATE_FORMAT(rd.LATEST_NAT_TIME,'%Y-%m-%d') <![CDATA[<=]]> #{natEndDate}
</if>
ORDER BY rd.CREATED_TIME DESC
)t
where 1=1
@ -54,6 +60,14 @@
AND DATE_FORMAT(LATEST_NAT_TIME,'%Y-%m-%d') <![CDATA[<=]]> #{natEndDate}
</if>
</when>
<when test='checkStatus == "0" '>
<if test='null != natStartDate and natStartDate != ""'>
AND DATE_FORMAT(LATEST_NAT_TIME,'%Y-%m-%d') <![CDATA[<=]]> #{natStartDate}
</if>
<if test='null != natEndDate and natEndDate != ""'>
AND DATE_FORMAT(LATEST_NAT_TIME,'%Y-%m-%d') >= #{natEndDate}
</if>
</when>
<otherwise>
</otherwise>

Loading…
Cancel
Save