|
@@ -6,7 +6,6 @@
|
|
|
<result column="del_flag" property="delFlag" jdbcType="CHAR" />
|
|
<result column="del_flag" property="delFlag" jdbcType="CHAR" />
|
|
|
<result column="test_name" property="testName" jdbcType="VARCHAR" />
|
|
<result column="test_name" property="testName" jdbcType="VARCHAR" />
|
|
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
|
- <result column="multi_select" property="multiSelect" jdbcType="VARCHAR" />
|
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
|
<trim suffixOverrides="," >
|
|
<trim suffixOverrides="," >
|
|
@@ -18,8 +17,6 @@
|
|
|
|
|
|
|
|
remark,
|
|
remark,
|
|
|
|
|
|
|
|
- multi_select,
|
|
|
|
|
-
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
@@ -46,9 +43,6 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="remark!= null" >
|
|
<if test="remark!= null" >
|
|
|
remark,
|
|
remark,
|
|
|
- </if>
|
|
|
|
|
- <if test="multiSelect!= null" >
|
|
|
|
|
- multi_select,
|
|
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
@@ -63,9 +57,6 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="remark != null" >
|
|
<if test="remark != null" >
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
|
|
- <if test="multiSelect != null" >
|
|
|
|
|
- #{multiSelect,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -83,9 +74,6 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="remark != null" >
|
|
<if test="remark != null" >
|
|
|
remark= #{remark,jdbcType=VARCHAR},
|
|
remark= #{remark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
|
|
- <if test="multiSelect != null" >
|
|
|
|
|
- multi_select= #{multiSelect,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -105,15 +93,11 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="record.remark != null and !"".equals(record.remark)">
|
|
<if test="record.remark != null and !"".equals(record.remark)">
|
|
|
and remark = #{record.remark}
|
|
and remark = #{record.remark}
|
|
|
- </if>
|
|
|
|
|
- <if test="record.multiSelect != null and !"".equals(record.multiSelect)">
|
|
|
|
|
- and multi_select = #{record.multiSelect}
|
|
|
|
|
</if>
|
|
</if>
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
OR test_name LIKE concat('%',#{record.searchKey},'%')
|
|
OR test_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR multi_select LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
@@ -184,15 +168,11 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="remark != null and !"".equals(remark)">
|
|
<if test="remark != null and !"".equals(remark)">
|
|
|
and remark = #{remark}
|
|
and remark = #{remark}
|
|
|
- </if>
|
|
|
|
|
- <if test="multiSelect != null and !"".equals(multiSelect)">
|
|
|
|
|
- and multi_select = #{multiSelect}
|
|
|
|
|
</if>
|
|
</if>
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
OR test_name LIKE concat('%',#{searchKey},'%')
|
|
OR test_name LIKE concat('%',#{searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{searchKey},'%')
|
|
OR remark LIKE concat('%',#{searchKey},'%')
|
|
|
- OR multi_select LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
<if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
@@ -262,9 +242,6 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="remark != null and !"".equals(remark)">
|
|
<if test="remark != null and !"".equals(remark)">
|
|
|
and remark = #{remark}
|
|
and remark = #{remark}
|
|
|
- </if>
|
|
|
|
|
- <if test="multiSelect != null and !"".equals(multiSelect)">
|
|
|
|
|
- and multi_select = #{multiSelect}
|
|
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
</where>
|
|
@@ -280,7 +257,7 @@
|
|
|
select <include refid="Base_Column_List"/> from test_aaa
|
|
select <include refid="Base_Column_List"/> from test_aaa
|
|
|
<where>
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
and del_flag = 'N'
|
|
|
- </where>
|
|
|
|
|
|
|
+ </where>
|
|
|
order by id desc
|
|
order by id desc
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|