Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
夏齐
/
hzbdcsyn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
040fbf90
authored
2022-08-19 09:04:38 +0800
by
夏齐
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首次提交
1 parent
4e277aa8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
14 deletions
src/main/java/com/pashanhoo/common/EciHttpUtil.java
src/main/java/com/pashanhoo/common/QysTask.java
src/main/java/com/pashanhoo/common/ZhjTask.java
src/main/java/com/pashanhoo/qys/service/impl/EciServiceImpl.java
src/main/java/com/pashanhoo/zhj/mapper/RegBusBdcqzsdjxxMapper.java
src/main/resources/application.yaml
src/main/resources/mapper/ElecLicenseInfoMapper.xml
src/main/resources/mapper/RegBusBdcqzsdjxxMapper.xml
src/main/java/com/pashanhoo/common/EciHttpUtil.java
View file @
040fbf9
...
...
@@ -140,7 +140,7 @@ public class EciHttpUtil {
* @param documentId 合同文档ID
* @return
*/
public
String
download
(
String
documentId
,
String
bh
)
{
public
String
download
(
String
documentId
,
String
bh
,
String
htlx
,
String
areacode
)
{
String
url
=
hostUrl
+
"/document/download"
+
"?documentId="
+
documentId
;
InputStream
in
=
null
;
String
absolutePath
=
""
;
...
...
@@ -170,7 +170,7 @@ public class EciHttpUtil {
in
=
conn
.
getInputStream
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy"
);
String
dateDir
=
simpleDateFormat
.
format
(
new
Date
());
File
savePath
=
new
File
(
"
D:\\ECI\\"
+
dateDir
+
bh
);
File
savePath
=
new
File
(
"
E:\\ECI\\"
+
areacode
+
"\\"
+
htlx
+
dateDir
+
bh
);
if
(!
savePath
.
exists
())
{
savePath
.
mkdirs
();
}
...
...
src/main/java/com/pashanhoo/common/QysTask.java
View file @
040fbf9
...
...
@@ -12,7 +12,7 @@ public class QysTask {
@Autowired
private
EciService
eciService
;
@Scheduled
(
cron
=
"0 0/
5
* * * ?"
)
@Scheduled
(
cron
=
"0 0/
1
* * * ?"
)
public
void
accessCreateContract
()
{
System
.
out
.
println
(
"===========创建合同定时任务进来了========="
);
eciService
.
accessCreateContract
();
...
...
src/main/java/com/pashanhoo/common/ZhjTask.java
View file @
040fbf9
...
...
@@ -16,14 +16,14 @@ public class ZhjTask {
private
ZhjDatasSynService
zhjDatasSynService
;
//
@Scheduled(cron="0 0 21 * * ? ")
@Scheduled
(
cron
=
"0 0 21 * * ? "
)
public
void
execute
()
{
System
.
out
.
println
(
"===========每天晚上九点定时任务进来了========="
);
zhjDatasSynService
.
send_bdcYwInfo
();
System
.
out
.
println
(
"===========每天晚上九点定时任务走了========="
);
}
//@Scheduled(cron="0 0 21 ? * 2
")
@Scheduled
(
cron
=
"0 0 20 15 * ?
"
)
public
void
executeQyInfo
()
{
System
.
out
.
println
(
"===========每天晚上九点定时任务进来了========="
);
zhjDatasSynService
.
synQyInfo
();
...
...
src/main/java/com/pashanhoo/qys/service/impl/EciServiceImpl.java
View file @
040fbf9
This diff is collapsed.
Click to expand it.
src/main/java/com/pashanhoo/zhj/mapper/RegBusBdcqzsdjxxMapper.java
View file @
040fbf9
...
...
@@ -59,6 +59,8 @@ public interface RegBusBdcqzsdjxxMapper extends BaseMapper<RegBusBdcqzsdjxxDo> {
public
void
updateBdcqzsjbxxInfo
(
String
id
);
public
void
updateBdcqzsjbxxInfoByYwh
(
String
ywh
);
public
Map
getQlrInfoByYwh
(
String
ywh
);
public
String
getQlrInfoByYwhAndqlr
(
@Param
(
"ywh"
)
String
ywh
,
@Param
(
"qlrmc"
)
String
qlrmc
);
...
...
src/main/resources/application.yaml
View file @
040fbf9
...
...
@@ -20,6 +20,7 @@ spring:
primary
:
master
datasource
:
master
:
#url: jdbc:oracle:thin:@172.16.56.4:1521:ODM
url
:
jdbc:oracle:thin:@172.16.56.21:1521:orcl
driver-class-name
:
oracle.jdbc.driver.OracleDriver
username
:
regs
...
...
@@ -54,11 +55,12 @@ mybatis-plus:
call-setters-on-nulls
:
true
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
app
:
hostUrl
:
http://172.16.56.41:9182
bdcdjzmlc
:
2890537670326468622
bdcqzslc
:
2890537800123400234
AppToken
:
OAduCx5qJD
AppSecret
:
DifsZNwDnamuRh9jS0gSOTJFvmmKtT
hostUrl
:
http://172.16.56.60:9182
bdcdjzmlc
:
2905681381004489569
bdcqzslc
:
2905684509636506505
AppToken
:
lv2M681jcM
AppSecret
:
mZWAKA2p7vvnTZMNuUKRHaCL3LTgHA
areacode
:
610702
management
:
...
...
src/main/resources/mapper/ElecLicenseInfoMapper.xml
View file @
040fbf9
src/main/resources/mapper/RegBusBdcqzsdjxxMapper.xml
View file @
040fbf9
...
...
@@ -4,6 +4,9 @@
<update
id=
"updateBdcqzsjbxxInfo"
>
update reg_bus_bdcqzsdjxx set ISCJDZZZ='1' where ID=#{id}
</update>
<update
id=
"updateBdcqzsjbxxInfoByYwh"
>
update reg_bus_bdcqzsdjxx set ISCJDZZZ='1' where ywh=#{ywh}
</update>
<select
id=
"getZsdjInfoList"
resultType=
"com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo"
parameterType=
"com.pashanhoo.zhj.entity.SynZhjInfoDo"
>
select * from reg_bus_bdcqzsdjxx where
...
...
@@ -94,6 +97,7 @@
from dual
</select>
<select
id=
"getBdcqzsjbxxInfo"
resultType=
"java.util.Map"
>
select * from (
select c.id,
c.ywh,
c.bdcdyh,
...
...
@@ -116,12 +120,12 @@
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'YYYY') as y,
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'MM') as m,
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'dd') as d,
c.bdcqzbh as bh
c.bdcqzbh as bh,row_number() over (partition by ywh,bdcqzbh order by ywh desc) rn
from reg_bus_bdcqzsdjxx c
where c.del_flag = '0'
and c.isxydzzz = '1'
and c.iscjdzzz = '0'
and dbsj is not null
and dbsj is not null ) where rn=1
</select>
<select
id=
"getBdcqzsjbxxInfoByYwh"
resultType=
"java.util.Map"
>
...
...
@@ -152,8 +156,8 @@
where c.del_flag = '0'
and c.isxydzzz = '1'
and c.iscjdzzz = '0'
and c.ywh
=#{ywh}
and
dbsj is not null
and c.ywh
=#{ywh}
and c.
dbsj is not null
</select>
<select
id=
"getQlrInfoByYwh"
resultType=
"java.util.Map"
>
select wm_concat(qlrmc) as qlrmc,wm_concat(zjh) as zjh from reg_bus_qlr c where ywh =#{ywh} and del_flag='0' and qszt='1' order by sxh
...
...
Please
register
or
sign in
to post a comment