<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="cn.stylefeng.guns.modular.sc.serialNumbersConf.mapper.SerialNumbersConfMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.sc.serialNumbersConf.entity.SerialNumbersConf">
|
<id column="id" property="id" />
|
<result column="years" property="years" />
|
<result column="serial_number" property="serialNumber" />
|
<result column="lengths" property="lengths" />
|
<result column="state" property="state" />
|
<result column="create_time" property="createTime" />
|
<result column="create_user" property="createUser" />
|
<result column="update_time" property="updateTime" />
|
<result column="update_user" property="updateUser" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
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"
|
</sql>
|
|
|
<select id="customList" resultType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.result.SerialNumbersConfResult" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam">
|
select
|
<include refid="Base_Column_List"/>
|
from sc_serial_numbers_conf where 1 = 1
|
<if test="paramCondition.years != null and paramCondition.years != ''">
|
and years like CONCAT('%',#{paramCondition.years},'%')
|
</if>
|
<if test="paramCondition.serialNumber != null and paramCondition.serialNumber != ''">
|
and serial_number like CONCAT('%',#{paramCondition.serialNumber},'%')
|
</if>
|
<if test="paramCondition.lengths != null and paramCondition.lengths != ''">
|
and lengths like CONCAT('%',#{paramCondition.lengths},'%')
|
</if>
|
<if test="paramCondition.state != null and paramCondition.state != ''">
|
and state like CONCAT('%',#{paramCondition.state},'%')
|
</if>
|
</select>
|
|
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam">
|
select
|
<include refid="Base_Column_List"/>
|
from sc_serial_numbers_conf where 1 = 1
|
</select>
|
|
<select id="customPageList" resultType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.result.SerialNumbersConfResult" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam">
|
select
|
<include refid="Base_Column_List"/>
|
from sc_serial_numbers_conf where 1 = 1
|
<if test="paramCondition.years != null and paramCondition.years != ''">
|
and years like CONCAT('%',#{paramCondition.years},'%')
|
</if>
|
<if test="paramCondition.serialNumber != null and paramCondition.serialNumber != ''">
|
and serial_number like CONCAT('%',#{paramCondition.serialNumber},'%')
|
</if>
|
<if test="paramCondition.lengths != null and paramCondition.lengths != ''">
|
and lengths like CONCAT('%',#{paramCondition.lengths},'%')
|
</if>
|
<if test="paramCondition.state != null and paramCondition.state != ''">
|
and state like CONCAT('%',#{paramCondition.state},'%')
|
</if>
|
</select>
|
|
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.serialNumbersConf.model.params.SerialNumbersConfParam">
|
select
|
<include refid="Base_Column_List"/>
|
from sc_serial_numbers_conf where 1 = 1
|
</select>
|
|
</mapper>
|