Commit f933b7c1 authored by yuyanglei's avatar yuyanglei

数据库修改 SX2020 改为 GJJ80

parent 6e724271
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
FileTemplatPath=D:\\JavaFileDir FileTemplatPath=D:\\JavaFileDir
#
jdbc.type=oracle jdbc.type=oracle
jdbc.driver=oracle.jdbc.driver.OracleDriver jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@192.168.101.194:1521:zfgjj jdbc.url=jdbc:oracle:thin:@192.168.101.194:1521:zfgjj
...@@ -26,6 +26,7 @@ jdbc.url.ss=jdbc:oracle:thin:@192.168.101.194:1521:zfgjj ...@@ -26,6 +26,7 @@ jdbc.url.ss=jdbc:oracle:thin:@192.168.101.194:1521:zfgjj
jdbc.username.ss=SXZHFW80 jdbc.username.ss=SXZHFW80
jdbc.password.ss=SXZHFW80 jdbc.password.ss=SXZHFW80
#jdbc.type=oracle #jdbc.type=oracle
#jdbc.driver=oracle.jdbc.driver.OracleDriver #jdbc.driver=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.1.33:1596:zfgjj #jdbc.url=jdbc:oracle:thin:@192.168.1.33:1596:zfgjj
...@@ -52,11 +53,13 @@ jdbc.testSql=SELECT 'x' FROM DUAL ...@@ -52,11 +53,13 @@ jdbc.testSql=SELECT 'x' FROM DUAL
mongo.dbname = zfgjj8_wx mongo.dbname = zfgjj8_wx
#\u5bc6\u7801 #\u5bc6\u7801
#mongo.password =Cd85617711 #mongo.password =Cd85617711
#mongo.username =root #mongo.username =root
#mongo.host = 192.168.1.31 #mongo.host = 192.168.1.31
#mongo.port= 27917 #mongo.port= 27917
#
mongo.password = mongo.password =
mongo.username = mongo.username =
mongo.host = 192.168.101.227 mongo.host = 192.168.101.227
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
<select id="complaintRate" resultType="com.changda.gjjapp.zhfwpt.dto.homepage.ComplaintRateDto"> <select id="complaintRate" resultType="com.changda.gjjapp.zhfwpt.dto.homepage.ComplaintRateDto">
select select
to_char( to_char(
trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from SX2020.wxn_user) ,6)*100 trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from GJJ80.wxn_user) ,6)*100
,'999990.9999') ||'%' tslzb, ,'999990.9999') ||'%' tslzb,
to_char( to_char(
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from SX2020.wxn_user) ,6)*100 1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from GJJ80.wxn_user) ,6)*100
,'999990.9999') ||'%' ftslzb, ,'999990.9999') ||'%' ftslzb,
trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from SX2020.wxn_user) ,6)*100 trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from GJJ80.wxn_user) ,6)*100
tslsl, tslsl,
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from SX2020.wxn_user) ,6)*100 1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from GJJ80.wxn_user) ,6)*100
ftslsl ftslsl
from dual from dual
</select> </select>
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
<select id="duanXinZTSreach" resultType="map"> <select id="duanXinZTSreach" resultType="map">
select z.zjzxdm ZJZXDM,z.zjzxjc ZJZXJC,(case when z.dxzt = '1' then '开启' when z.dxzt = '0' then '关闭' end ) ZT select z.zjzxdm ZJZXDM,z.zjzxjc ZJZXJC,(case when z.dxzt = '1' then '开启' when z.dxzt = '0' then '关闭' end ) ZT
,(case when z.dxzt = '1' then 'true' when z.dxzt = '0' then 'fales' end ) DXZT from SX2020.b_zjzx z ,(case when z.dxzt = '1' then 'true' when z.dxzt = '0' then 'fales' end ) DXZT from GJJ80.b_zjzx z
</select> </select>
<update id="updateDuanXinZT"> <update id="updateDuanXinZT">
update SX2020.b_zjzx z set z.dxzt = #{dxzt} where z.zjzxdm = #{zjzxdm} update GJJ80.b_zjzx z set z.dxzt = #{dxzt} where z.zjzxdm = #{zjzxdm}
</update> </update>
<select id="qdkzInfo" resultType="map"> <select id="qdkzInfo" resultType="map">
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</select> </select>
<select id="dxfsl" resultType="java.lang.Integer"> <select id="dxfsl" resultType="java.lang.Integer">
select count(*) from SX2020.SMS_MONTH_MT where STATE != '-10' select count(*) from GJJ80.SMS_MONTH_MT where STATE != '-10'
</select> </select>
<select id="qdfwlZB" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QuDaoFWLZBDto"> <select id="qdfwlZB" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QuDaoFWLZBDto">
...@@ -132,7 +132,7 @@ select qd.qdid,qd.qdmc,count(mq.grzh) fwsl ...@@ -132,7 +132,7 @@ select qd.qdid,qd.qdmc,count(mq.grzh) fwsl
union all union all
select * from ( select * from (
SELECT '04' QDID,'12329短信' QDMC,COUNT(*) fwsl SELECT '04' QDID,'12329短信' QDMC,COUNT(*) fwsl
FROM SX2020.SMS_MT FROM GJJ80.SMS_MT
WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') = #{year} </if>) WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') = #{year} </if>)
</select> </select>
...@@ -229,11 +229,11 @@ WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') = ...@@ -229,11 +229,11 @@ WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') =
<select id="qdyhtjfx" resultType="map"> <select id="qdyhtjfx" resultType="map">
<![CDATA[ <![CDATA[
SELECT zcqdid AS QDID,qdmc,zcyh,round(zczb,4)*100||'%' zczb,hdyh,round(hdzb,4)*100||'%' hdzb,nvl(trunc((hdyh/(select count(*) from SX2020.wxn_user))*100,4),'0') hdyhzb1,nvl(trunc((hdyh/(select count(*) from SX2020.wxn_user))*100,4)||'%','0%') hdyhzb2 FROM( SELECT zcqdid AS QDID,qdmc,zcyh,round(zczb,4)*100||'%' zczb,hdyh,round(hdzb,4)*100||'%' hdzb,nvl(trunc((hdyh/(select count(*) from GJJ80.wxn_user))*100,4),'0') hdyhzb1,nvl(trunc((hdyh/(select count(*) from GJJ80.wxn_user))*100,4)||'%','0%') hdyhzb2 FROM(
select zcqdid,zcyh,zcyh/(select count(*) as YHZS from SX2020.gj_grxx) AS ZCZB from ( select zcqdid,zcyh,zcyh/(select count(*) as YHZS from GJJ80.gj_grxx) AS ZCZB from (
select zcqdid,count(*) zcyh from SX2020.wxn_user group by zcqdid select zcqdid,count(*) zcyh from GJJ80.wxn_user group by zcqdid
)) A,( )) A,(
select zhdlqdid,hdyh,hdyh/(select count(*) from SX2020.wxn_user) AS HDZB from ( select zhdlqdid,hdyh,hdyh/(select count(*) from GJJ80.wxn_user) AS HDZB from (
select qdid as zhdlqdid, count(grzh) hdyh from (select qdid,grzh from m_ywblxq where qdid!='09' and blsj between add_months(sysdate,-6) and sysdate and grzh is not null group by qdid, grzh) group by qdid select qdid as zhdlqdid, count(grzh) hdyh from (select qdid,grzh from m_ywblxq where qdid!='09' and blsj between add_months(sysdate,-6) and sysdate and grzh is not null group by qdid, grzh) group by qdid
)) B , )) B ,
(select qdmc,qdid from s_qdzd ) C (select qdmc,qdid from s_qdzd ) C
...@@ -246,11 +246,11 @@ WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') = ...@@ -246,11 +246,11 @@ WHERE 1=1 <if test="year != null and year !='' "> and TO_CHAR(SENDTIME,'YYYY') =
<select id="qdyhfxHDYH" resultType="java.lang.Integer"> <select id="qdyhfxHDYH" resultType="java.lang.Integer">
select select
nvl(sum(case when denglurq between add_months(to_date(#{year},'yyyy-mm'),-6) and to_date(#{year},'yyyy-mm') then 1 else 0 end),0) sl nvl(sum(case when denglurq between add_months(to_date(#{year},'yyyy-mm'),-6) and to_date(#{year},'yyyy-mm') then 1 else 0 end),0) sl
from SX2020.wxn_user where zhdlqdid = #{qdid} from GJJ80.wxn_user where zhdlqdid = #{qdid}
</select> </select>
<select id="qdyhfxZCS" resultType="java.lang.Integer"> <select id="qdyhfxZCS" resultType="java.lang.Integer">
select nvl(count(*),0) from SX2020.wxn_user where to_char(zhucerq,'yyyy-mm') = to_char(to_date(#{year},'yyyy-mm'),'yyyy-mm') and zcqdid = #{qdid} select nvl(count(*),0) from GJJ80.wxn_user where to_char(zhucerq,'yyyy-mm') = to_char(to_date(#{year},'yyyy-mm'),'yyyy-mm') and zcqdid = #{qdid}
</select> </select>
<insert id="insertQDFWL"> <insert id="insertQDFWL">
...@@ -314,35 +314,35 @@ from dual ...@@ -314,35 +314,35 @@ from dual
<select id="qdfwnldTj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto"> <select id="qdfwnldTj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
<![CDATA[ <![CDATA[
select '02' qdid, select '02' qdid,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age1830, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age1830,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age3040, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age3040,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age4050, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age4050,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age5065, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age5065,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age65 (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '02') age65
from dual from dual
union union
select '05' qdid, select '05' qdid,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age1830, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age1830,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age3040, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age3040,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age4050, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age4050,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age5065, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age5065,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age65 (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '05') age65
from dual from dual
union union
select '06' qdid, select '06' qdid,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age1830, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age1830,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age3040, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age3040,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age4050, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age4050,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age5065, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age5065,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age65 (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '06') age65
from dual from dual
union union
select '07' qdid, select '07' qdid,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age1830, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 30 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age1830,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age3040, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 40 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age3040,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age4050, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 50 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age4050,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age5065, (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) <= 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age5065,
(select count(*) from m_qdfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age65 (select count(*) from m_qdfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) > 65 and to_char(a.fwsj,'yyyy') = #{year} and a.qdid = '07') age65
from dual from dual
]]> ]]>
...@@ -351,11 +351,11 @@ from dual ...@@ -351,11 +351,11 @@ from dual
<select id="qdywnldfwtj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto"> <select id="qdywnldfwtj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
select select
(select count(*) from m_ywfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 30 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age1830, (select count(*) from m_ywfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 30 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age1830,
(select count(*) from m_ywfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 40 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age3040, (select count(*) from m_ywfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 40 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age3040,
(select count(*) from m_ywfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 50 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age4050, (select count(*) from m_ywfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 50 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age4050,
(select count(*) from m_ywfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age5065, (select count(*) from m_ywfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age5065,
(select count(*) from m_ywfwxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''"> and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age65 (select count(*) from m_ywfwxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''"> and to_char(a.fwsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlxbm = #{ywbm}) age65
from dual from dual
</select> </select>
...@@ -415,7 +415,7 @@ union ...@@ -415,7 +415,7 @@ union
( (
SELECT LEVEL ID FROM DUAL CONNECT BY LEVEL &lt;=12) T0, SELECT LEVEL ID FROM DUAL CONNECT BY LEVEL &lt;=12) T0,
(SELECT TO_NUMBER(SUBSTRB(TO_CHAR(SENDTIME,'YYYY-MM'),-2)) MT,COUNT(*) FSL (SELECT TO_NUMBER(SUBSTRB(TO_CHAR(SENDTIME,'YYYY-MM'),-2)) MT,COUNT(*) FSL
FROM SX2020.SMS_MT T1 FROM GJJ80.SMS_MT T1
WHERE TO_CHAR(SENDTIME,'YYYY') = #{year} WHERE TO_CHAR(SENDTIME,'YYYY') = #{year}
GROUP BY SUBSTRB(TO_CHAR(SENDTIME,'YYYY-MM'),-2))T1 GROUP BY SUBSTRB(TO_CHAR(SENDTIME,'YYYY-MM'),-2))T1
WHERE T0.ID = T1.MT(+) WHERE T0.ID = T1.MT(+)
...@@ -505,8 +505,8 @@ select ...@@ -505,8 +505,8 @@ select
from from
( (
select select
(select count(*) from SX2020.wxn_user b where b.zcqdid = '02' and b.xingbie = 1) wtmensl, (select count(*) from GJJ80.wxn_user b where b.zcqdid = '02' and b.xingbie = 1) wtmensl,
(select count(*) from SX2020.wxn_user b where b.zcqdid = '02' and b.xingbie = 2) wtwomensl (select count(*) from GJJ80.wxn_user b where b.zcqdid = '02' and b.xingbie = 2) wtwomensl
from dual from dual
) )
union all union all
...@@ -517,8 +517,8 @@ select ...@@ -517,8 +517,8 @@ select
from from
( (
select select
(select count(*) from SX2020.wxn_user b where b.zcqdid = '05' and b.xingbie = 1) wxmensl, (select count(*) from GJJ80.wxn_user b where b.zcqdid = '05' and b.xingbie = 1) wxmensl,
(select count(*) from SX2020.wxn_user b where b.zcqdid = '05' and b.xingbie = 2) wxwomensl (select count(*) from GJJ80.wxn_user b where b.zcqdid = '05' and b.xingbie = 2) wxwomensl
from dual from dual
) )
union all union all
...@@ -529,8 +529,8 @@ select ...@@ -529,8 +529,8 @@ select
from from
( (
select select
(select count(*) from SX2020.wxn_user b where b.zcqdid = '06' and b.xingbie = 1) appmensl, (select count(*) from GJJ80.wxn_user b where b.zcqdid = '06' and b.xingbie = 1) appmensl,
(select count(*) from SX2020.wxn_user b where b.zcqdid = '06' and b.xingbie = 2) appwomensl (select count(*) from GJJ80.wxn_user b where b.zcqdid = '06' and b.xingbie = 2) appwomensl
from dual from dual
) )
</select> </select>
...@@ -566,14 +566,14 @@ select '十二月' month,count(*) cn from m_xxtx a where to_char(a.sj,'yyyy-mm') ...@@ -566,14 +566,14 @@ select '十二月' month,count(*) cn from m_xxtx a where to_char(a.sj,'yyyy-mm')
</select> </select>
<select id="userLogoutStatus" resultType="int"> <select id="userLogoutStatus" resultType="int">
select count(*) cn from SX2020.wxn_user where iszx = '1' select count(*) cn from GJJ80.wxn_user where iszx = '1'
</select> </select>
<select id="wanWomanZB" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.WanWomanZBDto"> <select id="wanWomanZB" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.WanWomanZBDto">
select nvl(trunc((man.mansl/zs.zs)*100,2)||'%','0') manzb,nvl(trunc((woman.womansl/zs.zs)*100,2)||'%','0') womanzb,man.mansl mansl,woman.womansl womansl from select nvl(trunc((man.mansl/zs.zs)*100,2)||'%','0') manzb,nvl(trunc((woman.womansl/zs.zs)*100,2)||'%','0') womanzb,man.mansl mansl,woman.womansl womansl from
(select count(*) zs from SX2020.wxn_user) zs, (select count(*) zs from GJJ80.wxn_user) zs,
(select count(*) mansl from SX2020.wxn_user a where a.xingbie = 1 ) man , (select count(*) mansl from GJJ80.wxn_user a where a.xingbie = 1 ) man ,
(select count(*) womansl from SX2020.wxn_user a where a.xingbie = 2) woman (select count(*) womansl from GJJ80.wxn_user a where a.xingbie = 2) woman
</select> </select>
<select id="qdywzb" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdywzbDto"> <select id="qdywzb" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdywzbDto">
...@@ -592,21 +592,21 @@ from ...@@ -592,21 +592,21 @@ from
<select id="zcyhnlFX" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto"> <select id="zcyhnlFX" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
select select
(select count(*) from SX2020.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 30) age1830, (select count(*) from GJJ80.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 30) age1830,
(select count(*) from SX2020.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 40) age3040, (select count(*) from GJJ80.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 40) age3040,
(select count(*) from SX2020.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 50) age4050, (select count(*) from GJJ80.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 50) age4050,
(select count(*) from SX2020.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 65) age5065, (select count(*) from GJJ80.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 65) age5065,
(select count(*) from SX2020.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 65)age65 (select count(*) from GJJ80.wxn_user a where to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 65)age65
from dual from dual
</select> </select>
<select id="hdyhnlfx" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto"> <select id="hdyhnlfx" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
select select
(select count(*) from SX2020.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 30) age1830, (select count(*) from GJJ80.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 30) age1830,
(select count(*) from SX2020.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 40) age3040, (select count(*) from GJJ80.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 40) age3040,
(select count(*) from SX2020.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 50) age4050, (select count(*) from GJJ80.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 50) age4050,
(select count(*) from SX2020.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 65) age5065, (select count(*) from GJJ80.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &lt;= 65) age5065,
(select count(*) from SX2020.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 65)age65 (select count(*) from GJJ80.wxn_user a where a.denglurq between add_months(sysdate,-6) and sysdate and to_char(sysdate,'yyyy')-substr(a.csny,1,4) &gt; 65)age65
from dual from dual
</select> </select>
...@@ -614,8 +614,8 @@ from dual ...@@ -614,8 +614,8 @@ from dual
select trunc((1-manhdyhzb)*100,2) womenhdyhzb,trunc(manhdyhzb*100,2) as manhdyhzb from ( select trunc((1-manhdyhzb)*100,2) womenhdyhzb,trunc(manhdyhzb*100,2) as manhdyhzb from (
select select
( (
(select hdyh from (select sum(case when denglurq between add_months(sysdate,-6) and sysdate then 1 else 0 end) hdyh from SX2020.wxn_user where zhdlqdid is not null and xingbie = '1'))/ (select hdyh from (select sum(case when denglurq between add_months(sysdate,-6) and sysdate then 1 else 0 end) hdyh from GJJ80.wxn_user where zhdlqdid is not null and xingbie = '1'))/
(select hdyh from (select sum(case when denglurq between add_months(sysdate,-6) and sysdate then 1 else 0 end) hdyh from SX2020.wxn_user where zhdlqdid is not null))) manhdyhzb (select hdyh from (select sum(case when denglurq between add_months(sysdate,-6) and sysdate then 1 else 0 end) hdyh from GJJ80.wxn_user where zhdlqdid is not null))) manhdyhzb
from dual from dual
) )
</select> </select>
...@@ -626,8 +626,8 @@ from dual ...@@ -626,8 +626,8 @@ from dual
from from
( (
select select
((select count(*) zcyh from SX2020.wxn_user where xingbie = '1')/ ((select count(*) zcyh from GJJ80.wxn_user where xingbie = '1')/
(select count(*) zcyh from SX2020.wxn_user)) manzcyhzb (select count(*) zcyh from GJJ80.wxn_user)) manzcyhzb
from dual from dual
) )
</select> </select>
...@@ -672,7 +672,7 @@ dual) b ...@@ -672,7 +672,7 @@ dual) b
( (
select zs.zsl,ts.tssl from select zs.zsl,ts.tssl from
(select count(*) tssl from M_TSXQ a ,s_tslx b where a.tslxid = b.tslxid and b.zlx = 1 <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year}</if> ) ts, (select count(*) tssl from M_TSXQ a ,s_tslx b where a.tslxid = b.tslxid and b.zlx = 1 <if test="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year}</if> ) ts,
(select count(*) zsl from SX2020.wxn_user) zs (select count(*) zsl from GJJ80.wxn_user) zs
) )
</select> </select>
......
...@@ -157,11 +157,11 @@ ...@@ -157,11 +157,11 @@
<select id="qdywblgnldTj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto"> <select id="qdywblgnldTj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
select select
(select count(*) from m_ywblxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 30 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age1830, (select count(*) from m_ywblxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 18 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 30 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age1830,
(select count(*) from m_ywblxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 40 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age3040, (select count(*) from m_ywblxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 30 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 40 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age3040,
(select count(*) from m_ywblxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 50 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age4050, (select count(*) from m_ywblxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 40 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 50 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age4050,
(select count(*) from m_ywblxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age5065, (select count(*) from m_ywblxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 50 and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &lt;= 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''">and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age5065,
(select count(*) from m_ywblxq a,SX2020.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''"> and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age65 (select count(*) from m_ywblxq a,GJJ80.wxn_user b where a.grzh = b.grzh and to_char(sysdate,'yyyy') - substr(b.csny,1,4) &gt; 65 <if test="qssj != null and qssj !='' and zzsj != null and zzsj !=''"> and to_char(a.blsj,'yyyy-mm-dd') between #{qssj} and #{zzsj}</if> and a.ywlx = #{ywbm}) age65
from dual from dual
</select> </select>
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</select> </select>
<select id="selectuserpd" parameterType="String" resultType="Integer"> <select id="selectuserpd" parameterType="String" resultType="Integer">
select count(*) M_COUNT from SX2020.wxn_user where xingming=#{yhxm} select count(*) M_COUNT from GJJ80.wxn_user where xingming=#{yhxm}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "mybatis-3-mapper.dtd" > <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "mybatis-3-mapper.dtd" >
<mapper namespace="com.changda.gjjapp.zhfwpt.dao.yhxxgl.YHXXGLDao"> <mapper namespace="com.changda.gjjapp.zhfwpt.dao.yhxxgl.YHXXGLDao">
<update id="updatePwd"> <update id="updatePwd">
update SX2020.wxn_user set SX2020.wxn_user.pswd = '888888' update GJJ80.wxn_user set GJJ80.wxn_user.pswd = '888888'
where 1=1 where 1=1
<if test="zjhm != null and zjhm !=''">and SX2020.wxn_user.zjhm =#{zjhm}</if> <if test="zjhm != null and zjhm !=''">and GJJ80.wxn_user.zjhm =#{zjhm}</if>
<if test="grzh != null and grzh !=''">and SX2020.wxn_user.grzh = #{grzh}</if> <if test="grzh != null and grzh !=''">and GJJ80.wxn_user.grzh = #{grzh}</if>
</update> </update>
<select id="yongHuXinXiSearch" resultType="com.changda.gjjapp.db.entity.WXN_USER"> <select id="yongHuXinXiSearch" resultType="com.changda.gjjapp.db.entity.WXN_USER">
select a.qdmc zcqdmc,b.qdmc zhdlqdmc,w.xingming,w.zjhm,w.pswd,w.sjhm,w.zhucerq,w.denglurq,w.grzh,w.zcqdid,w.zhdlqdid,w.xingbie,w.xmqp,w.csny,w.iszx,w.zxbz select a.qdmc zcqdmc,b.qdmc zhdlqdmc,w.xingming,w.zjhm,w.pswd,w.sjhm,w.zhucerq,w.denglurq,w.grzh,w.zcqdid,w.zhdlqdid,w.xingbie,w.xmqp,w.csny,w.iszx,w.zxbz
from SX2020.wxn_user w inner join s_qdzd a on w.zcqdid = a.qdid inner join s_qdzd b on w.zhdlqdid = b.qdid and w.grzh is not null and (INSTR(w.ZJHM || ',' || w.XINGMING || ',' || w.GRZH, #{data}) > 0 OR #{data} IS NULL) from GJJ80.wxn_user w inner join s_qdzd a on w.zcqdid = a.qdid inner join s_qdzd b on w.zhdlqdid = b.qdid and w.grzh is not null and (INSTR(w.ZJHM || ',' || w.XINGMING || ',' || w.GRZH, #{data}) > 0 OR #{data} IS NULL)
<if test="yhlb != null and yhlb !=''">and iszx = #{yhlb}</if> <if test="yhlb != null and yhlb !=''">and iszx = #{yhlb}</if>
<choose> <choose>
<when test="zckssj != null and zckssj !='' and zcjssj != null and zcjssj !=''"> <when test="zckssj != null and zckssj !='' and zcjssj != null and zcjssj !=''">
...@@ -31,16 +31,16 @@ ...@@ -31,16 +31,16 @@
</select> </select>
<update id="userInfoUpdate"> <update id="userInfoUpdate">
update SX2020.wxn_user a set a.grzh = a.grzh <if test="xingbie != null and xingbie !=''">,a.xingbie = #{xingbie}</if> <if test="xmqp != null and xmqp !=''">,a.xmqp =#{xmqp}</if> <if test="csny != null and csny !=''">,a.csny = #{csny}</if> update GJJ80.wxn_user a set a.grzh = a.grzh <if test="xingbie != null and xingbie !=''">,a.xingbie = #{xingbie}</if> <if test="xmqp != null and xmqp !=''">,a.xmqp =#{xmqp}</if> <if test="csny != null and csny !=''">,a.csny = #{csny}</if>
where a.grzh = #{grzh} where a.grzh = #{grzh}
</update> </update>
<update id="iszx"> <update id="iszx">
update SX2020.wxn_user a set a.iszx = #{iszx},a.zxbz=#{zxbz} where a.grzh = #{grzh} update GJJ80.wxn_user a set a.iszx = #{iszx},a.zxbz=#{zxbz} where a.grzh = #{grzh}
</update> </update>
<select id="zxzt" resultType="string"> <select id="zxzt" resultType="string">
select iszx from SX2020.wxn_user where grzh = #{grzh} select iszx from GJJ80.wxn_user where grzh = #{grzh}
</select> </select>
<insert id="userLoginRecording"> <insert id="userLoginRecording">
......
...@@ -815,8 +815,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService { ...@@ -815,8 +815,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
mXwinfo.setYyfssj(yyfssj); mXwinfo.setYyfssj(yyfssj);
mXwinfo.setIsyyfs(isyyfs2); mXwinfo.setIsyyfs(isyyfs2);
mXwinfo.setVc_webname("黄冈住房公积金"); mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("14"); mXwinfo.setI_webid("12");
mXwinfo.setVc_sectitle(""); mXwinfo.setVc_sectitle("");
mXwinfo.setVc_thdtitle(""); mXwinfo.setVc_thdtitle("");
mXwinfo.setVc_userid(""); mXwinfo.setVc_userid("");
...@@ -1046,8 +1046,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService { ...@@ -1046,8 +1046,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
// mXwinfo.setVc_source(vc_source); // mXwinfo.setVc_source(vc_source);
// mXwinfo.setIsfsgwz(isfsgwz); // mXwinfo.setIsfsgwz(isfsgwz);
// //
// mXwinfo.setVc_webname("黄冈住房公积金"); // mXwinfo.setVc_webname("三峡住房公积金");
// mXwinfo.setI_webid("14"); // mXwinfo.setI_webid("12");
// mXwinfo.setVc_sectitle(""); // mXwinfo.setVc_sectitle("");
// mXwinfo.setVc_thdtitle(""); // mXwinfo.setVc_thdtitle("");
// mXwinfo.setVc_userid(""); // mXwinfo.setVc_userid("");
...@@ -1699,8 +1699,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService { ...@@ -1699,8 +1699,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
// } // }
if (isyyfs.equals("0")) { if (isyyfs.equals("0")) {
mXwinfo.setVc_webname("黄冈住房公积金"); mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("14"); mXwinfo.setI_webid("12");
int iswz = mXwinfo.getIswz(); int iswz = mXwinfo.getIswz();
String isfsg = "0"; String isfsg = "0";
isfsg = tyfbDao.isfsgwz(i_id); isfsg = tyfbDao.isfsgwz(i_id);
...@@ -1776,8 +1776,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService { ...@@ -1776,8 +1776,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
public void yyfb(String i_id) { public void yyfb(String i_id) {
M_XWINFO mXwinfo = wzInfo(i_id); M_XWINFO mXwinfo = wzInfo(i_id);
int issh2 = 1; int issh2 = 1;
mXwinfo.setVc_webname("黄冈住房公积金"); mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("14"); mXwinfo.setI_webid("12");
int iswz = mXwinfo.getIswz(); int iswz = mXwinfo.getIswz();
String isfsg = "0"; String isfsg = "0";
isfsg = tyfbDao.isfsgwz(i_id); isfsg = tyfbDao.isfsgwz(i_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment