|
|
@@ -34,29 +34,17 @@
|
|
|
<sql id="Condition">
|
|
|
<where>
|
|
|
<if test="macCode != null and macCode != ''">
|
|
|
- AND ma.mac_code = #{macCode}
|
|
|
+ AND ma.mac_code LIKE concat('%',my_ex.likequery(#{macCode}),'%')
|
|
|
</if>
|
|
|
<if test="macName != null and macName != ''">
|
|
|
- AND ma.mac_name = #{macName}
|
|
|
+ AND ma.mac_name LIKE concat('%',my_ex.likequery(#{macName}),'%')
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
- AND ma.remarks = #{remarks}
|
|
|
+ AND ma.remarks = LIKE concat('%',my_ex.likequery(#{remarks}),'%')
|
|
|
</if>
|
|
|
<if test="cpId != null">
|
|
|
AND ma.cp_id = #{cpId}
|
|
|
</if>
|
|
|
- <if test="opCreateTime != null">
|
|
|
- AND ma.op_create_time = #{opCreateTime}
|
|
|
- </if>
|
|
|
- <if test="opCreateUserId != null and opCreateUserId != ''">
|
|
|
- AND ma.op_create_user_id = #{opCreateUserId}
|
|
|
- </if>
|
|
|
- <if test="opUpdateTime != null">
|
|
|
- AND ma.op_update_time = #{opUpdateTime}
|
|
|
- </if>
|
|
|
- <if test="opUpdateUserId != null and opUpdateUserId != ''">
|
|
|
- AND ma.op_update_user_id = #{opUpdateUserId}
|
|
|
- </if>
|
|
|
<if test="opTimestamp != null">
|
|
|
AND ma.op_timestamp = #{opTimestamp}
|
|
|
</if>
|
|
|
@@ -69,14 +57,6 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
|
- <sql id="idsForeach">
|
|
|
- <!-- 根据主键macId批量操作 -->
|
|
|
- WHERE mac_id in
|
|
|
- <foreach collection="ids" index="index" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </sql>
|
|
|
-
|
|
|
<!-- 查询表t_mst_money_account,(条件查询+分页)列表 -->
|
|
|
<select id="selectByCond" resultMap="BaseResultMap">
|
|
|
SELECT ma.mac_Type,ma.mac_code,ma.mac_name,ma.remarks
|
|
|
@@ -86,9 +66,6 @@
|
|
|
FROM dkic_b.t_mst_money_account ma
|
|
|
left join dkic_b.t_mst_dictionary_data dd on ma.mac_type=dd.data_id
|
|
|
<include refid="Condition"/>
|
|
|
- <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
- limit #{end} offset #{start}
|
|
|
- </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询表t_mst_money_account,(条件查询)个数 -->
|
|
|
@@ -103,7 +80,7 @@
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account
|
|
|
+ FROM dkic_b.t_mst_money_account
|
|
|
WHERE mac_id = #{macId}::uuid
|
|
|
</select>
|
|
|
|