智慧保安后台管理-外网
Administrator
2022-06-16 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02
src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml
@@ -21,7 +21,7 @@
    </resultMap>
    <select id="selectSocialPage" resultMap="socialResultMap">
    <select id="selectSocialPage" resultType="org.springblade.modules.social.vo.SocialVO">
        SELECT
        s.*,
        u.real_name as realname
@@ -30,7 +30,7 @@
        LEFT JOIN
        blade_user u
        ON
        s.namb = u.id
        s.cardid = u.cardid
        left join
        sys_jurisdiction sj
        on
@@ -45,8 +45,11 @@
        <if test="social.realname!=null and social.realname!=''">
            and u.real_name like concat(concat('%', #{social.realname}),'%')
        </if>
        <if test="social.cardid!=null and social.cardid!=''">
            and s.cardid like concat(concat('%', #{social.cardid}),'%')
        </if>
        <if test="social.namb!=null and social.namb!=''">
            and s.namb=#{social.namb}
            and s.namb like concat('%',#{social.namb},'%')
        </if>
        <if test="social.deptid!=null and social.deptid!=''">
            and s.deptid=#{social.deptid}
@@ -54,7 +57,7 @@
    </select>
    <update id="upSoil">
        update blade_user set soil=0 where cardid=#{cardid}
        update blade_user set soil=0 where id=#{cardid}
    </update>
</mapper>