Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
Details
Activity
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
huluobin
bailuntec-cost
Commits
9c495a09
Commit
9c495a09
authored
Jan 12, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 周转
# 费用系统jenkins # 数据中心 pom
parent
c85c4c87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
2 deletions
+46
-2
Jenkinsfile
Jenkinsfile
+32
-0
application-prod.yml
cost-service/src/main/resources/application-prod.yml
+2
-2
FinancialCheckStateTest.java
.../cost/service/impl/costcheck/FinancialCheckStateTest.java
+12
-0
No files found.
Jenkinsfile
0 → 100644
View file @
9c495a09
pipeline
{
agent
any
stages
{
stage
(
'检出'
)
{
steps
{
checkout
([
$class
:
'GitSCM'
,
branches
:
[[
name:
GIT_BUILD_REF
]],
userRemoteConfigs:
[[
url
:
GIT_REPO_URL
,
credentialsId:
CREDENTIALS_ID
]]])
}
}
stage
(
'interfaces 编译打包部署'
)
{
steps
{
sh
'''cd cost-interfaces
mvn clean package
mvn deploy'''
}
}
stage
(
'service 编译打包部署'
)
{
steps
{
sh
'''cd cost-service
mvn clean package docker:build -DpushImage'''
}
}
}
environment
{
CODING_MAVEN_REPO_ID
=
"${CCI_CURRENT_TEAM}-${PROJECT_NAME}-${MAVEN_REPO_NAME}"
CODING_MAVEN_REPO_URL
=
"${CCI_CURRENT_WEB_PROTOCOL}://${CCI_CURRENT_TEAM}-maven.pkg.${CCI_CURRENT_DOMAIN}/repository/${PROJECT_NAME}/${MAVEN_REPO_NAME}/"
}
}
cost-service/src/main/resources/application-prod.yml
View file @
9c495a09
...
...
@@ -2,8 +2,8 @@ spring:
# 数据源配置
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://10.0.8.2:3306/bailun_other?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
#
url: jdbc:mysql://gz-cdb-lnrmt5zh.sql.tencentcdb.com:61369/bailun_other?useUnicode=true&characterEncoding=UTF-8&useSSL=false&rewriteBatchedStatements=true
#
url: jdbc:mysql://10.0.8.2:3306/bailun_other?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
url
:
jdbc:mysql://gz-cdb-lnrmt5zh.sql.tencentcdb.com:61369/bailun_other?useUnicode=true&characterEncoding=UTF-8&useSSL=false&rewriteBatchedStatements=true
username
:
root
password
:
"
#7kfnymAM$Y9-Ntf"
hikari
:
...
...
cost-service/src/test/java/com/blt/other/module/cost/service/impl/costcheck/FinancialCheckStateTest.java
View file @
9c495a09
...
...
@@ -42,6 +42,8 @@ class FinancialCheckStateTest {
CostReviewerMapper
costReviewerMapper
;
@Resource
ICostCurrentReviewerService
costCurrentReviewerService
;
@Resource
FinancialCheckState
financialCheckState
;
@Test
@Rollback
(
value
=
false
)
...
...
@@ -64,4 +66,14 @@ class FinancialCheckStateTest {
costCurrentReviewerService
.
updateByCostNoAndReviewer
(
costDomain
.
getCostNo
(),
costReviewerList
);
}
@Rollback
(
value
=
false
)
@Test
void
updateCurrentReviewer
()
{
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
"F031533"
);
CostContext
costContext
=
new
CostContext
(
"F031533"
,
costDomain
.
getCreateUserid
());
costContext
.
setCostState
(
financialCheckState
);
financialCheckState
.
updateCurrentReviewer
();
}
}
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