cl
2024-01-19 e0fac38b26845f25de479783e0c76cf12a5311e0
提交 | 用户 | 时间
71e81e 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 <mapper namespace="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.mapper.EquipmentMaintainContentConfMapper">
4
5     <!-- 通用查询映射结果 -->
6     <resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.entity.EquipmentMaintainContentConf">
7         <id column="id" property="id" />
8         <result column="maintain_content_code" property="maintainContentCode" />
9         <result column="maintain_content_name" property="maintainContentName" />
10         <result column="maintain_content_type" property="maintainContentType" />
11         <result column="maintain_content" property="maintainContent" />
12         <result column="state" property="state" />
13         <result column="spare_field_1" property="spareField1" />
14         <result column="spare_field_2" property="spareField2" />
15         <result column="remarks" property="remarks" />
16         <result column="create_user" property="createUser" />
17         <result column="update_user" property="updateUser" />
18         <result column="create_time" property="createTime" />
19         <result column="update_time" property="updateTime" />
20     </resultMap>
21
22     <!-- 通用查询结果列 -->
23     <sql id="Base_Column_List">
24         id AS "id", maintain_content_code AS "maintainContentCode", maintain_content_name AS "maintainContentName", maintain_content_type AS "maintainContentType", maintain_content AS "maintainContent", state AS "state", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", remarks AS "remarks", create_user AS "createUser", update_user AS "updateUser", create_time AS "createTime", update_time AS "updateTime"
25     </sql>
26
27
28     <select id="customList" resultType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.result.EquipmentMaintainContentConfResult" parameterType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.params.EquipmentMaintainContentConfParam">
29         select
30         <include refid="Base_Column_List"/>
31         from em_equipment_maintain_content_conf where 1 = 1
32     </select>
33
34     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.params.EquipmentMaintainContentConfParam">
35         select
36         <include refid="Base_Column_List"/>
37         from em_equipment_maintain_content_conf where 1 = 1
38     </select>
39
40     <select id="customPageList" resultType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.result.EquipmentMaintainContentConfResult" parameterType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.params.EquipmentMaintainContentConfParam">
41         select
42         <include refid="Base_Column_List"/>
43         from em_equipment_maintain_content_conf where 1 = 1
44         <if test="paramCondition.maintainContentCode != null and paramCondition.maintainContentCode != ''">
45             and maintain_content_code like CONCAT('%',#{paramCondition.maintainContentCode},'%')
46         </if>
47         <if test="paramCondition.maintainContentName != null and paramCondition.maintainContentName != ''">
48             and maintain_content_name like CONCAT('%',#{paramCondition.maintainContentName},'%')
49         </if>
50         <if test="paramCondition.maintainContentType != null and paramCondition.maintainContentType != ''">
51             and maintain_content_type like CONCAT('%',#{paramCondition.maintainContentType},'%')
52         </if>
53     </select>
54
55     <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.params.EquipmentMaintainContentConfParam">
56         select
57         <include refid="Base_Column_List"/>
58         from em_equipment_maintain_content_conf where 1 = 1
59     </select>
60
61 </mapper>