| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?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.ydtech.modules.inv.dao.InvAccountOperateMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.inv.model.InvAccountOperate">
- <id property="accountOperateId" column="account_operate_id" jdbcType="VARCHAR"/>
- <result property="applicant" column="applicant" jdbcType="VARCHAR"/>
- <result property="applySector" column="apply_sector" jdbcType="VARCHAR"/>
- <result property="applyTime" column="apply_time" jdbcType="TIMESTAMP"/>
- <result property="collectionMessage" column="collection_message" jdbcType="VARCHAR"/>
- <result property="fundFlow" column="fund_flow" jdbcType="VARCHAR"/>
- <result property="fundUse" column="fund_use" jdbcType="VARCHAR"/>
- <result property="applyAmount" column="apply_amount" jdbcType="VARCHAR"/>
- <result property="payMethod" column="pay_method" jdbcType="VARCHAR"/>
- <result property="remark" column="remark" jdbcType="VARCHAR"/>
- <result property="company" column="company" jdbcType="VARCHAR"/>
- <result property="bigApplyAmount" column="big_apply_amount" jdbcType="VARCHAR"/>
- <result property="revenueOutlay" column="revenue_outlay" jdbcType="CHAR"/>
- <result property="invoiceId" column="invoice_id" jdbcType="VARCHAR"/>
- <result property="outProfit" column="out_profit" javaType="com.alibaba.fastjson.JSONObject"
- typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" jdbcType="VARCHAR"/>
- <result property="entProfit" column="ent_profit" javaType="com.alibaba.fastjson.JSONObject"
- typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" jdbcType="VARCHAR"/>
- <result property="fundFen" column="fund_fen" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="enterCardNum" column="enter_card_num" jdbcType="VARCHAR"/>
- <result property="outCardNum" column="out_card_num" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- account_operate_id,applicant,apply_sector,
- apply_time,collection_message,fund_flow,
- fund_use,apply_amount,pay_method,
- remark,company,big_apply_amount,
- revenue_outlay,invoice_id,out_profit,ent_profit,fund_fen,create_time,enter_card_num,out_card_num
- </sql>
- <select id="selectInsAccountOperate" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from inv_account_operate
- where del_flag = '0'
- <if test="insAccountOperate.accountOperateId != null and insAccountOperate.accountOperateId != ''">
- and account_operate_id like concat('%',#{insAccountOperate.accountOperateId},'%')
- </if>
- <if test="insAccountOperate.applicant != null and insAccountOperate.applicant != ''">
- and applicant like concat('%',#{insAccountOperate.applicant},'%')
- </if>
- <if test="insAccountOperate.company != null and insAccountOperate.company != ''">
- and company like concat('%',#{insAccountOperate.company},'%')
- </if>
- <if test="insAccountOperate.fundUse != null and insAccountOperate.fundUse != ''">
- and fund_use like concat('%',#{insAccountOperate.fundUse},'%')
- </if>
- <if test="insAccountOperate.fundFlow != null and insAccountOperate.fundFlow != ''">
- and fund_flow like concat('%',#{insAccountOperate.fundFlow},'%')
- </if>
- <if test="insAccountOperate.revenueOutlay != null and insAccountOperate.revenueOutlay != ''">
- and revenue_outlay like concat('%',#{insAccountOperate.revenueOutlay},'%')
- </if>
- <if test="insAccountOperate.invoiceId != null and insAccountOperate.invoiceId != ''">
- and invoice_id like concat('%',#{insAccountOperate.invoiceId},'%')
- </if>
- </select>
- <select id="selectInsAccountOperateList" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from inv_account_operate
- where del_flag = '0'
- <if test="insAccountOperate.accountOperateId != null and insAccountOperate.accountOperateId != ''">
- and account_operate_id like concat('%',#{insAccountOperate.accountOperateId},'%')
- </if>
- <if test="insAccountOperate.applicant != null and insAccountOperate.applicant != ''">
- and applicant like concat('%',#{insAccountOperate.applicant},'%')
- </if>
- <if test="insAccountOperate.company != null and insAccountOperate.company != ''">
- and company like concat('%',#{insAccountOperate.company},'%')
- </if>
- <if test="insAccountOperate.fundUse != null and insAccountOperate.fundUse != ''">
- and fund_use like concat('%',#{insAccountOperate.fundUse},'%')
- </if>
- <if test="insAccountOperate.fundFlow != null and insAccountOperate.fundFlow != ''">
- and fund_flow like concat('%',#{insAccountOperate.fundFlow},'%')
- </if>
- <if test="insAccountOperate.revenueOutlay != null and insAccountOperate.revenueOutlay != ''">
- and revenue_outlay like concat('%',#{insAccountOperate.revenueOutlay},'%')
- </if>
- <if test="insAccountOperate.invoiceId != null and insAccountOperate.invoiceId != ''">
- and invoice_id like concat('%',#{insAccountOperate.invoiceId},'%')
- </if>
- <if test="insAccountOperate.createTime != null and insAccountOperate.createTime != ''">
- and create_time like concat('%',#{insAccountOperate.createTime},'%')
- </if>
- </select>
- <select id="selectOperateList" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from inv_account_operate
- where del_flag = '0'
- and (
- enter_card_num in
- <foreach item="item" index="index" collection="list"
- open="(" separator="," close=")">
- #{item}
- </foreach>
- or out_card_num in
- <foreach item="item" index="index" collection="list"
- open="(" separator="," close=")">
- #{item}
- </foreach>
- )
- </select>
- </mapper>
|