From 62f2b98b64f6726ca7cb90cbfa996deaac4ffba9 Mon Sep 17 00:00:00 2001
From: xiaogang <905166056@qq.com>
Date: 星期四, 02 十一月 2023 14:09:04 +0800
Subject: [PATCH] 1、优化查询,便于模糊查询条件2、界面查询条件调整
---
java110-db/src/main/resources/mapper/fee/PayFeeQrcodeV1ServiceDaoImplMapper.xml | 24 +++++++-----------------
1 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/fee/PayFeeQrcodeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/PayFeeQrcodeV1ServiceDaoImplMapper.xml
index f29ba5f..1ce3e6d 100644
--- a/java110-db/src/main/resources/mapper/fee/PayFeeQrcodeV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/PayFeeQrcodeV1ServiceDaoImplMapper.xml
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="payFeeQrcodeV1ServiceDaoImpl">
-
<!-- 淇濆瓨鏀粯浜岀淮鐮佷俊鎭� add by wuxw 2018-07-03 -->
<insert id="savePayFeeQrcodeInfo" parameterType="Map">
- insert into pay_fee_qrcode(
- create_staff_name,query_way,create_staff_id,pre_fee,custom_fee,pfq_id,qrcode_name,community_id,sms_validate,content
- ) values (
- #{createStaffName},#{queryWay},#{createStaffId},#{preFee},#{customFee},#{pfqId},#{qrcodeName},#{communityId},#{smsValidate},#{content}
- )
+ insert into pay_fee_qrcode(create_staff_name, query_way, create_staff_id, pre_fee, custom_fee, pfq_id,
+ qrcode_name, community_id, sms_validate, content)
+ values (#{createStaffName}, #{queryWay}, #{createStaffId}, #{preFee}, #{customFee}, #{pfqId}, #{qrcodeName},
+ #{communityId}, #{smsValidate}, #{content})
</insert>
-
<!-- 鏌ヨ鏀粯浜岀淮鐮佷俊鎭� add by wuxw 2018-07-03 -->
<select id="getPayFeeQrcodeInfo" parameterType="Map" resultType="Map">
@@ -46,7 +42,7 @@
and t.pfq_id= #{pfqId}
</if>
<if test="qrcodeName !=null and qrcodeName != ''">
- and t.qrcode_name= #{qrcodeName}
+ and t.qrcode_name like concat('%',#{qrcodeName},'%')
</if>
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
@@ -61,9 +57,7 @@
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
-
</select>
-
<!-- 淇敼鏀粯浜岀淮鐮佷俊鎭� add by wuxw 2018-07-03 -->
<update id="updatePayFeeQrcodeInfo" parameterType="Map">
@@ -102,7 +96,6 @@
<if test="pfqId !=null and pfqId != ''">
and t.pfq_id= #{pfqId}
</if>
-
</update>
<!-- 鏌ヨ鏀粯浜岀淮鐮佹暟閲� add by wuxw 2018-07-03 -->
@@ -132,7 +125,7 @@
and t.pfq_id= #{pfqId}
</if>
<if test="qrcodeName !=null and qrcodeName != ''">
- and t.qrcode_name= #{qrcodeName}
+ and t.qrcode_name like concat('%',#{qrcodeName},'%')
</if>
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
@@ -143,8 +136,5 @@
<if test="content !=null and content != ''">
and t.content= #{content}
</if>
-
-
</select>
-
</mapper>
--
Gitblit v1.8.0