输入条件支持模糊查询
This commit is contained in:
@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||
<if test="feedbackContent != null and feedbackContent != ''"> and feedback_content = #{feedbackContent}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -58,12 +58,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="userName != null and userName != ''"> and a.user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="avatarUrl != null and avatarUrl != ''"> and a.avatar_url = #{avatarUrl}</if>
|
||||
<if test="password != null and password != ''"> and a.password = #{password}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and a.phone_number = #{phoneNumber}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||
<if test="roleId != null "> and a.role_id = #{roleId}</if>
|
||||
<if test="isStore != null "> and a.is_store = #{isStore}</if>
|
||||
<if test="authed != null "> and a.authed = #{authed}</if>
|
||||
<if test="idNo != null and idNo != ''"> and a.id_no = #{idNo}</if>
|
||||
<if test="realName != null and realName != '' "> and a.real_name = #{realName}</if>
|
||||
<if test="idNo != null and idNo != ''"> and a.id_no like concat('%', #{idNo}, '%')</if>
|
||||
<if test="realName != null and realName != '' "> and a.real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
|
||||
<if test="wechatOpenid != null and wechatOpenid != ''"> and a.wechat_openid = #{wechatOpenid}</if>
|
||||
<if test="alipayUserid != null and alipayUserid != ''"> and a.alipay_userid = #{alipayUserid}</if>
|
||||
|
||||
@ -33,12 +33,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
left join zc_base_user c on a.referral_user_id = c.id
|
||||
<where>
|
||||
<if test="userId != null "> and a.user_id = #{userId}</if>
|
||||
<if test="userPhoneNumber != null and userPhoneNumber != ''"> and a.user_phone_number = #{userPhoneNumber}</if>
|
||||
<if test="userPhoneNumber != null and userPhoneNumber != ''"> and a.user_phone_number like concat('%', #{userPhoneNumber}, '%')</if>
|
||||
<if test="referralUserId != null "> and a.referral_user_id = #{referralUserId}</if>
|
||||
<if test="referralUserPhoneNumber != null and referralUserPhoneNumber != ''"> and a.referral_user_phone_number = #{referralUserPhoneNumber}</if>
|
||||
<if test="referralUserPhoneNumber != null and referralUserPhoneNumber != ''"> and a.referral_user_phone_number like concat('%', #{referralUserPhoneNumber}, '%')</if>
|
||||
<if test="awardDeadline != null "> and a.award_deadline = #{awardDeadline}</if>
|
||||
<if test="awardRate != null "> and a.award_rate = #{awardRate}</if>
|
||||
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no = #{referralOrderNo}</if>
|
||||
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no like concat('%', #{referralOrderNo}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="changeTime != null "> and a.change_time = #{changeTime}</if>
|
||||
<if test="changeAmount != null "> and a.change_amount = #{changeAmount}</if>
|
||||
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no = #{referralOrderNo}</if>
|
||||
<if test="userName != null and userName != ''"> and s.name = #{userName}</if>
|
||||
<if test="userName != null and userName != ''"> and s.name like concat('%', #{userName}, '%')</if>
|
||||
</where>
|
||||
order by a.update_time desc
|
||||
</select>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.baseUser.mapper.ZcBaseWalletMapper">
|
||||
|
||||
|
||||
<resultMap type="ZcBaseWallet" id="ZcBaseWalletResult">
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectZcBaseWalletVo"/>
|
||||
<where>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||
<if test="balance != null "> and balance = #{balance}</if>
|
||||
<if test="availableAmount != null "> and available_amount = #{availableAmount}</if>
|
||||
<if test="freezeAmount != null "> and freeze_amount = #{freezeAmount}</if>
|
||||
|
||||
Reference in New Issue
Block a user