Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高宇
dataC_api
Commits
c3fd536b
Commit
c3fd536b
authored
May 15, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.月度信息
parent
e2a37723
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
Jnsp7xtmServiceImpl.java
...cisoft/bus/jnsp7xtm/service/impl/Jnsp7xtmServiceImpl.java
+1
-1
Jnsp7xtmDqsjServiceImpl.java
...us/jnsp7xtmdqsj/service/impl/Jnsp7xtmDqsjServiceImpl.java
+3
-2
application-common.yml
src/main/resources/application-common.yml
+0
-7
application-dev-conf.yml
src/main/resources/application-dev-conf.yml
+13
-0
Jnsp7xtmDqsjMapper.xml
...ces/mapper/bus/jnsp7xtmdqsj/mapper/Jnsp7xtmDqsjMapper.xml
+4
-4
No files found.
src/main/java/org/rcisoft/bus/jnsp7xtm/service/impl/Jnsp7xtmServiceImpl.java
View file @
c3fd536b
...
...
@@ -57,7 +57,7 @@ public class Jnsp7xtmServiceImpl extends ServiceImpl<Jnsp7xtmRepository, Jnsp7xt
private
Jnsp7xtmStatisticServiceImpl
jnsp74tmStatisticService
;
// 获取每次写入excel的长度
@Value
(
"${
export.s
ize}"
)
@Value
(
"${
jnsp7xtm.export.pageS
ize}"
)
private
Integer
size
;
// 静态锁
...
...
src/main/java/org/rcisoft/bus/jnsp7xtmdqsj/service/impl/Jnsp7xtmDqsjServiceImpl.java
View file @
c3fd536b
...
...
@@ -66,10 +66,10 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
// 月度表拉取锁
private
static
Lock
monthlyTablePullLock
=
new
ReentrantLock
();
@Value
(
"${
fetchS
ize}"
)
@Value
(
"${
jnsp7xtmDqsj.batchAddPages
ize}"
)
private
Integer
batchInsertSize
;
@Value
(
"${shema}"
)
@Value
(
"${
jnsp7xtmDqsj.
shema}"
)
private
String
shema
;
/**
...
...
@@ -218,6 +218,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
log
.
info
(
"查询耗时毫秒"
+
stopwatch
.
elapsed
(
TimeUnit
.
MILLISECONDS
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CyServiceException
(
501
,
"数据同步异常"
);
}
finally
{
monthlyTablePullLock
.
unlock
();
...
...
src/main/resources/application-common.yml
View file @
c3fd536b
...
...
@@ -293,13 +293,6 @@ knife4j:
username
:
zhangsan
password
:
123456
export
:
size
:
20
fetchSize
:
10
shema
:
'
demo.dbo'
login
:
loginName
:
"
00"
...
...
src/main/resources/application-dev-conf.yml
View file @
c3fd536b
...
...
@@ -121,3 +121,16 @@ syncSchedule:
message
:
config
:
true
jnsp7xtm
:
export
:
# 每次写入excel的长度
pageSize
:
20
jnsp7xtmDqsj
:
# 每次添加到数据库的长度
batchAddPagesize
:
50
# service 要重置的数据库
shema
:
'
demo.dbo'
src/main/resources/mapper/bus/jnsp7xtmdqsj/mapper/Jnsp7xtmDqsjMapper.xml
View file @
c3fd536b
...
...
@@ -368,7 +368,7 @@
FROM
jnsp7xtm_dqsj
</select>
<select
id=
"streamQuery"
resultMap=
"Jnsp7xtmVoResultMap"
fetchSize=
"10"
>
<select
id=
"streamQuery"
resultMap=
"Jnsp7xtmVoResultMap"
fetchSize=
"10
00
"
>
SELECT
jnsp.*,
cust.cust_code,
...
...
@@ -396,12 +396,12 @@
bps.pn,
bps.sypn
FROM
jnsp7xtm jnsp left JOIN b_customer cust on jnsp.khdm = cust.cust_code
left join b_pn_sypn bps on bps.pn = jnsp.pn
jnsp7xtm jnsp left JOIN b_customer cust on jnsp.khdm = cust.cust_code
and cust.del_flag = '0'
left join b_pn_sypn bps on bps.pn = jnsp.pn
and bps.del_flag = '0'
where
jnsp.khdm is not null
and jnsp.pn is not null
and bps.del_flag = '0'
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment