Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1ffb1ce
authored
Jul 04, 2023
by
张晓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时批次
1 parent
88a79605
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
project-pre-dispatch/src/main/resources/application.yaml
project-pre-dispatch/src/test/java/com/dituhui/pea/pre/BatchServiceTest.java
project-pre-dispatch/src/main/resources/application.yaml
View file @
f1ffb1c
...
...
@@ -32,9 +32,9 @@ spring:
# - optional:nacos:datasource-config.yaml
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1:33
06
/saas_aftersale_test?serverTimezone=UTC
url
:
jdbc:mysql://127.0.0.1:33
88
/saas_aftersale_test?serverTimezone=UTC
username
:
root
password
:
123456
78
password
:
123456
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
...
...
project-pre-dispatch/src/test/java/com/dituhui/pea/pre/BatchServiceTest.java
View file @
f1ffb1c
...
...
@@ -19,14 +19,18 @@ public class BatchServiceTest {
BatchService
batchService
;
String
groupId
=
"gsuzhou"
;
String
day
=
"2023-0
6-16
"
;
String
day
=
"2023-0
7-05
"
;
@Test
public
void
test1
()
{
log
.
info
(
"init"
);
try
{
batchService
.
buildBatchNo
(
groupId
,
day
);
batchService
.
buildBatchNo
(
groupId
,
"2023-07-04"
);
batchService
.
buildBatchNo
(
groupId
,
"2023-07-05"
);
batchService
.
buildBatchNo
(
groupId
,
"2023-07-06"
);
batchService
.
buildBatchNo
(
groupId
,
"2023-07-07"
);
}
catch
(
SQLException
e
)
{
log
.
info
(
"error %s"
,
e
);
throw
new
RuntimeException
(
e
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment