ElecLicenseInfoDao.xml
2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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>
<update id="updateJpgWjdzAndStatus">
update ELEC_LICENSE_INFO
set JPG_WJDZ = #{jpgPath,jdbcType=VARCHAR},
SFZH = '1'
where BIZ_ID = #{bizId,jdbcType=VARCHAR}
</update>
</mapper>