You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.9 KiB
46 lines
1.9 KiB
<?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.dxhy.base.dao.BaseFprzDao">
|
|
|
|
<resultMap id="SmrzResultMap" type="com.dxhy.base.model.BaseFpsmrzRespVO">
|
|
<result column="id" property="id"/>
|
|
<result column="fpdm" property="fpdm"/>
|
|
<result column="fphm" property="fphm"/>
|
|
<result column="kprq" property="kprq"/>
|
|
<result column="je" property="je"/>
|
|
<result column="se" property="se"/>
|
|
<result column="dkse" property="dkse"/>
|
|
<result column="qsrq" property="qsrq"/>
|
|
<result column="qszt" property="qszt"/>
|
|
<result column="qsr" property="qsr"/>
|
|
<result column="jym" property="jym"/>
|
|
<result column="invoiceType" property="invoiceType"/>
|
|
</resultMap>
|
|
<select id="selectBySmrzCxtj" parameterType="java.util.Map"
|
|
resultMap="SmrzResultMap">
|
|
select t.id id,t.invoice_code fpdm,t.invoice_no fphm,t.invoice_date kprq,t.invoice_amount je,t.dk_tax_amount
|
|
dkse, t.tax_amount se,
|
|
t.qs_date qsrq,t.qs_status qszt,t.qs_name qsr,t.check_code jym,t.invoice_type invoiceType from
|
|
t_dx_record_invoice t
|
|
where t.gf_tax_no in
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
|
|
<if test="fpdm != null and fpdm != '' and fpdm != 'null' ">
|
|
and t.invoice_code = #{fpdm}
|
|
</if>
|
|
<if test="fphm != null and fphm != '' and fphm != 'null' ">
|
|
and t.invoice_no = #{fphm}
|
|
</if>
|
|
<if test="kprq != null and kprq != '' and kprq != 'null' ">
|
|
and t.invoice_date = #{kprq}
|
|
</if>
|
|
<if test="je != null and je != '' and je != 'null' ">
|
|
and t.invoice_amount = #{je}
|
|
</if>
|
|
order by t.invoice_code,t.invoice_no,t.create_date desc
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
|