Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
5affe103
Commit
5affe103
authored
Dec 14, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序审批流程
parent
ee594c6d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
19 deletions
+27
-19
pom.xml
bailuntec-cost-core/pom.xml
+0
-5
Dockerfile
bailuntec-cost-core/src/main/docker/Dockerfile
+2
-4
AppCostServiceImpl.java
...lt/other/module/cost/service/impl/AppCostServiceImpl.java
+24
-10
CostFileUtil.java
...in/java/com/blt/other/module/cost/utils/CostFileUtil.java
+1
-0
No files found.
bailuntec-cost-core/pom.xml
View file @
5affe103
...
@@ -190,11 +190,6 @@
...
@@ -190,11 +190,6 @@
</exclusions>
</exclusions>
</dependency>
</dependency>
<dependency>
<!-- 引入log4j2依赖 -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<!--mp 增加Mybatis-->
<!--mp 增加Mybatis-->
<dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<groupId>
com.baomidou
</groupId>
...
...
bailuntec-cost-core/src/main/docker/Dockerfile
View file @
5affe103
FROM
openjdk:8-jdk-alpine
FROM
openjdk:8-jdk-alpine
VOLUME
/tmp
VOLUME
/tmp
ADD
bailuntec-cost-core-1.0-SNAPSHOT.jar app.jar
ADD
bailuntec-cost-core-1.0-SNAPSHOT.jar bailuntec-cost-core-1.0-SNAPSHOT.jar
RUN
echo
"Asia/Shanghai"
>
/etc/timezone
RUN
echo
"Asia/Shanghai"
>
/etc/timezone
ENTRYPOINT
["java","-Xms
300m","-Xmx600m","-jar","-Dspring.profiles.active=test","/app
.jar"]
ENTRYPOINT
["java","-Xms
1G","-Xmx1G","-jar","-Dspring.profiles.active=test","/bailuntec-cost-core-1.0-SNAPSHOT
.jar"]
EXPOSE
8082
EXPOSE
8082
cost/list/reset/resetInvoice
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/AppCostServiceImpl.java
View file @
5affe103
...
@@ -33,33 +33,47 @@ public class AppCostServiceImpl implements AppCostService {
...
@@ -33,33 +33,47 @@ public class AppCostServiceImpl implements AppCostService {
@Override
@Override
public
Page
<
CostDto
>
appCheckCostList
(
AppCheckCostListReq
req
)
{
public
Page
<
CostDto
>
appCheckCostList
(
AppCheckCostListReq
req
)
{
IPage
<
CostDomain
>
costDomainIPage
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
())
IPage
<
CostDomain
>
costDomainIPage
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
())
;
return
(
Page
<
CostDto
>)
costDao
.
appCheckCostList
(
costDomainIPage
,
req
).
convert
(
CostDomain:
:
castToDto
);
return
(
Page
<
CostDto
>)
costDao
.
appCheckCostList
(
costDomainIPage
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
}
@Override
@Override
public
void
appCostPass
(
AppCostPassReq
req
)
{
public
void
appCostPass
(
AppCostPassReq
req
)
{
Cost
State
costState
=
this
.
getCostState
(
req
.
getCostNo
());
Cost
Context
costContext
=
this
.
getCostState
(
req
.
getCostNo
(),
req
.
getOaUserId
());
cost
State
.
handle
();
cost
Context
.
handle
();
}
}
@Override
@Override
public
void
appCostReject
(
AppCostRejectReq
req
)
{
public
void
appCostReject
(
AppCostRejectReq
req
)
{
Cost
State
costState
=
this
.
getCostState
(
req
.
getCostNo
());
Cost
Context
costContext
=
this
.
getCostState
(
req
.
getCostNo
(),
req
.
getOaUserId
());
cost
State
.
refuse
(
req
.
getRejectReason
());
cost
Context
.
refuse
(
req
.
getRejectReason
());
}
}
private
Cost
State
getCostState
(
String
costNo
)
{
private
Cost
Context
getCostState
(
String
costNo
,
Integer
oaUserId
)
{
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costNo
);
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costNo
);
CostState
costState
;
CostContext
costContext
;
switch
(
costDomain
.
getCostStatus
())
{
switch
(
costDomain
.
getCostStatus
())
{
case
CostDomain
.
STATUS_DEPARTMENT_CHECK
:
case
CostDomain
.
STATUS_DEPARTMENT_CHECK
:
return
SpringContextUtil
.
getBean
(
DepartmentCheckState
.
class
);
costState
=
SpringContextUtil
.
getBean
(
DepartmentCheckState
.
class
);
costContext
=
new
CostContext
(
costNo
,
oaUserId
);
costContext
.
setCostState
(
costState
);
return
costContext
;
case
CostDomain
.
STATUS_FINANCIAL_CHECK
:
case
CostDomain
.
STATUS_FINANCIAL_CHECK
:
return
SpringContextUtil
.
getBean
(
FinancialCheckState
.
class
);
costState
=
SpringContextUtil
.
getBean
(
FinancialCheckState
.
class
);
costContext
=
new
CostContext
(
costNo
,
oaUserId
);
costContext
.
setCostState
(
costState
);
return
costContext
;
case
CostDomain
.
STATUS_HR_CHECK
:
case
CostDomain
.
STATUS_HR_CHECK
:
return
SpringContextUtil
.
getBean
(
HrCheckState
.
class
);
costState
=
SpringContextUtil
.
getBean
(
HrCheckState
.
class
);
costContext
=
new
CostContext
(
costNo
,
oaUserId
);
costContext
.
setCostState
(
costState
);
return
costContext
;
case
CostDomain
.
STATUS_FINAL_CHECK
:
case
CostDomain
.
STATUS_FINAL_CHECK
:
return
SpringContextUtil
.
getBean
(
FinalCheckState
.
class
);
costState
=
SpringContextUtil
.
getBean
(
FinalCheckState
.
class
);
costContext
=
new
CostContext
(
costNo
,
oaUserId
);
costContext
.
setCostState
(
costState
);
return
costContext
;
default
:
default
:
throw
new
BizRuntimeException
(
"invalid cost status"
);
throw
new
BizRuntimeException
(
"invalid cost status"
);
}
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/utils/CostFileUtil.java
View file @
5affe103
...
@@ -98,6 +98,7 @@ public class CostFileUtil {
...
@@ -98,6 +98,7 @@ public class CostFileUtil {
return
qiniuUpload
(
localFile
);
return
qiniuUpload
(
localFile
);
}
}
@SuppressWarnings
(
"all"
)
public
String
qiniuUpload
(
File
localFilePath
)
{
public
String
qiniuUpload
(
File
localFilePath
)
{
//1、构造一个带指定Zone对象的配置类
//1、构造一个带指定Zone对象的配置类
Configuration
cfg
=
new
Configuration
(
Zone
.
zone2
());
Configuration
cfg
=
new
Configuration
(
Zone
.
zone2
());
...
...
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