提交 | 用户 | 时间
|
8286c6
|
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.customInfo.mapper.CustomInfoMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.bs.customInfo.entity.CustomInfo"> |
|
7 |
<id column="id" property="id" /> |
|
8 |
<result column="customer_code" property="customerCode" /> |
|
9 |
<result column="customer_name" property="customerName" /> |
|
10 |
<result column="customer_type" property="customerType" /> |
|
11 |
<result column="contact" property="contact" /> |
|
12 |
<result column="remarks" property="remarks" /> |
|
13 |
<result column="create_time" property="createTime" /> |
|
14 |
<result column="create_user" property="createUser" /> |
|
15 |
<result column="update_time" property="updateTime" /> |
|
16 |
<result column="update_user" property="updateUser" /> |
|
17 |
</resultMap> |
|
18 |
|
|
19 |
<!-- 通用查询结果列 --> |
|
20 |
<sql id="Base_Column_List"> |
|
21 |
id AS "id", customer_code AS "customerCode", customer_name AS "customerName", customer_type AS "customerType", contact AS "contact", remarks AS "remarks", create_time AS "createTime", create_user AS "createUser", update_time AS "updateTime", update_user AS "updateUser" |
|
22 |
</sql> |
|
23 |
|
|
24 |
|
|
25 |
<select id="customList" resultType="cn.stylefeng.guns.modular.bs.customInfo.model.result.CustomInfoResult" parameterType="cn.stylefeng.guns.modular.bs.customInfo.model.params.CustomInfoParam"> |
|
26 |
select |
|
27 |
<include refid="Base_Column_List"/> |
|
28 |
from bs_custom_info where 1 = 1 |
|
29 |
</select> |
|
30 |
|
|
31 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.bs.customInfo.model.params.CustomInfoParam"> |
|
32 |
select |
|
33 |
<include refid="Base_Column_List"/> |
|
34 |
from bs_custom_info where 1 = 1 |
|
35 |
</select> |
|
36 |
|
|
37 |
<select id="customPageList" resultType="cn.stylefeng.guns.modular.bs.customInfo.model.result.CustomInfoResult" parameterType="cn.stylefeng.guns.modular.bs.customInfo.model.params.CustomInfoParam"> |
|
38 |
select |
|
39 |
<include refid="Base_Column_List"/> |
|
40 |
from bs_custom_info where 1 = 1 |
|
41 |
<if test="paramCondition.customerCode != null and paramCondition.customerCode != ''"> |
|
42 |
and customer_code like CONCAT('%',#{paramCondition.customerCode},'%') |
|
43 |
</if> |
|
44 |
<if test="paramCondition.customerName != null and paramCondition.customerName != ''"> |
|
45 |
and customer_name like CONCAT('%',#{paramCondition.customerName},'%') |
|
46 |
</if> |
|
47 |
<if test="paramCondition.customerType != null and paramCondition.customerType != ''"> |
|
48 |
and customer_type like CONCAT('%',#{paramCondition.customerType},'%') |
|
49 |
</if> |
|
50 |
</select> |
|
51 |
|
|
52 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.bs.customInfo.model.params.CustomInfoParam"> |
|
53 |
select |
|
54 |
<include refid="Base_Column_List"/> |
|
55 |
from bs_custom_info where 1 = 1 |
|
56 |
</select> |
|
57 |
|
|
58 |
</mapper> |