提交 | 用户 | 时间
7fd198 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
4 <mapper namespace="com.iailab.module.model.mcs.pre.dao.MmItemOutputDao">
5
6     <resultMap id="MmItemOutputVO" type="com.iailab.module.model.mdk.vo.MmItemOutputVO">
7         <result property="id" column="ID"/>
8         <result property="itemId" column="ITEMID"/>
9         <result property="pointId" column="POINTID"/>
10         <result property="resultTableName" column="TABLENAME"/>
11         <result property="order" column="OUTPUTORDER"/>
12     </resultMap>
13
14     <select id="getOutPutById" resultMap="MmItemOutputVO">
15         SELECT t1.id,
16                t1.itemid,
17                t1.pointid,
18                t2.tablename,
19                t1.outputorder
20         FROM t_mm_item_output t1,
21              t_mm_result_table t2
22         WHERE t1.id = #{value}
23           AND t1.resulttableid = t2.id
24     </select>
25     <select id="getOutPutByItemId" resultMap="MmItemOutputVO">
26         SELECT t1.id,
27                t1.itemid,
28                t1.pointid,
29                t2.tablename,
30                t1.outputorder
31         FROM t_mm_item_output t1,
32              t_mm_result_table t2
1a2b62 33         WHERE t1.itemid = #{itemid}
7fd198 34           AND t1.resulttableid = t2.id
35         ORDER BY t1.outputorder
36     </select>
37     <select id="getOutPutByPointId" resultMap="MmItemOutputVO">
38         SELECT t1.id,
39                t1.itemid,
40                t1.pointid,
41                t2.tablename,
42                t1.outputorder
43         FROM t_mm_item_output t1,
44              t_mm_result_table t2
45         WHERE t1.pointid = #{value}
46           AND t1.resulttableid = t2.id
47         ORDER BY t1.outputorder
48     </select>
49 </mapper>