| 123456789101112131415161718192021222324252627282930313233343536 |
- <?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.crm.manager.dao.mapper.TransactionItemMapper">
- <sql id="transactionItemWhere">
- <where>
- <if test="senderAddress != null and senderAddress != ''">
- and ti.`sender_address` LIKE CONCAT('%', #{senderAddress}, '%')
- </if>
- <if test="recipientAddress != null and recipientAddress != ''">
- and ti.`recipient_address` LIKE CONCAT('%', #{recipientAddress}, '%')
- </if>
- <if test="senderLabel != null and senderLabel != ''">
- and ti.`sender_label` LIKE CONCAT('%', #{senderLabel}, '%')
- </if>
- <if test="recipientLabel != null and recipientLabel != ''">
- and ti.`recipient_label` LIKE CONCAT('%', #{recipientLabel}, '%')
- </if>
- <if test="vaultId != null and vaultId != ''">
- and ti.`vault_id` = #{vaultId}
- </if>
- </where>
- </sql>
- <select id="countList" resultType="java.lang.Integer">
- select count(*) from transaction_item ti
- <include refid="transactionItemWhere"/>
- </select>
- <select id="pageList" resultType="com.crm.rely.backend.model.pojo.table.TransactionItemTable">
- select * from transaction_item ti
- <include refid="transactionItemWhere"/>
- </select>
- </mapper>
|