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
99255415
Commit
99255415
authored
Jan 15, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# fee
parent
ab1b6186
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
13 deletions
+23
-13
CostDetailDomain.java
...ava/com/blt/other/module/cost/model/CostDetailDomain.java
+5
-0
CostDomain.java
...main/java/com/blt/other/module/cost/model/CostDomain.java
+6
-0
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+6
-5
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+0
-2
AbstractCostPlanService.java
...e/cost/service/impl/costplan/AbstractCostPlanService.java
+2
-4
CostPlanNewLend2ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
+3
-2
CostPlanNewPayServiceImpl.java
...cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
+1
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/model/CostDetailDomain.java
View file @
99255415
...
...
@@ -20,10 +20,15 @@ public class CostDetailDomain {
private
String
costNo
;
@ApiModelProperty
(
"类型id"
)
private
Integer
typeId
;
@ApiModelProperty
(
"类型编号"
)
private
String
typeNo
;
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
@ApiModelProperty
(
"会计科目id"
)
private
Integer
accountingSubjectId
;
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@ApiModelProperty
(
"会计一级科目"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/model/CostDomain.java
View file @
99255415
...
...
@@ -68,10 +68,16 @@ public class CostDomain implements Serializable {
@ApiModelProperty
(
"主体名称"
)
private
String
companyName
;
@ApiModelProperty
(
"类型id"
)
private
Integer
typeId
;
@ApiModelProperty
(
"类型编号"
)
private
String
typeNo
;
@ApiModelProperty
(
"类型标题"
)
private
String
typeName
;
@ApiModelProperty
(
"会计科目id"
)
private
Integer
accountingSubjectId
;
@ApiModelProperty
(
"会计一级科目"
)
private
String
accountingSubjectNo
;
@ApiModelProperty
(
"会计一级科目"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
99255415
...
...
@@ -60,15 +60,15 @@ public class CostApiServiceImpl implements CostApiService {
CostDomain
costDomain
=
new
CostDomain
();
String
costNo
=
CostUtils
.
getIdNum
();
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setCostForm
(
costForm
);
// 付款费用单 1付款 2收款 3借支/借还
costDomain
.
setCostStatus
(
0
);
// 0 待提交 1待审核 2待出纳付款 3被驳回 4已支付 5已作废
// 付款费用单 1付款 2收款 3借支/借还
costDomain
.
setCostForm
(
costForm
);
// 0 待提交 1待审核 2待出纳付款 3被驳回 4已支付 5已作废
costDomain
.
setCostStatus
(
0
);
costDomain
.
setCostRemark
(
logisticsCostDto
.
getCostRemark
()
+
"【WMS系统推送】"
);
costDomain
.
setCostReason
(
logisticsCostDto
.
getCostReason
());
costDomain
.
setTypeNo
(
"CTN1809180519188"
);
costDomain
.
setTypeName
(
"销售费用/物流费"
);
// costDomain.setKindNo("CTK1809181719182");
// costDomain.setKindName("物流费");
// costDomain.setSubjectCode("660104");
costDomain
.
setCompanyName
(
"香港百伦科技有限公司"
);
costDomain
.
setCompanyNo
(
"COM1806191800013"
);
costDomain
.
setAmount
(
logisticsCostDto
.
getAmount
());
...
...
@@ -180,6 +180,7 @@ public class CostApiServiceImpl implements CostApiService {
//类型信息
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNameAndType
(
"工资"
,
CostTypeDomain
.
feeType
);
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectByNo
(
costTypeDomain
.
getAccountingSubjectNo
());
costDomain
.
setTypeNo
(
costTypeDomain
.
getTypeName
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
99255415
...
...
@@ -224,8 +224,6 @@ public abstract class AbstractCostService implements CostService {
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costNo
);
costDomain
.
setAmount
(
amount
);
// costDomain.setKindNo(costDetailDomains.get(0).getKindNo());
// costDomain.setKindName(costDetailDomains.get(0).getKindName());
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costDomain
.
getDic
(),
"CNY"
);
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/AbstractCostPlanService.java
View file @
99255415
...
...
@@ -77,8 +77,8 @@ public abstract class AbstractCostPlanService implements CostPlanService {
* </p>>
*/
public
void
doSaveFinanceRecord
(
CostPlanDomain
planDomain
)
{
UserCostFinansysDomain
finan
sy
RecordByCostDomain
=
userCostFinansysService
.
createFinanceRecordByCostPlanDomain
(
planDomain
);
userCostFinansysService
.
saveFinancesRecord
(
finan
sy
RecordByCostDomain
);
UserCostFinansysDomain
finan
ce
RecordByCostDomain
=
userCostFinansysService
.
createFinanceRecordByCostPlanDomain
(
planDomain
);
userCostFinansysService
.
saveFinancesRecord
(
finan
ce
RecordByCostDomain
);
}
@Resource
...
...
@@ -178,8 +178,6 @@ public abstract class AbstractCostPlanService implements CostPlanService {
return
result
;
}
@Resource
OaUserMapper
oaUserMapper
;
protected
CostDomain
planToCost
(
String
costPlanNo
)
{
CostDomain
costDomain
=
new
CostDomain
();
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
View file @
99255415
...
...
@@ -3,11 +3,11 @@ package com.blt.other.module.cost.service.impl.costplan;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.CostPlanTempDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostPlanService
;
import
com.blt.other.database.model.CostPlanDomain
;
import
com.blt.other.database.model.CostPlanTempDomain
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
...
...
@@ -29,6 +29,7 @@ import java.time.LocalDateTime;
@Service
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
CostPlanNewLend2ServiceImpl
extends
AbstractCostPlanService
implements
CostPlanService
{
@Override
public
void
save
(
CostPlanDomain
planDomain
)
{
this
.
doSaveFinanceRecord
(
planDomain
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
View file @
99255415
...
...
@@ -104,6 +104,7 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
}
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setTypeNo
(
typeNo
);
costDomain
.
setTypeId
(
costDetailDomains
.
get
(
0
).
getTypeId
())
costDomain
.
setTypeName
(
costDetailDomains
.
get
(
0
).
getTypeName
());
costDomain
.
setAccountingSubjectNo
(
costDetailDomains
.
get
(
0
).
getAccountingSubjectNo
());
costDomain
.
setAccountingSubjectName
(
costDetailDomains
.
get
(
0
).
getAccountingSubjectName
());
...
...
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