智慧农业后台管理
guoshilong
2022-11-08 72b971c98c46531064d74b68fc8fe8864ed0b544
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -36,10 +36,10 @@
            and tenant_id = #{user.tenantId}
        </if>
        <if test="user.account!=null and user.account != ''">
            and account = #{user.account}
            and account LIKE CONCAT('%',#{user.account},'%')
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and real_name = #{user.realName}
            and real_name LIKE CONCAT('%',#{user.realName},'%')
        </if>
        <if test="user.userType!=null and user.userType != ''">
            and user_type = #{user.userType}
@@ -77,7 +77,7 @@
    <select id="getUserList" resultType="org.springblade.modules.system.entity.User">
        SELECT * FROM  blade_user where 1=1
        <if test="user.farmId!=null and user.farmId!=''">
           and find_in_set(farm_id,#{user.farmId})
           and find_in_set(#{user.farmId},farm_id)
        </if>
    </select>