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
86729aea
Commit
86729aea
authored
Sep 25, 2021
by
tangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册判断银行卡
parent
bec3b9fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
24 deletions
+37
-24
CompanyDao.java
src/main/java/com/pangding/web/authority/dao/CompanyDao.java
+4
-0
CompanyDaoImpl.java
...a/com/pangding/web/authority/dao/impl/CompanyDaoImpl.java
+9
-0
CompanyServiceImpl.java
...ngding/web/authority/service/impl/CompanyServiceImpl.java
+21
-19
FinanceServiceImpl.java
...ngding/web/authority/service/impl/FinanceServiceImpl.java
+0
-2
UserTask.java
src/main/java/com/pangding/web/authority/util/UserTask.java
+3
-3
No files found.
src/main/java/com/pangding/web/authority/dao/CompanyDao.java
View file @
86729aea
...
...
@@ -7,6 +7,8 @@ import com.pangding.web.vo.system.res.company.CompanyResVo;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
java.util.List
;
/**
* @Author zhangjinyao
* @create 2019/5/13 14:24
...
...
@@ -20,6 +22,8 @@ public interface CompanyDao extends BaseDao {
*/
PageSizeData
<
CompanyResVo
>
getCompanyList
(
ListCompanyReqVo
reqVo
);
List
<
CompanyResVo
>
findCompanyList
(
CompanyReqVo
req
);
/**
* 找到公司详情
* @param req
...
...
src/main/java/com/pangding/web/authority/dao/impl/CompanyDaoImpl.java
View file @
86729aea
...
...
@@ -10,6 +10,8 @@ import com.yanzuoguang.dao.impl.BaseDaoImpl;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
/**
* @Author zhangjinyao
* @create 2019/5/13 14:25
...
...
@@ -43,6 +45,8 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao {
.
add
(
"contactName"
,
"and contact_name LIKE concat('%', ?,'%') "
)
.
add
(
"contactPhone"
,
"and contact_phone = ? "
)
.
add
(
"status"
,
"and status = ? "
)
.
add
(
"withdrawRule"
,
"and withdraw_rule = ? "
)
.
add
(
"serviceChargeStatus"
,
"and service_charge_status = ? "
)
.
add
(
"startDate"
,
"and create_time >= ? "
)
.
add
(
"endDate"
,
"and create_time <= ? "
);
...
...
@@ -72,6 +76,11 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao {
return
this
.
queryPage
(
CompanyResVo
.
class
,
reqVo
,
QUERY_COMPANY
,
reqVo
);
}
@Override
public
List
<
CompanyResVo
>
findCompanyList
(
CompanyReqVo
req
)
{
return
this
.
query
(
CompanyResVo
.
class
,
QUERY_COMPANY
,
req
);
}
@Override
public
CompanyResVo
findCompany
(
CompanyReqVo
req
)
{
return
this
.
queryFirst
(
CompanyResVo
.
class
,
QUERY_COMPANY
,
req
);
...
...
src/main/java/com/pangding/web/authority/service/impl/CompanyServiceImpl.java
View file @
86729aea
...
...
@@ -1369,25 +1369,27 @@ public class CompanyServiceImpl implements CompanyService {
ObjectHelper
.
writeWithFrom
(
companyResVo
,
saveCompanyReqVo
.
getCompanyVo
());
companyDao
.
update
(
companyResVo
);
/*保存或更新商户表*/
MerchantCreateReqVo
merchantCreateReqVo
=
new
MerchantCreateReqVo
();
ObjectHelper
.
writeWithFrom
(
merchantCreateReqVo
,
req
.
getMerchantVo
());
merchantCreateReqVo
.
setAddress
(
req
.
getCompanyVo
().
getAddress
());
merchantCreateReqVo
.
setType
(
req
.
getCompanyVo
().
getCompanyAttribute
());
merchantCreateReqVo
.
setProductCompanyId
(
companyResVo
.
getId
());
merchantCreateReqVo
.
setProductCompanyName
(
req
.
getCompanyVo
().
getCompanyName
());
merchantCreateReqVo
.
setUserId
(
req
.
getUserVo
().
getId
());
merchantCreateReqVo
.
setUsername
(
req
.
getUserVo
().
getAccount
());
merchantCreateReqVo
.
setReqId
(
StringHelper
.
getNewID
());
merchantCreateReqVo
.
setCreateTime
(
DateHelper
.
getNow
());
if
(!
StringHelper
.
isEmpty
(
merchantCreateReqVo
.
getId
()))
{
merchantCreateReqVo
.
setId
(
StringHelper
.
getNewID
());
}
ResponseResult
<
MerchantVo
>
merchantResponseResult
=
storeFeign
.
merchantCreate
(
merchantCreateReqVo
);
if
(
merchantResponseResult
.
getCode
().
equals
(
"00"
))
{
MerchantVo
merchantVo
=
merchantResponseResult
.
getData
();
saveCompanyReqVo
.
setMerchantVo
(
merchantVo
);
if
(
PangdConstant
.
ATTRIBUTE_TAXI
!=
companyResVo
.
getCompanyAttribute
()){
/*保存或更新商户表*/
MerchantCreateReqVo
merchantCreateReqVo
=
new
MerchantCreateReqVo
();
ObjectHelper
.
writeWithFrom
(
merchantCreateReqVo
,
req
.
getMerchantVo
());
merchantCreateReqVo
.
setAddress
(
req
.
getCompanyVo
().
getAddress
());
merchantCreateReqVo
.
setType
(
req
.
getCompanyVo
().
getCompanyAttribute
());
merchantCreateReqVo
.
setProductCompanyId
(
companyResVo
.
getId
());
merchantCreateReqVo
.
setProductCompanyName
(
req
.
getCompanyVo
().
getCompanyName
());
merchantCreateReqVo
.
setUserId
(
req
.
getUserVo
().
getId
());
merchantCreateReqVo
.
setUsername
(
req
.
getUserVo
().
getAccount
());
merchantCreateReqVo
.
setReqId
(
StringHelper
.
getNewID
());
merchantCreateReqVo
.
setCreateTime
(
DateHelper
.
getNow
());
if
(!
StringHelper
.
isEmpty
(
merchantCreateReqVo
.
getId
()))
{
merchantCreateReqVo
.
setId
(
StringHelper
.
getNewID
());
}
ResponseResult
<
MerchantVo
>
merchantResponseResult
=
storeFeign
.
merchantCreate
(
merchantCreateReqVo
);
if
(
merchantResponseResult
.
getCode
().
equals
(
"00"
))
{
MerchantVo
merchantVo
=
merchantResponseResult
.
getData
();
saveCompanyReqVo
.
setMerchantVo
(
merchantVo
);
}
}
if
(
StringHelper
.
isEmpty
(
saveCompanyReqVo
.
getErrorMessage
()))
{
// 错误信息为空,发送验证码成功 修改信息成功
...
...
src/main/java/com/pangding/web/authority/service/impl/FinanceServiceImpl.java
View file @
86729aea
...
...
@@ -200,8 +200,6 @@ public class FinanceServiceImpl implements FinanceService {
}
// 提现手续费
double
withdrawFee
=
getWithdrawFee
(
companyResVo
);
// 服务费
double
serviceCharge
=
getServiceCharge
(
companyResVo
);
// 滞纳金
double
lateFee
=
StringHelper
.
isEmpty
(
companyResVo
.
getLateFee
())
?
0
:
companyResVo
.
getLateFee
();
...
...
src/main/java/com/pangding/web/authority/util/UserTask.java
View file @
86729aea
...
...
@@ -46,7 +46,7 @@ public class UserTask {
companyReqVo
.
setWithdrawRule
(
0
);
companyReqVo
.
setExamineStatus
(
1
);
companyReqVo
.
setStatus
(
6
);
List
<
CompanyResVo
>
companyResVoList
=
companyDao
.
loadList
(
companyReqVo
,
CompanyResVo
.
class
);
List
<
CompanyResVo
>
companyResVoList
=
companyDao
.
findCompanyList
(
companyReqVo
);
for
(
int
i
=
0
;
i
<
companyResVoList
.
size
();
i
++)
{
CompanyResVo
companyResVo
=
companyResVoList
.
get
(
i
);
CompanyBankCardReqVo
companyBankCardReqVo
=
new
CompanyBankCardReqVo
();
...
...
@@ -76,13 +76,13 @@ public class UserTask {
/**
* 服务费
*/
// @Scheduled(cron = "0 0 1
* * ?")
@Scheduled
(
cron
=
"0 40 18
* * ?"
)
public
void
serviceCharge
()
{
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
companyReqVo
.
setServiceChargeStatus
(
1
);
companyReqVo
.
setExamineStatus
(
1
);
companyReqVo
.
setStatus
(
6
);
List
<
CompanyResVo
>
companyResVoList
=
companyDao
.
loadList
(
companyReqVo
,
CompanyResVo
.
class
);
List
<
CompanyResVo
>
companyResVoList
=
companyDao
.
findCompanyList
(
companyReqVo
);
for
(
int
i
=
0
;
i
<
companyResVoList
.
size
();
i
++)
{
CompanyResVo
companyResVo
=
companyResVoList
.
get
(
i
);
double
serviceCharge
=
financeService
.
getServiceCharge
(
companyResVo
);
...
...
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