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
ab90cce4
Commit
ab90cce4
authored
Jan 25, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
fc7610c1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
33 deletions
+34
-33
CostPlanDomain.java
...ain/java/com/blt/other/database/model/CostPlanDomain.java
+7
-4
CostPlanTempDomain.java
...java/com/blt/other/database/model/CostPlanTempDomain.java
+4
-5
AccountingSubjectController.java
...r/module/cost/controller/AccountingSubjectController.java
+0
-1
CostApiController.java
...m/blt/other/module/cost/controller/CostApiController.java
+0
-3
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+0
-5
CostDetailDomain.java
...ava/com/blt/other/module/cost/model/CostDetailDomain.java
+3
-3
CostDomain.java
...main/java/com/blt/other/module/cost/model/CostDomain.java
+3
-4
AbstractCostPlanService.java
...e/cost/service/impl/costplan/AbstractCostPlanService.java
+10
-1
CostPlanNewLend1ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
+0
-6
CostPlanNewReceiptServiceImpl.java
.../service/impl/costplan/CostPlanNewReceiptServiceImpl.java
+6
-0
application-test.yml
cost-service/src/main/resources/application-test.yml
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/database/model/CostPlanDomain.java
View file @
ab90cce4
...
...
@@ -43,20 +43,24 @@ public class CostPlanDomain implements Serializable {
@ApiModelProperty
(
"类型编号"
)
private
Integer
typeId
;
@TableField
(
exist
=
false
)
@Deprecated
@ApiModelProperty
(
"类型编号"
)
private
String
typeNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
private
Integer
accountingSubjectId
;
@Deprecated
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectName
;
...
...
@@ -65,7 +69,6 @@ public class CostPlanDomain implements Serializable {
private
Integer
createUserid
;
@ApiModelProperty
(
"创建人编号"
)
private
String
createUsercode
;
@ApiModelProperty
(
"创建人名称"
)
private
String
createUsername
;
...
...
cost-service/src/main/java/com/blt/other/database/model/CostPlanTempDomain.java
View file @
ab90cce4
...
...
@@ -40,19 +40,18 @@ public class CostPlanTempDomain {
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"类型编号"
)
private
String
typeNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
// @TableField(exist = false)
// private CostTypeDomain costType;
@TableField
(
exist
=
false
)
// @TableField(exist = false)
private
Integer
accountingSubjectId
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectName
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/AccountingSubjectController.java
View file @
ab90cce4
...
...
@@ -40,7 +40,6 @@ public class AccountingSubjectController {
return
CostResult
.
success
();
}
@ApiOperation
(
"更新会计一级科目"
)
@PostMapping
(
"/modify"
)
public
CostResult
<
Void
>
modify
(
@RequestBody
AccountingSubjectModifyReq
req
)
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostApiController.java
View file @
ab90cce4
...
...
@@ -26,13 +26,10 @@ import java.util.stream.Collectors;
@RestController
@RequestMapping
(
"/cost/api"
)
public
class
CostApiController
implements
CostApi
{
@Resource
private
CostApiService
costApiService
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
CostApiController
.
class
);
@LoginIgnore
@Override
@ApiOperation
(
"接受工资单,自动生成付款费用单到财务审核"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
ab90cce4
...
...
@@ -103,7 +103,6 @@ public class CostController {
return
resp
;
}
@ApiOperation
(
"修改费用单信息"
)
@PostMapping
({
"reset/resetFile"
,
"reset/resetNoFile"
})
public
UpdateCostResp
resetFile
(
@RequestBody
CostDomain
costDomain
)
{
...
...
@@ -114,7 +113,6 @@ public class CostController {
return
resp
;
}
@ApiOperation
(
"提交费用单"
)
@PostMapping
(
"submitAudit"
)
public
UpdateCostResp
submitAudit
(
@RequestParam
String
costNo
)
{
...
...
@@ -135,7 +133,6 @@ public class CostController {
return
resp
;
}
@ApiOperation
(
"根据费用计划查询"
)
@PostMapping
(
"/getCostByCostPlanNo"
)
public
GetCostByCostPlanNoResp
getCostByCostPlanNo
(
@RequestParam
String
costPlanNo
)
{
...
...
@@ -342,7 +339,6 @@ public class CostController {
return
CostResult
.
success
();
}
@ApiOperation
(
"mock财务付款回调拒绝"
)
@GetMapping
(
value
=
{
"check/cashierCallbackReject/{costNo}"
})
public
CostResult
<
Void
>
cashierCallbackReject
(
@PathVariable
String
costNo
)
{
...
...
@@ -383,7 +379,6 @@ public class CostController {
return
CostResult
.
success
();
}
@ApiOperation
(
"修改发票"
)
@PostMapping
(
value
=
"/check/lend/invoice"
)
public
UpdateCostResp
invoice
(
@RequestParam
String
costNo
,
...
...
cost-service/src/main/java/com/blt/other/module/cost/model/CostDetailDomain.java
View file @
ab90cce4
...
...
@@ -28,19 +28,19 @@ public class CostDetailDomain {
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"类型编号"
)
private
String
typeNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"描述"
)
private
String
description
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
private
Integer
accountingSubjectId
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectName
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/model/CostDomain.java
View file @
ab90cce4
...
...
@@ -85,18 +85,17 @@ public class CostDomain implements Serializable {
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"描述"
)
private
String
description
;
@TableField
(
exist
=
false
)
// @TableField(exist = false)
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
private
Integer
accountingSubjectId
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@TableField
(
exist
=
false
)
//
@TableField(exist = false)
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectName
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/AbstractCostPlanService.java
View file @
ab90cce4
...
...
@@ -10,6 +10,7 @@ import com.blt.other.module.cost.dao.*;
import
com.blt.other.module.cost.dto.request.GetAllCostPlanReq
;
import
com.blt.other.module.cost.dto.response.GetAllCostPlanResp
;
import
com.blt.other.module.cost.dto.response.GetCostPlanResp
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.CostDetailDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostTemplateBaseCol
;
...
...
@@ -64,6 +65,8 @@ public abstract class AbstractCostPlanService implements CostPlanService {
CostDetailDao
costDetailDao
;
@Resource
CostService
costService
;
@Resource
AccountingSubjectMapper
accountingSubjectMapper
;
void
check
(
CostPlanDomain
planDomain
)
{
...
...
@@ -119,11 +122,17 @@ public abstract class AbstractCostPlanService implements CostPlanService {
if
(
StringUtils
.
isNotEmpty
(
costPlanDomain
.
getTypeNo
()))
{
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNo
(
costPlanDomain
.
getTypeNo
());
costPlanDomain
.
setAccountingSubjectId
(
costTypeDomain
.
getAccountingSubjectId
());
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectById
(
costTypeDomain
.
getAccountingSubjectId
());
costPlanDomain
.
setTypeId
(
costTypeDomain
.
getId
());
costPlanDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costPlanDomain
.
setAccountingSubjectId
(
accountingSubject
.
getId
());
costPlanDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
}
}
@Override
public
String
createNo
()
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
View file @
ab90cce4
...
...
@@ -38,12 +38,7 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
//init 借还单余额
planDomain
.
setLendBalance
(
BigDecimal
.
ZERO
);
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNo
(
planDomain
.
getTypeNo
());
planDomain
.
setTypeId
(
costTypeDomain
.
getId
());
planDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
this
.
check
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
...
...
@@ -54,7 +49,6 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNo
(
planDomain
.
getTypeNo
());
planDomain
.
setTypeId
(
costTypeDomain
.
getId
());
planDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costPlanDao
.
update
(
planDomain
,
new
LambdaQueryWrapper
<
CostPlanDomain
>()
.
eq
(
CostPlanDomain:
:
getCostPlanNo
,
planDomain
.
getCostPlanNo
()));
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewReceiptServiceImpl.java
View file @
ab90cce4
...
...
@@ -5,6 +5,7 @@ import com.blt.other.common.exception.BizRuntimeException;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.database.model.CostPlanDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostPlanService
;
import
org.springframework.stereotype.Service
;
...
...
@@ -41,11 +42,16 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
@Override
public
void
update
(
CostPlanDomain
planDomain
)
{
this
.
doSaveFinanceRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNo
(
planDomain
.
getTypeNo
());
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectById
(
costTypeDomain
.
getAccountingSubjectId
());
planDomain
.
setTypeId
(
costTypeDomain
.
getId
());
planDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
planDomain
.
setAccountingSubjectId
(
accountingSubject
.
getId
());
planDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
costPlanDao
.
update
(
planDomain
,
new
LambdaQueryWrapper
<
CostPlanDomain
>()
.
eq
(
CostPlanDomain:
:
getCostPlanNo
,
planDomain
.
getCostPlanNo
()));
...
...
cost-service/src/main/resources/application-test.yml
View file @
ab90cce4
...
...
@@ -2,7 +2,7 @@ spring:
# 数据源配置
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://cdb-aanqm573.gz.tencentcdb.com:10120/bailun_other?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
url
:
jdbc:mysql://cdb-aanqm573.gz.tencentcdb.com:10120/bailun_other
_pre
?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
username
:
root
password
:
'
Aarob2020#'
hikari
:
...
...
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