智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/shareholder/mapper/ShareholderMapper.xml
@@ -6,21 +6,30 @@
    <resultMap id="shareholderResultMap" type="org.springblade.modules.shareholder.entity.Shareholder">
        <id column="id" property="id"/>
        <result column="shareholder" property="shareholder"/>
        <result column="
shareholdingRatio" property="
shareholdingratio"/>
        <result column="shareholdingratio" property="shareholdingratio"/>
        <result column="beneficial" property="beneficial"/>
        <result column="capital" property="capital"/>
        <result column="capitalTime" property="capitaltime"/>
        <result column="cardid" property="cardid"/>
        <result column="cell" property="cell"/>
        <result column="creditCode" property="creditcode"/>
        <result column="dept_id" property="deptId"/>
    </resultMap>
    <select id="selectShareholderPage" resultMap="shareholderResultMap">
        select * from sys_shareholder where is_deleted = 0
        select * from sys_shareholder
    </select>
    <select id="selectShareholderInfo" resultMap="shareholderResultMap">
        select * from sys_shareholder where dept_id = #{shareholder.deptId}
        <if test="shareholder.cardid!=null and shareholder.cardid!=''">
            and cardid like concat('%', #{shareholder.cardid},'%')
        </if>
        <if test="shareholder.shareholder!=null and shareholder.shareholder!=''">
            and shareholder like concat('%',#{shareholder.shareholder},'%')
        </if>
    </select>
</mapper>