智慧保安后台管理-外网-验收版本
tangzy
2021-09-16 3fcfb1de0f8ce7f35456d177e0e751453bdaaad8
1.社保
2 files modified
24 ■■■■ changed files
src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml 23 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/social/vo/SocialVO.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="org.springblade.modules.social.mapper.SocialMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="socialResultMap" type="org.springblade.modules.social.entity.Social">
    <resultMap id="socialResultMap" type="org.springblade.modules.social.vo.SocialVO">
        <id column="id" property="id"/>
        <result column="namb" property="namb"/>
        <result column="sex" property="sex"/>
@@ -17,15 +17,32 @@
        <result column="amount" property="amount"/>
        <result column="insuredtime" property="insuredtime"/>
        <result column="deptid" property="deptid"/>
        <result column="jurisdiction" property="jurisdiction"/>
    </resultMap>
    <select id="selectSocialPage" resultMap="socialResultMap">
        select * from sys_social
        SELECT
        s.*,
        u.real_name as realname
        FROM
        sys_socil s
        LEFT JOIN blade_user u ON s.namb = u.id where 1=1
        <if test="social.namb!=null and social.namb!=''">
            and s.namb=#{social.namb}
        </if>
        <if test="social.deptid!=null and social.deptid!=''">
            and s.deptid=#{social.deptid}
        </if>
        <if test="social.jurisdiction!=null and social.jurisdiction!=''">
            and s.jurisdiction=#{social.jurisdiction}
        </if>
    </select>
    <update id="upSoil">
        update blade_user set soil=0 where cardid=#{cardid}
        update blade_user
        set soil=0
        where cardid = #{cardid}
    </update>
</mapper>
src/main/java/org/springblade/modules/social/vo/SocialVO.java
@@ -32,5 +32,6 @@
@ApiModel(value = "SocialVO对象", description = "SocialVO对象")
public class SocialVO extends Social {
    private static final long serialVersionUID = 1L;
    private String realname;
}