提交 | 用户 | 时间
|
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.bs.workshopInfo.mapper.WorkshopInfoMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.bs.workshopInfo.entity.WorkshopInfo"> |
|
7 |
<id 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.bs.workshopInfo.model.result.WorkshopInfoResult" parameterType="cn.stylefeng.guns.modular.bs.workshopInfo.model.params.WorkshopInfoParam"> |
|
26 |
select |
|
27 |
<include refid="Base_Column_List"/> |
|
28 |
from bs_workshop_info where 1 = 1 |
|
29 |
</select> |
|
30 |
|
|
31 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.bs.workshopInfo.model.params.WorkshopInfoParam"> |
|
32 |
select |
|
33 |
<include refid="Base_Column_List"/> |
|
34 |
from bs_workshop_info where 1 = 1 |
|
35 |
</select> |
|
36 |
|
|
37 |
<select id="customPageList" resultType="cn.stylefeng.guns.modular.bs.workshopInfo.model.result.WorkshopInfoResult" parameterType="cn.stylefeng.guns.modular.bs.workshopInfo.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 |
order by id desc |
|
48 |
</select> |
|
49 |
|
|
50 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.bs.workshopInfo.model.params.WorkshopInfoParam"> |
|
51 |
select |
|
52 |
<include refid="Base_Column_List"/> |
|
53 |
from bs_workshop_info where 1 = 1 |
|
54 |
</select> |
|
55 |
|
|
56 |
</mapper> |