| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.jzg.organization.mapper.InvAccountCardMapper">
- <resultMap id="BaseResultMap" type="com.jzg.commons.entity.account.po.InvAccountCard">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="cardName" column="card_name" jdbcType="VARCHAR"/>
- <result property="bankCardNum" column="bank_card_num" jdbcType="VARCHAR"/>
- <result property="accountId" column="account_id" jdbcType="BIGINT"/>
- <result property="accountQuality" column="account_quality" jdbcType="INTEGER"/>
- <result property="bankName" column="bank_name" jdbcType="VARCHAR"/>
- <result property="bank" column="bank" jdbcType="VARCHAR"/>
- <result property="bankNum" column="bank_num" jdbcType="VARCHAR"/>
- <result property="startCertExpirationDate" column="start_cert_expiration_date" jdbcType="TIMESTAMP"/>
- <result property="endCertExpirationDate" column="end_cert_expiration_date" jdbcType="TIMESTAMP"/>
- <result property="balance" column="balance" jdbcType="VARCHAR"/>
- <result property="spend" column="spend" jdbcType="VARCHAR"/>
- <result property="dayStrokeNum" column="day_stroke_num" jdbcType="VARCHAR"/>
- <result property="dayStrokeNumExcess" column="day_stroke_num_excess" jdbcType="VARCHAR"/>
- <result property="priDayLines" column="pri_day_lines" jdbcType="VARCHAR"/>
- <result property="priSingleLines" column="pri_single_lines" jdbcType="VARCHAR"/>
- <result property="priDayLinesExcess" column="pri_day_lines_excess" jdbcType="VARCHAR"/>
- <result property="priYearLines" column="pri_year_lines" jdbcType="VARCHAR"/>
- <result property="priYearExcess" column="pri_year_excess" jdbcType="VARCHAR"/>
- <result property="pubSingleLines" column="pub_single_lines" jdbcType="VARCHAR"/>
- <result property="pubYearLines" column="pub_year_lines" jdbcType="VARCHAR"/>
- <result property="pubDayLines" column="pub_day_lines" jdbcType="VARCHAR"/>
- <result property="pubYearExcess" column="pub_year_excess" jdbcType="VARCHAR"/>
- <result property="pubDayLinesExcess" column="pub_day_lines_excess" jdbcType="VARCHAR"/>
- <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
- <result property="isDelete" column="is_delete" jdbcType="TINYINT"/>
- </resultMap>
- <sql id="Base_Column_List">
- iac.id,iac.card_name,iac.bank_card_num,
- iac.account_id,iac.account_quality,iac.bank_name,
- iac.bank,iac.bank_num,iac.start_cert_expiration_date,
- iac.end_cert_expiration_date,iac.balance,spend,
- iac.day_stroke_num,iac.day_stroke_num_excess,iac.pri_day_lines,
- iac.pri_single_lines,iac.pri_day_lines_excess,iac.pri_year_lines,
- iac.pri_year_excess,iac.pub_single_lines,iac.pub_year_lines,
- iac.pub_day_lines,iac.pub_year_excess,iac.pub_day_lines_excess,
- iac.create_by,iac.create_time,iac.update_by,
- iac.update_time,iac.is_delete,ia.account_name
- </sql>
- <select id="queryPage" resultType="com.jzg.commons.entity.account.vo.AccountCardVo">
- select <include refid="Base_Column_List"/>
- FROM inv_account_card iac
- LEFT JOIN inv_account ia on ia.id = iac.account_id
- <where>
- iac.is_delete = 0
- <if test="param.accountName != null and param.accountName != ''">
- and ia.account_name like CONCAT('%',#{param.accountName}, '%')
- </if>
- <if test="param.cardName != null and param.cardName != ''">
- and iac.card_name = #{param.cardName}
- </if>
- <if test="param.accountQuality != null ">
- and iac.account_quality = #{param.accountQuality}
- </if>
- <if test="param.bankCardNum != null and param.bankCardNum != ''">
- and iac.bank_card_num = #{param.bankCardNum}
- </if>
- </where>
- ORDER BY iac.create_time DESC
- </select>
- <select id="queryById" resultType="com.jzg.commons.entity.account.vo.AccountCardVo">
- select <include refid="Base_Column_List"/>
- FROM inv_account_card iac
- LEFT JOIN inv_account ia on ia.id = iac.account_id
- <where>
- iac.is_delete = 0
- <if test="id != null and id != ''">
- and iac.id = #{id}
- </if>
- </where>
- </select>
- <!-- 查询业务员提现银行卡信息 lipf 2026年6月8日15:16:59 -->
- <select id="queryByAccountId" resultType="com.jzg.commons.entity.account.po.InvAccountCard">
- select * from inv_account_card iac where iac.account_id = #{accountId} and iac.system_code = #{systemCode}
- </select>
- </mapper>
|