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
89e8aa70
Commit
89e8aa70
authored
May 25, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加功能:审核通过增加审核意见
parent
08525780
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
33 additions
and
29 deletions
+33
-29
CostApiController.java
...m/blt/other/module/cost/controller/CostApiController.java
+1
-1
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+10
-9
AppCostServiceImpl.java
...lt/other/module/cost/service/impl/AppCostServiceImpl.java
+1
-1
CostSubscribe.java
...lt/other/module/cost/service/impl/cost/CostSubscribe.java
+1
-1
CostContext.java
...other/module/cost/service/impl/costcheck/CostContext.java
+2
-2
CostState.java
...t/other/module/cost/service/impl/costcheck/CostState.java
+1
-1
DepartmentCheckState.java
...ule/cost/service/impl/costcheck/DepartmentCheckState.java
+3
-2
FactoryCheckState.java
...module/cost/service/impl/costcheck/FactoryCheckState.java
+1
-1
FinalCheckState.java
...r/module/cost/service/impl/costcheck/FinalCheckState.java
+3
-2
FinancialCheckState.java
...dule/cost/service/impl/costcheck/FinancialCheckState.java
+3
-2
GeneralManagerCheckState.java
...cost/service/impl/costcheck/GeneralManagerCheckState.java
+1
-1
HrCheckState.java
...ther/module/cost/service/impl/costcheck/HrCheckState.java
+1
-1
PayedState.java
.../other/module/cost/service/impl/costcheck/PayedState.java
+1
-1
RefuseState.java
...other/module/cost/service/impl/costcheck/RefuseState.java
+1
-1
UnPayState.java
.../other/module/cost/service/impl/costcheck/UnPayState.java
+1
-1
UnSubmitState.java
...her/module/cost/service/impl/costcheck/UnSubmitState.java
+1
-1
CostLogMapper.xml
cost-service/src/main/resources/mapper/CostLogMapper.xml
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostApiController.java
View file @
89e8aa70
...
@@ -100,7 +100,7 @@ public class CostApiController implements CostApi {
...
@@ -100,7 +100,7 @@ public class CostApiController implements CostApi {
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
costContext
.
setCostState
(
unSubmitState
);
costContext
.
setCostState
(
unSubmitState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
successMsg
(
"success"
);
return
CostResult
.
successMsg
(
"success"
);
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
89e8aa70
...
@@ -155,7 +155,7 @@ public class CostController {
...
@@ -155,7 +155,7 @@ public class CostController {
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
costContext
.
setCostState
(
unSubmitState
);
costContext
.
setCostState
(
unSubmitState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
UpdateCostResp
resp
=
new
UpdateCostResp
();
UpdateCostResp
resp
=
new
UpdateCostResp
();
...
@@ -181,7 +181,7 @@ public class CostController {
...
@@ -181,7 +181,7 @@ public class CostController {
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
costContext
.
setCostState
(
unSubmitState
);
costContext
.
setCostState
(
unSubmitState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
}
}
...
@@ -242,7 +242,7 @@ public class CostController {
...
@@ -242,7 +242,7 @@ public class CostController {
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
departmentCheckState
);
costContext
.
setCostState
(
departmentCheckState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
@@ -261,10 +261,11 @@ public class CostController {
...
@@ -261,10 +261,11 @@ public class CostController {
@GetMapping
(
"/check/financialCheck"
)
@GetMapping
(
"/check/financialCheck"
)
@ApiOperation
(
"财务审核通过"
)
@ApiOperation
(
"财务审核通过"
)
public
CostResult
<
Void
>
financialCheck
(
@RequestParam
String
costNo
,
public
CostResult
<
Void
>
financialCheck
(
@RequestParam
String
costNo
,
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
,
@RequestParam
String
reason
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
financialCheckState
);
costContext
.
setCostState
(
financialCheckState
);
costContext
.
handle
();
costContext
.
handle
(
reason
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
@@ -285,7 +286,7 @@ public class CostController {
...
@@ -285,7 +286,7 @@ public class CostController {
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
finalCheckState
);
costContext
.
setCostState
(
finalCheckState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
@@ -306,7 +307,7 @@ public class CostController {
...
@@ -306,7 +307,7 @@ public class CostController {
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
generalManagerCheckState
);
costContext
.
setCostState
(
generalManagerCheckState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
@@ -327,7 +328,7 @@ public class CostController {
...
@@ -327,7 +328,7 @@ public class CostController {
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
factoryCheckState
);
costContext
.
setCostState
(
factoryCheckState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
@@ -348,7 +349,7 @@ public class CostController {
...
@@ -348,7 +349,7 @@ public class CostController {
@RequestParam
Integer
userid
)
{
@RequestParam
Integer
userid
)
{
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
hrCheckState
);
costContext
.
setCostState
(
hrCheckState
);
costContext
.
handle
();
costContext
.
handle
(
null
);
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/AppCostServiceImpl.java
View file @
89e8aa70
...
@@ -52,7 +52,7 @@ public class AppCostServiceImpl implements AppCostService {
...
@@ -52,7 +52,7 @@ public class AppCostServiceImpl implements AppCostService {
@Override
@Override
public
void
appCostPass
(
AppCostPassReq
req
)
{
public
void
appCostPass
(
AppCostPassReq
req
)
{
CostContext
costContext
=
this
.
getCostState
(
req
.
getCostNo
(),
req
.
getOaUserId
());
CostContext
costContext
=
this
.
getCostState
(
req
.
getCostNo
(),
req
.
getOaUserId
());
costContext
.
handle
();
costContext
.
handle
(
null
);
}
}
@Override
@Override
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/CostSubscribe.java
View file @
89e8aa70
...
@@ -19,6 +19,6 @@ public class CostSubscribe {
...
@@ -19,6 +19,6 @@ public class CostSubscribe {
public
void
subscribe
(
CostContext
costContext
)
{
public
void
subscribe
(
CostContext
costContext
)
{
costContext
.
handle
();
costContext
.
handle
(
null
);
}
}
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/CostContext.java
View file @
89e8aa70
...
@@ -35,8 +35,8 @@ public class CostContext {
...
@@ -35,8 +35,8 @@ public class CostContext {
}
}
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
costState
.
handle
();
costState
.
handle
(
reason
);
}
}
public
void
refuse
(
String
rejectReason
)
{
public
void
refuse
(
String
rejectReason
)
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/CostState.java
View file @
89e8aa70
...
@@ -85,7 +85,7 @@ public abstract class CostState {
...
@@ -85,7 +85,7 @@ public abstract class CostState {
}
}
public
abstract
void
handle
();
public
abstract
void
handle
(
String
reason
);
public
abstract
void
refuse
(
String
rejectReason
);
public
abstract
void
refuse
(
String
rejectReason
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/DepartmentCheckState.java
View file @
89e8aa70
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
import
com.bailuntec.common.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.database.model.CostLogDomain
;
import
com.blt.other.database.model.CostLogDomain
;
...
@@ -58,7 +59,7 @@ public class DepartmentCheckState extends CostState {
...
@@ -58,7 +59,7 @@ public class DepartmentCheckState extends CostState {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
...
@@ -136,7 +137,7 @@ public class DepartmentCheckState extends CostState {
...
@@ -136,7 +137,7 @@ public class DepartmentCheckState extends CostState {
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_HR_CHECK
);
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_HR_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
costDao
.
updateById
(
costDomain
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"部门审核通过"
,
CostLogDomain
.
DEPARTMENT_MANUAL_PASS
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"部门审核通过"
+
(
StringUtils
.
isNotBlank
(
reason
)
?
(
":"
+
reason
)
:
""
)
,
CostLogDomain
.
DEPARTMENT_MANUAL_PASS
);
//审批历史
//审批历史
approvalHistoryService
.
save
(
approvalHistoryDomain
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
nextState
(
hrCheckState
);
nextState
(
hrCheckState
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FactoryCheckState.java
View file @
89e8aa70
...
@@ -56,7 +56,7 @@ public class FactoryCheckState extends CostState {
...
@@ -56,7 +56,7 @@ public class FactoryCheckState extends CostState {
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
//CostTemplate costTemplate = costTemplateService.queryDetail(costDomain.getCostTemplateId());
//CostTemplate costTemplate = costTemplateService.queryDetail(costDomain.getCostTemplateId());
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FinalCheckState.java
View file @
89e8aa70
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
import
com.bailuntec.common.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.blt.other.common.config.property.WxWebHook
;
import
com.blt.other.common.config.property.WxWebHook
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.common.exception.BizRuntimeException
;
...
@@ -101,7 +102,7 @@ public class FinalCheckState extends CostState {
...
@@ -101,7 +102,7 @@ public class FinalCheckState extends CostState {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
...
@@ -159,7 +160,7 @@ public class FinalCheckState extends CostState {
...
@@ -159,7 +160,7 @@ public class FinalCheckState extends CostState {
costDao
.
updateById
(
costDomain
);
costDao
.
updateById
(
costDomain
);
log
.
info
(
"费用单:{}最终审核人工审核通过"
,
costDomain
.
getCostNo
());
log
.
info
(
"费用单:{}最终审核人工审核通过"
,
costDomain
.
getCostNo
());
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"最终审核通过"
,
CostLogDomain
.
FINAL_MANUAL_PASS
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"最终审核通过"
+
(
StringUtils
.
isNotBlank
(
reason
)
?
(
":"
+
reason
)
:
""
)
,
CostLogDomain
.
FINAL_MANUAL_PASS
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FinancialCheckState.java
View file @
89e8aa70
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
.
costcheck
;
import
com.bailuntec.common.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.blt.other.common.config.property.WxWebHook
;
import
com.blt.other.common.config.property.WxWebHook
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.common.exception.BizRuntimeException
;
...
@@ -83,7 +84,7 @@ public class FinancialCheckState extends CostState {
...
@@ -83,7 +84,7 @@ public class FinancialCheckState extends CostState {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
...
@@ -127,7 +128,7 @@ public class FinancialCheckState extends CostState {
...
@@ -127,7 +128,7 @@ public class FinancialCheckState extends CostState {
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
costDao
.
updateById
(
costDomain
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"财务审核通过"
,
CostLogDomain
.
FINANCIAL_MANUAL_PASS
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"财务审核通过"
+
(
StringUtils
.
isNotBlank
(
reason
)
?
(
":"
+
reason
)
:
""
)
,
CostLogDomain
.
FINANCIAL_MANUAL_PASS
);
sendWxMsg
(
costDomain
,
currentUserId
);
sendWxMsg
(
costDomain
,
currentUserId
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
//流转状态
//流转状态
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/GeneralManagerCheckState.java
View file @
89e8aa70
...
@@ -53,7 +53,7 @@ public class GeneralManagerCheckState extends CostState {
...
@@ -53,7 +53,7 @@ public class GeneralManagerCheckState extends CostState {
static
Map
<
LocalDate
,
Integer
>
APPROVE_TIMES
=
new
ConcurrentHashMap
<>();
static
Map
<
LocalDate
,
Integer
>
APPROVE_TIMES
=
new
ConcurrentHashMap
<>();
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
//CostTemplate costTemplate = costTemplateService.queryDetail(costDomain.getCostTemplateId());
//CostTemplate costTemplate = costTemplateService.queryDetail(costDomain.getCostTemplateId());
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/HrCheckState.java
View file @
89e8aa70
...
@@ -48,7 +48,7 @@ public class HrCheckState extends CostState {
...
@@ -48,7 +48,7 @@ public class HrCheckState extends CostState {
ApprovalHistoryService
approvalHistoryService
;
ApprovalHistoryService
approvalHistoryService
;
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
Integer
currentUserId
=
costContext
.
currentUserId
;
Integer
currentUserId
=
costContext
.
currentUserId
;
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
CostTemplate
costTemplate
=
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
());
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/PayedState.java
View file @
89e8aa70
...
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
...
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
public
class
PayedState
extends
CostState
{
public
class
PayedState
extends
CostState
{
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/RefuseState.java
View file @
89e8aa70
...
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
...
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
public
class
RefuseState
extends
CostState
{
public
class
RefuseState
extends
CostState
{
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
throw
new
BizRuntimeException
(
"unsupported operate "
);
throw
new
BizRuntimeException
(
"unsupported operate "
);
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/UnPayState.java
View file @
89e8aa70
...
@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
...
@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
public
class
UnPayState
extends
CostState
{
public
class
UnPayState
extends
CostState
{
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/UnSubmitState.java
View file @
89e8aa70
...
@@ -27,7 +27,7 @@ public class UnSubmitState extends CostState {
...
@@ -27,7 +27,7 @@ public class UnSubmitState extends CostState {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
handle
()
{
public
void
handle
(
String
reason
)
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
//校验费用单状态 和 当前处理用户
//校验费用单状态 和 当前处理用户
...
...
cost-service/src/main/resources/mapper/CostLogMapper.xml
View file @
89e8aa70
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
select *
select *
from cost_log
from cost_log
where cost_no = #{costNo}
where cost_no = #{costNo}
and type in (2, 3)
and type in (2, 3
, 5
)
order by update_time desc
order by update_time desc
limit 1;
limit 1;
</select>
</select>
...
...
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