4e277aa8 by 夏齐

首次提交

1 parent 41f4a75d
......@@ -5,6 +5,7 @@ import com.pashanhoo.zhj.service.ZhjDatasSynService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
@Configuration
@EnableScheduling
......@@ -22,7 +23,7 @@ public class ZhjTask {
System.out.println("===========每天晚上九点定时任务走了=========");
}
//@Scheduled(cron="0 0 21 * * ? ")
//@Scheduled(cron="0 0 21 ? * 2")
public void executeQyInfo() {
System.out.println("===========每天晚上九点定时任务进来了=========");
zhjDatasSynService.synQyInfo();
......
......@@ -493,7 +493,12 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen
String gyr=StringUtils.join(arrList.toArray(),",");
if(StringUtils.isNotBlank(qlqtzk)){
qlqtzk=qlqtzk.substring(0, qlqtzk.length() - 1);
hashMap.put("QLQTZK",qlqtzk+hashMap.get("GYQK")+";共有人:"+gyr);
if(arrList!=null && arrList.size()>0){
hashMap.put("QLQTZK",qlqtzk+hashMap.get("GYQK")+";共有人:"+gyr);
}else{
hashMap.put("QLQTZK",qlqtzk+hashMap.get("GYQK"));
}
}
list.add(hashMap);
}
......
......@@ -350,45 +350,142 @@ public class ZhjDatasSynServiceImpl extends ServiceImpl<RegBusBdcqzsdjxxMapper,
}
@Override
public void synQYBDCXX(String token) {
List<Map> list=synZhjInfoMapper.getQyBdcxx();
if(list!=null && list.size()>0){
for (int j = 0; j < list.size(); j++) {
Map map=list.get(j);
StringBuilder params = new StringBuilder();
params.append("?").append("QLRMC=").append(map.get("BDCDYH")).append("&")
.append("QLRZJH=").append(map.get("QLRZJH")).append("&")
.append("BDCQZSH=").append(map.get("BDCQZSH")).append("&")
.append("BDCDYH=").append(map.get("BDCDYH")).append("&")
.append("DJSJ=").append(map.get("DJSJ")).append("&")
.append("YT=").append(map.get("YT")).append("&")
.append("ZL=").append(map.get("ZL")).append("&")
.append("MJ=").append(map.get("MJ")).append("&")
.append("SYQX=").append(map.get("SYQX")).append("&")
.append("DJJG=").append(map.get("DJJG"));
String url1=zhjurl+"/dclp/hzapi/QYBDCXX"+params.toString();
doPostForNew(url1,"", token);
List<Map> list=synZhjInfoMapper.getQyBdcxx();
if(list!=null && list.size()>0) {
for (int j = 0; j < list.size(); j++) {
try {
Map map = list.get(j);
StringBuilder params = new StringBuilder();
params.append("?");
String qlrmc="";
if(map.get("QLRMC")!=null){
qlrmc=URLEncoder.encode((String) map.get("QLRMC"), "UTF-8");
}
params.append("QLRMC=").append(qlrmc).append("&");
String qlrzjh="";
if(map.get("QLRZJH")!=null){
qlrzjh=(String)map.get("QLRZJH");
}
params.append("QLRZJH=").append(qlrzjh).append("&");
String bdcqzsh="";
if(map.get("BDCQZSH")!=null){
bdcqzsh=URLEncoder.encode((String) map.get("BDCQZSH"), "UTF-8");
}
params.append("BDCQZSH=").append(bdcqzsh).append("&");
String bdcdyh="";
if(map.get("BDCDYH")!=null){
bdcdyh= (String) map.get("BDCDYH");
}
params.append("BDCDYH=").append(bdcdyh).append("&");
String djsj="";
if(map.get("DJSJ")!=null){
djsj= (String) map.get("DJSJ");
}
params.append("DJSJ=").append(djsj).append("&");
String yt="";
if(map.get("YT")!=null){
yt=URLEncoder.encode((String) map.get("YT"), "UTF-8");
}
params.append("YT=").append(yt).append("&");
String zl="";
if(map.get("ZL")!=null){
zl=URLEncoder.encode((String) map.get("ZL"), "UTF-8");
}
params.append("ZL=").append(zl).append("&");
String mj="";
if(map.get("MJ")!=null){
mj= (String) map.get("MJ");
}
params.append("MJ=").append(mj).append("&");
String syqx="";
if(map.get("SYQX")!=null){
syqx=URLEncoder.encode((String) map.get("SYQX"), "UTF-8");
}
params.append("SYQX=").append(syqx).append("&");
String djjg="";
if(map.get("DJJG")!=null){
djjg=URLEncoder.encode((String) map.get("DJJG"), "UTF-8");
}
params.append("DJJG=").append(djjg);
String url1 = zhjurl + "/dclp/hzapi/QYBDCXX" + params.toString();
doPostForNew(url1, "", token);
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
}
}
@Override
public void qymxFcDyxx(String token) {
List<Map> list=synZhjInfoMapper.getQymxfcdyxx();
if(list!=null && list.size()>0){
for (int j = 0; j < list.size(); j++) {
Map map=list.get(j);
StringBuilder params = new StringBuilder();
params.append("?").append("DYQR=").append(map.get("DYQR")).append("&")
.append("DYQRZJH=").append(map.get("DYQRZJH")).append("&")
.append("BDCDJZMH=").append(map.get("BDCDJZMH")).append("&")
.append("BDCDYH=").append(map.get("BDCDYH")).append("&")
.append("QLLX=").append(map.get("QLLX")).append("&")
.append("DYR=").append(map.get("DYR")).append("&")
.append("DYDJSJ=").append(map.get("DYDJSJ"));
String url1=zhjurl+"/dclp/hzapi/QYMXFCDYXX"+params.toString();
doPostForNew(url1,"", token);
List<Map> list=synZhjInfoMapper.getQymxfcdyxx();
if(list!=null && list.size()>0){
for (int j = 0; j < list.size(); j++) {
try{
Map map=list.get(j);
StringBuilder params = new StringBuilder();
params.append("?");
String dyqr="";
if(map.get("DYQR")!=null){
dyqr= URLEncoder.encode((String)map.get("DYQR"),"UTF-8");
}
params.append("DYQR=").append(dyqr).append("&");
String dyqrzjh="";
if(map.get("DYQRZJH")!=null){
dyqrzjh= (String) map.get("DYQRZJH");
}
params.append("DYQRZJH=").append(dyqrzjh).append("&");
String bdcdjzmh="";
if(map.get("BDCDJZMH")!=null){
bdcdjzmh=URLEncoder.encode((String)map.get("BDCDJZMH"),"UTF-8");
}
params.append("BDCDJZMH=").append(bdcdjzmh).append("&");
String bdcdyh="";
if(map.get("BDCDYH")!=null){
bdcdyh= (String) map.get("BDCDYH");
}
params.append("BDCDYH=").append(bdcdyh).append("&");
String qllx="";
if(map.get("QLLX")!=null){
qllx=URLEncoder.encode((String)map.get("QLLX"),"UTF-8");
}
params.append("QLLX=").append(qllx).append("&");
String dyr="";
if(map.get("DYR")!=null){
dyr=URLEncoder.encode((String)map.get("DYR"),"UTF-8");
}
params.append("DYR=").append(dyr).append("&");
String dydjsj="";
if(map.get("DYDJSJ")!=null){
dydjsj= (String) map.get("DYDJSJ");
}
params.append("DYDJSJ=").append(dydjsj);
String url1=zhjurl+"/dclp/hzapi/QYMXFCDYXX"+params.toString();
doPostForNew(url1,"", token);
}catch (Exception ex){
ex.printStackTrace();
}
}
}
}
}
@Override
......@@ -407,7 +504,7 @@ public class ZhjDatasSynServiceImpl extends ServiceImpl<RegBusBdcqzsdjxxMapper,
}
}).start();
//组装中小微企业抵押信息
//组装中小微企业抵押信息
new Thread(new Runnable() {
@Override
public void run() {
......
......@@ -35,6 +35,7 @@
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
......@@ -64,7 +65,8 @@
where a.djlx in ('214', '215', '804')
and a.del_flag = '0'
and a.islogout = '0'
and a.ywh = b.ywh)
and a.ywh = b.ywh
)
group by dyqr, DYQRZJH, bdcqzh, bdcdyh, QLLX, DYR, DYDJSJ
</select>
</mapper>
......