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.
143 lines
8.4 KiB
143 lines
8.4 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.IncomeInvoiceAuthEnterpriseArchivesMapper">
|
|
|
|
<resultMap type="IncomeInvoiceAuthEnterpriseArchives" id="IncomeInvoiceAuthEnterpriseArchivesResult">
|
|
<result property="id" column="id" />
|
|
<result property="gmfsbh" column="gmfsbh" />
|
|
<result property="sbh" column="sbh" />
|
|
<result property="jgmfsbh" column="jgmfsbh" />
|
|
<result property="gmfmc" column="gmfmc" />
|
|
<result property="dqskssq" column="dqskssq" />
|
|
<result property="gxrqq" column="gxrqq" />
|
|
<result property="gxrqz" column="gxrqz" />
|
|
<result property="qyxydj" column="qyxydj" />
|
|
<result property="sbzq" column="sbzq" />
|
|
<result property="gslx" column="gslx" />
|
|
<result property="ylqylx" column="ylqylx" />
|
|
<result property="nsrzg" column="nsrzg" />
|
|
<result property="datbsj" column="datbsj" />
|
|
<result property="ssqsbzt" column="ssqsbzt" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="remark" column="remark" />
|
|
</resultMap>
|
|
|
|
<sql id="selectIncomeInvoiceAuthEnterpriseArchivesVo">
|
|
select id, gmfsbh, sbh, jgmfsbh, gmfmc, dqskssq, gxrqq, gxrqz, qyxydj, sbzq, gslx, ylqylx, nsrzg, datbsj, ssqsbzt, create_by, create_time, update_by, update_time, remark from income_invoice_auth_enterprise_archives
|
|
</sql>
|
|
|
|
<select id="selectIncomeInvoiceAuthEnterpriseArchivesList" parameterType="IncomeInvoiceAuthEnterpriseArchives" resultMap="IncomeInvoiceAuthEnterpriseArchivesResult">
|
|
<include refid="selectIncomeInvoiceAuthEnterpriseArchivesVo"/>
|
|
<where>
|
|
<if test="gmfsbh != null and gmfsbh != ''"> and gmfsbh = #{gmfsbh}</if>
|
|
<if test="sbh != null and sbh != ''"> and sbh = #{sbh}</if>
|
|
<if test="jgmfsbh != null and jgmfsbh != ''"> and jgmfsbh = #{jgmfsbh}</if>
|
|
<if test="gmfmc != null and gmfmc != ''"> and gmfmc = #{gmfmc}</if>
|
|
<if test="dqskssq != null and dqskssq != ''"> and dqskssq = #{dqskssq}</if>
|
|
<if test="gxrqq != null and gxrqq != ''"> and gxrqq = #{gxrqq}</if>
|
|
<if test="gxrqz != null and gxrqz != ''"> and gxrqz = #{gxrqz}</if>
|
|
<if test="qyxydj != null and qyxydj != ''"> and qyxydj = #{qyxydj}</if>
|
|
<if test="sbzq != null and sbzq != ''"> and sbzq = #{sbzq}</if>
|
|
<if test="gslx != null and gslx != ''"> and gslx = #{gslx}</if>
|
|
<if test="ylqylx != null and ylqylx != ''"> and ylqylx = #{ylqylx}</if>
|
|
<if test="nsrzg != null and nsrzg != ''"> and nsrzg = #{nsrzg}</if>
|
|
<if test="datbsj != null and datbsj != ''"> and datbsj = #{datbsj}</if>
|
|
<if test="ssqsbzt != null and ssqsbzt != ''"> and ssqsbzt = #{ssqsbzt}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectIncomeInvoiceAuthEnterpriseArchivesById" parameterType="String" resultMap="IncomeInvoiceAuthEnterpriseArchivesResult">
|
|
<include refid="selectIncomeInvoiceAuthEnterpriseArchivesVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertIncomeInvoiceAuthEnterpriseArchives" parameterType="IncomeInvoiceAuthEnterpriseArchives">
|
|
insert into income_invoice_auth_enterprise_archives
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="gmfsbh != null and gmfsbh != ''">gmfsbh,</if>
|
|
<if test="sbh != null and sbh != ''">sbh,</if>
|
|
<if test="jgmfsbh != null">jgmfsbh,</if>
|
|
<if test="gmfmc != null and gmfmc != ''">gmfmc,</if>
|
|
<if test="dqskssq != null and dqskssq != ''">dqskssq,</if>
|
|
<if test="gxrqq != null and gxrqq != ''">gxrqq,</if>
|
|
<if test="gxrqz != null and gxrqz != ''">gxrqz,</if>
|
|
<if test="qyxydj != null and qyxydj != ''">qyxydj,</if>
|
|
<if test="sbzq != null and sbzq != ''">sbzq,</if>
|
|
<if test="gslx != null and gslx != ''">gslx,</if>
|
|
<if test="ylqylx != null and ylqylx != ''">ylqylx,</if>
|
|
<if test="nsrzg != null and nsrzg != ''">nsrzg,</if>
|
|
<if test="datbsj != null and datbsj != ''">datbsj,</if>
|
|
<if test="ssqsbzt != null and ssqsbzt != ''">ssqsbzt,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="remark != null">remark,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="gmfsbh != null and gmfsbh != ''">#{gmfsbh},</if>
|
|
<if test="sbh != null and sbh != ''">#{sbh},</if>
|
|
<if test="jgmfsbh != null">#{jgmfsbh},</if>
|
|
<if test="gmfmc != null and gmfmc != ''">#{gmfmc},</if>
|
|
<if test="dqskssq != null and dqskssq != ''">#{dqskssq},</if>
|
|
<if test="gxrqq != null and gxrqq != ''">#{gxrqq},</if>
|
|
<if test="gxrqz != null and gxrqz != ''">#{gxrqz},</if>
|
|
<if test="qyxydj != null and qyxydj != ''">#{qyxydj},</if>
|
|
<if test="sbzq != null and sbzq != ''">#{sbzq},</if>
|
|
<if test="gslx != null and gslx != ''">#{gslx},</if>
|
|
<if test="ylqylx != null and ylqylx != ''">#{ylqylx},</if>
|
|
<if test="nsrzg != null and nsrzg != ''">#{nsrzg},</if>
|
|
<if test="datbsj != null and datbsj != ''">#{datbsj},</if>
|
|
<if test="ssqsbzt != null and ssqsbzt != ''">#{ssqsbzt},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateIncomeInvoiceAuthEnterpriseArchives" parameterType="IncomeInvoiceAuthEnterpriseArchives">
|
|
update income_invoice_auth_enterprise_archives
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="gmfsbh != null and gmfsbh != ''">gmfsbh = #{gmfsbh},</if>
|
|
<if test="sbh != null and sbh != ''">sbh = #{sbh},</if>
|
|
<if test="jgmfsbh != null">jgmfsbh = #{jgmfsbh},</if>
|
|
<if test="gmfmc != null and gmfmc != ''">gmfmc = #{gmfmc},</if>
|
|
<if test="dqskssq != null and dqskssq != ''">dqskssq = #{dqskssq},</if>
|
|
<if test="gxrqq != null and gxrqq != ''">gxrqq = #{gxrqq},</if>
|
|
<if test="gxrqz != null and gxrqz != ''">gxrqz = #{gxrqz},</if>
|
|
<if test="qyxydj != null and qyxydj != ''">qyxydj = #{qyxydj},</if>
|
|
<if test="sbzq != null and sbzq != ''">sbzq = #{sbzq},</if>
|
|
<if test="gslx != null and gslx != ''">gslx = #{gslx},</if>
|
|
<if test="ylqylx != null and ylqylx != ''">ylqylx = #{ylqylx},</if>
|
|
<if test="nsrzg != null and nsrzg != ''">nsrzg = #{nsrzg},</if>
|
|
<if test="datbsj != null and datbsj != ''">datbsj = #{datbsj},</if>
|
|
<if test="ssqsbzt != null and ssqsbzt != ''">ssqsbzt = #{ssqsbzt},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteIncomeInvoiceAuthEnterpriseArchivesById" parameterType="String">
|
|
delete from income_invoice_auth_enterprise_archives where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteIncomeInvoiceAuthEnterpriseArchivesByIds" parameterType="String">
|
|
delete from income_invoice_auth_enterprise_archives where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |