提交 | 用户 | 时间
|
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.sc.serialNumbersConf.mapper.SerialNumbersConfMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.sc.serialNumbersConf.entity.SerialNumbersConf"> |
|
7 |
<id column="id" property="id" /> |
|
8 |
<result column="years" property="years" /> |
|
9 |
<result column="serial_number" property="serialNumber" /> |
|
10 |
<result column="lengths" property="lengths" /> |
|
11 |
<result column="state" property="state" /> |
|
12 |
<result column="create_time" property="createTime" /> |
|
13 |
<result column="create_user" property="createUser" /> |
|
14 |
<result column="update_time" property="updateTime" /> |
|
15 |
<result column="update_user" property="updateUser" /> |
|
16 |
</resultMap> |
|
17 |
|
|
18 |
<!-- 通用查询结果列 --> |
|
19 |
<sql id="Base_Column_List"> |
|
20 |
id AS "id", years AS "years", serial_number AS "serialNumber", lengths AS "lengths", state AS "state", create_time AS "createTime", create_user AS "createUser", update_time AS "updateTime", update_user AS "updateUser" |
|
21 |
</sql> |
|
22 |
|
|
23 |
|
|
24 |
<select id="customList" resultType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.result.SerialNumbersConfResult" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam"> |
|
25 |
select |
|
26 |
<include refid="Base_Column_List"/> |
|
27 |
from sc_serial_numbers_conf where 1 = 1 |
|
28 |
<if test="paramCondition.years != null and paramCondition.years != ''"> |
|
29 |
and years like CONCAT('%',#{paramCondition.years},'%') |
|
30 |
</if> |
|
31 |
<if test="paramCondition.serialNumber != null and paramCondition.serialNumber != ''"> |
|
32 |
and serial_number like CONCAT('%',#{paramCondition.serialNumber},'%') |
|
33 |
</if> |
|
34 |
<if test="paramCondition.lengths != null and paramCondition.lengths != ''"> |
|
35 |
and lengths like CONCAT('%',#{paramCondition.lengths},'%') |
|
36 |
</if> |
|
37 |
<if test="paramCondition.state != null and paramCondition.state != ''"> |
|
38 |
and state like CONCAT('%',#{paramCondition.state},'%') |
|
39 |
</if> |
|
40 |
</select> |
|
41 |
|
|
42 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam"> |
|
43 |
select |
|
44 |
<include refid="Base_Column_List"/> |
|
45 |
from sc_serial_numbers_conf where 1 = 1 |
|
46 |
</select> |
|
47 |
|
|
48 |
<select id="customPageList" resultType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.result.SerialNumbersConfResult" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam"> |
|
49 |
select |
|
50 |
<include refid="Base_Column_List"/> |
|
51 |
from sc_serial_numbers_conf where 1 = 1 |
|
52 |
<if test="paramCondition.years != null and paramCondition.years != ''"> |
|
53 |
and years like CONCAT('%',#{paramCondition.years},'%') |
|
54 |
</if> |
|
55 |
<if test="paramCondition.serialNumber != null and paramCondition.serialNumber != ''"> |
|
56 |
and serial_number like CONCAT('%',#{paramCondition.serialNumber},'%') |
|
57 |
</if> |
|
58 |
<if test="paramCondition.lengths != null and paramCondition.lengths != ''"> |
|
59 |
and lengths like CONCAT('%',#{paramCondition.lengths},'%') |
|
60 |
</if> |
|
61 |
<if test="paramCondition.state != null and paramCondition.state != ''"> |
|
62 |
and state like CONCAT('%',#{paramCondition.state},'%') |
|
63 |
</if> |
|
64 |
</select> |
|
65 |
|
|
66 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam"> |
|
67 |
select |
|
68 |
<include refid="Base_Column_List"/> |
|
69 |
from sc_serial_numbers_conf where 1 = 1 |
|
70 |
</select> |
|
71 |
|
|
72 |
</mapper> |