ElecLicenseInfoDao.xml 2.48 KB
<?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.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao">
    <select id="getContractIdIsNull" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo">
        select *
        from ELEC_LICENSE_INFO
        where CONTRACT_ID is null
    </select>

    <select id="getDocumentIdIsNull" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo">
        select *
        from ELEC_LICENSE_INFO
        where DOCUMENT_ID is null
    </select>

    <update id="updateDocumentId">
        update ELEC_LICENSE_INFO
        set DOCUMENT_ID = #{documentId,jdbcType=BIGINT}
        where BIZ_ID = #{bizId,jdbcType=VARCHAR}
    </update>

    <select id="getWaitForDownload" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo">
        select *
        from ELEC_LICENSE_INFO
        where DOCUMENT_ID is not null
          and SFXZ = '2'
    </select>

    <update id="updateOfdWjdz">
        update ELEC_LICENSE_INFO
        set OFD_WJDZ = #{ofdPath,jdbcType=VARCHAR},
            SFXZ     = '1'
        where BIZ_ID = #{bizId,jdbcType=VARCHAR}
    </update>

    <select id="getWaitForConvert" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo">
        select *
        from ELEC_LICENSE_INFO
        where SFXZ = '1'
          and SFZH = '2'
    </select>

    <select id="selectZsbs" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo">
        select *
        from ELEC_LICENSE_INFO
        where ZSBS = #{zsbs}
    </select>

    <update id="updateContractIdAndStatus">
        update ELEC_LICENSE_INFO
        set TJCS        = #{waitForCreateContract.tjcs,jdbcType=VARCHAR},
            CONTRACT_ID = #{waitForCreateContract.contractId,jdbcType=BIGINT},
            FHJG        = #{waitForCreateContract.fhjg,jdbcType=VARCHAR},
            SFXZ        = #{waitForCreateContract.sfxz,jdbcType=VARCHAR},
            SFZH=#{waitForCreateContract.sfzh,jdbcType=VARCHAR}
        where BIZ_ID = #{waitForCreateContract.bizId,jdbcType=VARCHAR}
    </update>

    <insert id="insert">
        INSERT INTO ELEC_LICENSE_INFO(
                BIZ_ID,YWH,HTLX,ZSBS,DOCUMENT_PARAM
        ) VALUES (
                     #{bizId},
                     #{ywh},
                     #{htlx},
                     #{zsbs},
                     #{documentParam}
                         )
    </insert>
</mapper>