Commit f933b7c1 authored by yuyanglei's avatar yuyanglei

数据库修改 SX2020 改为 GJJ80

parent 6e724271
......@@ -12,7 +12,7 @@
FileTemplatPath=D:\\JavaFileDir
#
jdbc.type=oracle
jdbc.driver=oracle.jdbc.driver.OracleDriver
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
jdbc.username.ss=SXZHFW80
jdbc.password.ss=SXZHFW80
#jdbc.type=oracle
#jdbc.driver=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.1.33:1596:zfgjj
......@@ -52,11 +53,13 @@ jdbc.testSql=SELECT 'x' FROM DUAL
mongo.dbname = zfgjj8_wx
#\u5bc6\u7801
#mongo.password =Cd85617711
#mongo.username =root
#mongo.host = 192.168.1.31
#mongo.port= 27917
#
mongo.password =
mongo.username =
mongo.host = 192.168.101.227
......
......@@ -4,14 +4,14 @@
<select id="complaintRate" resultType="com.changda.gjjapp.zhfwpt.dto.homepage.ComplaintRateDto">
select
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,
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,
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,
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
from dual
</select>
......
......@@ -34,11 +34,11 @@
<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
,(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>
<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>
<select id="qdkzInfo" resultType="map">
......
......@@ -157,11 +157,11 @@
<select id="qdywblgnldTj" resultType="com.changda.gjjapp.zhfwpt.dto.qdxxgl.QdfwnldTjDto">
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,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,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,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,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; 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; 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; 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; 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; 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
</select>
......
......@@ -295,7 +295,7 @@
</select>
<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>
</mapper>
\ No newline at end of file
......@@ -2,15 +2,15 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "mybatis-3-mapper.dtd" >
<mapper namespace="com.changda.gjjapp.zhfwpt.dao.yhxxgl.YHXXGLDao">
<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
<if test="zjhm != null and zjhm !=''">and SX2020.wxn_user.zjhm =#{zjhm}</if>
<if test="grzh != null and grzh !=''">and SX2020.wxn_user.grzh = #{grzh}</if>
<if test="zjhm != null and zjhm !=''">and GJJ80.wxn_user.zjhm =#{zjhm}</if>
<if test="grzh != null and grzh !=''">and GJJ80.wxn_user.grzh = #{grzh}</if>
</update>
<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
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>
<choose>
<when test="zckssj != null and zckssj !='' and zcjssj != null and zcjssj !=''">
......@@ -31,16 +31,16 @@
</select>
<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}
</update>
<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>
<select id="zxzt" resultType="string">
select iszx from SX2020.wxn_user where grzh = #{grzh}
select iszx from GJJ80.wxn_user where grzh = #{grzh}
</select>
<insert id="userLoginRecording">
......
......@@ -815,8 +815,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
mXwinfo.setYyfssj(yyfssj);
mXwinfo.setIsyyfs(isyyfs2);
mXwinfo.setVc_webname("黄冈住房公积金");
mXwinfo.setI_webid("14");
mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("12");
mXwinfo.setVc_sectitle("");
mXwinfo.setVc_thdtitle("");
mXwinfo.setVc_userid("");
......@@ -1046,8 +1046,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
// mXwinfo.setVc_source(vc_source);
// mXwinfo.setIsfsgwz(isfsgwz);
//
// mXwinfo.setVc_webname("黄冈住房公积金");
// mXwinfo.setI_webid("14");
// mXwinfo.setVc_webname("三峡住房公积金");
// mXwinfo.setI_webid("12");
// mXwinfo.setVc_sectitle("");
// mXwinfo.setVc_thdtitle("");
// mXwinfo.setVc_userid("");
......@@ -1699,8 +1699,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
// }
if (isyyfs.equals("0")) {
mXwinfo.setVc_webname("黄冈住房公积金");
mXwinfo.setI_webid("14");
mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("12");
int iswz = mXwinfo.getIswz();
String isfsg = "0";
isfsg = tyfbDao.isfsgwz(i_id);
......@@ -1776,8 +1776,8 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
public void yyfb(String i_id) {
M_XWINFO mXwinfo = wzInfo(i_id);
int issh2 = 1;
mXwinfo.setVc_webname("黄冈住房公积金");
mXwinfo.setI_webid("14");
mXwinfo.setVc_webname("三峡住房公积金");
mXwinfo.setI_webid("12");
int iswz = mXwinfo.getIswz();
String isfsg = "0";
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