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
e9d293f5
Commit
e9d293f5
authored
Jul 17, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.17
parent
5192c828
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
129 additions
and
96 deletions
+129
-96
ComputerRegisterController.java
.../web/authority/controller/ComputerRegisterController.java
+0
-2
IndexController.java
...om/pangding/web/authority/controller/IndexController.java
+1
-1
IndexService.java
...java/com/pangding/web/authority/service/IndexService.java
+1
-1
DataServiceImpl.java
.../pangding/web/authority/service/impl/DataServiceImpl.java
+1
-1
IndexServiceImpl.java
...pangding/web/authority/service/impl/IndexServiceImpl.java
+2
-2
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+22
-4
RoleServiceImpl.java
.../pangding/web/authority/service/impl/RoleServiceImpl.java
+4
-0
UserServiceImpl.java
.../pangding/web/authority/service/impl/UserServiceImpl.java
+12
-2
CompanyConstant.java
...java/com/pangding/web/authority/util/CompanyConstant.java
+5
-0
CompanyExtendVo.java
...n/java/com/pangding/web/authority/vo/CompanyExtendVo.java
+72
-74
TyyCompanyExtendVo.java
...ava/com/pangding/web/authority/vo/TyyCompanyExtendVo.java
+3
-3
HomeResVo.java
...n/java/com/pangding/web/authority/vo/resvo/HomeResVo.java
+3
-3
WithdrawalResVo.java
.../com/pangding/web/authority/vo/resvo/WithdrawalResVo.java
+3
-3
No files found.
src/main/java/com/pangding/web/authority/controller/ComputerRegisterController.java
View file @
e9d293f5
...
@@ -112,14 +112,12 @@ public class ComputerRegisterController {
...
@@ -112,14 +112,12 @@ public class ComputerRegisterController {
.
notBlankCheck
(
"companyName"
,
reqVo
.
getCompanyName
())
.
notBlankCheck
(
"companyName"
,
reqVo
.
getCompanyName
())
.
notBlankCheck
(
"companyAddress"
,
reqVo
.
getAddress
())
.
notBlankCheck
(
"companyAddress"
,
reqVo
.
getAddress
())
.
notBlankCheck
(
"businessLicenseCode"
,
reqVo
.
getBusinessLicenseCode
())
.
notBlankCheck
(
"businessLicenseCode"
,
reqVo
.
getBusinessLicenseCode
())
.
notNumberCheck
(
"businessLicenseCode"
,
reqVo
.
getBusinessLicenseCode
())
.
notBlankCheck
(
"merchantName"
,
reqVo
.
getMerchantName
())
.
notBlankCheck
(
"merchantName"
,
reqVo
.
getMerchantName
())
.
notBlankCheck
(
"companyAttribute"
,
reqVo
.
getCompanyAttribute
())
.
notBlankCheck
(
"companyAttribute"
,
reqVo
.
getCompanyAttribute
())
.
notBlankCheck
(
"contactName"
,
reqVo
.
getContactName
())
.
notBlankCheck
(
"contactName"
,
reqVo
.
getContactName
())
.
notBlankCheck
(
"contactCode"
,
reqVo
.
getContactCode
())
.
notBlankCheck
(
"contactCode"
,
reqVo
.
getContactCode
())
.
checkIdCard
(
"contactCode"
,
reqVo
.
getContactCode
())
.
checkIdCard
(
"contactCode"
,
reqVo
.
getContactCode
())
.
notBlankCheck
(
"contactPhone"
,
reqVo
.
getContactPhone
())
.
notBlankCheck
(
"contactPhone"
,
reqVo
.
getContactPhone
())
.
checkPhoneNo
(
"contactPhone"
,
reqVo
.
getContactPhone
())
.
notBlankCheck
(
"bankName"
,
reqVo
.
getBankName
())
.
notBlankCheck
(
"bankName"
,
reqVo
.
getBankName
())
.
notBlankCheck
(
"bankCardCode"
,
reqVo
.
getBankCardCode
())
.
notBlankCheck
(
"bankCardCode"
,
reqVo
.
getBankCardCode
())
.
notNumberCheck
(
"bankCardCode"
,
reqVo
.
getBankCardCode
())
.
notNumberCheck
(
"bankCardCode"
,
reqVo
.
getBankCardCode
())
...
...
src/main/java/com/pangding/web/authority/controller/IndexController.java
View file @
e9d293f5
...
@@ -29,7 +29,7 @@ public class IndexController {
...
@@ -29,7 +29,7 @@ public class IndexController {
* @return 可提现的金额
* @return 可提现的金额
*/
*/
@PostMapping
(
value
=
"/withdrawCash"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@PostMapping
(
value
=
"/withdrawCash"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseResult
<
BigDecimal
>
withdrawCash
(
@RequestBody
WithdrawCashReqVo
reqVo
){
public
ResponseResult
<
Double
>
withdrawCash
(
@RequestBody
WithdrawCashReqVo
reqVo
){
CheckerHelper
.
newInstance
()
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"companyId"
,
reqVo
.
getId
())
.
notBlankCheck
(
"companyId"
,
reqVo
.
getId
())
.
checkException
();
.
checkException
();
...
...
src/main/java/com/pangding/web/authority/service/IndexService.java
View file @
e9d293f5
...
@@ -16,7 +16,7 @@ public interface IndexService {
...
@@ -16,7 +16,7 @@ public interface IndexService {
* @param reqVo 封装了公司id的请求对象
* @param reqVo 封装了公司id的请求对象
* @return 可提现的金额
* @return 可提现的金额
*/
*/
BigDecimal
getWithdrawCash
(
WithdrawCashReqVo
reqVo
);
Double
getWithdrawCash
(
WithdrawCashReqVo
reqVo
);
/**
/**
* 通过公司id获取该公司累积总收益
* 通过公司id获取该公司累积总收益
...
...
src/main/java/com/pangding/web/authority/service/impl/DataServiceImpl.java
View file @
e9d293f5
...
@@ -390,7 +390,7 @@ public class DataServiceImpl implements DataService {
...
@@ -390,7 +390,7 @@ public class DataServiceImpl implements DataService {
if
(
null
!=
tyyOrderbackVo
){
if
(
null
!=
tyyOrderbackVo
){
refundNum
+=
tyyOrderbackVo
.
getRefundnum
();
refundNum
+=
tyyOrderbackVo
.
getRefundnum
();
refundFee
+=
tyyOrderbackVo
.
getRefundFee
();
refundFee
+=
tyyOrderbackVo
.
getRefundFee
();
pdRefundMoney
+=
tyyOrderbackVo
.
getReceiveMoney
();
pdRefundMoney
+=
tyyOrderbackVo
.
getReceiveMoney
()
==
null
?
0
:
tyyOrderbackVo
.
getReceiveMoney
()
;
refundMoney
+=
tyyOrderbackVo
.
getRefundMoney
();
refundMoney
+=
tyyOrderbackVo
.
getRefundMoney
();
}
}
}
}
...
...
src/main/java/com/pangding/web/authority/service/impl/IndexServiceImpl.java
View file @
e9d293f5
...
@@ -33,12 +33,12 @@ public class IndexServiceImpl implements IndexService {
...
@@ -33,12 +33,12 @@ public class IndexServiceImpl implements IndexService {
* @return 可提现的金额
* @return 可提现的金额
*/
*/
@Override
@Override
public
BigDecimal
getWithdrawCash
(
WithdrawCashReqVo
reqVo
)
{
public
Double
getWithdrawCash
(
WithdrawCashReqVo
reqVo
)
{
CompanyExtendVo
companyExtendVo
=
companyExtendDaoImpl
.
load
(
reqVo
,
CompanyExtendVo
.
class
);
CompanyExtendVo
companyExtendVo
=
companyExtendDaoImpl
.
load
(
reqVo
,
CompanyExtendVo
.
class
);
if
(
null
==
companyExtendVo
){
if
(
null
==
companyExtendVo
){
throw
new
CodeException
(
"未查到该公司数据"
);
throw
new
CodeException
(
"未查到该公司数据"
);
}
}
BigDecimal
cash
=
companyExtendVo
.
getWithdrawTotalCash
();
Double
cash
=
companyExtendVo
.
getWithdrawTotalCash
();
if
(
null
==
cash
){
if
(
null
==
cash
){
throw
new
CodeException
(
"暂无可提现余额信息"
);
throw
new
CodeException
(
"暂无可提现余额信息"
);
}
}
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
e9d293f5
...
@@ -92,10 +92,13 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -92,10 +92,13 @@ public class RegisterServiceImpl implements RegisterService {
// 检查账户是否合法
// 检查账户是否合法
userServiceImpl
.
isValid
(
registerUserReqVo
.
getAccount
());
userServiceImpl
.
isValid
(
registerUserReqVo
.
getAccount
());
User
Vo
userVo
=
new
User
Vo
();
User
GetReqVo
userGetReqVo
=
new
UserGetReq
Vo
();
userVo
.
setAccount
(
registerUserReqVo
.
getAccount
());
user
GetReq
Vo
.
setAccount
(
registerUserReqVo
.
getAccount
());
// 检查用户名是否存在
// 检查用户名是否存在
userServiceImpl
.
checkAccount
(
userVo
);
UserVo
userVoCheck
=
userDaoImpl
.
load
(
userGetReqVo
,
UserVo
.
class
);
if
(
null
!=
userVoCheck
){
throw
new
CodeException
(
"用户名"
+
registerUserReqVo
.
getAccount
()+
"已存在"
);
}
/*通过私钥将rsa加密的密码解密*/
/*通过私钥将rsa加密的密码解密*/
String
password
=
RSAUtils
.
decryptionByPrivateKey
(
registerUserReqVo
.
getPassword
(),
RsaConstant
.
privateKey
);
String
password
=
RSAUtils
.
decryptionByPrivateKey
(
registerUserReqVo
.
getPassword
(),
RsaConstant
.
privateKey
);
...
@@ -111,6 +114,8 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -111,6 +114,8 @@ public class RegisterServiceImpl implements RegisterService {
}
}
/*保存用户*/
/*保存用户*/
UserVo
userVo
=
new
UserVo
();
userVo
.
setAccount
(
registerUserReqVo
.
getAccount
());
String
companyId
=
StringHelper
.
getNewID
();
String
companyId
=
StringHelper
.
getNewID
();
userVo
.
setPassword
(
StringHelper
.
md5
(
password
));
userVo
.
setPassword
(
StringHelper
.
md5
(
password
));
userVo
.
setId
(
StringHelper
.
getNewID
());
userVo
.
setId
(
StringHelper
.
getNewID
());
...
@@ -184,6 +189,8 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -184,6 +189,8 @@ public class RegisterServiceImpl implements RegisterService {
CompanyVo
companyVo
=
new
CompanyVo
();
CompanyVo
companyVo
=
new
CompanyVo
();
ObjectHelper
.
writeWithFrom
(
companyVo
,
resCompanyReqVo
);
ObjectHelper
.
writeWithFrom
(
companyVo
,
resCompanyReqVo
);
companyVo
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo
.
setExamineStatus
(
0
);
companyVo
.
setCompanyAttribute
(
resCompanyReqVo
.
getCompanyAttribution
());
companyDaoImpl
.
update
(
companyVo
);
companyDaoImpl
.
update
(
companyVo
);
/*跟新用户表添加联系方式*/
/*跟新用户表添加联系方式*/
...
@@ -191,6 +198,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -191,6 +198,7 @@ public class RegisterServiceImpl implements RegisterService {
userReqVo
.
setCompanyId
(
reqVo
.
getId
());
userReqVo
.
setCompanyId
(
reqVo
.
getId
());
UserVo
userVo
=
userDaoImpl
.
load
(
userReqVo
,
UserVo
.
class
);
UserVo
userVo
=
userDaoImpl
.
load
(
userReqVo
,
UserVo
.
class
);
userVo
.
setPhone
(
reqVo
.
getContactPhone
());
userVo
.
setPhone
(
reqVo
.
getContactPhone
());
userVo
.
setName
(
reqVo
.
getContactName
());
userDaoImpl
.
update
(
userVo
);
userDaoImpl
.
update
(
userVo
);
/*保存或更新商户表*/
/*保存或更新商户表*/
...
@@ -203,6 +211,9 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -203,6 +211,9 @@ public class RegisterServiceImpl implements RegisterService {
req
.
setUserId
(
userVo
.
getId
());
req
.
setUserId
(
userVo
.
getId
());
req
.
setUsername
(
userVo
.
getAccount
());
req
.
setUsername
(
userVo
.
getAccount
());
req
.
setReqId
(
reqVo
.
getReqId
());
req
.
setReqId
(
reqVo
.
getReqId
());
req
.
setPhone
(
reqVo
.
getContactPhone
());
req
.
setCreateTime
(
DateHelper
.
getNow
());
req
.
setProductCompanyName
(
reqVo
.
getCompanyName
());
if
(
null
==
reqVo
.
getMerchantId
()
||
""
.
equals
(
reqVo
.
getMerchantId
())){
if
(
null
==
reqVo
.
getMerchantId
()
||
""
.
equals
(
reqVo
.
getMerchantId
())){
req
.
setId
(
StringHelper
.
getNewID
());
req
.
setId
(
StringHelper
.
getNewID
());
}
else
{
}
else
{
...
@@ -254,6 +265,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -254,6 +265,7 @@ public class RegisterServiceImpl implements RegisterService {
CompanyVo
companyVo
=
new
CompanyVo
();
CompanyVo
companyVo
=
new
CompanyVo
();
ObjectHelper
.
writeWithFrom
(
companyVo
,
resCompanyReqVo
);
ObjectHelper
.
writeWithFrom
(
companyVo
,
resCompanyReqVo
);
companyVo
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo
.
setExamineStatus
(
0
);
companyDaoImpl
.
update
(
companyVo
);
companyDaoImpl
.
update
(
companyVo
);
List
<
CompanyBankReqVo
>
bankList
=
resCompanyReqVo
.
getBankList
();
List
<
CompanyBankReqVo
>
bankList
=
resCompanyReqVo
.
getBankList
();
...
@@ -287,6 +299,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -287,6 +299,7 @@ public class RegisterServiceImpl implements RegisterService {
userReqVo
.
setCompanyId
(
reqVo
.
getId
());
userReqVo
.
setCompanyId
(
reqVo
.
getId
());
UserVo
userVo
=
userDaoImpl
.
load
(
userReqVo
,
UserVo
.
class
);
UserVo
userVo
=
userDaoImpl
.
load
(
userReqVo
,
UserVo
.
class
);
userVo
.
setPhone
(
reqVo
.
getContactPhone
());
userVo
.
setPhone
(
reqVo
.
getContactPhone
());
userVo
.
setName
(
reqVo
.
getContactName
());
userDaoImpl
.
update
(
userVo
);
userDaoImpl
.
update
(
userVo
);
/*保存或更新商户表*/
/*保存或更新商户表*/
...
@@ -380,7 +393,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -380,7 +393,7 @@ public class RegisterServiceImpl implements RegisterService {
resVo
.
setMsg
(
"公司基本信息未完善,跳转公司完善页面"
);
resVo
.
setMsg
(
"公司基本信息未完善,跳转公司完善页面"
);
return
resVo
;
return
resVo
;
}
}
/*判断电子签约状态,若
小于10
,则跳转签约页面*/
/*判断电子签约状态,若
不等于1
,则跳转签约页面*/
else
if
(
companyVo
.
getSigningStatus
()
!=
CompanyConstant
.
COMPANY_STATUS_SIGN_success
){
else
if
(
companyVo
.
getSigningStatus
()
!=
CompanyConstant
.
COMPANY_STATUS_SIGN_success
){
resVo
.
setCode
(
"04"
);
resVo
.
setCode
(
"04"
);
resVo
.
setMsg
(
"未签约,跳转签约页面"
);
resVo
.
setMsg
(
"未签约,跳转签约页面"
);
...
@@ -509,6 +522,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -509,6 +522,7 @@ public class RegisterServiceImpl implements RegisterService {
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
ObjectHelper
.
writeWithFrom
(
companyReqVo
,
companyVo
);
ObjectHelper
.
writeWithFrom
(
companyReqVo
,
companyVo
);
companyReqVo
.
setValidateCode
(
reqVo
.
getVerifyCode
());
companyReqVo
.
setValidateCode
(
reqVo
.
getVerifyCode
());
companyReqVo
.
setCompanyAttribution
(
reqVo
.
getCompanyAttribute
());
ResponseResult
result
=
payFeign
.
setCompanyInfo
(
companyReqVo
);
ResponseResult
result
=
payFeign
.
setCompanyInfo
(
companyReqVo
);
if
(
null
==
result
||
!
"00"
.
equals
(
result
.
getCode
())){
if
(
null
==
result
||
!
"00"
.
equals
(
result
.
getCode
())){
throw
new
CodeException
(
"保存商户失败,请重试"
);
throw
new
CodeException
(
"保存商户失败,请重试"
);
...
@@ -519,6 +533,8 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -519,6 +533,8 @@ public class RegisterServiceImpl implements RegisterService {
CompanyVo
companyVo1
=
new
CompanyVo
();
CompanyVo
companyVo1
=
new
CompanyVo
();
ObjectHelper
.
writeWithFrom
(
companyVo1
,
resCompanyReqVo
);
ObjectHelper
.
writeWithFrom
(
companyVo1
,
resCompanyReqVo
);
companyVo1
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo1
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo1
.
setCompanyAttribute
(
resCompanyReqVo
.
getCompanyAttribution
());
companyVo1
.
setExamineStatus
(
0
);
companyDaoImpl
.
update
(
companyVo1
);
companyDaoImpl
.
update
(
companyVo1
);
return
reqVo
.
getVerifyCode
();
return
reqVo
.
getVerifyCode
();
}
}
...
@@ -536,6 +552,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -536,6 +552,7 @@ public class RegisterServiceImpl implements RegisterService {
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
ObjectHelper
.
writeWithFrom
(
companyReqVo
,
companyVo
);
ObjectHelper
.
writeWithFrom
(
companyReqVo
,
companyVo
);
companyReqVo
.
setCompanyAttribution
(
companyVo
.
getCompanyAttribute
());
CompanyBankReqVo
companyBankReqVo
=
new
CompanyBankReqVo
();
CompanyBankReqVo
companyBankReqVo
=
new
CompanyBankReqVo
();
ObjectHelper
.
writeWithFrom
(
companyBankReqVo
,
reqVo
);
ObjectHelper
.
writeWithFrom
(
companyBankReqVo
,
reqVo
);
companyBankReqVo
.
setId
(
StringHelper
.
getNewID
());
companyBankReqVo
.
setId
(
StringHelper
.
getNewID
());
...
@@ -551,6 +568,7 @@ public class RegisterServiceImpl implements RegisterService {
...
@@ -551,6 +568,7 @@ public class RegisterServiceImpl implements RegisterService {
CompanyVo
companyVo1
=
new
CompanyVo
();
CompanyVo
companyVo1
=
new
CompanyVo
();
ObjectHelper
.
writeWithFrom
(
companyVo1
,
resCompanyReqVo
);
ObjectHelper
.
writeWithFrom
(
companyVo1
,
resCompanyReqVo
);
companyVo1
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo1
.
setProductOrInterface
(
CompanyConstant
.
PRODUCT
);
companyVo1
.
setExamineStatus
(
0
);
companyDaoImpl
.
update
(
companyVo1
);
companyDaoImpl
.
update
(
companyVo1
);
List
<
CompanyBankReqVo
>
bankList
=
resCompanyReqVo
.
getBankList
();
List
<
CompanyBankReqVo
>
bankList
=
resCompanyReqVo
.
getBankList
();
...
...
src/main/java/com/pangding/web/authority/service/impl/RoleServiceImpl.java
View file @
e9d293f5
package
com
.
pangding
.
web
.
authority
.
service
.
impl
;
package
com
.
pangding
.
web
.
authority
.
service
.
impl
;
import
com.pangding.web.authority.dao.*
;
import
com.pangding.web.authority.dao.*
;
import
com.pangding.web.authority.util.CompanyConstant
;
import
com.pangding.web.authority.vo.reqvo.*
;
import
com.pangding.web.authority.vo.reqvo.*
;
import
com.pangding.web.authority.service.RoleService
;
import
com.pangding.web.authority.service.RoleService
;
import
com.pangding.web.authority.vo.*
;
import
com.pangding.web.authority.vo.*
;
...
@@ -50,6 +51,9 @@ public class RoleServiceImpl implements RoleService {
...
@@ -50,6 +51,9 @@ public class RoleServiceImpl implements RoleService {
this
.
checkNameExist
(
roleVo
);
this
.
checkNameExist
(
roleVo
);
webRoleReqVo
.
setId
(
StringHelper
.
getNewID
());
webRoleReqVo
.
setId
(
StringHelper
.
getNewID
());
if
(
CompanyConstant
.
PD_COMPANY_ID
.
equals
(
roleVo
.
getCompanyId
())){
roleVo
.
setCompanyId
(
""
);
}
roleDao
.
create
(
roleVo
);
roleDao
.
create
(
roleVo
);
List
<
String
>
authorityIds
=
webRoleReqVo
.
getAuthorityIds
();
List
<
String
>
authorityIds
=
webRoleReqVo
.
getAuthorityIds
();
if
(
authorityIds
!=
null
&&
!
authorityIds
.
isEmpty
()){
if
(
authorityIds
!=
null
&&
!
authorityIds
.
isEmpty
()){
...
...
src/main/java/com/pangding/web/authority/service/impl/UserServiceImpl.java
View file @
e9d293f5
...
@@ -121,12 +121,22 @@ public class UserServiceImpl implements UserService {
...
@@ -121,12 +121,22 @@ public class UserServiceImpl implements UserService {
@Override
@Override
public
void
checkAccount
(
UserVo
userVo
)
{
public
void
checkAccount
(
UserVo
userVo
)
{
userDao
.
checkAccount
(
userVo
);
UserGetReqVo
userGetReqVo
=
new
UserGetReqVo
();
userGetReqVo
.
setAccount
(
userVo
.
getAccount
());
UserVo
userVo1
=
userDao
.
load
(
userGetReqVo
,
UserVo
.
class
);
if
(
null
!=
userVo1
){
throw
new
CodeException
(
"用户名"
+
userVo
.
getAccount
()+
"已存在"
);
}
}
}
@Override
@Override
public
void
checkPhone
(
UserVo
userVo
)
{
public
void
checkPhone
(
UserVo
userVo
)
{
userDao
.
checkPhone
(
userVo
);
UserGetReqVo
userGetReqVo
=
new
UserGetReqVo
();
userGetReqVo
.
setPhone
(
userVo
.
getPhone
());
UserVo
userVo1
=
userDao
.
load
(
userGetReqVo
,
UserVo
.
class
);
if
(
null
!=
userVo1
){
throw
new
CodeException
(
"手机号"
+
userVo
.
getPhone
()+
"已存在"
);
}
}
}
@Override
@Override
...
...
src/main/java/com/pangding/web/authority/util/CompanyConstant.java
View file @
e9d293f5
...
@@ -157,6 +157,11 @@ public class CompanyConstant {
...
@@ -157,6 +157,11 @@ public class CompanyConstant {
*/
*/
public
static
final
int
COMPANY_STATUS_SIGN_success
=
1
;
public
static
final
int
COMPANY_STATUS_SIGN_success
=
1
;
/**
* 胖丁公司id
*/
public
static
final
String
PD_COMPANY_ID
=
"10001"
;
}
}
src/main/java/com/pangding/web/authority/vo/CompanyExtendVo.java
View file @
e9d293f5
...
@@ -18,7 +18,7 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -18,7 +18,7 @@ public class CompanyExtendVo extends BaseVo {
private
String
qrCode
;
private
String
qrCode
;
@TableAnnotation
(
"QR_code_type"
)
@TableAnnotation
(
"QR_code_type"
)
private
int
qrCodeType
;
private
Integer
qrCodeType
;
@TableAnnotation
(
"QR_code_url"
)
@TableAnnotation
(
"QR_code_url"
)
private
String
qrCodeUrl
;
private
String
qrCodeUrl
;
...
@@ -27,7 +27,7 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -27,7 +27,7 @@ public class CompanyExtendVo extends BaseVo {
* 是否分账
* 是否分账
*/
*/
@TableAnnotation
(
"subledger_status"
)
@TableAnnotation
(
"subledger_status"
)
private
int
subledgerStatus
;
private
Integer
subledgerStatus
;
/**
/**
* 分账规则
* 分账规则
...
@@ -39,49 +39,25 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -39,49 +39,25 @@ public class CompanyExtendVo extends BaseVo {
* 是否分润
* 是否分润
*/
*/
@TableAnnotation
(
"divide_status"
)
@TableAnnotation
(
"divide_status"
)
private
int
divedeStatus
;
private
Integer
divedeStatus
;
/**
* 分润规则
*/
@TableAnnotation
(
"divide_rule_id"
)
private
String
divideRuleId
;
/**
/**
* 是够可提现
* 是够可提现
*/
*/
@TableAnnotation
(
"withdraw_status"
)
private
int
withdrawStatus
;
/**
* 提现规则
*/
@TableAnnotation
(
"withdraw_rule_id"
)
private
String
withdrawRuleId
;
/**
* 可提现总额
*/
@TableAnnotation
(
"withdraw_total_cash"
)
@TableAnnotation
(
"withdraw_total_cash"
)
private
BigDecimal
withdrawTotalCash
;
private
Double
withdrawTotalCash
;
/**
/**
* 是否扫码支付
* 是否扫码支付
*/
*/
@TableAnnotation
(
"scan_code_pay_status"
)
@TableAnnotation
(
"scan_code_pay_status"
)
private
int
scanCodePayStatus
;
private
Integer
scanCodePayStatus
;
/**
* 支付规则
*/
@TableAnnotation
(
"pay_rule_id"
)
private
String
payRuleId
;
/**
/**
* 是否邀请
* 是否邀请
*/
*/
@TableAnnotation
(
"invitation_status"
)
@TableAnnotation
(
"invitation_status"
)
private
int
invitationStatus
;
private
Integer
invitationStatus
;
/**
/**
* 邀请规则
* 邀请规则
...
@@ -92,13 +68,19 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -92,13 +68,19 @@ public class CompanyExtendVo extends BaseVo {
@TableAnnotation
(
"invitation_code"
)
@TableAnnotation
(
"invitation_code"
)
private
String
invitationCode
;
private
String
invitationCode
;
public
BigDecimal
getWithdrawTotalCash
()
{
@TableAnnotation
(
"withdraw_rule"
)
return
withdrawTotalCash
;
private
Integer
withdrawRule
;
}
public
void
setWithdrawTotalCash
(
BigDecimal
withdrawTotalCash
)
{
@TableAnnotation
(
"withdraw_money"
)
this
.
withdrawTotalCash
=
withdrawTotalCash
;
private
Double
withdrawMoney
;
}
@TableAnnotation
(
"withdraw_fee"
)
private
Double
withdrawFee
;
@TableAnnotation
(
"withdraw_type"
)
private
String
withdrawType
;
private
Integer
grade
;
public
String
getId
()
{
public
String
getId
()
{
return
id
;
return
id
;
...
@@ -116,11 +98,11 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -116,11 +98,11 @@ public class CompanyExtendVo extends BaseVo {
this
.
qrCode
=
qrCode
;
this
.
qrCode
=
qrCode
;
}
}
public
int
getQrCodeType
()
{
public
Integer
getQrCodeType
()
{
return
qrCodeType
;
return
qrCodeType
;
}
}
public
void
setQrCodeType
(
int
qrCodeType
)
{
public
void
setQrCodeType
(
Integer
qrCodeType
)
{
this
.
qrCodeType
=
qrCodeType
;
this
.
qrCodeType
=
qrCodeType
;
}
}
...
@@ -132,11 +114,11 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -132,11 +114,11 @@ public class CompanyExtendVo extends BaseVo {
this
.
qrCodeUrl
=
qrCodeUrl
;
this
.
qrCodeUrl
=
qrCodeUrl
;
}
}
public
int
getSubledgerStatus
()
{
public
Integer
getSubledgerStatus
()
{
return
subledgerStatus
;
return
subledgerStatus
;
}
}
public
void
setSubledgerStatus
(
int
subledgerStatus
)
{
public
void
setSubledgerStatus
(
Integer
subledgerStatus
)
{
this
.
subledgerStatus
=
subledgerStatus
;
this
.
subledgerStatus
=
subledgerStatus
;
}
}
...
@@ -148,59 +130,35 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -148,59 +130,35 @@ public class CompanyExtendVo extends BaseVo {
this
.
subledgerRuleId
=
subledgerRuleId
;
this
.
subledgerRuleId
=
subledgerRuleId
;
}
}
public
int
getDivedeStatus
()
{
public
Integer
getDivedeStatus
()
{
return
divedeStatus
;
return
divedeStatus
;
}
}
public
void
setDivedeStatus
(
int
divedeStatus
)
{
public
void
setDivedeStatus
(
Integer
divedeStatus
)
{
this
.
divedeStatus
=
divedeStatus
;
this
.
divedeStatus
=
divedeStatus
;
}
}
public
String
getDivideRuleId
()
{
public
Double
getWithdrawTotalCash
()
{
return
divideRuleId
;
return
withdrawTotalCash
;
}
public
void
setDivideRuleId
(
String
divideRuleId
)
{
this
.
divideRuleId
=
divideRuleId
;
}
public
int
getWithdrawStatus
()
{
return
withdrawStatus
;
}
public
void
setWithdrawStatus
(
int
withdrawStatus
)
{
this
.
withdrawStatus
=
withdrawStatus
;
}
public
String
getWithdrawRuleId
()
{
return
withdrawRuleId
;
}
}
public
void
setWithdraw
RuleId
(
String
withdrawRuleId
)
{
public
void
setWithdraw
TotalCash
(
Double
withdrawTotalCash
)
{
this
.
withdraw
RuleId
=
withdrawRuleId
;
this
.
withdraw
TotalCash
=
withdrawTotalCash
;
}
}
public
int
getScanCodePayStatus
()
{
public
Integer
getScanCodePayStatus
()
{
return
scanCodePayStatus
;
return
scanCodePayStatus
;
}
}
public
void
setScanCodePayStatus
(
int
scanCodePayStatus
)
{
public
void
setScanCodePayStatus
(
Integer
scanCodePayStatus
)
{
this
.
scanCodePayStatus
=
scanCodePayStatus
;
this
.
scanCodePayStatus
=
scanCodePayStatus
;
}
}
public
String
getPayRuleId
()
{
public
Integer
getInvitationStatus
()
{
return
payRuleId
;
}
public
void
setPayRuleId
(
String
payRuleId
)
{
this
.
payRuleId
=
payRuleId
;
}
public
int
getInvitationStatus
()
{
return
invitationStatus
;
return
invitationStatus
;
}
}
public
void
setInvitationStatus
(
int
invitationStatus
)
{
public
void
setInvitationStatus
(
Integer
invitationStatus
)
{
this
.
invitationStatus
=
invitationStatus
;
this
.
invitationStatus
=
invitationStatus
;
}
}
...
@@ -219,4 +177,44 @@ public class CompanyExtendVo extends BaseVo {
...
@@ -219,4 +177,44 @@ public class CompanyExtendVo extends BaseVo {
public
void
setInvitationCode
(
String
invitationCode
)
{
public
void
setInvitationCode
(
String
invitationCode
)
{
this
.
invitationCode
=
invitationCode
;
this
.
invitationCode
=
invitationCode
;
}
}
public
Integer
getWithdrawRule
()
{
return
withdrawRule
;
}
public
void
setWithdrawRule
(
Integer
withdrawRule
)
{
this
.
withdrawRule
=
withdrawRule
;
}
public
Double
getWithdrawMoney
()
{
return
withdrawMoney
;
}
public
void
setWithdrawMoney
(
Double
withdrawMoney
)
{
this
.
withdrawMoney
=
withdrawMoney
;
}
public
Double
getWithdrawFee
()
{
return
withdrawFee
;
}
public
void
setWithdrawFee
(
Double
withdrawFee
)
{
this
.
withdrawFee
=
withdrawFee
;
}
public
String
getWithdrawType
()
{
return
withdrawType
;
}
public
void
setWithdrawType
(
String
withdrawType
)
{
this
.
withdrawType
=
withdrawType
;
}
public
Integer
getGrade
()
{
return
grade
;
}
public
void
setGrade
(
Integer
grade
)
{
this
.
grade
=
grade
;
}
}
}
src/main/java/com/pangding/web/authority/vo/TyyCompanyExtendVo.java
View file @
e9d293f5
...
@@ -46,7 +46,7 @@ public class TyyCompanyExtendVo extends BaseVo {
...
@@ -46,7 +46,7 @@ public class TyyCompanyExtendVo extends BaseVo {
/**
/**
* 可提现余额
* 可提现余额
*/
*/
private
BigDecimal
money
;
private
Double
money
;
/**
/**
* 提现手续费
* 提现手续费
...
@@ -108,11 +108,11 @@ public class TyyCompanyExtendVo extends BaseVo {
...
@@ -108,11 +108,11 @@ public class TyyCompanyExtendVo extends BaseVo {
this
.
status
=
status
;
this
.
status
=
status
;
}
}
public
BigDecimal
getMoney
()
{
public
Double
getMoney
()
{
return
money
;
return
money
;
}
}
public
void
setMoney
(
BigDecimal
money
)
{
public
void
setMoney
(
Double
money
)
{
this
.
money
=
money
;
this
.
money
=
money
;
}
}
...
...
src/main/java/com/pangding/web/authority/vo/resvo/HomeResVo.java
View file @
e9d293f5
...
@@ -8,7 +8,7 @@ import java.math.BigDecimal;
...
@@ -8,7 +8,7 @@ import java.math.BigDecimal;
*/
*/
public
class
HomeResVo
{
public
class
HomeResVo
{
private
BigDecimal
withdrawTotalCash
;
private
Double
withdrawTotalCash
;
private
String
companyId
;
private
String
companyId
;
...
@@ -20,11 +20,11 @@ public class HomeResVo {
...
@@ -20,11 +20,11 @@ public class HomeResVo {
this
.
companyId
=
companyId
;
this
.
companyId
=
companyId
;
}
}
public
BigDecimal
getWithdrawTotalCash
()
{
public
Double
getWithdrawTotalCash
()
{
return
withdrawTotalCash
;
return
withdrawTotalCash
;
}
}
public
void
setWithdrawTotalCash
(
BigDecimal
withdrawTotalCash
)
{
public
void
setWithdrawTotalCash
(
Double
withdrawTotalCash
)
{
this
.
withdrawTotalCash
=
withdrawTotalCash
;
this
.
withdrawTotalCash
=
withdrawTotalCash
;
}
}
}
}
src/main/java/com/pangding/web/authority/vo/resvo/WithdrawalResVo.java
View file @
e9d293f5
...
@@ -10,15 +10,15 @@ import java.util.List;
...
@@ -10,15 +10,15 @@ import java.util.List;
* @create 2019/6/18 19:58
* @create 2019/6/18 19:58
*/
*/
public
class
WithdrawalResVo
{
public
class
WithdrawalResVo
{
private
BigDecimal
withdrawTotalCash
;
private
Double
withdrawTotalCash
;
private
List
<
CompanyBankCardVo
>
bankCardVoList
;
private
List
<
CompanyBankCardVo
>
bankCardVoList
;
public
BigDecimal
getWithdrawTotalCash
()
{
public
Double
getWithdrawTotalCash
()
{
return
withdrawTotalCash
;
return
withdrawTotalCash
;
}
}
public
void
setWithdrawTotalCash
(
BigDecimal
withdrawTotalCash
)
{
public
void
setWithdrawTotalCash
(
Double
withdrawTotalCash
)
{
this
.
withdrawTotalCash
=
withdrawTotalCash
;
this
.
withdrawTotalCash
=
withdrawTotalCash
;
}
}
...
...
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