潘志宝
2024-09-30 303715d81f0c1cd8b32cd659b7734c01565369a6
提交 | 用户 | 时间
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.MmItemTypeDao">
5
6     <resultMap id="MmItemTypeEntity" type="com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity">
7         <result property="itemtypename" column="ITEMTYPENAME"/>
8         <result property="itemclasstype" column="ITEMCLASSTYPE"/>
9         <result property="assemblyname" column="ASSEMBLYNAME"/>
10     </resultMap>
11
12     <select id="getItemTypeByItemId" resultMap="MmItemTypeEntity">
13         SELECT
14             t2.itemtypename,
15             t2.itemclasstype,
16             t2.assemblyname
17         FROM
18             t_mm_predict_item t1,
19             t_mm_item_type t2
20         WHERE t1.itemtypeid=t2.id
21           AND t1.id=#{value}
22     </select>
23
24 </mapper>