|
|
|
|
@ -5,15 +5,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<mapper namespace="com.biutag.supervision.mapper.RpcApplyMapper"> |
|
|
|
|
|
|
|
|
|
<select id="queryPage" resultType="com.biutag.supervision.pojo.vo.RpcApplyVo"> |
|
|
|
|
SELECT |
|
|
|
|
a.*, p.*, ap.injury_severity, ap.injury_severity_name, |
|
|
|
|
CASE WHEN d.level = 3 THEN CONCAT(d1.short_name, d.short_name) ELSE d.short_name END depart_full_name |
|
|
|
|
FROM |
|
|
|
|
rpc_apply a |
|
|
|
|
LEFT JOIN rpc_person p ON a.rpc_id = p.rpc_id |
|
|
|
|
LEFT JOIN rpc_apply_person ap ON a.rpc_id = ap.rpc_id |
|
|
|
|
LEFT JOIN sup_depart d ON a.depart_id = d.id |
|
|
|
|
LEFT JOIN sup_depart d1 ON d.pid = d1.id |
|
|
|
|
SELECT rpc_id as rpcId, applicant_emp_name as applicantEmpName,applicant_emp_no as applicantEmpNo, |
|
|
|
|
happen_time as happenTime,depart_name as departName,number as caseNumber,fact_reason as factReason, |
|
|
|
|
rpc_status as rpcStatus |
|
|
|
|
${ew.getCustomSqlSegment} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|