1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| <?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.zt.life.modules.mainPart.taskReliability.dao.TaskPhaseModelDao">
|
| <select id="getList" resultType="com.zt.life.modules.mainPart.taskReliability.model.TaskPhaseModel">
| SELECT a.id as productId,
| a.`NAME` as `system`,
| c.model_name,
| b.model_id,
| b.id
| FROM product_model a
| LEFT JOIN task_phase_model b
| ON b.product_id = a.id
| AND b.phase_id = ${phaseId}
| LEFT JOIN model_rbd c ON c.id = b.model_id
| WHERE a.pid = ${productId}
| AND a.is_delete = 0
| </select>
|
| </mapper>
|
|