简税合并版
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
jianshui-all/jianshui-income/src/main/resources/mapper/IncomeInvoiceAuthLogMapper.xml

91 lines
4.2 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.jianshui.income.mapper.IncomeInvoiceAuthLogMapper">
<resultMap type="IncomeInvoiceAuthLog" id="IncomeInvoiceAuthLogResult">
<result property="pch" column="pch" />
<result property="gmfsbh" column="gmfsbh" />
<result property="fplxdm" column="fplxdm" />
<result property="cjksrq" column="cjksrq" />
<result property="cjjsrq" column="cjjsrq" />
<result property="zhs" column="zhs" />
<result property="dqskssq" column="dqskssq" />
<result property="cjlx" column="cjlx" />
<result property="createtime" column="createtime" />
</resultMap>
<sql id="selectIncomeInvoiceAuthLogVo">
select pch, gmfsbh, fplxdm, cjksrq, cjjsrq, zhs, dqskssq, cjlx, createtime from income_invoice_auth_log
</sql>
<select id="selectIncomeInvoiceAuthLogList" parameterType="IncomeInvoiceAuthLog" resultMap="IncomeInvoiceAuthLogResult">
<include refid="selectIncomeInvoiceAuthLogVo"/>
<where>
<if test="cjksrq != null and cjksrq != ''"> and cjksrq = #{cjksrq}</if>
<if test="cjjsrq != null and cjjsrq != ''"> and cjjsrq = #{cjjsrq}</if>
<if test="zhs != null "> and zhs = #{zhs}</if>
<if test="dqskssq != null and dqskssq != ''"> and dqskssq = #{dqskssq}</if>
<if test="cjlx != null and cjlx != ''"> and cjlx = #{cjlx}</if>
<if test="createtime != null "> and createtime = #{createtime}</if>
</where>
</select>
<select id="selectIncomeInvoiceAuthLogByPch" parameterType="String" resultMap="IncomeInvoiceAuthLogResult">
<include refid="selectIncomeInvoiceAuthLogVo"/>
where pch = #{pch}
</select>
<insert id="insertIncomeInvoiceAuthLog" parameterType="IncomeInvoiceAuthLog">
insert into income_invoice_auth_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="pch != null">pch,</if>
<if test="gmfsbh != null">gmfsbh,</if>
<if test="fplxdm != null">fplxdm,</if>
<if test="cjksrq != null">cjksrq,</if>
<if test="cjjsrq != null">cjjsrq,</if>
<if test="zhs != null">zhs,</if>
<if test="dqskssq != null">dqskssq,</if>
<if test="cjlx != null">cjlx,</if>
<if test="createtime != null">createtime,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="pch != null">#{pch},</if>
<if test="gmfsbh != null">#{gmfsbh},</if>
<if test="fplxdm != null">#{fplxdm},</if>
<if test="cjksrq != null">#{cjksrq},</if>
<if test="cjjsrq != null">#{cjjsrq},</if>
<if test="zhs != null">#{zhs},</if>
<if test="dqskssq != null">#{dqskssq},</if>
<if test="cjlx != null">#{cjlx},</if>
<if test="createtime != null">#{createtime},</if>
</trim>
</insert>
<update id="updateIncomeInvoiceAuthLog" parameterType="IncomeInvoiceAuthLog">
update income_invoice_auth_log
<trim prefix="SET" suffixOverrides=",">
<if test="gmfsbh != null">gmfsbh = #{gmfsbh},</if>
<if test="fplxdm != null">fplxdm = #{fplxdm},</if>
<if test="cjksrq != null">cjksrq = #{cjksrq},</if>
<if test="cjjsrq != null">cjjsrq = #{cjjsrq},</if>
<if test="zhs != null">zhs = #{zhs},</if>
<if test="dqskssq != null">dqskssq = #{dqskssq},</if>
<if test="cjlx != null">cjlx = #{cjlx},</if>
<if test="createtime != null">createtime = #{createtime},</if>
</trim>
where pch = #{pch}
</update>
<delete id="deleteIncomeInvoiceAuthLogByPch" parameterType="String">
delete from income_invoice_auth_log where pch = #{pch}
</delete>
<delete id="deleteIncomeInvoiceAuthLogByPchs" parameterType="String">
delete from income_invoice_auth_log where pch in
<foreach item="pch" collection="array" open="(" separator="," close=")">
#{pch}
</foreach>
</delete>
</mapper>