|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="phone" column="phone" />
|
|
<result property="phone" column="phone" />
|
|
<result property="description" column="description" />
|
|
<result property="description" column="description" />
|
|
|
|
+ <result property="type" column="type" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="revision" column="revision" />
|
|
<result property="revision" column="revision" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -18,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWhitelistVo">
|
|
<sql id="selectTWhitelistVo">
|
|
- select id, phone, description, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_whitelist
|
|
|
|
|
|
+ select id, phone, description, type, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_whitelist
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWhitelistList" parameterType="TWhitelist" resultMap="TWhitelistResult">
|
|
<select id="selectTWhitelistList" parameterType="TWhitelist" resultMap="TWhitelistResult">
|
|
@@ -27,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
1 = 1
|
|
1 = 1
|
|
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
|
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
|
<if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if>
|
|
<if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if>
|
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
</where>
|
|
</where>
|
|
and del_flag = 0 order by id desc
|
|
and del_flag = 0 order by id desc
|
|
@@ -42,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="description != null">description,</if>
|
|
<if test="description != null">description,</if>
|
|
|
|
+ <if test="type != null">type,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="revision != null">revision,</if>
|
|
<if test="revision != null">revision,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -53,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="description != null">#{description},</if>
|
|
<if test="description != null">#{description},</if>
|
|
|
|
+ <if test="type != null">#{type},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="revision != null">#{revision},</if>
|
|
<if test="revision != null">#{revision},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -68,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
<if test="description != null">description = #{description},</if>
|
|
<if test="description != null">description = #{description},</if>
|
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|