智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/member/mapper/MemberMapper.xml
@@ -9,7 +9,12 @@
        <result column="post" property="post"/>
        <result column="cardid" property="cardid"/>
        <result column="cell" property="cell"/>
        <result column="shareholdingRatio" property="shareholdingratio"/>
        <result column="shareholdingratio" property="shareholdingratio"/>
        <result column="creditCode" property="creditcode"/>
        <result column="rtime" property="rtime"/>
        <result column="dept_id" property="deptId"/>
        <result column="education" property="education"/>
        <result column="paper" property="paper"/>
    </resultMap>
@@ -17,4 +22,25 @@
        select * from sys_member where is_deleted = 0
    </select>
    <select id="selectMemberInfo" resultMap="memberResultMap">
        select * from sys_member
        where
        1=1
        <if test="member.creditcode!=null and member.creditcode!=''" >
            and creditCode=#{member.creditcode}
        </if>
        <if test="member.deptId!=null and member.deptId!=''" >
            and dept_id=#{member.deptId}
        </if>
        <if test="member.education!=null" >
            and education=#{member.education}
        </if>
        <if test="member.name!=null and member.name!=''" >
            and name like concat ('%',#{member.name},'%')
        </if>
        <if test="member.post!=null and member.post!=''" >
            and post like concat ('%',#{member.post},'%')
        </if>
    </select>
</mapper>