Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
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
TCM
tcm-system
Commits
527ff3ec
Commit
527ff3ec
authored
Oct 11, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册代码提交
parent
1147951b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
+28
-4
CompanyController.java
.../pangding/web/authority/controller/CompanyController.java
+8
-1
CompanyService.java
...va/com/pangding/web/authority/service/CompanyService.java
+1
-0
CompanyServiceImpl.java
...ngding/web/authority/service/impl/CompanyServiceImpl.java
+6
-0
FinanceServiceImpl.java
...ngding/web/authority/service/impl/FinanceServiceImpl.java
+2
-2
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+11
-1
No files found.
src/main/java/com/pangding/web/authority/controller/CompanyController.java
View file @
527ff3ec
...
...
@@ -4,6 +4,7 @@ package com.pangding.web.authority.controller;
import
com.pangding.web.authority.service.CompanyAgreementService
;
import
com.pangding.web.authority.service.CompanyMoneyService
;
import
com.pangding.web.authority.service.CompanyService
;
import
com.pangding.web.vo.system.pd.company.CompanyVo
;
import
com.pangding.web.vo.system.req.company.CompanyAgreementReqVo
;
import
com.pangding.web.vo.system.req.company.CompanyMoneyReqVo
;
import
com.pangding.web.vo.system.req.company.CompanyReqVo
;
...
...
@@ -87,6 +88,12 @@ public class CompanyController {
CheckerHelper
.
newInstance
().
notBlankCheck
(
"id"
,
req
.
getId
()).
checkException
();
return
ResponseResult
.
result
(
companyService
.
findCompanyInvitationReward
(
req
));
}
@RequestMapping
(
value
=
"/findAllCompany"
)
@ApiOperation
(
value
=
"查询所有公司"
,
notes
=
"查询所有公司"
)
public
ResponseResult
<
List
<
CompanyVo
>>
findAllCompany
(
@RequestBody
CompanyReqVo
req
){
CheckerHelper
.
newInstance
()
.
checkException
();
return
ResponseResult
.
result
(
companyService
.
findAllCompany
(
req
));
}
}
src/main/java/com/pangding/web/authority/service/CompanyService.java
View file @
527ff3ec
...
...
@@ -233,4 +233,5 @@ public interface CompanyService{
CompanyResVo
findCompanyInvitationReward
(
CompanyReqVo
req
);
List
<
CompanyVo
>
findAllCompany
(
CompanyReqVo
req
);
}
src/main/java/com/pangding/web/authority/service/impl/CompanyServiceImpl.java
View file @
527ff3ec
...
...
@@ -1584,4 +1584,10 @@ public class CompanyServiceImpl implements CompanyService {
}
return
companyResVo
;
}
@Override
public
List
<
CompanyVo
>
findAllCompany
(
CompanyReqVo
req
)
{
List
<
CompanyVo
>
list
=
companyDao
.
loadList
(
req
,
CompanyVo
.
class
);
return
list
;
}
}
src/main/java/com/pangding/web/authority/service/impl/FinanceServiceImpl.java
View file @
527ff3ec
...
...
@@ -214,7 +214,7 @@ public class FinanceServiceImpl implements FinanceService {
capitalFlowVo
.
setOrderId
(
StringHelper
.
getNewID
());
capitalFlowVo
.
setCategory
(
1
);
capitalFlowVo
.
setOrderFee
(
withdrawFee
+
lateFee
);
capitalFlowVo
.
setServiceCharge
(
lateFee
);
// todo...2021.10.9被注释
capitalFlowVo.setServiceCharge(lateFee);
capitalFlowVo
.
setActualMoney
(
req
.
getOrderMoney
()
-
capitalFlowVo
.
getOrderFee
());
capitalFlowVo
.
setTime
(
DateHelper
.
getNow
());
capitalFlowVo
.
setStatus
(
0
);
...
...
@@ -381,7 +381,7 @@ public class FinanceServiceImpl implements FinanceService {
updateCompanyMoneyReqVo
.
setCompanyId
(
req
.
getCompanyId
());
updateCompanyMoneyReqVo
.
setFrozenMoney
(-
capitalFlowVo
.
getOrderMoney
());
updateCompanyMoneyReqVo
.
setNewWithdrawTotalCash
(
0
d
);
updateCompanyMoneyReqVo
.
setLateFee
(-
capitalFlowVo
.
getServiceCharge
());
// todo...2021.10.9被注释
updateCompanyMoneyReqVo.setLateFee(-capitalFlowVo.getServiceCharge());
companyExtendDao
.
updateCompanyMoney
(
updateCompanyMoneyReqVo
);
CompanyResVo
companyResVo
=
companyDao
.
load
(
capitalFlowVo
.
getCompanyId
(),
CompanyResVo
.
class
);
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
527ff3ec
...
...
@@ -3,6 +3,7 @@ package com.pangding.web.authority.service.impl;
import
com.pangding.web.authority.dao.*
;
import
com.pangding.web.authority.feign.PayFeign
;
import
com.pangding.web.authority.feign.StoreFeign
;
import
com.pangding.web.authority.mq.CompanyConsumer
;
import
com.pangding.web.authority.service.*
;
import
com.pangding.web.authority.util.*
;
import
com.pangding.web.authority.vo.cloudvo.LoginResVo
;
...
...
@@ -11,6 +12,7 @@ import com.pangding.web.authority.vo.resvo.AuthorityListByLevelResVo;
import
com.pangding.web.authority.vo.resvo.LoginCompanyResVo
;
import
com.pangding.web.authority.vo.resvo.SaveCompanyResVo
;
import
com.pangding.web.constant.CompanyConstant
;
import
com.pangding.web.mq.CompanyProducer
;
import
com.pangding.web.util.RSAUtils
;
import
com.pangding.web.vo.product.pd.merchant.MerchantVo
;
import
com.pangding.web.vo.system.pd.LoginTokenVo
;
...
...
@@ -76,6 +78,8 @@ public class RegisterServiceImpl implements RegisterService {
private
TokenService
tokenService
;
@Autowired
private
CompanyService
companyService
;
@Autowired
private
CompanyProducer
companyProducer
;
/**
...
...
@@ -125,7 +129,10 @@ public class RegisterServiceImpl implements RegisterService {
throw
new
CodeException
(
"注册编码错误"
);
}
// 判断邀请公司状态
if
(
0
==
companyExtendVo
.
getInvitationStatus
()
||
1
!=
companyExtendVo
.
getExamineStatus
()){
if
(
StringHelper
.
isEmpty
(
companyExtendVo
.
getInvitationStatus
())){
throw
new
CodeException
(
"用户无邀请状态"
);
}
if
(
0
==
companyExtendVo
.
getInvitationStatus
()
||
1
!=
companyExtendVo
.
getExamineStatus
()){
throw
new
CodeException
(
"用户邀请状态错误:"
+
companyExtendVo
.
getInvitationStatus
()
+
",状态错误:"
+
companyExtendVo
.
getExamineStatus
());
}
// 判断该账户已经邀请的人数
...
...
@@ -242,7 +249,10 @@ public class RegisterServiceImpl implements RegisterService {
req
.
setId
(
reqVo
.
getMerchantId
());
}
SaveCompanyResVo
resVo
=
new
SaveCompanyResVo
();
ResponseResult
<
MerchantVo
>
result1
=
storeFeign
.
merchantCreate
(
req
);
// companyProducer.companyMerchantSave(req);
if
(
result1
.
getCode
().
equals
(
"00"
))
{
String
merchantId
=
result1
.
getData
().
getId
();
resVo
.
setMerchantId
(
merchantId
);
...
...
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