cl
2024-01-22 314bc7a1733856bd82c9d99bdfa27b34a4a762c3
提交 | 用户 | 时间
b26949 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.gm.greaseManage.mapper.GreaseManageMapper">
4
5     <!-- 通用查询映射结果 -->
6     <resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.gm.greaseManage.entity.GreaseManage">
7         <id column="id" property="id" />
8         <result column="barcode" property="barcode" />
9         <result column="location_code" property="locationCode" />
10         <result column="dua_date" property="duaDate" />
11         <result column="state" property="state" />
12         <result column="create_user" property="createUser" />
13         <result column="create_time" property="createTime" />
14         <result column="remarks" property="remarks" />
15         <result column="spare_field_1" property="spareField1" />
16         <result column="spare_field_2" property="spareField2" />
17     </resultMap>
18
19     <!-- 通用查询结果列 -->
20     <sql id="Base_Column_List">
21         id AS "id", barcode AS "barcode", location_code AS "locationCode", dua_date AS "duaDate", state AS "state", create_user AS "createUser", create_time AS "createTime", remarks AS "remarks", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2"
22     </sql>
23
24
25     <select id="customList" resultType="cn.stylefeng.guns.modular.gm.greaseManage.model.result.GreaseManageResult" parameterType="cn.stylefeng.guns.modular.gm.greaseManage.model.params.GreaseManageParam">
26         select
27         <include refid="Base_Column_List"/>
28         from gm_grease_manage where 1 = 1
c64c9f 29         <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''">
C 30             and location_code like CONCAT('%',#{paramCondition.locationCode},'%')
31         </if>
b26949 32     </select>
33
34     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.gm.greaseManage.model.params.GreaseManageParam">
35         select
36         <include refid="Base_Column_List"/>
37         from gm_grease_manage where 1 = 1
38     </select>
39
40     <select id="customPageList" resultType="cn.stylefeng.guns.modular.gm.greaseManage.model.result.GreaseManageResult" parameterType="cn.stylefeng.guns.modular.gm.greaseManage.model.params.GreaseManageParam">
41         select
42         <include refid="Base_Column_List"/>
43         from gm_grease_manage where 1 = 1
44     </select>
45
46     <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.gm.greaseManage.model.params.GreaseManageParam">
47         select
48         <include refid="Base_Column_List"/>
49         from gm_grease_manage where 1 = 1
50     </select>
51
52 </mapper>