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