|
@@ -0,0 +1,144 @@
|
|
|
+<?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.bz.smart_city.dao.pay.PayInvoiceParamMapper">
|
|
|
+ <update id="update">
|
|
|
+ update pay_invoice_param
|
|
|
+ <set>
|
|
|
+ <if test="payInvoiceParam.zerotax != null"> zerotax=#{payInvoiceParam.zerotax,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.goodstaxno != null">goodstaxno=#{payInvoiceParam.goodstaxno,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.taxrate != null">taxrate=#{payInvoiceParam.taxrate,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.pricetax != null">pricetax=#{payInvoiceParam.pricetax,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.nature != null">nature=#{payInvoiceParam.nature,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.prepolicy != null">prepolicy=#{payInvoiceParam.prepolicy,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.spec != null">spec=#{payInvoiceParam.spec,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.unit != null">unit=#{payInvoiceParam.unit,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.zsbm != null">zsbm=#{payInvoiceParam.zsbm,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.kec != null">kec=#{payInvoiceParam.kec,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.othermanger != null">othermanger=#{payInvoiceParam.othermanger,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="payInvoiceParam.updateBy != null">update_by=#{payInvoiceParam.updateBy,jdbcType=BIGINT},</if>
|
|
|
+ <if test="payInvoiceParam.updateDate != null">update_date=#{payInvoiceParam.updateDate,jdbcType=TIMESTAMP},</if>
|
|
|
+ <if test="payInvoiceParam.remarks != null">remarks=#{payInvoiceParam.remarks,jdbcType=VARCHAR},</if>
|
|
|
+ </set>
|
|
|
+ where id=#{payInvoiceParam.id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="findList" resultType="com.bz.smart_city.entity.pay.PayInvoiceParam">
|
|
|
+ select
|
|
|
+ param.id,
|
|
|
+ param.feetype,
|
|
|
+ param.zerotax,
|
|
|
+ param.goodstaxno,
|
|
|
+ param.taxrate,
|
|
|
+ param.pricetax,
|
|
|
+ param.nature,
|
|
|
+ param.prepolicy,
|
|
|
+ param.spec,
|
|
|
+ param.unit,
|
|
|
+ param.zsbm,
|
|
|
+ param.kec,
|
|
|
+ param.othermanger,
|
|
|
+ dict.label as feetypename
|
|
|
+ from pay_invoice_param param
|
|
|
+ inner join pay_sys_dict dict on dict.type='收费类型' and dict.site_id=#{siteId} and dict.customer_id=#{customerId} and dict.value=param.feetype
|
|
|
+ where param.del_flag='0' and param.site_id=#{siteId} and param.customer_id=#{customerId}
|
|
|
+ <if test="queryparam != null">
|
|
|
+ and (dict.label = #{queryparam} or param.goodstaxno = #{queryparam})
|
|
|
+ </if>
|
|
|
+
|
|
|
+ order by param.feetype
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
|
|
|
+ insert into pay_invoice_param(
|
|
|
+ feetype,
|
|
|
+ zerotax,
|
|
|
+ goodstaxno,
|
|
|
+ taxrate,
|
|
|
+ pricetax,
|
|
|
+ nature,
|
|
|
+ prepolicy,
|
|
|
+ spec,
|
|
|
+ unit,
|
|
|
+ zsbm,
|
|
|
+ kec,
|
|
|
+ othermanger,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ site_id,
|
|
|
+ customer_id)
|
|
|
+ values
|
|
|
+ (
|
|
|
+ #{payInvoiceParam.feetype},
|
|
|
+ #{payInvoiceParam.zerotax},
|
|
|
+ #{payInvoiceParam.goodstaxno},
|
|
|
+ #{payInvoiceParam.taxrate},
|
|
|
+ #{payInvoiceParam.pricetax},
|
|
|
+ #{payInvoiceParam.nature},
|
|
|
+ #{payInvoiceParam.prepolicy},
|
|
|
+ #{payInvoiceParam.spec},
|
|
|
+ #{payInvoiceParam.unit},
|
|
|
+ #{payInvoiceParam.zsbm},
|
|
|
+ #{payInvoiceParam.kec},
|
|
|
+ #{payInvoiceParam.othermanger},
|
|
|
+ #{payInvoiceParam.createBy},
|
|
|
+ #{payInvoiceParam.createDate,jdbcType=TIMESTAMP},
|
|
|
+ #{payInvoiceParam.updateBy},
|
|
|
+ #{payInvoiceParam.updateDate,jdbcType=TIMESTAMP},
|
|
|
+ #{payInvoiceParam.remarks},
|
|
|
+ #{payInvoiceParam.delFlag},
|
|
|
+ #{payInvoiceParam.siteId},
|
|
|
+ #{payInvoiceParam.customerId}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
|
|
+ insert into pay_invoice_param(
|
|
|
+ feetype,
|
|
|
+ zerotax,
|
|
|
+ goodstaxno,
|
|
|
+ taxrate,
|
|
|
+ pricetax,
|
|
|
+ nature,
|
|
|
+ prepolicy,
|
|
|
+ spec,
|
|
|
+ unit,
|
|
|
+ zsbm,
|
|
|
+ kec,
|
|
|
+ othermanger,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ site_id,
|
|
|
+ customer_id)
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="payInvoiceParam" separator=",">
|
|
|
+ (
|
|
|
+ #{payInvoiceParam.feetype},
|
|
|
+ #{payInvoiceParam.zerotax},
|
|
|
+ #{payInvoiceParam.goodstaxno},
|
|
|
+ #{payInvoiceParam.taxrate},
|
|
|
+ #{payInvoiceParam.pricetax},
|
|
|
+ #{payInvoiceParam.nature},
|
|
|
+ #{payInvoiceParam.prepolicy},
|
|
|
+ #{payInvoiceParam.spec},
|
|
|
+ #{payInvoiceParam.unit},
|
|
|
+ #{payInvoiceParam.zsbm},
|
|
|
+ #{payInvoiceParam.kec},
|
|
|
+ #{payInvoiceParam.othermanger},
|
|
|
+ #{payInvoiceParam.createBy},
|
|
|
+ #{payInvoiceParam.createDate,jdbcType=TIMESTAMP},
|
|
|
+ #{payInvoiceParam.updateBy},
|
|
|
+ #{payInvoiceParam.updateDate,jdbcType=TIMESTAMP},
|
|
|
+ #{payInvoiceParam.remarks},
|
|
|
+ #{payInvoiceParam.delFlag},
|
|
|
+ #{payInvoiceParam.siteId},
|
|
|
+ #{payInvoiceParam.customerId})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+</mapper>
|