2022-04-18 20:24:43 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.engine.salary.mapper.InsuranceExportMapper">
|
|
|
|
|
<select id="exportAccount" resultType="com.engine.salary.entity.siexport.po.AccountExportPO">
|
|
|
|
|
SELECT
|
2022-04-21 15:04:35 +08:00
|
|
|
a.*,e.lastname AS userName,e.MOBILE AS telephone,d.departmentname AS departmentName,e.`STATUS` AS userStatus
|
2022-04-18 20:24:43 +08:00
|
|
|
FROM(
|
|
|
|
|
SELECT * from hrsa_bill_detail
|
|
|
|
|
WHERE delete_type = 0 AND bill_month = #{billMonth} AND payment_status = #{paymentStatus}
|
|
|
|
|
)a
|
2022-04-21 15:04:35 +08:00
|
|
|
LEFT JOIN hrmresource e ON e.ID = a.employee_id
|
|
|
|
|
LEFT JOIN hrmdepartment d ON d.id = e.departmentid
|
2022-04-18 20:24:43 +08:00
|
|
|
</select>
|
|
|
|
|
<select id="exportAccount" resultType="com.weaver.hrm.salary.entity.siexport.po.AccountExportPO" databaseId="oracle">
|
|
|
|
|
SELECT
|
2022-04-21 15:04:35 +08:00
|
|
|
a.*,e.lastname AS userName,e.MOBILE AS telephone,d.departmentname AS departmentName,e.STATUS AS userStatus
|
|
|
|
|
FROM(
|
|
|
|
|
SELECT * from hrsa_bill_detail
|
|
|
|
|
WHERE delete_type = 0 AND bill_month = #{billMonth} AND payment_status = #{paymentStatus}
|
|
|
|
|
)a
|
|
|
|
|
LEFT JOIN hrmresource e ON e.ID = a.employee_id
|
|
|
|
|
LEFT JOIN hrmdepartment d ON d.id = e.departmentid
|
2022-04-18 20:24:43 +08:00
|
|
|
</select>
|
|
|
|
|
<select id="exportAccount" resultType="com.weaver.hrm.salary.entity.siexport.po.AccountExportPO" databaseId="sqlserver">
|
2022-04-21 15:04:35 +08:00
|
|
|
SELECT
|
|
|
|
|
a.*,e.lastname AS userName,e.MOBILE AS telephone,d.departmentname AS departmentName,e.STATUS AS userStatus
|
|
|
|
|
FROM(
|
|
|
|
|
SELECT * from hrsa_bill_detail
|
|
|
|
|
WHERE delete_type = 0 AND bill_month = #{billMonth} AND payment_status = #{paymentStatus}
|
|
|
|
|
)a
|
|
|
|
|
LEFT JOIN hrmresource e ON e.ID = a.employee_id
|
|
|
|
|
LEFT JOIN hrmdepartment d ON d.id = e.departmentid
|
2022-04-18 20:24:43 +08:00
|
|
|
</select>
|
|
|
|
|
</mapper>
|