SynZhjInfoMapper.xml
4.22 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?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.pashanhoo.zhj.mapper.SynZhjInfoMapper">
<select id="selectAllInfo" resultType="com.pashanhoo.zhj.entity.SynZhjInfoDo">
select * from syn_zhjinfo where ZD_STATE='0' and H_STATE='0' and HQS_STATE='0' and del_flag='0'
</select>
<update id="updatezdzt">
update syn_zhjinfo set ZD_STATE='1' where ywh=#{ywh}
</update>
<update id="updateHzt">
update syn_zhjinfo set H_STATE='1' where ywh=#{ywh}
</update>
<update id="updateHqszt">
update syn_zhjinfo set HQS_STATE='1' where ywh=#{ywh}
</update>
<select id="getQyBdcxx" resultType="java.util.Map">
select b.qlrmc,
b.zjh as QLRZJH,
a.bdcqzh as BDCQZSH,
a.bdcdyh,
a.dbsj as djsj,
a.yt,
a.zl,
a.mj,
a.syqx,
'汉中市不动产登记局' as djjg
from reg_bus_bdcqzsdjxx a, reg_bus_qlr b
where (a.djlx = '302' or a.djlx = '305')
and a.del_flag = '0'
and a.islogout = '0'
and b.del_flag = '0'
and b.zjzl in ('7', '10')
and b.qszt = '1'
and a.ywh = b.ywh
and instr(a.ywh, 'LS') = 0
</select>
<select id="getQymxfcdyxx" resultType="java.util.Map">
select dyqr, DYQRZJH, bdcqzh as BDCDJZMH, bdcdyh, QLLX, DYR, DYDJSJ
from (select b.dyqr,
b.DYQRZJH,
a.bdcqzh,
a.bdcdyh,
(select label
from sys_dict
where value = a.qllx
and del_flag = '0'
and type = 'reg_bus_qllx') as QLLX,
b.DYR,
a.dbsj as DYDJSJ
from reg_bus_bdcqzsdjxx a,
(select a.ywh,
a.qlrmc as dyqr,
a.zjh as DYQRZJH,
b.qlrmc as DYR
from reg_bus_qlr a, reg_bus_ywr b
where a.del_flag = '0'
and a.qszt = '1'
and b.del_flag = '0'
and b.zjzl in ('7', '10')
and b.qszt = '1'
and a.ywh = b.ywh) b
where a.djlx in ('214', '215', '804')
and a.del_flag = '0'
and a.islogout = '0'
and a.ywh = b.ywh
)
group by dyqr, DYQRZJH, bdcqzh, bdcdyh, QLLX, DYR, DYDJSJ
</select>
<select id="getYCFBdcxx" resultType="java.util.Map">
SELECT DISTINCT
q.qlrMc qlrny,
q.ZJH qlrsfzh,
a.BDCQZH bdcqzsh,
to_char(c.CFQSSJ,'yyyy-MM-dd HH24:mi:ss') cfrq,
c.CFJG cfjg,
c.CFWH,
c.BDCDYH ,to_char(c.JFDJSJ,'yyyy-MM-dd HH24:mi:ss') CHAFENGTIME,
h.ISCHAFENG ISCHAFENG
FROM
REG_BUS_BDCQZSDJXX a,
reg_bus_cfdj c,
reg_bus_qlr q,
reg_base_H h
WHERE
a.ywh = c.ywh
AND a.BDCDYH = c.BDCDYH
AND a.ywh = q.ywh
AND a.djlx = '907'
AND a.DEL_FLAG = '0'
AND a.ISLOGOUT = '1'
and h.BDCDYH=a.BDCDYH
and to_char(c.UPDATE_DATE,'yyyy-MM-dd')= to_char(SYSDATE,'yyyy-MM-dd')
ORDER BY
cfrq ASC
</select>
<select id="getCFBdcxx" resultType="java.util.Map">
SELECT DISTINCT
q.qlrMc qlrny,
q.ZJH qlrsfzh,
a.BDCQZH bdcqzsh,
to_char(c.CFQSSJ,'yyyy-MM-dd HH24:mi:ss') cfrq,
c.CFJG cfjg,
c.CFWH,
c.BDCDYH ,to_char(c.JFDJSJ,'yyyy-MM-dd HH24:mi:ss') CHAFENGTIME,
h.ISCHAFENG ISCHAFENG
FROM
REG_BUS_BDCQZSDJXX a,
reg_bus_cfdj c,
reg_bus_qlr q,
reg_base_H h
WHERE
a.ywh = c.ywh
AND a.BDCDYH = c.BDCDYH
AND a.ywh = q.ywh
AND a.djlx = '905'
AND a.DEL_FLAG = '0'
AND a.ISLOGOUT = '1'
and h.BDCDYH=a.BDCDYH
and to_char(c.UPDATE_DATE,'yyyy-MM-dd')= to_char(SYSDATE,'yyyy-MM-dd')
ORDER BY
cfrq ASC
</select>
</mapper>