Commit 9c495a09 by huluobin

# 周转

# 费用系统jenkins
# 数据中心 pom
parent c85c4c87
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}/"
}
}
......@@ -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:
......
......@@ -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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment