SynZhjInfoMapper.xml
2.65 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
<?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>
</mapper>