yfh 1 week ago
parent
commit
5118b5d372
1 changed files with 29 additions and 0 deletions
  1. 29 0
      fs-service/src/main/resources/mapper/his/FsUserMapper.xml

+ 29 - 0
fs-service/src/main/resources/mapper/his/FsUserMapper.xml

@@ -75,6 +75,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="userCode != null  and userCode != ''"> and user_code = #{userCode}</if>
             <if test="lastIp != null  and lastIp != ''"> and last_ip = #{lastIp}</if>
             <if test="balance != null "> and balance = #{balance}</if>
+            <if test="level != null ">and level = #{level}</if>
+            <if test="spreadUserId != null ">and spread_user_id = #{spreadUserId}</if>
+            <if test="spreadTime != null ">and spread_time = #{spreadTime}</if>
+            <if test="userType != null  and userType != ''">and user_type = #{userType}</if>
+            <if test="isPromoter != null ">and is_promoter = #{isPromoter}</if>
+            <if test="payCount != null ">and pay_count = #{payCount}</if>
+            <if test="spreadCount != null ">and spread_count = #{spreadCount}</if>
+            <if test="addres != null  and addres != ''">and addres = #{addres}</if>
+            <if test="companyId != null ">and company_id = #{companyId}</if>
+            <if test="companyUserId != null ">and company_user_id = #{companyUserId}</if>
+            <if test="registerDate != null ">and DATE_FORMAT(register_date,'%Y-%m-%d') =
+                DATE_FORMAT(#{registerDate},'%Y-%m-%d')
+            </if>
+            <if test="registerCode != null   and registerCode != '' ">and register_code = #{registerCode}</if>
+            <if test="source != null  and source != '' ">and source = #{source}</if>
+            <if test="isShow != null  ">and is_show = #{isShow}</if>
+            <!--<if test="qwRepeat != null  ">and qw_repeat = #{qwRepeat}</if>
+            <if test="userRepeat != null  ">and user_repeat = #{userRepeat}</if>-->
+            <if test="payOrder != null  ">and pay_order = #{payOrder}</if>
         </where>
     </select>
 
@@ -559,6 +578,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyId != null">company_id,</if>
             <if test="companyUserId != null">company_user_id,</if>
             <if test="level != null">`level`,</if>
+            <if test="spreadUserId != null">spread_user_id,</if>
+            <if test="spreadTime != null">spread_time,</if>
+            <if test="isPromoter != null">is_promoter,</if>
+            <if test="payCount != null">pay_count,</if>
+            <if test="spreadCount != null">spread_count,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="nickName != null">#{nickName},</if>
@@ -603,6 +627,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyId != null">#{companyId},</if>
             <if test="companyUserId != null">#{companyUserId},</if>
             <if test="level != null">#{level},</if>
+            <if test="spreadUserId != null">#{spreadUserId},</if>
+            <if test="spreadTime != null">#{spreadTime},</if>
+            <if test="isPromoter != null">#{isPromoter},</if>
+            <if test="payCount != null">#{payCount},</if>
+            <if test="spreadCount != null">#{spreadCount},</if>
          </trim>
     </insert>