Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
payment-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
payment-ci-test
Commits
e5d2b13a
提交
e5d2b13a
authored
6月 12, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
1b31b697
70f284ff
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
95 个修改的文件
包含
2438 行增加
和
477 行删除
+2438
-477
Dockerfile
Dockerfile
+1
-0
deployment.yaml
kustomization/base/deployment.yaml
+11
-2
increase_replicas.yaml
kustomization/overlays/dev/increase_replicas.yaml
+12
-0
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+6
-2
increase_replicas.yaml
kustomization/overlays/prod/increase_replicas.yaml
+7
-2
BaseController.java
src/main/java/com/mmc/payment/common/BaseController.java
+6
-4
FlyerAccountType.java
src/main/java/com/mmc/payment/common/FlyerAccountType.java
+34
-0
PortTypeEnum.java
src/main/java/com/mmc/payment/common/PortTypeEnum.java
+36
-0
BaseErrorInfoInterface.java
...ayment/common/publicinterface/BaseErrorInfoInterface.java
+1
-1
Create.java
...n/java/com/mmc/payment/common/publicinterface/Create.java
+1
-1
Freeze.java
...n/java/com/mmc/payment/common/publicinterface/Freeze.java
+1
-1
Page.java
...ain/java/com/mmc/payment/common/publicinterface/Page.java
+1
-1
Refund.java
...n/java/com/mmc/payment/common/publicinterface/Refund.java
+1
-1
Share.java
...in/java/com/mmc/payment/common/publicinterface/Share.java
+1
-1
Update.java
...n/java/com/mmc/payment/common/publicinterface/Update.java
+1
-1
PageResult.java
src/main/java/com/mmc/payment/common/result/PageResult.java
+1
-1
ResultBody.java
src/main/java/com/mmc/payment/common/result/ResultBody.java
+4
-5
ResultEnum.java
src/main/java/com/mmc/payment/common/result/ResultEnum.java
+16
-9
AmtUtil.java
src/main/java/com/mmc/payment/common/util/AmtUtil.java
+1
-1
BeanCopyUtils.java
src/main/java/com/mmc/payment/common/util/BeanCopyUtils.java
+37
-0
CodeUtil.java
src/main/java/com/mmc/payment/common/util/CodeUtil.java
+1
-1
JsonUtil.java
src/main/java/com/mmc/payment/common/util/JsonUtil.java
+1
-1
TDateUtil.java
src/main/java/com/mmc/payment/common/util/TDateUtil.java
+26
-22
AuthHandler.java
src/main/java/com/mmc/payment/config/AuthHandler.java
+0
-0
JwtUtil.java
src/main/java/com/mmc/payment/config/JwtUtil.java
+1
-1
RepoAccountController.java
...ava/com/mmc/payment/controller/RepoAccountController.java
+6
-6
RepoCashController.java
...n/java/com/mmc/payment/controller/RepoCashController.java
+128
-71
RepoAccountDao.java
src/main/java/com/mmc/payment/dao/RepoAccountDao.java
+2
-2
RepoCashDao.java
src/main/java/com/mmc/payment/dao/RepoCashDao.java
+29
-12
CashTypeDO.java
src/main/java/com/mmc/payment/entity/cash/CashTypeDO.java
+28
-0
FlyerAccountDO.java
...ain/java/com/mmc/payment/entity/flyer/FlyerAccountDO.java
+178
-0
FlyerEntInfoDO.java
...ain/java/com/mmc/payment/entity/flyer/FlyerEntInfoDO.java
+63
-0
OrderInfoDO.java
src/main/java/com/mmc/payment/entity/order/OrderInfoDO.java
+86
-86
OrderVcuDO.java
src/main/java/com/mmc/payment/entity/order/OrderVcuDO.java
+42
-0
RepoAccountDO.java
src/main/java/com/mmc/payment/entity/repo/RepoAccountDO.java
+9
-9
RepoCashDO.java
src/main/java/com/mmc/payment/entity/repo/RepoCashDO.java
+14
-2
RepoWalletDO.java
src/main/java/com/mmc/payment/entity/repo/RepoWalletDO.java
+18
-5
BizException.java
src/main/java/com/mmc/payment/exception/BizException.java
+3
-3
AuthSignatureFilter.java
...main/java/com/mmc/payment/filter/AuthSignatureFilter.java
+12
-10
CashTypeDTO.java
...main/java/com/mmc/payment/model/dto/cash/CashTypeDTO.java
+24
-0
CompanyCacheDTO.java
...va/com/mmc/payment/model/dto/company/CompanyCacheDTO.java
+3
-3
CompanySimpleDTO.java
...a/com/mmc/payment/model/dto/company/CompanySimpleDTO.java
+3
-4
FlyerAccountDTO.java
...java/com/mmc/payment/model/dto/flyer/FlyerAccountDTO.java
+138
-0
FlyerEntInfoDTO.java
...java/com/mmc/payment/model/dto/flyer/FlyerEntInfoDTO.java
+65
-0
FlyerInfoDTO.java
...in/java/com/mmc/payment/model/dto/flyer/FlyerInfoDTO.java
+116
-0
FlyerOrderTaskDTO.java
...va/com/mmc/payment/model/dto/flyer/FlyerOrderTaskDTO.java
+36
-0
FlyerRcdTeamDTO.java
...java/com/mmc/payment/model/dto/flyer/FlyerRcdTeamDTO.java
+43
-0
FlyerRecordDTO.java
.../java/com/mmc/payment/model/dto/flyer/FlyerRecordDTO.java
+64
-0
FlyerScenesAuthDTO.java
...a/com/mmc/payment/model/dto/flyer/FlyerScenesAuthDTO.java
+53
-0
TaskFlyerCostDTO.java
...ava/com/mmc/payment/model/dto/flyer/TaskFlyerCostDTO.java
+97
-0
ExpStationsDTO.java
...a/com/mmc/payment/model/dto/logistics/ExpStationsDTO.java
+1
-2
KdnExpDTO.java
...n/java/com/mmc/payment/model/dto/logistics/KdnExpDTO.java
+1
-2
RefundLogDTO.java
...ava/com/mmc/payment/model/dto/logistics/RefundLogDTO.java
+1
-2
OrderInfoDTO.java
...in/java/com/mmc/payment/model/dto/order/OrderInfoDTO.java
+3
-3
OrderReceiptDTO.java
...java/com/mmc/payment/model/dto/order/OrderReceiptDTO.java
+1
-2
OrderRefundDTO.java
.../java/com/mmc/payment/model/dto/order/OrderRefundDTO.java
+3
-1
OrderTaskDTO.java
...in/java/com/mmc/payment/model/dto/order/OrderTaskDTO.java
+170
-0
OrderTaskSonDTO.java
...java/com/mmc/payment/model/dto/order/OrderTaskSonDTO.java
+134
-0
OrderVcuDTO.java
...ain/java/com/mmc/payment/model/dto/order/OrderVcuDTO.java
+1
-1
PayCashResultDTO.java
...java/com/mmc/payment/model/dto/repo/PayCashResultDTO.java
+1
-2
RepoCashDTO.java
...main/java/com/mmc/payment/model/dto/repo/RepoCashDTO.java
+13
-6
RepoRcdTeamDTO.java
...n/java/com/mmc/payment/model/dto/repo/RepoRcdTeamDTO.java
+1
-2
RepoRebateWalletDTO.java
...a/com/mmc/payment/model/dto/repo/RepoRebateWalletDTO.java
+1
-2
RepoWalletDTO.java
...in/java/com/mmc/payment/model/dto/repo/RepoWalletDTO.java
+20
-11
RoleInfoDTO.java
...main/java/com/mmc/payment/model/dto/role/RoleInfoDTO.java
+1
-2
BaseAccountDTO.java
...n/java/com/mmc/payment/model/dto/user/BaseAccountDTO.java
+20
-16
CurrentUserDTO.java
...n/java/com/mmc/payment/model/dto/user/CurrentUserDTO.java
+1
-1
RepoAccountDTO.java
...n/java/com/mmc/payment/model/dto/user/RepoAccountDTO.java
+1
-2
UserAccountDTO.java
...n/java/com/mmc/payment/model/dto/user/UserAccountDTO.java
+3
-2
UserAccountSimpleDTO.java
.../com/mmc/payment/model/dto/user/UserAccountSimpleDTO.java
+3
-1
BaseInfoQO.java
src/main/java/com/mmc/payment/model/qo/BaseInfoQO.java
+6
-6
RepoAccountQO.java
src/main/java/com/mmc/payment/model/qo/RepoAccountQO.java
+1
-2
RepoCashQO.java
src/main/java/com/mmc/payment/model/qo/RepoCashQO.java
+6
-7
RepoWalletQO.java
src/main/java/com/mmc/payment/model/qo/RepoWalletQO.java
+48
-0
UserAccountQO.java
src/main/java/com/mmc/payment/model/qo/UserAccountQO.java
+2
-3
UserCashQO.java
src/main/java/com/mmc/payment/model/qo/UserCashQO.java
+48
-0
WalletMessageQO.java
src/main/java/com/mmc/payment/model/qo/WalletMessageQO.java
+25
-0
WalletUsersQO.java
src/main/java/com/mmc/payment/model/qo/WalletUsersQO.java
+27
-0
EntFourValidateVO.java
...ava/com/mmc/payment/model/vo/flyer/EntFourValidateVO.java
+53
-0
FlyerAccountVO.java
...n/java/com/mmc/payment/model/vo/flyer/FlyerAccountVO.java
+60
-0
FlyerWorkStatusVO.java
...ava/com/mmc/payment/model/vo/flyer/FlyerWorkStatusVO.java
+40
-0
ShareOrderDTO.java
...in/java/com/mmc/payment/model/vo/order/ShareOrderDTO.java
+1
-2
RepoAccountVO.java
...ain/java/com/mmc/payment/model/vo/repo/RepoAccountVO.java
+1
-2
RepoCashVO.java
src/main/java/com/mmc/payment/model/vo/repo/RepoCashVO.java
+24
-24
RepoOrderPayVO.java
...in/java/com/mmc/payment/model/vo/repo/RepoOrderPayVO.java
+5
-5
WalletUsersVO.java
...n/java/com/mmc/payment/model/vo/wallet/WalletUsersVO.java
+25
-0
RepoAccountServiceImpl.java
.../com/mmc/payment/service/Impl/RepoAccountServiceImpl.java
+51
-50
RepoCashServiceImpl.java
...ava/com/mmc/payment/service/Impl/RepoCashServiceImpl.java
+0
-0
RepoAccountService.java
...main/java/com/mmc/payment/service/RepoAccountService.java
+2
-2
RepoCashService.java
src/main/java/com/mmc/payment/service/RepoCashService.java
+37
-22
application-dev.yml
src/main/resources/application-dev.yml
+8
-2
application-local.yml
src/main/resources/application-local.yml
+5
-1
application-prod.yml
src/main/resources/application-prod.yml
+6
-0
application.yml
src/main/resources/application.yml
+4
-0
RepoCashDao.xml
src/main/resources/mapper/RepoCashDao.xml
+105
-18
没有找到文件。
Dockerfile
浏览文件 @
e5d2b13a
FROM
openjdk:8-jdk-alpine
VOLUME
["/var/log/app/"]
ARG
JAVA_OPTS
ENV
JAVA_OPTS=$JAVA_OPTS
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
...
...
kustomization/base/deployment.yaml
浏览文件 @
e5d2b13a
...
...
@@ -4,6 +4,8 @@ metadata:
name
:
payment-deployment
namespace
:
default
spec
:
minReadySeconds
:
250
revisionHistoryLimit
:
2
replicas
:
1
selector
:
matchLabels
:
...
...
@@ -16,6 +18,9 @@ spec:
containers
:
-
name
:
payment
image
:
REGISTRY/NAMESPACE/IMAGE:TAG
volumeMounts
:
-
name
:
log-of-app
mountPath
:
/var/log/app
resources
:
limits
:
memory
:
1024Mi
...
...
@@ -27,4 +32,8 @@ spec:
valueFrom
:
configMapKeyRef
:
name
:
payment-map
key
:
SPRING_PROFILES_ACTIVE
\ No newline at end of file
key
:
SPRING_PROFILES_ACTIVE
volumes
:
-
name
:
log-of-app
hostPath
:
path
:
/var/log/app
\ No newline at end of file
kustomization/overlays/dev/increase_replicas.yaml
0 → 100644
浏览文件 @
e5d2b13a
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
payment-deployment
spec
:
replicas
:
2
strategy
:
type
:
RollingUpdate
rollingUpdate
:
maxSurge
:
1
maxUnavailable
:
1
\ No newline at end of file
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
e5d2b13a
...
...
@@ -9,4 +9,9 @@ commonLabels:
commonAnnotations
:
note
:
This is dev!
patches
:
-
path
:
./configMap.yaml
\ No newline at end of file
-
path
:
./increase_replicas.yaml
-
path
:
./configMap.yaml
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/payment
newTag
:
100991a5fb3e8db73695404a54af20b579da421f
kustomization/overlays/prod/increase_replicas.yaml
浏览文件 @
e5d2b13a
...
...
@@ -3,4 +3,9 @@ kind: Deployment
metadata
:
name
:
payment-deployment
spec
:
replicas
:
1
\ No newline at end of file
replicas
:
2
strategy
:
type
:
RollingUpdate
rollingUpdate
:
maxSurge
:
1
maxUnavailable
:
1
\ No newline at end of file
src/main/java/com/mmc/payment/common/BaseController.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mmc.payment.common.result.ResultEnum
;
import
com.mmc.payment.config.AuthHandler
;
import
com.mmc.payment.exception.BizException
;
import
com.mmc.payment.jwt.JwtConstant
;
import
com.mmc.payment.model.dto.BaseAccountDTO
;
import
com.mmc.payment.model.dto.CurrentUserDTO
;
import
com.mmc.payment.model.dto.
user.
BaseAccountDTO
;
import
com.mmc.payment.model.dto.
user.
CurrentUserDTO
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
...
...
@@ -24,6 +25,7 @@ public abstract class BaseController {
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
/**
* 获取当前用户
*
...
...
@@ -43,10 +45,10 @@ public abstract class BaseController {
public
BaseAccountDTO
getCurrentAccount
(
HttpServletRequest
request
)
{
String
token
=
request
.
getHeader
(
"token"
);
String
json
=
stringRedisTemplate
.
opsForValue
().
get
(
token
);
if
(
StringUtils
.
isBlank
(
json
)){
if
(
StringUtils
.
isBlank
(
json
))
{
throw
new
BizException
(
ResultEnum
.
LOGIN_ACCOUNT_STATUS_ERROR
);
}
BaseAccountDTO
baseAccountDTO
=
JSONObject
.
parseObject
(
json
,
BaseAccountDTO
.
class
);
BaseAccountDTO
baseAccountDTO
=
JSONObject
.
parseObject
(
json
,
BaseAccountDTO
.
class
);
return
baseAccountDTO
;
}
}
src/main/java/com/mmc/payment/common/FlyerAccountType.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
/**
* @Author small
* @Date 2023/5/29 16:18
* @Version 1.0
*/
public
enum
FlyerAccountType
{
YK
(
0
,
"游客"
),
PT
(
1
,
"普通用户"
),
GR
(
2
,
"个人飞手"
),
JG
(
3
,
"飞手机构"
);
FlyerAccountType
(
Integer
code
,
String
status
)
{
this
.
code
=
code
;
this
.
status
=
status
;
}
private
Integer
code
;
private
String
status
;
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
}
src/main/java/com/mmc/payment/common/PortTypeEnum.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
/**
* @Author small
* @Date 2023/5/30 10:47
* @Version 1.0
*/
public
enum
PortTypeEnum
{
ADMIN_ACCOUNTS
(
0
,
"后台管理账号"
),
CLIENTS_AND_APPLETS
(
100
,
"客户端和小程序"
);
private
Integer
code
;
private
String
name
;
PortTypeEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
Integer
getCode
()
{
return
this
.
code
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
this
.
name
;
}
}
src/main/java/com/mmc/payment/common/BaseErrorInfoInterface.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
BaseErrorInfoInterface.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Create.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Create.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Freeze.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Freeze.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Page.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Page.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Refund.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Refund.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Share.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Share.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/Update.java
→
src/main/java/com/mmc/payment/common/
publicinterface/
Update.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
publicinterface
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/common/PageResult.java
→
src/main/java/com/mmc/payment/common/
result/
PageResult.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
result
;
import
com.mmc.payment.model.qo.BaseInfoQO
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/com/mmc/payment/common/ResultBody.java
→
src/main/java/com/mmc/payment/common/
result/
ResultBody.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
result
;
import
com.alibaba.fastjson.JSONObject
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.common.publicinterface.BaseErrorInfoInterface
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -71,9 +71,8 @@ public class ResultBody<T> implements Serializable {
/**
* 成功
*
* **/
public
static
ResultBody
success1
(
ResultEnum
enums
){
**/
public
static
ResultBody
success1
(
ResultEnum
enums
)
{
ResultBody
rb
=
new
ResultBody
();
rb
.
setCode
(
"200"
);
rb
.
setMessage
(
enums
.
getResultMsg
());
...
...
src/main/java/com/mmc/payment/common/ResultEnum.java
→
src/main/java/com/mmc/payment/common/
result/
ResultEnum.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
result
;
import
com.mmc.payment.common.publicinterface.BaseErrorInfoInterface
;
/**
* @Author small
...
...
@@ -381,14 +383,14 @@ public enum ResultEnum implements BaseErrorInfoInterface {
SCORE_ERROR
(
"40177"
,
"您输入的积分数量有误,请重新输入!"
),
PLEASE_FILL_IN_THE_CONTRACT_TEMPLATE_FIRST
(
"40178"
,
"请先填充合同模板!"
),
SCORE_NOT_GIVE_MYSELF
(
"40179"
,
"积分不能转赠给本人,请重新操作"
),
SCORE_NOT_GIVE_MYSELF
(
"40179"
,
"积分不能转赠给本人,请重新操作"
),
ALREADY_FINISH_ENT_AUTH_ERROR
(
"2000"
,
"助力已完成!"
),
SYSTEM_ERROR
(
"2001"
,
"系统错误,请稍后重试"
)
,
RULE_ERROR
(
"2002"
,
"当前兑换比例已失效,请刷新后重试"
),
SYSTEM_ERROR
(
"2001"
,
"系统错误,请稍后重试"
)
,
RULE_ERROR
(
"2002"
,
"当前兑换比例已失效,请刷新后重试"
),
COUNT_LIMIT_ERROR
(
"2003"
,
"参与次数已达上线"
),
ALREADY_ENT_AUTH_ERROR
(
"2004"
,
"助力失败,您已完成企业认证!"
),
ALREADY_REAL_NAME_AUTH_ERROR
(
"2005"
,
"助力失败,您已完成实名认证!"
),
ALREADY_ENT_AUTH_ERROR
(
"2004"
,
"助力失败,您已完成企业认证!"
),
ALREADY_REAL_NAME_AUTH_ERROR
(
"2005"
,
"助力失败,您已完成实名认证!"
),
PARTICIPATE_BUT_NOT_AUTH_ERROR
(
"2006"
,
"待完成授权或认证"
),
ALREADY_HELP_ERROR
(
"2007"
,
"已助力"
),
ALREADY_STOP_ERROR
(
"2008"
,
"活动已下线"
),
...
...
@@ -396,15 +398,20 @@ public enum ResultEnum implements BaseErrorInfoInterface {
ALREADY_BINDING_ERROR
(
"2010"
,
"优惠券已被绑定"
),
ALREADY_DIVIDE_ERROR
(
"2011"
,
"订单已分成"
),
DIVIDE_OBJ_NOT_EXIST
(
"2012"
,
"先点击确认添加分成对象"
),
THE_REQUEST_IS_NOT_AUTHENTICATED
(
"2013"
,
"请求未经过鉴权"
),
THE_TOKEN_IS_INVALID
(
"2014"
,
"token失效"
)
;;
THE_REQUEST_IS_NOT_AUTHENTICATED
(
"2013"
,
"请求未经过鉴权"
),
THE_TOKEN_IS_INVALID
(
"2014"
,
"token失效"
),
FAILED_TO_CHARGE_MONEY
(
"2015"
,
"只有后台账号才能给小程序客户端充值"
),
NO_WALLET_FUNCTION
(
"2016"
,
"后台账号无钱包功能"
),
THE_ORDER_HAS_BEEN_PAID
(
"2017"
,
"订单已支付/订单编号错误"
),
THE_CURRENT_AMOUNT_IS_INSUFFICIENT
(
"2019"
,
"当前余额不足,请充值再支付"
),
THE_TOKEN_CANNOT_BE_NULL
(
"2018"
,
"token不能为null"
);
/**
* 错误码
*
* @return
*/
public
String
resultCode
;
public
String
resultCode
;
/**
* 错误描述
...
...
src/main/java/com/mmc/payment/common/AmtUtil.java
→
src/main/java/com/mmc/payment/common/
util/
AmtUtil.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
util
;
import
java.math.BigDecimal
;
...
...
src/main/java/com/mmc/payment/common/util/BeanCopyUtils.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
.
util
;
import
org.springframework.beans.BeanUtils
;
import
java.util.Objects
;
/**
* @Author small
* @Date 2023/5/30 10:21
* @Version 1.0
*/
public
class
BeanCopyUtils
{
public
static
<
T
>
T
properties
(
Object
source
,
T
target
)
{
if
(
Objects
.
isNull
(
source
))
{
return
target
;
}
BeanUtils
.
copyProperties
(
source
,
target
);
return
target
;
}
public
static
<
T
>
T
properties
(
Object
source
,
Class
<
T
>
target
)
{
T
t
=
null
;
try
{
t
=
target
.
newInstance
();
if
(
Objects
.
isNull
(
source
))
{
return
t
;
}
}
catch
(
InstantiationException
e
)
{
e
.
printStackTrace
();
}
catch
(
IllegalAccessException
e
)
{
e
.
printStackTrace
();
}
BeanUtils
.
copyProperties
(
source
,
t
);
return
t
;
}
}
src/main/java/com/mmc/payment/common/CodeUtil.java
→
src/main/java/com/mmc/payment/common/
util/
CodeUtil.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
util
;
import
java.util.Random
;
...
...
src/main/java/com/mmc/payment/common/JsonUtil.java
→
src/main/java/com/mmc/payment/common/
util/
JsonUtil.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
util
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
...
...
src/main/java/com/mmc/payment/common/TDateUtil.java
→
src/main/java/com/mmc/payment/common/
util/
TDateUtil.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
common
;
package
com
.
mmc
.
payment
.
common
.
util
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
...
...
@@ -160,17 +160,18 @@ public class TDateUtil {
/**
* 某天个时间加 N 小时
*
* @param now
* @param num
* @return
*/
public
static
Date
addHourTime
(
Date
now
,
int
num
)
{
public
static
Date
addHourTime
(
Date
now
,
int
num
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Date
date
=
null
;
try
{
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
now
);
calendar
.
add
(
Calendar
.
HOUR
,
num
);
calendar
.
add
(
Calendar
.
HOUR
,
num
);
String
last
=
format
.
format
(
calendar
.
getTime
());
date
=
getDate
(
last
,
"yyyy-MM-dd HH:mm:ss"
);
}
catch
(
Exception
e
)
{
...
...
@@ -480,7 +481,7 @@ public class TDateUtil {
*/
public
static
Date
getLastYearTodayDate
()
{
Calendar
instance
=
Calendar
.
getInstance
();
instance
.
add
(
Calendar
.
YEAR
,-
1
);
instance
.
add
(
Calendar
.
YEAR
,
-
1
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
s
=
format
.
format
(
instance
.
getTime
());
return
getDate
(
s
,
"yyyy-MM-dd"
);
...
...
@@ -488,12 +489,13 @@ public class TDateUtil {
/**
* 获取昨天的日期
*
* @param type
* @return
*/
public
static
String
getYesterdayDateByType
(
String
type
){
public
static
String
getYesterdayDateByType
(
String
type
)
{
Calendar
instance
=
Calendar
.
getInstance
();
instance
.
add
(
Calendar
.
DAY_OF_MONTH
,-
1
);
instance
.
add
(
Calendar
.
DAY_OF_MONTH
,
-
1
);
Date
time
=
instance
.
getTime
();
SimpleDateFormat
format
=
new
SimpleDateFormat
(
type
);
return
format
.
format
(
time
);
...
...
@@ -517,49 +519,51 @@ public class TDateUtil {
/**
* 间隔天数
*
* @param startTime
* @param endTime
* @return
*/
public
static
int
isolateDayNum
(
String
startTime
,
String
endTime
){
public
static
int
isolateDayNum
(
String
startTime
,
String
endTime
)
{
Date
startDate
=
getDate
(
startTime
,
"yyyy-MM-dd"
);
Date
endDate
=
getDate
(
endTime
,
"yyyy-MM-dd"
);
long
differentMillis
=
endDate
.
getTime
()
-
startDate
.
getTime
();
long
dayNum
=
differentMillis
/(
1000
*
60
*
60
*
24
);
return
(
int
)
dayNum
;
long
dayNum
=
differentMillis
/
(
1000
*
60
*
60
*
24
);
return
(
int
)
dayNum
;
}
/**
* 获取某月最后一天的时间
*
* @param yearMonth
* @return
*/
public
static
String
getLastDateTimeOfMonth
(
String
yearMonth
){
public
static
String
getLastDateTimeOfMonth
(
String
yearMonth
)
{
SimpleDateFormat
format0
=
new
SimpleDateFormat
(
"yyyy-MM"
);
SimpleDateFormat
format1
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Calendar
instance
=
Calendar
.
getInstance
();
try
{
Date
parse
=
format0
.
parse
(
yearMonth
);
instance
.
setTime
(
parse
);
instance
.
set
(
Calendar
.
DAY_OF_MONTH
,
instance
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
instance
.
set
(
Calendar
.
DAY_OF_MONTH
,
instance
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
instance
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
instance
.
set
(
Calendar
.
MINUTE
,
59
);
instance
.
set
(
Calendar
.
SECOND
,
59
);
String
format
=
format1
.
format
(
instance
.
getTime
());
return
format
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
public
static
Date
getStrToDate
(
String
str
){
public
static
Date
getStrToDate
(
String
str
)
{
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy年MM月dd日"
);
Date
date
=
null
;
try
{
if
(
str
==
null
)
{
if
(
str
==
null
)
{
date
=
null
;
}
else
{
}
else
{
date
=
dateFormat
.
parse
(
str
);
}
}
catch
(
ParseException
e
)
{
...
...
@@ -568,7 +572,7 @@ public class TDateUtil {
return
date
;
}
public
static
int
getStageByDate
(
Date
date
){
public
static
int
getStageByDate
(
Date
date
)
{
Calendar
instance
=
Calendar
.
getInstance
();
instance
.
setTime
(
date
);
//当前时间
...
...
@@ -584,22 +588,22 @@ public class TDateUtil {
Date
parse4
=
dateFormat
.
parse
(
"00:00:00"
);
//A:05:00-11:00 | B:11:00-17:00 | C:00:00-05:00,17:00-00:00
if
(
currentTime
.
after
(
parse4
)
&&
currentTime
.
before
(
parse1
)
)
{
if
(
currentTime
.
after
(
parse4
)
&&
currentTime
.
before
(
parse1
))
{
return
3
;
}
else
if
(
currentTime
.
after
(
parse1
)
&&
currentTime
.
before
(
parse2
))
{
}
else
if
(
currentTime
.
after
(
parse1
)
&&
currentTime
.
before
(
parse2
))
{
return
1
;
}
else
if
(
currentTime
.
after
(
parse2
)
&&
currentTime
.
before
(
parse3
))
{
}
else
if
(
currentTime
.
after
(
parse2
)
&&
currentTime
.
before
(
parse3
))
{
return
2
;
}
else
if
(
currentTime
.
after
(
parse3
)
&&
currentTime
.
after
(
parse4
))
{
}
else
if
(
currentTime
.
after
(
parse3
)
&&
currentTime
.
after
(
parse4
))
{
return
4
;
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
0
;
}
public
static
String
getCurrentYear
(){
public
static
String
getCurrentYear
()
{
Calendar
date
=
Calendar
.
getInstance
();
String
year
=
String
.
valueOf
(
date
.
get
(
Calendar
.
YEAR
));
return
year
;
...
...
src/main/java/com/mmc/payment/config/AuthHandler.java
浏览文件 @
e5d2b13a
差异被折叠。
点击展开。
src/main/java/com/mmc/payment/config/JwtUtil.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
config
;
import
com.mmc.payment.common.CodeUtil
;
import
com.mmc.payment.common.
util.
CodeUtil
;
import
com.mmc.payment.jwt.JwtConstant
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.JwtBuilder
;
...
...
src/main/java/com/mmc/payment/controller/RepoAccountController.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
controller
;
import
com.mmc.payment.common.ResultBody
;
import
com.mmc.payment.common.
result.
ResultBody
;
import
com.mmc.payment.config.AuthHandler
;
import
com.mmc.payment.jwt.JwtConstant
;
import
com.mmc.payment.model.dto.BaseAccountDTO
;
import
com.mmc.payment.model.dto.RepoAccountDTO
;
import
com.mmc.payment.model.dto.
user.
BaseAccountDTO
;
import
com.mmc.payment.model.dto.
user.
RepoAccountDTO
;
import
com.mmc.payment.model.qo.RepoAccountQO
;
import
com.mmc.payment.service.RepoAccountService
;
import
io.swagger.annotations.Api
;
...
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -26,6 +27,7 @@ import javax.servlet.http.HttpServletRequest;
*/
@Api
(
tags
=
{
"云仓-账号相关-接口"
})
@RestController
@ApiIgnore
@RequestMapping
(
"/repoaccount/"
)
public
class
RepoAccountController
{
...
...
@@ -39,7 +41,7 @@ public class RepoAccountController {
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoAccountDTO
.
class
)})
@PostMapping
(
"listPagePayManager"
)
public
ResultBody
listPagePayManager
(
HttpServletRequest
request
,
@RequestBody
RepoAccountQO
param
)
{
return
ResultBody
.
success
(
repoAccountService
.
listPagePayManager
(
param
,
this
.
getCurrentAccount
(
request
)));
return
ResultBody
.
success
(
repoAccountService
.
listPagePayManager
(
param
,
this
.
getCurrentAccount
(
request
)));
}
/**
...
...
@@ -51,6 +53,4 @@ public class RepoAccountController {
}
}
src/main/java/com/mmc/payment/controller/RepoCashController.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
controller
;
import
com.mmc.payment.common.BaseController
;
import
com.mmc.payment.common.ResultBody
;
import
com.mmc.payment.common.
result.
ResultBody
;
import
com.mmc.payment.config.RepeatSubmit
;
import
com.mmc.payment.model.dto.PayCashResultDTO
;
import
com.mmc.payment.model.dto.RepoCashDTO
;
import
com.mmc.payment.model.dto.cash.CashTypeDTO
;
import
com.mmc.payment.model.dto.repo.PayCashResultDTO
;
import
com.mmc.payment.model.dto.repo.RepoCashDTO
;
import
com.mmc.payment.model.dto.repo.RepoWalletDTO
;
import
com.mmc.payment.model.qo.RepoCashQO
;
import
com.mmc.payment.model.vo.RepoCashVO
;
import
com.mmc.payment.model.vo.RepoOrderPayVO
;
import
com.mmc.payment.model.qo.UserCashQO
;
import
com.mmc.payment.model.vo.repo.RepoCashVO
;
import
com.mmc.payment.model.vo.repo.RepoOrderPayVO
;
import
com.mmc.payment.model.vo.wallet.WalletUsersVO
;
import
com.mmc.payment.service.RepoCashService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -29,70 +33,123 @@ import java.math.BigDecimal;
@RequestMapping
(
"/repocash/"
)
public
class
RepoCashController
extends
BaseController
{
@Autowired
private
RepoCashService
repoCashService
;
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
@ApiOperation
(
value
=
"web-订单支付"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PayCashResultDTO
.
class
)})
@PostMapping
(
"orderPayment"
)
public
PayCashResultDTO
orderPayment
(
HttpServletRequest
request
,
@RequestParam
String
orderNo
)
{
return
repoCashService
.
orderPayment
(
this
.
getCurrentAccount
(
request
),
orderNo
);
}
@ApiOperation
(
value
=
"支付订单-充值扣款"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PayCashResultDTO
.
class
)})
@ApiIgnore
@PostMapping
(
"PayCashOrder"
)
public
PayCashResultDTO
feignPayCashOrder
(
@RequestBody
RepoOrderPayVO
orderPay
)
{
return
repoCashService
.
payCashOrder
(
orderPay
);
}
@ApiOperation
(
value
=
"当前用户剩余的余额"
)
@GetMapping
(
"RemainingBalance"
)
public
BigDecimal
RemainingBalance
(
@RequestParam
(
value
=
"repoAccountId"
,
required
=
true
)
Integer
repoAccountId
)
{
String
s
=
stringRedisTemplate
.
opsForValue
().
get
(
"R2023052814538712"
);
return
repoCashService
.
RemainingBalance
(
repoAccountId
);
}
@ApiOperation
(
value
=
"余额变更-分页-列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@PostMapping
(
"listPageCash"
)
public
ResultBody
listPageCash
(
@RequestBody
RepoCashQO
param
)
{
return
ResultBody
.
success
(
repoCashService
.
listPageRepoCash
(
param
));
}
@ApiOperation
(
value
=
"余额变更-修改备注"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"updateCashRemark"
)
public
ResultBody
updateCashRemark
(
@RequestParam
Integer
id
,
@RequestParam
()
String
remark
)
{
repoCashService
.
updateCashRemark
(
id
,
remark
);
return
ResultBody
.
success
();
}
@ApiOperation
(
value
=
"v1.0.1Yes-现金-充值"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@RepeatSubmit
@PostMapping
(
"reqCash"
)
public
ResultBody
reqCash
(
HttpServletRequest
request
,
@RequestBody
RepoCashVO
param
)
{
return
repoCashService
.
reqCash
(
this
.
getCurrentAccount
(
request
),
param
);
}
@ApiOperation
(
value
=
"v1.0.1-Yes现金-手动扣除"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@RepeatSubmit
@PostMapping
(
"dedCash"
)
public
ResultBody
dedCash
(
HttpServletRequest
request
,
@RequestBody
RepoCashVO
param
)
{
return
repoCashService
.
dedCash
(
this
.
getCurrentAccount
(
request
),
param
);
}
@ApiIgnore
@ApiOperation
(
value
=
"查询退款金额"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@GetMapping
(
"feignRefundInfo"
)
public
RepoCashDTO
feignRefundInfo
(
@RequestParam
String
refundNo
)
{
return
repoCashService
.
getRefundInfo
(
refundNo
);
}
@Autowired
private
RepoCashService
repoCashService
;
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
@ApiOperation
(
value
=
"现金管理列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoWalletDTO
.
class
)})
@PostMapping
(
"listPagePayManager"
)
public
ResultBody
<
RepoWalletDTO
>
listPagePayManager
(
HttpServletRequest
request
,
@RequestBody
UserCashQO
param
)
{
return
ResultBody
.
success
(
repoCashService
.
listPagePayManager
(
this
.
getCurrentAccount
(
request
),
param
));
}
@ApiOperation
(
value
=
"余额变更-分页-列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@PostMapping
(
"listPageCash"
)
public
ResultBody
<
RepoCashDTO
>
listPageCash
(
HttpServletRequest
request
,
@RequestBody
RepoCashQO
param
)
{
return
ResultBody
.
success
(
repoCashService
.
listPageRepoCash
(
this
.
getCurrentAccount
(
request
),
param
));
}
@ApiOperation
(
value
=
"现金类型"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@PostMapping
(
"cashType"
)
public
ResultBody
<
CashTypeDTO
>
cashType
()
{
return
repoCashService
.
cashType
();
}
@ApiOperation
(
value
=
"v1.0.1-现金-充值/即扣款"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@RepeatSubmit
@PostMapping
(
"reqCash"
)
public
ResultBody
reqCash
(
HttpServletRequest
request
,
@RequestBody
RepoCashVO
param
)
{
return
repoCashService
.
reqCash
(
this
.
getCurrentAccount
(
request
),
param
);
}
@ApiOperation
(
value
=
"小程序用户生成时,用户钱包中用户同时生成————用于远程,前端不使用"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"walletUsers"
)
public
ResultBody
walletUsers
(
@RequestBody
WalletUsersVO
walletUsersVO
)
{
return
repoCashService
.
walletUsers
(
walletUsersVO
);
}
@ApiOperation
(
value
=
"租赁——订单支付"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"orderPayment"
)
public
ResultBody
orderPayment
(
HttpServletRequest
request
,
@RequestParam
String
orderNo
)
{
return
repoCashService
.
orderPayment
(
this
.
getCurrentAccount
(
request
),
orderNo
);
}
@ApiOperation
(
value
=
"支付订单-充值扣款"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
PayCashResultDTO
.
class
)})
@ApiIgnore
@PostMapping
(
"PayCashOrder"
)
public
PayCashResultDTO
feignPayCashOrder
(
@RequestBody
RepoOrderPayVO
orderPay
)
{
return
repoCashService
.
payCashOrder
(
orderPay
);
}
@ApiOperation
(
value
=
"当前用户剩余的余额--后台内部调用"
)
@GetMapping
(
"RemainingBalance"
)
public
BigDecimal
RemainingBalance
(
@RequestParam
(
value
=
"repoAccountId"
,
required
=
true
)
Integer
repoAccountId
)
{
return
repoCashService
.
RemainingBalance
(
repoAccountId
);
}
@ApiIgnore
@ApiOperation
(
value
=
"余额变更-修改备注"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"updateCashRemark"
)
public
ResultBody
updateCashRemark
(
@RequestParam
Integer
id
,
@RequestParam
()
String
remark
)
{
repoCashService
.
updateCashRemark
(
id
,
remark
);
return
ResultBody
.
success
();
}
@ApiIgnore
@ApiOperation
(
value
=
"v1.0.1-Yes现金-手动扣除"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@RepeatSubmit
@PostMapping
(
"dedCash"
)
public
ResultBody
dedCash
(
HttpServletRequest
request
,
@RequestBody
RepoCashVO
param
)
{
return
repoCashService
.
dedCash
(
this
.
getCurrentAccount
(
request
),
param
);
}
@ApiIgnore
@ApiOperation
(
value
=
"查询退款金额"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@GetMapping
(
"feignRefundInfo"
)
public
RepoCashDTO
feignRefundInfo
(
@RequestParam
String
refundNo
)
{
return
repoCashService
.
getRefundInfo
(
refundNo
);
}
@ApiOperation
(
value
=
"获取用户钱包"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
RepoCashDTO
.
class
)})
@GetMapping
(
"userWallet"
)
public
ResultBody
<
RepoWalletDTO
>
userWallet
(
HttpServletRequest
request
)
{
return
repoCashService
.
userWallet
(
this
.
getCurrentAccount
(
request
));
}
@ApiOperation
(
value
=
"退款金额---用户后台内部调用前端不使用"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"amountOfRefund"
)
public
ResultBody
amountOfRefund
(
HttpServletRequest
request
,
@RequestParam
(
value
=
"orderNo"
)
String
orderNo
,
@RequestParam
(
value
=
"actualPay"
)
BigDecimal
actualPay
,
@RequestParam
(
value
=
"repoAccountId"
)
Integer
repoAccountId
,
@RequestParam
(
value
=
"refundNo"
)
String
refundNo
)
{
return
repoCashService
.
amountOfRefund
(
this
.
getCurrentAccount
(
request
),
orderNo
,
actualPay
,
repoAccountId
,
refundNo
);
}
}
src/main/java/com/mmc/payment/dao/RepoAccountDao.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
dao
;
import
com.mmc.payment.entity.RepoAccountDO
;
import
com.mmc.payment.entity.RepoWalletDO
;
import
com.mmc.payment.entity.
repo.
RepoAccountDO
;
import
com.mmc.payment.entity.
repo.
RepoWalletDO
;
import
com.mmc.payment.model.qo.RepoAccountQO
;
import
org.apache.ibatis.annotations.Mapper
;
...
...
src/main/java/com/mmc/payment/dao/RepoCashDao.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
dao
;
import
com.mmc.payment.entity.RepoCashDO
;
import
com.mmc.payment.entity.RepoWalletDO
;
import
com.mmc.payment.entity.cash.CashTypeDO
;
import
com.mmc.payment.entity.repo.RepoCashDO
;
import
com.mmc.payment.entity.repo.RepoWalletDO
;
import
com.mmc.payment.model.qo.RepoCashQO
;
import
com.mmc.payment.model.qo.UserCashQO
;
import
com.mmc.payment.model.qo.WalletUsersQO
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.math.BigDecimal
;
...
...
@@ -13,23 +16,37 @@ import java.util.List;
*/
@Mapper
public
interface
RepoCashDao
{
RepoCashDO
getRefundCashInfo
(
String
refundNo
);
RepoCashDO
getRefundCashInfo
(
String
refundNo
);
void
insertRepoCash
(
RepoCashDO
rc
);
void
insertRepoCash
(
RepoCashDO
rc
);
void
updateCashRemark
(
Integer
id
,
String
remark
);
void
updateCashRemark
(
Integer
id
,
String
remark
);
List
<
RepoCashDO
>
listPagePFRepoCash
(
RepoCashQO
param
);
List
<
RepoCashDO
>
listPagePFRepoCash
(
RepoCashQO
param
);
int
countPagePFRepoCash
(
RepoCashQO
param
);
int
countPagePFRepoCash
(
RepoCashQO
param
);
RepoWalletDO
getRepoWalletInfo
(
Integer
repoAccountId
);
RepoWalletDO
getRepoWalletInfo
(
Integer
repoAccountId
);
void
updateRepoWalletAmt
(
Integer
repoAccountId
,
BigDecimal
chageAmt
);
void
updateRepoWalletAmt
(
Integer
repoAccountId
,
BigDecimal
chageAmt
);
BigDecimal
RemainingBalance
(
Integer
repoAccountId
);
BigDecimal
RemainingBalance
(
Integer
repoAccountId
);
void
updateWalletAmt
(
Integer
repoAccountId
,
BigDecimal
addAmt
,
BigDecimal
addPaid
);
void
updateWalletAmt
(
Integer
repoAccountId
,
BigDecimal
addAmt
,
BigDecimal
addPaid
);
void
orderPayment
(
RepoCashDO
repoCashDO
);
void
orderPayment
(
RepoCashDO
repoCashDO
);
int
countPagePayManager
(
UserCashQO
param
);
List
<
RepoWalletDO
>
listPagePayManager
(
UserCashQO
param
);
List
<
RepoWalletDO
>
listWalletInfo
(
UserCashQO
param
);
void
walletUsers
(
WalletUsersQO
properties
);
Integer
findWalletUsers
(
WalletUsersQO
properties
);
List
<
CashTypeDO
>
cashType
();
RepoWalletDO
userWallet
(
Integer
userAccountId
);
}
src/main/java/com/mmc/payment/entity/cash/CashTypeDO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
.
cash
;
import
com.mmc.payment.model.dto.cash.CashTypeDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/30 19:59
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public
class
CashTypeDO
implements
Serializable
{
private
Integer
id
;
private
String
type
;
public
CashTypeDTO
buildCashTypeDTO
()
{
return
CashTypeDTO
.
builder
().
id
(
this
.
id
)
.
type
(
this
.
type
).
build
();
}
}
src/main/java/com/mmc/payment/entity/flyer/FlyerAccountDO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
.
flyer
;
import
com.mmc.payment.common.FlyerAccountType
;
import
com.mmc.payment.model.dto.flyer.FlyerAccountDTO
;
import
com.mmc.payment.model.dto.flyer.FlyerInfoDTO
;
import
com.mmc.payment.model.dto.flyer.FlyerRcdTeamDTO
;
import
com.mmc.payment.model.vo.flyer.FlyerAccountVO
;
import
com.mmc.payment.model.vo.flyer.FlyerWorkStatusVO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.springframework.util.StringUtils
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashSet
;
/**
* @Author small
* @Date 2023/5/29 16:11
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public
class
FlyerAccountDO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6990172418648675316L
;
private
Integer
id
;
private
String
uid
;
private
String
accountName
;
private
String
phoneNum
;
private
Integer
accountType
;
private
Integer
realAuthStatus
;
private
Integer
entAuthStatus
;
private
Integer
workStatus
;
private
Integer
serviceStatus
;
private
String
openId
;
private
String
unionId
;
private
String
nickName
;
private
String
resAddress
;
private
String
headerImg
;
private
Double
lon
;
private
Double
lat
;
private
String
ports
;
private
String
remark
;
private
Integer
deleted
;
private
Date
createTime
;
private
Date
updateTime
;
private
Integer
sale
;
private
Integer
white
;
private
Integer
source
;
private
FlyerAccountDO
rcdFlyer
;
/**
* 辅助字段-start
*
* @return
*/
private
String
entName
;
private
Integer
licStatus
;
private
FlyerEntInfoDO
entInfo
;
private
Date
rcdCreateTime
;
private
String
rcdRemark
;
private
String
flyerName
;
private
Integer
protocolAuth
;
private
Integer
electricAuth
;
private
Integer
aviationAuth
;
private
Integer
emergencyAuth
;
private
Integer
superviseAuth
;
private
Integer
universalAuth
;
private
Integer
oilGasAuth
;
private
Integer
demoAuth
;
private
Integer
aviationOutAuth
;
private
Integer
aviationInAuth
;
private
Integer
commandAuth
;
private
Integer
tmjAuth
;
private
String
xeUserId
;
public
FlyerAccountDO
(
FlyerWorkStatusVO
flyerWorkStatusVO
)
{
this
.
id
=
flyerWorkStatusVO
.
getId
();
this
.
resAddress
=
flyerWorkStatusVO
.
getResAddress
();
this
.
lon
=
flyerWorkStatusVO
.
getLon
();
this
.
lat
=
flyerWorkStatusVO
.
getLat
();
this
.
workStatus
=
flyerWorkStatusVO
.
getWorkStatus
();
}
/**
* 辅助字段-end
*
* @return
*/
public
FlyerAccountDTO
builderFlyerAccountDTO
()
{
Integer
white
=
0
;
if
(
rcdFlyer
!=
null
&&
rcdFlyer
.
getSale
()
==
1
)
{
white
=
1
;
}
return
FlyerAccountDTO
.
builder
().
id
(
this
.
id
).
uid
(
this
.
uid
).
accountName
(
this
.
accountName
).
phoneNum
(
this
.
phoneNum
).
accountType
(
this
.
accountType
)
.
realAuthStatus
(
this
.
realAuthStatus
).
entAuthStatus
(
this
.
entAuthStatus
).
workStatus
(
this
.
workStatus
)
.
nickName
(
this
.
nickName
).
serviceStatus
(
this
.
serviceStatus
).
unionId
(
this
.
unionId
)
.
headerImg
(
this
.
headerImg
).
lon
(
this
.
lon
).
lat
(
this
.
lat
).
remark
(
this
.
remark
).
deleted
(
this
.
deleted
).
createTime
(
this
.
createTime
)
.
updateTime
(
this
.
updateTime
).
resAddress
(
this
.
resAddress
).
entName
(
this
.
entName
).
licStatus
(
this
.
licStatus
)
.
ports
(
StringUtils
.
isEmpty
(
this
.
ports
)
?
null
:
new
HashSet
<
String
>(
Arrays
.
asList
(
this
.
ports
.
split
(
","
))))
.
entInfo
(
this
.
entInfo
==
null
?
null
:
this
.
entInfo
.
buildFlyerEntInfoDTO
()).
openId
(
this
.
openId
)
.
sale
(
this
.
sale
)
.
rcdFlyerAccountId
(
this
.
rcdFlyer
==
null
?
null
:
this
.
rcdFlyer
.
getId
())
.
rcdUid
(
this
.
rcdFlyer
==
null
?
null
:
this
.
rcdFlyer
.
getUid
())
.
rcdAccountName
(
this
.
rcdFlyer
==
null
?
null
:
this
.
rcdFlyer
.
getAccountName
())
.
rcdNickName
(
this
.
rcdFlyer
==
null
?
null
:
this
.
rcdFlyer
.
getNickName
()).
white
(
white
).
source
(
this
.
source
).
build
();
}
public
FlyerRcdTeamDTO
builderFlyerRcdTeamDTO
()
{
return
FlyerRcdTeamDTO
.
builder
().
FlyerAccountName
(
this
.
accountName
).
id
(
this
.
id
).
accountType
(
this
.
accountType
)
.
realAuthStatus
(
this
.
realAuthStatus
).
entAuthStatus
(
this
.
entAuthStatus
).
createTime
(
this
.
rcdCreateTime
)
.
phoneNum
(
this
.
phoneNum
).
nickName
(
this
.
nickName
).
remark
(
this
.
rcdRemark
).
uid
(
this
.
uid
).
build
();
}
public
FlyerAccountDO
(
FlyerAccountVO
flyerAccountVO
)
{
this
.
id
=
flyerAccountVO
.
getId
();
this
.
uid
=
flyerAccountVO
.
getUid
();
this
.
accountName
=
flyerAccountVO
.
getAccountName
();
this
.
accountType
=
flyerAccountVO
.
getAccountType
();
this
.
phoneNum
=
flyerAccountVO
.
getPhoneNum
();
this
.
realAuthStatus
=
flyerAccountVO
.
getRealAuthStatus
();
this
.
entAuthStatus
=
flyerAccountVO
.
getEntAuthStatus
();
this
.
workStatus
=
flyerAccountVO
.
getWorkStatus
();
this
.
nickName
=
flyerAccountVO
.
getNickName
();
this
.
resAddress
=
flyerAccountVO
.
getResAddress
();
this
.
headerImg
=
flyerAccountVO
.
getHeaderImg
();
this
.
lon
=
flyerAccountVO
.
getLon
();
this
.
lat
=
flyerAccountVO
.
getLat
();
this
.
remark
=
flyerAccountVO
.
getRemark
();
this
.
deleted
=
flyerAccountVO
.
getDeleted
();
}
public
FlyerInfoDTO
buildFlyerInfoDTO
()
{
return
FlyerInfoDTO
.
builder
().
id
(
this
.
id
).
flyerName
(
this
.
flyerName
).
licStatus
(
this
.
licStatus
).
phoneNum
(
this
.
phoneNum
)
.
protocolAuth
(
this
.
protocolAuth
).
electricAuth
(
this
.
electricAuth
).
aviationAuth
(
this
.
aviationAuth
)
.
emergencyAuth
(
this
.
emergencyAuth
).
superviseAuth
(
this
.
superviseAuth
).
universalAuth
(
this
.
universalAuth
)
.
oilGasAuth
(
this
.
oilGasAuth
).
demoAuth
(
this
.
demoAuth
).
aviationOutAuth
(
this
.
aviationOutAuth
)
.
aviationInAuth
(
this
.
aviationOutAuth
).
commandAuth
(
this
.
commandAuth
).
tmjAuth
(
this
.
tmjAuth
).
build
();
}
/**
* 是否为飞手机构用户
*
* @return
*/
public
boolean
checkFlyerEnt
()
{
return
(
FlyerAccountType
.
JG
.
getCode
().
toString
().
equals
(
this
.
accountType
.
toString
()));
}
/**
* 是否为飞手个人用户
*
* @return
*/
public
boolean
checkFlyer
()
{
return
(
FlyerAccountType
.
GR
.
getCode
().
toString
().
equals
(
this
.
accountType
.
toString
()));
}
/**
* 是否为普通用户
*
* @return
*/
public
boolean
checkUsual
()
{
return
(
FlyerAccountType
.
PT
.
getCode
().
toString
().
equals
(
this
.
accountType
.
toString
()));
}
}
src/main/java/com/mmc/payment/entity/flyer/FlyerEntInfoDO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
.
flyer
;
import
com.mmc.payment.model.dto.flyer.FlyerEntInfoDTO
;
import
com.mmc.payment.model.vo.flyer.EntFourValidateVO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/5/29 16:12
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
FlyerEntInfoDO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3400952137664644676L
;
private
Integer
id
;
private
Integer
flyerAccountId
;
private
String
entName
;
private
Integer
entCheckStatus
;
private
String
entLegalPerson
;
private
String
uscCode
;
private
String
unLicImg
;
private
String
bankName
;
private
String
accountHolder
;
private
String
bankAccount
;
private
String
idNumber
;
private
String
remark
;
private
Date
createTime
;
private
Date
updateTime
;
/**
* 额外字段
*/
private
Integer
sumOfFlyer
;
private
Integer
countOfAuthFlyer
;
private
String
uid
;
private
String
phoneNum
;
private
String
resAddress
;
private
String
nickName
;
public
FlyerEntInfoDTO
buildFlyerEntInfoDTO
()
{
return
FlyerEntInfoDTO
.
builder
().
id
(
this
.
id
).
uid
(
this
.
uid
).
phoneNum
(
this
.
phoneNum
).
resAddress
(
this
.
resAddress
).
nickName
(
this
.
nickName
)
.
flyerAccountId
(
this
.
flyerAccountId
).
entName
(
this
.
entName
).
entCheckStatus
(
this
.
entCheckStatus
).
entLegalPerson
(
this
.
entLegalPerson
)
.
uscCode
(
this
.
uscCode
).
unLicImg
(
this
.
unLicImg
).
bankName
(
this
.
bankName
).
accountHolder
(
this
.
accountHolder
).
bankAccount
(
this
.
bankAccount
)
.
idNumber
(
this
.
idNumber
).
remark
(
this
.
remark
).
createTime
(
this
.
createTime
).
updateTime
(
this
.
updateTime
).
sumOfFlyer
(
this
.
sumOfFlyer
)
.
countOfAuthFlyer
(
this
.
countOfAuthFlyer
).
build
();
}
public
FlyerEntInfoDO
(
EntFourValidateVO
entFourValidateVO
)
{
this
.
flyerAccountId
=
entFourValidateVO
.
getUserAccountId
();
this
.
entLegalPerson
=
entFourValidateVO
.
getEntLegalPerson
();
this
.
entName
=
entFourValidateVO
.
getEntName
();
this
.
uscCode
=
entFourValidateVO
.
getUnifySocialCreditCode
();
this
.
unLicImg
=
entFourValidateVO
.
getBusinessLicenseImg
();
this
.
idNumber
=
entFourValidateVO
.
getIdNumber
();
}
}
src/main/java/com/mmc/payment/entity/OrderInfoDO.java
→
src/main/java/com/mmc/payment/entity/
order/
OrderInfoDO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
;
package
com
.
mmc
.
payment
.
entity
.
order
;
import
com.mmc.payment.model.dto.KdnExpDTO
;
import
com.mmc.payment.model.dto.OrderReceiptDTO
;
import
com.mmc.payment.model.dto.OrderRefundDTO
;
import
com.mmc.payment.model.dto.OrderVcuDTO
;
import
com.mmc.payment.model.dto.
logistics.
KdnExpDTO
;
import
com.mmc.payment.model.dto.
order.
OrderReceiptDTO
;
import
com.mmc.payment.model.dto.
order.
OrderRefundDTO
;
import
com.mmc.payment.model.dto.
order.
OrderVcuDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -24,125 +24,125 @@ import java.util.List;
@NoArgsConstructor
// @ApiModel(value = "com.mmc.csf.model.dto.OrderInfoDTO", description = "云仓订单DTO")
public
class
OrderInfoDO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1572467108563651846L
;
private
static
final
long
serialVersionUID
=
1572467108563651846L
;
@ApiModelProperty
(
value
=
"ID"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"ID"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"商品ID"
)
private
Integer
wareInfoId
;
@ApiModelProperty
(
value
=
"商品ID"
)
private
Integer
wareInfoId
;
@ApiModelProperty
(
value
=
"商品编号"
)
private
String
wareNo
;
@ApiModelProperty
(
value
=
"商品编号"
)
private
String
wareNo
;
@ApiModelProperty
(
value
=
"商品标题"
)
private
String
wareTitle
;
@ApiModelProperty
(
value
=
"商品标题"
)
private
String
wareTitle
;
@ApiModelProperty
(
value
=
"商品图片"
)
private
String
wareImg
;
@ApiModelProperty
(
value
=
"商品图片"
)
private
String
wareImg
;
@ApiModelProperty
(
value
=
"套餐(sku)ID"
)
private
Integer
skuInfoId
;
@ApiModelProperty
(
value
=
"套餐(sku)ID"
)
private
Integer
skuInfoId
;
@ApiModelProperty
(
value
=
"套餐(sku)名称"
)
private
String
skuTitle
;
@ApiModelProperty
(
value
=
"套餐(sku)名称"
)
private
String
skuTitle
;
@ApiModelProperty
(
value
=
"购买用户ID"
)
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"购买用户ID"
)
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"用户UID"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"用户UID"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"买家name"
)
private
String
buyerName
;
@ApiModelProperty
(
value
=
"买家name"
)
private
String
buyerName
;
@ApiModelProperty
(
value
=
"买家电话"
)
private
String
buyerPhone
;
@ApiModelProperty
(
value
=
"买家电话"
)
private
String
buyerPhone
;
@ApiModelProperty
(
value
=
"单价"
)
private
BigDecimal
unitPrice
;
@ApiModelProperty
(
value
=
"单价"
)
private
BigDecimal
unitPrice
;
@ApiModelProperty
(
value
=
"购买的商品数量"
)
private
Integer
wareNum
;
@ApiModelProperty
(
value
=
"购买的商品数量"
)
private
Integer
wareNum
;
@ApiModelProperty
(
value
=
"应付款金额"
)
private
BigDecimal
shouldPay
;
@ApiModelProperty
(
value
=
"应付款金额"
)
private
BigDecimal
shouldPay
;
@ApiModelProperty
(
value
=
"实收款金额"
)
private
BigDecimal
actualPay
;
@ApiModelProperty
(
value
=
"实收款金额"
)
private
BigDecimal
actualPay
;
@ApiModelProperty
(
value
=
"订单类型:0租赁 100购买"
)
private
Integer
orderType
;
@ApiModelProperty
(
value
=
"订单类型:0租赁 100购买"
)
private
Integer
orderType
;
@ApiModelProperty
(
value
=
"押金"
)
private
BigDecimal
deposit
;
@ApiModelProperty
(
value
=
"押金"
)
private
BigDecimal
deposit
;
@ApiModelProperty
(
value
=
"租金总金额"
)
private
BigDecimal
rentPrice
;
@ApiModelProperty
(
value
=
"租金总金额"
)
private
BigDecimal
rentPrice
;
@ApiModelProperty
(
value
=
"租约开始日"
)
private
Date
startDate
;
@ApiModelProperty
(
value
=
"租约开始日"
)
private
Date
startDate
;
@ApiModelProperty
(
value
=
"租约结束日"
)
private
Date
endDate
;
@ApiModelProperty
(
value
=
"租约结束日"
)
private
Date
endDate
;
@ApiModelProperty
(
value
=
"付款天数"
)
private
Integer
payDay
;
@ApiModelProperty
(
value
=
"付款天数"
)
private
Integer
payDay
;
@ApiModelProperty
(
value
=
"交易状态:查订单状态字典"
)
private
String
tranStatus
;
@ApiModelProperty
(
value
=
"交易状态:查订单状态字典"
)
private
String
tranStatus
;
@ApiModelProperty
(
value
=
"减库方式 0:买家拍下减库存 1:卖家付款减库存"
)
private
Integer
exWare
;
@ApiModelProperty
(
value
=
"减库方式 0:买家拍下减库存 1:卖家付款减库存"
)
private
Integer
exWare
;
@ApiModelProperty
(
value
=
"用户备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"用户备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"平台人员备注"
)
private
String
pfRemark
;
@ApiModelProperty
(
value
=
"平台人员备注"
)
private
String
pfRemark
;
@ApiModelProperty
(
value
=
"关闭原因"
)
private
String
shutReason
;
@ApiModelProperty
(
value
=
"关闭原因"
)
private
String
shutReason
;
@ApiModelProperty
(
value
=
"交易编号"
)
private
String
payNo
;
@ApiModelProperty
(
value
=
"交易编号"
)
private
String
payNo
;
@ApiModelProperty
(
value
=
"支付时间"
)
private
Date
payTime
;
@ApiModelProperty
(
value
=
"支付时间"
)
private
Date
payTime
;
@ApiModelProperty
(
value
=
"发货时间"
)
private
Date
sendWareTime
;
@ApiModelProperty
(
value
=
"发货时间"
)
private
Date
sendWareTime
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"物流信息/收货地址信息"
)
private
OrderReceiptDTO
receipt
;
@ApiModelProperty
(
value
=
"物流信息/收货地址信息"
)
private
OrderReceiptDTO
receipt
;
@ApiModelProperty
(
value
=
"退款单详情信息,无则为null"
)
private
OrderRefundDTO
orderRefund
;
@ApiModelProperty
(
value
=
"退款单详情信息,无则为null"
)
private
OrderRefundDTO
orderRefund
;
@ApiModelProperty
(
value
=
"发货-物流动态,无则为null"
)
private
KdnExpDTO
express
;
@ApiModelProperty
(
value
=
"发货-物流动态,无则为null"
)
private
KdnExpDTO
express
;
@ApiModelProperty
(
value
=
"退货-物流动态,无则为null"
)
private
KdnExpDTO
refundExpress
;
@ApiModelProperty
(
value
=
"退货-物流动态,无则为null"
)
private
KdnExpDTO
refundExpress
;
@ApiModelProperty
(
value
=
"质检详情,无则为null"
)
private
List
<
OrderVcuDTO
>
vcus
;
@ApiModelProperty
(
value
=
"质检详情,无则为null"
)
private
List
<
OrderVcuDTO
>
vcus
;
@ApiModelProperty
(
value
=
"归还时间"
)
private
Date
returnTime
;
@ApiModelProperty
(
value
=
"归还时间"
)
private
Date
returnTime
;
@ApiModelProperty
(
value
=
"优惠券id"
,
example
=
"221"
)
private
Integer
couponId
;
@ApiModelProperty
(
value
=
"优惠券id"
,
example
=
"221"
)
private
Integer
couponId
;
@ApiModelProperty
(
value
=
"规格id"
,
example
=
"1"
)
private
Integer
specsId
;
@ApiModelProperty
(
value
=
"规格id"
,
example
=
"1"
)
private
Integer
specsId
;
@ApiModelProperty
(
value
=
"余额"
,
example
=
"4"
)
private
BigDecimal
balance
;
@ApiModelProperty
(
value
=
"余额"
,
example
=
"4"
)
private
BigDecimal
balance
;
}
src/main/java/com/mmc/payment/entity/order/OrderVcuDO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
.
order
;
import
com.mmc.payment.model.dto.order.OrderVcuDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/6/1 15:55
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
OrderVcuDO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5685858931224789256L
;
private
Integer
id
;
private
Integer
orderInfoId
;
private
Integer
orderRefundId
;
private
Integer
vcuType
;
private
Integer
vcuSatus
;
private
String
imgs
;
private
String
videoUrl
;
private
String
remark
;
private
Date
createTime
;
public
OrderVcuDTO
buildOrderVcuDTO
()
{
return
OrderVcuDTO
.
builder
().
id
(
this
.
id
).
orderInfoId
(
this
.
orderInfoId
).
vcuType
(
this
.
vcuType
)
.
vcuSatus
(
this
.
vcuSatus
)
.
imgs
(
StringUtils
.
isBlank
(
this
.
imgs
)
?
null
:
Arrays
.
asList
(
this
.
imgs
.
split
(
","
)))
.
remark
(
this
.
remark
)
.
videoUrl
(
this
.
videoUrl
).
build
();
}
}
src/main/java/com/mmc/payment/entity/RepoAccountDO.java
→
src/main/java/com/mmc/payment/entity/
repo/
RepoAccountDO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
;
package
com
.
mmc
.
payment
.
entity
.
repo
;
import
com.mmc.payment.model.dto.
RepoAccount
DTO
;
import
com.mmc.payment.model.dto.
RepoRcdTeam
DTO
;
import
com.mmc.payment.model.dto.
RepoRebateWalle
tDTO
;
import
com.mmc.payment.model.vo.RepoAccountVO
;
import
com.mmc.payment.model.dto.
repo.RepoRcdTeam
DTO
;
import
com.mmc.payment.model.dto.
repo.RepoRebateWallet
DTO
;
import
com.mmc.payment.model.dto.
user.RepoAccoun
tDTO
;
import
com.mmc.payment.model.vo.
repo.
RepoAccountVO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
...
...
@@ -53,16 +53,16 @@ public class RepoAccountDO implements Serializable {
private
RepoAccountDO
rcdRepo
;
/**
* 额外字段
*
*/
private
Integer
white
;
private
Date
entAuthTime
;
private
String
entName
;
private
Date
rcdCreateTime
;
private
String
rcdRemark
;
public
RepoAccountDTO
buildRepoAccountDTO
()
{
Integer
white
=
0
;
if
(
rcdRepo
!=
null
&&
rcdRepo
.
getSale
()
==
1
)
{
if
(
rcdRepo
!=
null
&&
rcdRepo
.
getSale
()
==
1
)
{
white
=
1
;
}
return
RepoAccountDTO
.
builder
().
id
(
this
.
id
).
uid
(
this
.
uid
).
accountName
(
this
.
accountName
)
...
...
@@ -82,13 +82,13 @@ public class RepoAccountDO implements Serializable {
.
build
();
}
public
RepoRcdTeamDTO
builderRepoRcdTeamDTO
(){
public
RepoRcdTeamDTO
builderRepoRcdTeamDTO
()
{
return
RepoRcdTeamDTO
.
builder
().
RepoAccountName
(
this
.
accountName
).
id
(
this
.
id
).
accountType
(
this
.
accountType
)
.
realAuthStatus
(
this
.
realAuthStatus
).
entAuthStatus
(
this
.
entAuthStatus
).
createTime
(
this
.
rcdCreateTime
)
.
phoneNum
(
this
.
phoneNum
).
nickName
(
this
.
nickName
).
remark
(
this
.
rcdRemark
).
uid
(
this
.
uid
).
entName
(
this
.
entName
).
build
();
}
public
RepoRebateWalletDTO
buildRepoRebateWalletDTO
(){
public
RepoRebateWalletDTO
buildRepoRebateWalletDTO
()
{
return
RepoRebateWalletDTO
.
builder
().
repoAccountId
(
this
.
id
).
uid
(
this
.
uid
).
nickName
(
this
.
getNickName
()).
build
();
}
...
...
src/main/java/com/mmc/payment/entity/RepoCashDO.java
→
src/main/java/com/mmc/payment/entity/
repo/
RepoCashDO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
;
package
com
.
mmc
.
payment
.
entity
.
repo
;
import
com.mmc.payment.model.dto.RepoCashDTO
;
import
com.mmc.payment.model.dto.
repo.
RepoCashDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
@@ -27,6 +27,7 @@ public class RepoCashDO implements Serializable {
private
Integer
repoAccountId
;
private
String
uid
;
private
String
accountName
;
private
String
userName
;
private
Integer
orderInfoId
;
private
String
orderNo
;
private
Integer
skuInfoId
;
...
...
@@ -47,12 +48,23 @@ public class RepoCashDO implements Serializable {
private
Integer
updateUser
;
private
Date
updateTime
;
private
String
orderName
;
private
String
type
;
private
BigDecimal
cashFreeze
;
private
BigDecimal
shouldPay
;
private
BigDecimal
actualPay
;
public
RepoCashDTO
buildRepoCashDTO
()
{
return
RepoCashDTO
.
builder
().
id
(
this
.
id
).
repoAccountId
(
this
.
repoAccountId
).
uid
(
this
.
uid
)
.
accountName
(
this
.
accountName
).
orderInfoId
(
this
.
orderInfoId
).
orderNo
(
this
.
orderNo
)
.
skuInfoId
(
this
.
skuInfoId
).
skuTitle
(
this
.
skuTitle
).
wareInfoId
(
this
.
wareInfoId
).
wareNo
(
this
.
wareNo
)
.
wareTitle
(
this
.
wareTitle
).
payNo
(
this
.
payNo
).
payMethod
(
this
.
payMethod
).
amtPaid
(
this
.
amtPaid
)
.
refundNo
(
this
.
refundNo
).
createUser
(
this
.
createUser
)
.
userName
(
this
.
userName
)
.
orderName
(
this
.
orderName
)
.
type
(
this
.
type
)
.
cashFreeze
(
this
.
cashFreeze
)
.
voucher
(
StringUtils
.
isBlank
(
this
.
voucher
)
?
null
:
Arrays
.
asList
(
this
.
voucher
.
split
(
","
)))
.
cashAmt
(
this
.
cashAmt
).
payTime
(
this
.
payTime
).
remark
(
this
.
remark
).
build
();
}
...
...
src/main/java/com/mmc/payment/entity/RepoWalletDO.java
→
src/main/java/com/mmc/payment/entity/
repo/
RepoWalletDO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
entity
;
package
com
.
mmc
.
payment
.
entity
.
repo
;
import
com.mmc.payment.model.dto.RepoWalletDTO
;
import
com.mmc.payment.model.dto.
repo.
RepoWalletDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
...
...
@@ -30,6 +30,11 @@ public class RepoWalletDO implements Serializable {
private
String
remark
;
private
Date
updateTime
;
private
Date
createTime
;
private
String
phoneNum
;
private
String
userName
;
private
String
nickName
;
private
Integer
portType
;
private
String
uid
;
public
void
initWallet
(
Integer
repoAccountId
)
{
this
.
repoAccountId
=
repoAccountId
;
...
...
@@ -40,9 +45,17 @@ public class RepoWalletDO implements Serializable {
}
public
RepoWalletDTO
buildRepoWalletDTO
()
{
return
RepoWalletDTO
.
builder
().
id
(
this
.
id
).
repoAccountId
(
this
.
repoAccountId
).
cashAmt
(
this
.
cashAmt
)
.
cashPaid
(
this
.
cashPaid
).
cashFreeze
(
this
.
cashFreeze
).
rcdRebateAmt
(
this
.
rcdRebateAmt
).
rebateWdl
(
this
.
rebateWdl
)
.
rebateFreeze
(
this
.
rebateFreeze
).
remark
(
this
.
remark
).
build
();
return
RepoWalletDTO
.
builder
().
id
(
this
.
id
).
repoAccountId
(
this
.
repoAccountId
).
cashAmt
(
this
.
cashAmt
).
cashPaid
(
this
.
cashPaid
).
cashFreeze
(
this
.
cashFreeze
)
.
userName
(
this
.
userName
)
.
uid
(
this
.
uid
)
.
nickName
(
this
.
nickName
)
.
phoneNum
(
this
.
phoneNum
).
portType
(
this
.
portType
).
remark
(
this
.
remark
).
build
();
}
/* public RepoRebateSubDTO buildRepoRebateSubDTO(){
...
...
src/main/java/com/mmc/payment/exception/BizException.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
exception
;
import
com.mmc.payment.common.BaseErrorInfoInterface
;
import
com.mmc.payment.common.ResultEnum
;
import
com.mmc.payment.common.
publicinterface.
BaseErrorInfoInterface
;
import
com.mmc.payment.common.
result.
ResultEnum
;
import
static
com
.
mmc
.
payment
.
common
.
ResultEnum
.
CUSTOM_ERROR
;
import
static
com
.
mmc
.
payment
.
common
.
result
.
ResultEnum
.
CUSTOM_ERROR
;
/**
* @Author small
...
...
src/main/java/com/mmc/payment/filter/AuthSignatureFilter.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
filter
;
import
com.alibaba.fastjson2.JSON
;
import
com.mmc.payment.common.ResultBody
;
import
com.mmc.payment.common.ResultEnum
;
import
com.mmc.payment.common.Tenant
;
import
com.mmc.payment.common.result.ResultBody
;
import
com.mmc.payment.common.result.ResultEnum
;
import
com.mmc.payment.config.Audience
;
import
com.mmc.payment.config.TenantContext
;
import
com.mmc.payment.model.dto.UserAccountDTO
;
import
com.mmc.payment.model.dto.
user.
UserAccountDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -38,10 +38,11 @@ public class AuthSignatureFilter implements AuthFilter {
/**
* 无需登录白名单
*/
private
static
final
String
[]
IGNORE_URLS
=
{
"/payment/swagger/swagger-resources"
,
"/payment/swagger/v2/api-docs"
,
"/payment/swagger/doc.html"
};
private
static
final
String
[]
IGNORE_URLS
=
{
"/payment/swagger-resources"
,
"/payment/v2/api-docs"
,
"/payment/repocash/walletUsers"
,
"/payment/doc.html"
};
/*无需加密狗无需登录白名单*/
private
static
final
String
[]
USE_KEY
=
{
"/
crm
/account/loginByUsbKey"
};
private
static
final
String
[]
USE_KEY
=
{
"/
oms
/account/loginByUsbKey"
};
/**
* 请求方式预请求方式值
...
...
@@ -49,7 +50,7 @@ public class AuthSignatureFilter implements AuthFilter {
private
static
final
String
REQUEST_METHOD_OPTIONS_VALUE
=
"OPTIONS"
;
public
static
final
String
SWAGGER_URL_PREFIX
=
"/payment/
swagger
"
;
public
static
final
String
SWAGGER_URL_PREFIX
=
"/payment/
doc.html
"
;
@Override
public
void
init
(
FilterConfig
filterConfig
)
{
...
...
@@ -69,24 +70,25 @@ public class AuthSignatureFilter implements AuthFilter {
// 忽略以下url请求,白名单路径以及swagger路径
if
(!
ArrayUtils
.
contains
(
IGNORE_URLS
,
url
)
&&
!
ArrayUtils
.
contains
(
USE_KEY
,
url
)
&&
!
url
.
startsWith
(
"/payment/webjars"
)
&&
!
url
.
startsWith
(
SWAGGER_URL_PREFIX
))
{
if
(
REQUEST_METHOD_OPTIONS_VALUE
.
equals
(
request
.
getMethod
()))
{
response
.
setStatus
(
HttpServletResponse
.
SC_OK
);
return
false
;
}
else
{
String
token
=
request
.
getHeader
(
"token"
);
if
(
null
==
token
)
{
if
(
null
==
token
)
{
response
(
response
,
ResultBody
.
error
(
ResultEnum
.
THE_REQUEST_IS_NOT_AUTHENTICATED
));
return
false
;
}
String
s
=
stringRedisTemplate
.
opsForValue
().
get
(
token
);
if
(
null
==
s
)
{
response
(
response
,
ResultBody
.
error
(
ResultEnum
.
THE_TOKEN_IS_INVALID
));
if
(
null
==
s
)
{
response
(
response
,
ResultBody
.
error
(
ResultEnum
.
THE_TOKEN_IS_INVALID
));
return
false
;
}
UserAccountDTO
userAccountDTO
=
JSON
.
parseObject
(
s
,
UserAccountDTO
.
class
);
try
{
Tenant
tenant
=
TenantContext
.
buildTenant
(
userAccountDTO
.
getAccountNo
());
if
(
tenant
!=
null
)
{
if
(
tenant
!=
null
)
{
TenantContext
.
setTenant
(
tenant
);
return
true
;
}
...
...
src/main/java/com/mmc/payment/model/dto/cash/CashTypeDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
cash
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @Author small
* @Date 2023/5/30 20:00
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
CashTypeDTO
{
private
static
final
long
serialVersionUID
=
-
5663270547201316327L
;
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"type"
)
private
String
type
;
}
src/main/java/com/mmc/payment/model/dto/CompanyCacheDTO.java
→
src/main/java/com/mmc/payment/model/dto/
company/
CompanyCacheDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
company
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
...
...
@@ -23,9 +23,9 @@ public class CompanyCacheDTO implements Serializable {
private
Integer
id
;
@ApiModelProperty
(
value
=
"单位名称"
)
private
String
company
;
@ApiModelProperty
(
value
=
"是否为管理单位:0否 1是"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"是否为管理单位:0否 1是"
,
hidden
=
true
)
private
Integer
manage
;
@ApiModelProperty
(
value
=
"当前单位ID+子级单位ID的集合"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"当前单位ID+子级单位ID的集合"
,
hidden
=
true
)
private
List
<
Integer
>
companys
;
}
src/main/java/com/mmc/payment/model/dto/CompanySimpleDTO.java
→
src/main/java/com/mmc/payment/model/dto/
company/
CompanySimpleDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
company
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -28,8 +27,8 @@ public class CompanySimpleDTO implements Serializable {
private
String
company
;
@ApiModelProperty
(
value
=
"账号类型:0合伙人 1员工"
)
private
Integer
userType
;
@ApiModelProperty
(
value
=
"是否为管理单位:0否 1是"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"是否为管理单位:0否 1是"
,
hidden
=
true
)
private
Integer
manage
;
@ApiModelProperty
(
value
=
"当前单位ID+子级单位ID的集合"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"当前单位ID+子级单位ID的集合"
,
hidden
=
true
)
private
List
<
Integer
>
companys
;
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerAccountDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
com.mmc.payment.common.FlyerAccountType
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Set
;
/**
* @Author small
* @Date 2023/5/29 16:14
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.dto.FlyerAccountDTO", description = "飞手端用户DTO")
public
class
FlyerAccountDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5663270547201316327L
;
@ApiModelProperty
(
value
=
"飞手端用户id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"飞手端用户uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"飞手端用户名称"
)
private
String
accountName
;
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"飞手端用户类型,(个人飞手,机构)"
)
private
Integer
accountType
;
@ApiModelProperty
(
value
=
"实名认证状态"
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"企业认证状态"
)
private
Integer
entAuthStatus
;
@ApiModelProperty
(
value
=
"工作状态"
)
private
Integer
workStatus
;
@ApiModelProperty
(
value
=
"常驻城市"
)
private
String
resAddress
;
@ApiModelProperty
(
value
=
"openId"
)
private
String
openId
;
@ApiModelProperty
(
value
=
"unionId"
)
private
String
unionId
;
@ApiModelProperty
(
value
=
"昵称"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"头像url"
)
private
String
headerImg
;
@ApiModelProperty
(
value
=
"经度"
)
private
Double
lon
;
@ApiModelProperty
(
value
=
"纬度"
)
private
Double
lat
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"删除状态,0未删除,1删除"
)
private
Integer
deleted
;
@ApiModelProperty
(
value
=
"企业名称"
)
private
String
entName
;
@ApiModelProperty
(
value
=
"生成时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"有无订单:0无,1有"
)
private
Integer
serviceStatus
;
@ApiModelProperty
(
value
=
"距离订单距离-单位km"
)
private
Double
orderDist
;
@ApiModelProperty
(
value
=
"服务中的订单名称"
)
private
List
<
String
>
orderNames
;
@ApiModelProperty
(
value
=
"飞手认证状态"
)
private
Integer
licStatus
;
@ApiModelProperty
(
value
=
"机构信息"
)
private
FlyerEntInfoDTO
entInfo
;
@ApiModelProperty
(
value
=
"抢单状态-0否-1是"
)
private
Integer
applyOrder
;
@ApiModelProperty
(
value
=
"多端用户,USER_PORT(云享飞)-FLYER_PORT(云飞手)-REPO_PORT(云仓)"
)
private
Set
<
String
>
ports
;
@ApiModelProperty
(
value
=
"推荐人ID"
)
private
Integer
rcdFlyerAccountId
;
@ApiModelProperty
(
value
=
"推荐人昵称"
)
private
String
rcdNickName
;
@ApiModelProperty
(
value
=
"推荐人uid"
)
private
String
rcdUid
;
@ApiModelProperty
(
value
=
"推荐人账号名称"
)
private
String
rcdAccountName
;
@ApiModelProperty
(
value
=
"已推荐用户数"
)
private
Integer
rcdUserNumber
;
@ApiModelProperty
(
value
=
"是否销售"
)
private
Integer
sale
;
@ApiModelProperty
(
value
=
"是否白名单"
)
private
Integer
white
;
@ApiModelProperty
(
value
=
"用户来源:0自然流,1海报,2抖音,3公众号,4社群,5招投标,默认0"
)
private
Integer
source
;
@ApiModelProperty
(
value
=
"订单信息"
)
private
FlyerOrderTaskDTO
flyerOrderTask
;
@ApiModelProperty
(
value
=
"场景认证信息"
)
private
FlyerScenesAuthDTO
flyerScenesAuth
;
/**
* 是否为飞手机构用户
*
* @return
*/
public
boolean
checkFlyerEnt
()
{
return
(
FlyerAccountType
.
JG
.
getCode
().
toString
().
equals
(
this
.
accountType
.
toString
()));
}
/**
* 是否为飞手个人用户
*
* @return
*/
public
boolean
checkFlyer
()
{
return
(
FlyerAccountType
.
GR
.
getCode
().
toString
().
equals
(
this
.
accountType
.
toString
()));
}
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerEntInfoDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/5/29 16:12
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.dto.FlyerEntInfoDTO", description = "飞手机构DTO")
public
class
FlyerEntInfoDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3064900348178903673L
;
@ApiModelProperty
(
value
=
"机构id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"飞手端用户id"
)
private
Integer
flyerAccountId
;
@ApiModelProperty
(
value
=
"机构名称"
)
private
String
entName
;
@ApiModelProperty
(
value
=
"机构认证审批状态"
)
private
Integer
entCheckStatus
;
@ApiModelProperty
(
value
=
"机构法人名称"
)
private
String
entLegalPerson
;
@ApiModelProperty
(
value
=
"社会统一信用码"
)
private
String
uscCode
;
@ApiModelProperty
(
value
=
"营业执照url"
)
private
String
unLicImg
;
@ApiModelProperty
(
value
=
"开户银行"
)
private
String
bankName
;
@ApiModelProperty
(
value
=
"账户名称"
)
private
String
accountHolder
;
@ApiModelProperty
(
value
=
"银行账号"
)
private
String
bankAccount
;
@ApiModelProperty
(
value
=
"法人身份证号"
)
private
String
idNumber
;
@ApiModelProperty
(
value
=
"机构备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"生成时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"飞手总数"
)
private
Integer
sumOfFlyer
;
@ApiModelProperty
(
value
=
"认证飞手数"
)
private
Integer
countOfAuthFlyer
;
@ApiModelProperty
(
value
=
"用户uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"用户手机号"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"常驻城市"
)
private
String
resAddress
;
@ApiModelProperty
(
value
=
"昵称"
)
private
String
nickName
;
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerInfoDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/5/29 16:17
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.dto.FlyerInfoDTO", description = "飞手信息DTO")
public
class
FlyerInfoDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5443010919398186590L
;
@ApiModelProperty
(
value
=
"飞手信息表id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"飞手信息表uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"飞手id,个人飞手必填,机构飞手为空"
)
private
Integer
flyerAccountId
;
@ApiModelProperty
(
value
=
"机构id"
)
private
Integer
flyerEntId
;
@ApiModelProperty
(
value
=
"飞手类型,0个人飞手,1机构飞手 2机构"
)
private
Integer
flyerType
;
@ApiModelProperty
(
value
=
"飞手姓名"
)
private
String
flyerName
;
@ApiModelProperty
(
value
=
"飞行执照认证状态"
)
private
Integer
licStatus
;
@ApiModelProperty
(
value
=
"飞手执照名称"
)
private
String
licName
;
@ApiModelProperty
(
value
=
"飞手执照编号"
)
private
String
licNumber
;
@ApiModelProperty
(
value
=
"飞行执照url"
)
private
String
licImg
;
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"身份证号"
)
private
String
idNumber
;
@ApiModelProperty
(
value
=
"性别"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"民族"
)
private
String
nation
;
@ApiModelProperty
(
value
=
"出生日期"
)
private
Date
birthday
;
@ApiModelProperty
(
value
=
"地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"签发机关"
)
private
String
signOrg
;
@ApiModelProperty
(
value
=
"有效开始时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
startDate
;
@ApiModelProperty
(
value
=
"有效结束时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
endDate
;
@ApiModelProperty
(
value
=
"身份证正面照url"
)
private
String
frontIdImg
;
@ApiModelProperty
(
value
=
"身份证背面照url"
)
private
String
backIdImg
;
@ApiModelProperty
(
value
=
"实名认证备注"
)
private
String
authRemark
;
@ApiModelProperty
(
value
=
"生成时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"实名状态"
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"常驻地址"
)
private
String
resAddress
;
private
String
entName
;
private
Integer
entCheckStatus
;
@ApiModelProperty
(
value
=
"飞手审核原因"
)
private
String
licCheckReason
;
@ApiModelProperty
(
value
=
"电子执照认证提交时间"
)
private
Date
licCreateTime
;
@ApiModelProperty
(
value
=
"电子执照认证审核时间"
)
private
Date
licUpdateTime
;
@ApiModelProperty
(
value
=
"商务礼仪认证"
)
private
Integer
protocolAuth
;
@ApiModelProperty
(
value
=
"电力巡检认证状态,0未认证,1通过,2未通过"
)
private
Integer
electricAuth
;
@ApiModelProperty
(
value
=
"航空测绘认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
private
Integer
aviationAuth
;
@ApiModelProperty
(
value
=
"应急保障认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
private
Integer
emergencyAuth
;
@ApiModelProperty
(
value
=
"value = 监察巡检认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
private
Integer
superviseAuth
;
@ApiModelProperty
(
value
=
"通用认证状态,0未认证,1通过,2未通过"
)
private
Integer
universalAuth
;
@ApiModelProperty
(
value
=
"油气巡检认证状态,0未认证,1通过,2未通过"
)
private
Integer
oilGasAuth
;
@ApiModelProperty
(
value
=
"演示认证状态,0未认证,1通过,2未通过"
)
private
Integer
demoAuth
;
@ApiModelProperty
(
value
=
"航空测绘外业状态,0未认证,1通过,2未通过"
)
private
Integer
aviationOutAuth
;
@ApiModelProperty
(
value
=
"航空测绘内业状态,0未认证,1通过,2未通过"
)
private
Integer
aviationInAuth
;
@ApiModelProperty
(
value
=
"指挥车认证状态,0未认证,1通过,2未通过"
)
private
Integer
commandAuth
;
@ApiModelProperty
(
value
=
"天目将软件认证状态,0未认证,1通过,2未通过"
)
private
Integer
tmjAuth
;
@ApiModelProperty
(
value
=
"0:无订单状态(空闲) 1:有订单(作业中)"
)
private
Integer
serviceStatus
;
@ApiModelProperty
(
value
=
"评分记录"
)
private
FlyerRecordDTO
record
;
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerOrderTaskDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
com.mmc.payment.model.dto.order.OrderTaskDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/29 17:30
* @Version 1.0
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
FlyerOrderTaskDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4288411060058354326L
;
private
Integer
id
;
private
Integer
orderId
;
private
Integer
flyerAccountId
;
private
Integer
orderType
;
private
Integer
virtualTeamId
;
private
String
orderName
;
private
String
orderNo
;
public
FlyerOrderTaskDTO
(
OrderTaskDTO
d
)
{
this
.
orderId
=
d
.
getId
();
this
.
orderName
=
d
.
getOrderName
();
this
.
orderNo
=
d
.
getOrderNo
();
}
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerRcdTeamDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/5/29 16:16
* @Version 1.0
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
//@ApiModel(value = "com.mmc.csf.model.dto.FlyerRcdTeamDTO", description = "飞手推荐团队DTO")
public
class
FlyerRcdTeamDTO
implements
Serializable
{
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"账户名称"
)
private
String
FlyerAccountName
;
@ApiModelProperty
(
value
=
"uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"手机号"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"发展时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"昵称"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"企业认证状态:0未认证1已认证"
)
private
Integer
entAuthStatus
;
@ApiModelProperty
(
value
=
"实名认证:0未实名1已实名2未通过"
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"账户类型 0游客1普通用户2个人飞手3飞手机构"
)
private
Integer
accountType
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerRecordDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @Author small
* @Date 2023/5/29 17:29
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.flyer.dto.FlyerRecordDTO", description = "飞手记录DTO")
public
class
FlyerRecordDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
188321537755558914L
;
private
Integer
flyerAccountId
;
@ApiModelProperty
(
"订单数"
)
private
Integer
orderNum
;
@ApiModelProperty
(
"任务天数"
)
private
Integer
workDay
;
@ApiModelProperty
(
"综合评分"
)
private
BigDecimal
score
;
@ApiModelProperty
(
"差评数"
)
private
Integer
negtNum
;
@ApiModelProperty
(
"好评数"
)
private
Integer
praiseNum
;
@ApiModelProperty
(
"差评率"
)
private
BigDecimal
negtRate
;
public
void
defaultValue
()
{
if
(
orderNum
==
null
)
{
orderNum
=
0
;
}
if
(
workDay
==
null
)
{
workDay
=
0
;
}
if
(
score
==
null
)
{
score
=
BigDecimal
.
ZERO
;
}
if
(
negtNum
==
null
)
{
negtNum
=
0
;
}
if
(
praiseNum
==
null
)
{
praiseNum
=
0
;
}
}
public
void
compareNegtRate
()
{
this
.
negtRate
=
(
BigDecimal
.
valueOf
(
negtNum
).
divide
(
BigDecimal
.
valueOf
(
negtNum
+
praiseNum
))).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_DOWN
);
}
}
src/main/java/com/mmc/payment/model/dto/flyer/FlyerScenesAuthDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/29 17:30
* @Version 1.0
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
FlyerScenesAuthDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
66032902942031710L
;
@ApiModelProperty
(
"飞手id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"商务礼仪认证"
)
private
Integer
protocolAuth
;
@ApiModelProperty
(
value
=
"电力巡检认证状态,0未认证,1通过,2未通过"
)
private
Integer
electricAuth
;
@ApiModelProperty
(
value
=
"航空测绘认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
@JsonIgnore
private
Integer
aviationAuth
;
@ApiModelProperty
(
value
=
"应急保障认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
@JsonIgnore
private
Integer
emergencyAuth
;
@ApiModelProperty
(
value
=
"value = 监察巡检认证状态,0未认证,1通过,2未通过"
,
hidden
=
true
)
@JsonIgnore
private
Integer
superviseAuth
;
@ApiModelProperty
(
value
=
"通用认证状态,0未认证,1通过,2未通过"
)
private
Integer
universalAuth
;
@ApiModelProperty
(
value
=
"油气巡检认证状态,0未认证,1通过,2未通过"
)
private
Integer
oilGasAuth
;
@ApiModelProperty
(
value
=
"演示认证状态,0未认证,1通过,2未通过"
)
private
Integer
demoAuth
;
@ApiModelProperty
(
value
=
"航空测绘外业状态,0未认证,1通过,2未通过"
)
private
Integer
aviationOutAuth
;
@ApiModelProperty
(
value
=
"航空测绘内业状态,0未认证,1通过,2未通过"
)
private
Integer
aviationInAuth
;
@ApiModelProperty
(
value
=
"指挥车认证状态,0未认证,1通过,2未通过"
)
private
Integer
commandAuth
;
@ApiModelProperty
(
value
=
"天目将软件认证状态,0未认证,1通过,2未通过"
)
private
Integer
tmjAuth
;
}
src/main/java/com/mmc/payment/model/dto/flyer/TaskFlyerCostDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
flyer
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @Author small
* @Date 2023/5/29 17:32
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.dto.TaskFlyerCostDTO", description = "飞手工资DTO")
public
class
TaskFlyerCostDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4411028098471010440L
;
@ApiModelProperty
(
value
=
"飞手工资id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"订单id"
)
private
Integer
orderTaskId
;
@ApiModelProperty
(
value
=
"飞手日薪"
)
private
BigDecimal
flyerWag
;
@ApiModelProperty
(
value
=
"飞手每日补贴"
)
private
BigDecimal
flyerSudy
;
@ApiModelProperty
(
value
=
"每月工资结算日"
)
private
Integer
payDay
;
@ApiModelProperty
(
value
=
"租房补贴"
)
private
BigDecimal
rentHouseSudy
;
@ApiModelProperty
(
value
=
"交通补贴"
)
private
BigDecimal
trafficSudy
;
@ApiModelProperty
(
value
=
"支付比例(例如0.95)"
)
private
BigDecimal
payPersent
;
@ApiModelProperty
(
value
=
"设备信息"
)
private
String
deviceInfo
;
@ApiModelProperty
(
value
=
"生成时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"任务编号"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"任务名称"
)
private
String
orderName
;
@ApiModelProperty
(
value
=
"飞手数量"
)
private
Integer
flyerNum
;
@ApiModelProperty
(
value
=
"服务类型"
)
private
String
inspectionName
;
@ApiModelProperty
(
value
=
"飞手类型(0个人飞手 1飞手机构)"
)
private
Integer
flyerType
;
// @ApiModelProperty(value = "任务工资信息列表")
//private List<WagTermDetailDTO> details;
@ApiModelProperty
(
value
=
"任务开始日"
)
private
Date
startTime
;
@ApiModelProperty
(
value
=
"任务结束日"
)
private
Date
endTime
;
@ApiModelProperty
(
value
=
"高温补贴"
)
private
BigDecimal
hotSudy
;
@ApiModelProperty
(
value
=
"预估金额"
)
private
BigDecimal
estimateWag
;
@ApiModelProperty
(
value
=
"补助标签"
)
private
String
sudyTag
;
public
void
defaultValue
()
{
if
(
this
.
flyerWag
==
null
)
{
this
.
flyerWag
=
BigDecimal
.
ZERO
;
}
if
(
this
.
flyerSudy
==
null
)
{
this
.
flyerSudy
=
BigDecimal
.
ZERO
;
}
if
(
this
.
rentHouseSudy
==
null
)
{
this
.
rentHouseSudy
=
BigDecimal
.
ZERO
;
}
if
(
this
.
trafficSudy
==
null
)
{
this
.
trafficSudy
=
BigDecimal
.
ZERO
;
}
if
(
this
.
payPersent
==
null
)
{
this
.
payPersent
=
BigDecimal
.
ZERO
;
}
if
(
this
.
hotSudy
==
null
)
{
this
.
hotSudy
=
BigDecimal
.
ZERO
;
}
}
}
src/main/java/com/mmc/payment/model/dto/ExpStationsDTO.java
→
src/main/java/com/mmc/payment/model/dto/
logistics/
ExpStationsDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
logistics
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
src/main/java/com/mmc/payment/model/dto/KdnExpDTO.java
→
src/main/java/com/mmc/payment/model/dto/
logistics/
KdnExpDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
logistics
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/RefundLogDTO.java
→
src/main/java/com/mmc/payment/model/dto/
logistics/
RefundLogDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
logistics
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/OrderInfoDTO.java
→
src/main/java/com/mmc/payment/model/dto/
order/
OrderInfoDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
com.mmc.payment.entity.RepoCashDO
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.entity.
repo.
RepoCashDO
;
import
com.mmc.payment.model.dto.logistics.KdnExpDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/OrderReceiptDTO.java
→
src/main/java/com/mmc/payment/model/dto/
order/
OrderReceiptDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/OrderRefundDTO.java
→
src/main/java/com/mmc/payment/model/dto/
order/
OrderRefundDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
com.mmc.payment.model.dto.logistics.RefundLogDTO
;
import
com.mmc.payment.model.dto.repo.RepoCashDTO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/com/mmc/payment/model/dto/order/OrderTaskDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
com.mmc.payment.model.dto.flyer.FlyerAccountDTO
;
import
com.mmc.payment.model.dto.flyer.FlyerOrderTaskDTO
;
import
com.mmc.payment.model.dto.flyer.TaskFlyerCostDTO
;
import
com.mmc.payment.model.dto.user.UserAccountDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
/**
* @Author small
* @Date 2023/5/29 17:31
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
OrderTaskDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6732943573766573605L
;
@ApiModelProperty
(
value
=
"订单id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"主任务id"
)
private
Integer
parentId
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"订单专属运营id"
)
private
Integer
userOperateId
;
@ApiModelProperty
(
value
=
"用户订单uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
orderNo
;
//单号
@ApiModelProperty
(
value
=
"订单名称"
)
private
String
orderName
;
//名称
@ApiModelProperty
(
value
=
"账单金额"
)
private
BigDecimal
orderAmt
;
//账单金额
@ApiModelProperty
(
value
=
"订单现金金额"
)
private
BigDecimal
orderCashAmt
;
@ApiModelProperty
(
value
=
"订单信用金额"
)
private
BigDecimal
orderCreditAmt
;
@ApiModelProperty
(
value
=
"任务状态"
)
private
Integer
orderStatus
;
//任务状态
@ApiModelProperty
(
value
=
"评价状态"
)
private
Integer
evaluateStatus
;
//评价状态
private
String
lastMsg1
;
//消息
private
String
lastMag2
;
@ApiModelProperty
(
value
=
"生成时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
basicInfo
;
//基本信息
@ApiModelProperty
(
value
=
"预计开始时间"
)
private
String
startTime
;
//开始时间
@ApiModelProperty
(
value
=
"预计结束时间"
)
private
String
endTime
;
//结束时间
@ApiModelProperty
(
value
=
"实际开始时间"
)
private
String
acStartTime
;
// 实际开始时间
@ApiModelProperty
(
value
=
"实际结束时间"
)
private
String
acEndTime
;
// 实际结束时间
@ApiModelProperty
(
value
=
"订单地址"
)
private
String
taskAddress
;
private
String
image
;
@ApiModelProperty
(
value
=
"服务id"
)
private
Integer
inspectionId
;
@ApiModelProperty
(
value
=
"服务名称"
)
private
String
inspectionName
;
@ApiModelProperty
(
value
=
"运营联系电话"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"专属运营名称"
)
private
String
operateName
;
@ApiModelProperty
(
value
=
"经度"
)
private
BigDecimal
lon
;
@ApiModelProperty
(
value
=
"纬度"
)
private
BigDecimal
lat
;
@ApiModelProperty
(
value
=
"用户名称"
)
private
String
userName
;
@ApiModelProperty
(
value
=
"是否企业"
)
private
Integer
entUser
;
@ApiModelProperty
(
value
=
"企业名称"
)
private
String
entName
;
@ApiModelProperty
(
value
=
"是否实名"
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"昵称"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"订单关闭原因"
)
private
String
shutReason
;
@ApiModelProperty
(
value
=
"用户联系电话"
)
private
String
userPhoneNum
;
@ApiModelProperty
(
value
=
"飞手Id"
)
private
Integer
flyerAccountId
;
@ApiModelProperty
(
value
=
"平台工作人员设置的备注"
)
private
String
pfRemark
;
@ApiModelProperty
(
value
=
"飞手端-推送-数据-0否-1是"
)
private
Integer
dummy
;
@ApiModelProperty
(
value
=
"飞手UID"
)
private
String
flyerUid
;
@ApiModelProperty
(
value
=
"飞手账号名"
)
private
String
flyerAccountName
;
@ApiModelProperty
(
value
=
"抢单状态:0待接单,1抢单中"
)
private
Integer
applyStatus
;
@ApiModelProperty
(
value
=
"预付款总金额"
)
private
BigDecimal
totalFreeze
;
@ApiModelProperty
(
value
=
"结算总金额"
)
private
BigDecimal
totalPay
;
@ApiModelProperty
(
value
=
"倒计时"
)
private
Long
countSconds
;
@ApiModelProperty
(
value
=
"飞手基本信息"
)
private
FlyerAccountDTO
flyerAccount
;
@ApiModelProperty
(
value
=
"飞手类型"
)
private
Integer
flyerType
;
@ApiModelProperty
(
value
=
"飞手个数"
)
private
Integer
flyerNum
;
@ApiModelProperty
(
value
=
"0:隐藏 1:显示"
)
private
Integer
display
;
@ApiModelProperty
(
value
=
"飞手-结算-信息"
,
hidden
=
true
)
private
TaskFlyerCostDTO
taskFlyerCost
;
@ApiModelProperty
(
value
=
"下期飞手入账时间"
)
private
String
nextFlyerIncomeDate
;
@ApiModelProperty
(
value
=
"是否进行过催付款 0:未催 1:已催"
)
private
Integer
urge
;
@ApiModelProperty
(
value
=
"订单类型"
)
private
Integer
orderType
;
@ApiModelProperty
(
value
=
"确认需求备注"
)
private
String
cmdRemark
;
@ApiModelProperty
(
value
=
"飞手可抢单开始时间"
)
private
Date
flyerStartTime
;
@ApiModelProperty
(
value
=
"飞手可抢单结束时间"
)
private
Date
flyerEndTime
;
@ApiModelProperty
(
value
=
"预估金额"
)
private
BigDecimal
estimatedAmount
;
@ApiModelProperty
(
value
=
"申请id"
)
private
Integer
orderApplyId
;
@ApiModelProperty
(
value
=
"用户下单附件预览效果"
)
private
String
userPreview
;
@ApiModelProperty
(
value
=
"平台上传附件预览效果"
)
private
String
platformPreview
;
@ApiModelProperty
(
value
=
"文案描述"
)
private
String
copywriting
;
@ApiModelProperty
(
value
=
"子任务列表"
)
private
List
<
OrderTaskDTO
>
children
;
@ApiModelProperty
(
value
=
"子订单信息"
)
private
List
<
OrderTaskSonDTO
>
son
;
public
void
buildOperateUser
(
UserAccountDTO
op
)
{
this
.
phoneNum
=
op
.
getPhoneNum
();
this
.
operateName
=
op
.
getUserName
();
this
.
userOperateId
=
op
.
getId
();
}
public
void
buildWxUser
(
UserAccountDTO
wx
)
{
this
.
userAccountId
=
wx
.
getId
();
this
.
uid
=
wx
.
getUid
();
this
.
nickName
=
wx
.
getNickName
();
this
.
userName
=
wx
.
getUserName
();
this
.
userPhoneNum
=
wx
.
getPhoneNum
();
}
public
FlyerOrderTaskDTO
buildFlyerOrderTaskDTO
()
{
return
FlyerOrderTaskDTO
.
builder
().
orderId
(
this
.
id
).
orderNo
(
this
.
orderNo
).
orderName
(
this
.
orderName
).
build
();
}
}
src/main/java/com/mmc/payment/model/dto/order/OrderTaskSonDTO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* @Author small
* @Date 2023/5/29 17:32
* @Version 1.0
*/
@Data
@ApiModel
(
value
=
"OrderTaskSonDTO"
,
description
=
"云享飞订单-子任务表"
)
@AllArgsConstructor
@NoArgsConstructor
public
class
OrderTaskSonDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"0为主任务"
)
private
Integer
parentId
;
@ApiModelProperty
(
value
=
"客户ID"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"运营人员ID(负责这个order的运营人员id"
)
private
Integer
userOperateId
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"订单名称"
)
private
String
orderName
;
@ApiModelProperty
(
value
=
"订单总金额"
)
private
BigDecimal
orderAmt
;
@ApiModelProperty
(
value
=
"订单金额中的现金金额"
)
private
BigDecimal
cashAmt
;
@ApiModelProperty
(
value
=
"订单金额中的信用金额"
)
private
BigDecimal
creditAmt
;
@ApiModelProperty
(
value
=
"任务飞行地址"
)
private
String
taskAddress
;
@ApiModelProperty
(
value
=
"基本信息"
)
private
String
basicInfo
;
@ApiModelProperty
(
value
=
"服务开始时间"
)
private
LocalDateTime
startTime
;
@ApiModelProperty
(
value
=
"服务结束时间"
)
private
LocalDateTime
endTime
;
@ApiModelProperty
(
value
=
"实际服务开始时间"
)
private
LocalDateTime
acStartTime
;
@ApiModelProperty
(
value
=
"实际服务结束时间"
)
private
LocalDateTime
acEndTime
;
@ApiModelProperty
(
value
=
"0下单初始化(待分配运营)-> 100已分配运营(待需求确认)-> 200已经需求确认(待订单确认)-> 300已订单确认(待预支付)-> 400已预支付(调度中)-> 500飞手已接单(待抵达现场)-> 525飞手已抵达(待开始作业)-> 550已开始作业(作业中)-> 575飞手已完成作业(待平台确认作业完成)-> 600平台已确认作业完成(待验收结算)-> 700验收通过-> 900订单关闭"
)
private
Integer
orderStatus
;
@ApiModelProperty
(
value
=
"评价状态:0未评价 1已评价"
)
private
Integer
evaluateStatus
;
private
LocalDateTime
createTime
;
private
LocalDateTime
updateTime
;
@ApiModelProperty
(
value
=
"服务项ID"
)
private
Integer
inspectionId
;
@ApiModelProperty
(
value
=
"服务名称"
)
private
String
inspectionName
;
@ApiModelProperty
(
value
=
"最近一次操作信息"
)
private
String
lastMsg
;
@ApiModelProperty
(
value
=
"任务地址经度"
)
private
BigDecimal
lon
;
@ApiModelProperty
(
value
=
"任务地址纬度"
)
private
BigDecimal
lat
;
@ApiModelProperty
(
value
=
"订单关闭原因"
)
private
String
shutReason
;
@ApiModelProperty
(
value
=
"是否营销数据(假数据):0:否 1:是"
)
private
Boolean
isDummy
;
@ApiModelProperty
(
value
=
"平台备注"
)
private
String
pfRemark
;
@ApiModelProperty
(
value
=
"飞手类型(0个人飞手 1飞手机构)"
)
private
Integer
flyerType
;
@ApiModelProperty
(
value
=
"任务飞手人数"
)
private
Integer
flyerNum
;
@ApiModelProperty
(
value
=
"0:隐藏 1:显示(隐藏后飞手端不显示,不参与抢单)"
)
private
Integer
display
;
@ApiModelProperty
(
value
=
"飞手评价:0未评价 1已评价"
)
private
Integer
flyerEval
;
@ApiModelProperty
(
value
=
"是否进行过催单 0:未通知 1:已通知"
)
private
Integer
isUrge
;
@ApiModelProperty
(
value
=
"订单类型:0普通订单,1推荐订单,2加急单"
)
private
Integer
orderType
;
@ApiModelProperty
(
value
=
"需求确认备注"
)
private
String
cmdRemark
;
@ApiModelProperty
(
value
=
"飞手抢单开始时间"
)
private
LocalDateTime
flyerStartTime
;
@ApiModelProperty
(
value
=
"飞手抢单结束时间"
)
private
LocalDateTime
flyerEndTime
;
@ApiModelProperty
(
value
=
"推荐机构"
)
private
Integer
rcdCompanyId
;
}
src/main/java/com/mmc/payment/model/dto/OrderVcuDTO.java
→
src/main/java/com/mmc/payment/model/dto/
order/
OrderVcuDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
order
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
src/main/java/com/mmc/payment/model/dto/PayCashResultDTO.java
→
src/main/java/com/mmc/payment/model/dto/
repo/
PayCashResultDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/RepoCashDTO.java
→
src/main/java/com/mmc/payment/model/dto/
repo/
RepoCashDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -30,12 +29,16 @@ public class RepoCashDTO implements Serializable {
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"用户UID"
,
hidden
=
true
)
private
String
uid
;
@ApiModelProperty
(
value
=
"
用户名
"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"
账号名称
"
,
hidden
=
true
)
private
String
accountName
;
@ApiModelProperty
(
value
=
"用户名称"
,
hidden
=
true
)
private
String
userName
;
@ApiModelProperty
(
value
=
"订单ID"
,
hidden
=
true
)
private
Integer
orderInfoId
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"相关订单名称"
)
private
String
orderName
;
@ApiModelProperty
(
value
=
"skuID"
,
hidden
=
true
)
private
Integer
skuInfoId
;
@ApiModelProperty
(
value
=
"sku标题"
,
hidden
=
true
)
...
...
@@ -46,15 +49,15 @@ public class RepoCashDTO implements Serializable {
private
String
wareNo
;
@ApiModelProperty
(
value
=
"商品标题"
)
private
String
wareTitle
;
@ApiModelProperty
(
value
=
"流水编号"
)
@ApiModelProperty
(
value
=
"流水编号
/交易编号
"
)
private
String
payNo
;
@ApiModelProperty
(
value
=
"流水类型:查字典"
)
private
Integer
payMethod
;
@ApiModelProperty
(
value
=
"变动金额"
)
@ApiModelProperty
(
value
=
"变动金额
/变动现金
"
)
private
BigDecimal
amtPaid
;
@ApiModelProperty
(
value
=
"当前余额"
)
private
BigDecimal
cashAmt
;
@ApiModelProperty
(
value
=
"支付时间"
)
@ApiModelProperty
(
value
=
"支付时间
/交易
"
)
private
Date
payTime
;
@ApiModelProperty
(
value
=
"退款流水编号"
)
private
String
refundNo
;
...
...
@@ -67,4 +70,8 @@ public class RepoCashDTO implements Serializable {
@ApiModelProperty
(
value
=
"操作人姓名"
)
private
String
opName
;
private
Integer
createUser
;
@ApiModelProperty
(
value
=
"现金类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"已冻结现金"
)
private
BigDecimal
cashFreeze
;
}
src/main/java/com/mmc/payment/model/dto/RepoRcdTeamDTO.java
→
src/main/java/com/mmc/payment/model/dto/
repo/
RepoRcdTeamDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/RepoRebateWalletDTO.java
→
src/main/java/com/mmc/payment/model/dto/
repo/
RepoRebateWalletDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/RepoWalletDTO.java
→
src/main/java/com/mmc/payment/model/dto/
repo/
RepoWalletDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -24,7 +23,7 @@ public class RepoWalletDTO implements Serializable {
private
static
final
long
serialVersionUID
=
5306992787421065922L
;
@ApiModelProperty
(
value
=
"ID"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"
用户ID
"
)
@ApiModelProperty
(
value
=
"
账号id
"
)
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"现金余额"
)
private
BigDecimal
cashAmt
;
...
...
@@ -32,15 +31,25 @@ public class RepoWalletDTO implements Serializable {
private
BigDecimal
cashPaid
;
@ApiModelProperty
(
value
=
"冻结中-金额"
)
private
BigDecimal
cashFreeze
;
@ApiModelProperty
(
value
=
"奖励-余额"
)
private
BigDecimal
rcdRebateAmt
;
@ApiModelProperty
(
value
=
"累计提现"
)
private
BigDecimal
rebateWdl
;
@ApiModelProperty
(
value
=
"提现冻结金额"
)
private
BigDecimal
rebateFreeze
;
//
@ApiModelProperty(value = "奖励-余额")
//
private BigDecimal rcdRebateAmt;
//
@ApiModelProperty(value = "累计提现")
//
private BigDecimal rebateWdl;
//
@ApiModelProperty(value = "提现冻结金额")
//
private BigDecimal rebateFreeze;
@ApiModelProperty
(
value
=
"平台备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"手机号"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"用户名称"
)
private
String
userName
;
@ApiModelProperty
(
value
=
"用户昵称"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"账号类型:0后台管理账号 ; 100云享飞-客户端;"
)
private
Integer
portType
;
@ApiModelProperty
(
value
=
"uid"
)
private
String
uid
;
/*
public void defaultRebateValue() {
if (this.rcdRebateAmt == null) {
this.rcdRebateAmt = BigDecimal.ZERO;
...
...
@@ -49,5 +58,5 @@ public class RepoWalletDTO implements Serializable {
if (this.rebateWdl == null) {
this.rebateWdl = BigDecimal.ZERO;
}
}
}
*/
}
src/main/java/com/mmc/payment/model/dto/RoleInfoDTO.java
→
src/main/java/com/mmc/payment/model/dto/
role/
RoleInfoDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
role
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/BaseAccountDTO.java
→
src/main/java/com/mmc/payment/model/dto/
user/
BaseAccountDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
user
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
...
...
@@ -17,26 +18,29 @@ import java.io.Serializable;
@NoArgsConstructor
// @ApiModel(value = "com.mmc.csf.model.dto.BaseAccountDTO", description = "登录信息DTO")
public
class
BaseAccountDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
2979712090903806216L
;
private
static
final
long
serialVersionUID
=
-
2979712090903806216L
;
@ApiModelProperty
(
value
=
"token"
)
private
String
token
;
@ApiModelProperty
(
value
=
"token
"
)
private
String
token
;
@ApiModelProperty
(
value
=
"账号id
"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"账号id
"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"账号
"
)
private
String
accountNo
;
@ApiModelProperty
(
value
=
"账号
"
)
private
String
accountNo
;
@ApiModelProperty
(
value
=
"账号uid
"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"账号uid
"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"手机号
"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"手机号
"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"用户名称
"
)
private
String
userName
;
@ApiModelProperty
(
value
=
"用户名
称"
)
private
String
user
Name
;
@ApiModelProperty
(
value
=
"用户昵
称"
)
private
String
nick
Name
;
@ApiModelProperty
(
value
=
"用户昵称
"
)
private
String
nickNam
e
;
@ApiModelProperty
(
value
=
"0后台管理账号 ; 100云享飞-客户端
"
)
private
Integer
portTyp
e
;
}
src/main/java/com/mmc/payment/model/dto/CurrentUserDTO.java
→
src/main/java/com/mmc/payment/model/dto/
user/
CurrentUserDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
user
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/RepoAccountDTO.java
→
src/main/java/com/mmc/payment/model/dto/
user/
RepoAccountDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
user
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/UserAccountDTO.java
→
src/main/java/com/mmc/payment/model/dto/
user/
UserAccountDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
user
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.model.dto.company.CompanySimpleDTO
;
import
com.mmc.payment.model.dto.role.RoleInfoDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/dto/UserAccountSimpleDTO.java
→
src/main/java/com/mmc/payment/model/dto/
user/
UserAccountSimpleDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
dto
;
package
com
.
mmc
.
payment
.
model
.
dto
.
user
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
...
...
@@ -45,4 +45,6 @@ public class UserAccountSimpleDTO implements Serializable {
private
Integer
portType
;
@ApiModelProperty
(
value
=
"企业认证状态, 0未通过,1通过"
)
private
Integer
companyAuthStatus
;
@ApiModelProperty
(
value
=
"账号"
)
private
String
accountNo
;
}
src/main/java/com/mmc/payment/model/qo/BaseInfoQO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.Freeze
;
import
com.mmc.payment.common.Page
;
import
com.mmc.payment.common.
publicinterface.
Freeze
;
import
com.mmc.payment.common.
publicinterface.
Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
@@ -27,13 +27,13 @@ public class BaseInfoQO {
private
String
endTime
;
@ApiModelProperty
(
value
=
"页码"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
,
message
=
"pageNo不能少于1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
,
message
=
"pageNo不能少于1"
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
,
message
=
"pageSize不能少于1"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
,
message
=
"pageSize不能少于1"
)
private
Integer
pageSize
;
/**
...
...
src/main/java/com/mmc/payment/model/qo/RepoAccountQO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.Page
;
import
com.mmc.payment.common.
publicinterface.
Page
;
import
com.mmc.payment.config.UserPorts
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/qo/RepoCashQO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.Page
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -24,7 +23,7 @@ import java.io.Serializable;
//@ApiModel(value = "com.mmc.csf.model.qo.RepoCashQO", description = "现金变更QO")
public
class
RepoCashQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8705749845968042632L
;
@ApiModelProperty
(
value
=
"用户ID"
)
@ApiModelProperty
(
value
=
"用户ID"
,
required
=
true
)
@NotNull
(
message
=
"用户ID不能为空"
,
groups
=
Page
.
class
)
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"关键字"
)
...
...
@@ -33,15 +32,15 @@ public class RepoCashQO implements Serializable {
private
String
startTime
;
@ApiModelProperty
(
value
=
"结束时间"
)
private
String
endTime
;
@ApiModelProperty
(
value
=
"
交易
类型:查字典"
)
private
Integer
payMetho
d
;
@ApiModelProperty
(
value
=
"
现金
类型:查字典"
)
private
Integer
cashTypeI
d
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
)
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
...
...
src/main/java/com/mmc/payment/model/qo/RepoWalletQO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/30 13:32
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.qo.RepoCashQO", description = "现金变更QO")
public
class
RepoWalletQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8705749845968042632L
;
@ApiModelProperty
(
value
=
"用户ID"
)
private
Integer
repoAccountId
;
@ApiModelProperty
(
value
=
"现金余额"
)
private
String
cashAmt
;
@ApiModelProperty
(
value
=
"已付现金"
)
private
String
cashPaid
;
@ApiModelProperty
(
value
=
"已冻结现金"
)
private
String
cashFreeze
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
}
src/main/java/com/mmc/payment/model/qo/UserAccountQO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.Page
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -47,7 +46,7 @@ public class UserAccountQO implements Serializable {
@ApiModelProperty
(
value
=
"推荐单位id"
)
private
Integer
rcdCompanyId
;
@ApiModelProperty
(
value
=
"单位集合"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"单位集合"
,
hidden
=
true
)
private
List
<
Integer
>
companys
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
...
...
src/main/java/com/mmc/payment/model/qo/UserCashQO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
com.mmc.payment.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Author small
* @Date 2023/5/29 15:59
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.qo.RepoAccountQO", description = "云仓账号信息查询QO")
public
class
UserCashQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3425378226992206841L
;
@ApiModelProperty
(
value
=
"用户名称/手机号/UID"
)
private
String
userMassage
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
@ApiModelProperty
(
value
=
"用户ID"
,
hidden
=
true
)
private
List
<
Integer
>
accountIds
;
}
src/main/java/com/mmc/payment/model/qo/WalletMessageQO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
/**
* @Author small
* @Date 2023/5/30 14:08
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
WalletMessageQO
{
private
static
final
long
serialVersionUID
=
-
1274280958579567505L
;
@ApiModelProperty
(
value
=
"用户id集合"
)
private
List
<
Integer
>
userIds
;
}
src/main/java/com/mmc/payment/model/qo/WalletUsersQO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
qo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotNull
;
/**
* @Author small
* @Date 2023/5/30 10:21
* @Version 1.0
*/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
WalletUsersQO
{
private
static
final
long
serialVersionUID
=
-
1274280958579567505L
;
@ApiModelProperty
(
value
=
"repo_account_id"
)
@NotNull
(
message
=
"账号id"
)
private
Integer
repoAccountId
;
}
src/main/java/com/mmc/payment/model/vo/flyer/EntFourValidateVO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
.
flyer
;
import
com.mmc.payment.common.publicinterface.Create
;
import
com.mmc.payment.common.publicinterface.Update
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/29 16:14
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.vo.EntFourValidateVO", description = "新增/修改参数类")
public
class
EntFourValidateVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6208245549679324962L
;
@ApiModelProperty
(
value
=
"id"
)
@NotNull
(
message
=
"id创建修改不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
id
;
@ApiModelProperty
(
value
=
"用户ID"
)
@NotNull
(
message
=
"用户ID不能为空"
,
groups
=
{
Update
.
class
,
Create
.
class
})
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"企业法人"
)
@NotBlank
(
message
=
"企业法人"
,
groups
=
{
Create
.
class
})
private
String
entLegalPerson
;
@ApiModelProperty
(
value
=
"身份证号码"
,
hidden
=
true
)
//@NotBlank(message = "身份证号码不能为空",groups = {Create.class})
private
String
idNumber
;
@ApiModelProperty
(
value
=
"企业名称"
)
@NotBlank
(
message
=
"企业名称"
,
groups
=
{
Update
.
class
,
Create
.
class
})
private
String
entName
;
@ApiModelProperty
(
value
=
"统一社会信用代码"
)
@NotBlank
(
message
=
"统一社会信用代码"
,
groups
=
{
Create
.
class
})
private
String
unifySocialCreditCode
;
@ApiModelProperty
(
value
=
"营业执照"
)
@NotBlank
(
message
=
"营业执照"
,
groups
=
{
Update
.
class
})
private
String
businessLicenseImg
;
@ApiModelProperty
(
value
=
"unionId"
)
private
String
unionId
;
@ApiModelProperty
(
value
=
"参与邀请id"
)
private
Integer
participateActivityId
;
}
src/main/java/com/mmc/payment/model/vo/flyer/FlyerAccountVO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
.
flyer
;
import
com.mmc.payment.common.publicinterface.Create
;
import
com.mmc.payment.common.publicinterface.Update
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/29 16:16
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.vo.FlyerAccountVO", description = "新增/修改参数类")
public
class
FlyerAccountVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5606965866344925637L
;
@ApiModelProperty
(
value
=
"id"
)
@NotNull
(
message
=
"更新时ID不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
id
;
@ApiModelProperty
(
value
=
"uid"
)
private
String
uid
;
@ApiModelProperty
(
value
=
"账号"
,
example
=
""
)
@NotEmpty
(
message
=
"账号不能为空"
,
groups
=
{
Create
.
class
})
private
String
accountName
;
@ApiModelProperty
(
value
=
"飞手手机号"
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"账号类型"
,
example
=
"个人飞手或机构"
)
private
Integer
accountType
;
@ApiModelProperty
(
value
=
"飞手实名认证状态"
,
example
=
"0未实名,1已实名"
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"机构认证状态"
,
example
=
"0未认证,1,已认证"
)
private
Integer
entAuthStatus
;
@ApiModelProperty
(
value
=
"工作状态,0休息中,1接单中,2服务订单中"
)
private
Integer
workStatus
;
@ApiModelProperty
(
value
=
"昵称"
,
example
=
"科比特"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"常驻地址"
,
example
=
"广东省深圳市"
)
private
String
resAddress
;
@ApiModelProperty
(
value
=
"头像"
,
example
=
"url"
)
private
String
headerImg
;
@ApiModelProperty
(
value
=
"经度"
)
private
Double
lon
;
@ApiModelProperty
(
value
=
"纬度"
)
private
Double
lat
;
@ApiModelProperty
(
value
=
"用户备注"
)
@Size
(
max
=
70
,
message
=
"用户备注内容不能超过70字符"
,
groups
=
{
Update
.
class
})
private
String
remark
;
@ApiModelProperty
(
value
=
"用户删除状态,0未删除,1已删除"
)
private
Integer
deleted
;
}
src/main/java/com/mmc/payment/model/vo/flyer/FlyerWorkStatusVO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
.
flyer
;
import
com.mmc.payment.common.publicinterface.Update
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/29 16:13
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "com.mmc.csf.model.vo.FlyerWorkStatusVO", description = "新增/修改参数类")
public
class
FlyerWorkStatusVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1274280958579567505L
;
@ApiModelProperty
(
value
=
"id"
)
@NotNull
(
message
=
"更新时ID不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
id
;
@ApiModelProperty
(
value
=
"常驻地址"
,
example
=
"深圳市"
)
@NotEmpty
(
message
=
"常驻地址不能为空"
,
groups
=
{
Update
.
class
})
private
String
resAddress
;
@ApiModelProperty
(
value
=
"经度"
)
@NotNull
(
message
=
"更新时经度不能为空"
,
groups
=
{
Update
.
class
})
private
Double
lon
;
@ApiModelProperty
(
value
=
"纬度"
)
@NotNull
(
message
=
"更新时纬度不能为空"
,
groups
=
{
Update
.
class
})
private
Double
lat
;
@ApiModelProperty
(
value
=
"工作状态"
)
@NotNull
(
message
=
"workStatus不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
workStatus
;
}
src/main/java/com/mmc/payment/model/vo/ShareOrderDTO.java
→
src/main/java/com/mmc/payment/model/vo/
order/
ShareOrderDTO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
;
package
com
.
mmc
.
payment
.
model
.
vo
.
order
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
src/main/java/com/mmc/payment/model/vo/RepoAccountVO.java
→
src/main/java/com/mmc/payment/model/vo/
repo/
RepoAccountVO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
;
package
com
.
mmc
.
payment
.
model
.
vo
.
repo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
src/main/java/com/mmc/payment/model/vo/RepoCashVO.java
→
src/main/java/com/mmc/payment/model/vo/
repo/
RepoCashVO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
;
package
com
.
mmc
.
payment
.
model
.
vo
.
repo
;
import
com.mmc.payment.common.Create
;
import
com.mmc.payment.common.Refund
;
import
com.mmc.payment.common.Share
;
import
com.mmc.payment.common.
publicinterface.
Create
;
import
com.mmc.payment.common.
publicinterface.
Refund
;
import
com.mmc.payment.common.
publicinterface.
Share
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -23,13 +23,13 @@ import java.util.List;
@NoArgsConstructor
// @ApiModel(value = "com.mmc.csf.model.vo.RepoCashVO", description = "现金变更VO")
public
class
RepoCashVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1828354753495845609L
;
private
static
final
long
serialVersionUID
=
1828354753495845609L
;
/*
@ApiModelProperty(value = "用户ID")
@NotNull(
message = "用户ID不能为空",
groups = {Create.class})
private Integer repoAccountId;*/
@ApiModelProperty
(
value
=
"用户ID"
)
@NotNull
(
message
=
"用户ID不能为空"
,
groups
=
{
Create
.
class
})
private
Integer
repoAccountId
;
/* @ApiModelProperty(value = "订单ID")
@NotNull(
...
...
@@ -43,21 +43,21 @@ public class RepoCashVO implements Serializable {
groups = {Share.class})
private Integer shareOrderId;*/
@ApiModelProperty
(
value
=
"变动金额"
)
@NotNull
(
message
=
"变动金额不能为空"
,
groups
=
{
Create
.
class
,
Refund
.
class
})
private
BigDecimal
amtPaid
;
@ApiModelProperty
(
value
=
"变动金额"
)
@NotNull
(
message
=
"变动金额不能为空"
,
groups
=
{
Create
.
class
,
Refund
.
class
})
private
BigDecimal
amtPaid
;
@ApiModelProperty
(
value
=
"凭证图片集合"
)
private
List
<
String
>
voucher
;
@ApiModelProperty
(
value
=
"凭证图片集合"
)
private
List
<
String
>
voucher
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"操作人员密码"
)
@NotNull
(
message
=
"变动金额不能为空"
,
groups
=
{
Refund
.
class
,
Share
.
class
})
private
String
authPwd
;
@ApiModelProperty
(
value
=
"操作人员密码"
)
@NotNull
(
message
=
"变动金额不能为空"
,
groups
=
{
Refund
.
class
,
Share
.
class
})
private
String
authPwd
;
}
src/main/java/com/mmc/payment/model/vo/RepoOrderPayVO.java
→
src/main/java/com/mmc/payment/model/vo/
repo/
RepoOrderPayVO.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
;
package
com
.
mmc
.
payment
.
model
.
vo
.
repo
;
import
com.mmc.payment.model.dto.
BaseAccount
DTO
;
import
com.mmc.payment.model.dto.
OrderInfo
DTO
;
import
com.mmc.payment.model.dto.RepoAccountDTO
;
import
io.swagger.annotations.ApiModel
;
import
com.mmc.payment.model.dto.
order.OrderInfo
DTO
;
import
com.mmc.payment.model.dto.
user.BaseAccount
DTO
;
import
com.mmc.payment.model.dto.
user.
RepoAccountDTO
;
import
com.mmc.payment.model.vo.order.ShareOrderDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
src/main/java/com/mmc/payment/model/vo/wallet/WalletUsersVO.java
0 → 100644
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
model
.
vo
.
wallet
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @Author small
* @Date 2023/5/30 10:05
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
WalletUsersVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1274280958579567505L
;
@ApiModelProperty
(
value
=
"repo_account_id"
)
@NotNull
(
message
=
"账号id"
)
private
Integer
repoAccountId
;
}
src/main/java/com/mmc/payment/service/Impl/RepoAccountServiceImpl.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
service
.
Impl
;
import
com.mmc.payment.common.PageResult
;
import
com.mmc.payment.common.
result.
PageResult
;
import
com.mmc.payment.dao.RepoAccountDao
;
import
com.mmc.payment.entity.RepoWalletDO
;
import
com.mmc.payment.model.dto.
BaseAccoun
tDTO
;
import
com.mmc.payment.model.dto.
Repo
AccountDTO
;
import
com.mmc.payment.model.dto.
RepoWalle
tDTO
;
import
com.mmc.payment.entity.
repo.
RepoWalletDO
;
import
com.mmc.payment.model.dto.
repo.RepoWalle
tDTO
;
import
com.mmc.payment.model.dto.
user.Base
AccountDTO
;
import
com.mmc.payment.model.dto.
user.RepoAccoun
tDTO
;
import
com.mmc.payment.model.qo.RepoAccountQO
;
import
com.mmc.payment.service.RepoAccountService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -21,56 +21,57 @@ import java.util.stream.Collectors;
*/
@Service
public
class
RepoAccountServiceImpl
implements
RepoAccountService
{
@Autowired
private
RepoAccountDao
repoAccountDao
;
@Autowired
private
RepoAccountDao
repoAccountDao
;
@Override
public
PageResult
listPagePayManager
(
RepoAccountQO
param
,
BaseAccountDTO
cuser
)
{
@Override
public
PageResult
listPagePayManager
(
RepoAccountQO
param
,
BaseAccountDTO
cuser
)
{
/*if(!cuser.isManage()){
param.setCompanys(cuser.getCompanyInfo().getCompanys());
}*/
int
count
=
repoAccountDao
.
countPagePayManager
(
param
);
if
(
count
==
0
)
{
return
PageResult
.
buildPage
(
param
.
getPageNo
(),
param
.
getPageSize
(),
count
);
int
count
=
repoAccountDao
.
countPagePayManager
(
param
);
if
(
count
==
0
)
{
return
PageResult
.
buildPage
(
param
.
getPageNo
(),
param
.
getPageSize
(),
count
);
}
Integer
pageNo
=
param
.
getPageNo
();
param
.
buildCurrentPage
();
List
<
RepoAccountDTO
>
data
=
repoAccountDao
.
listPagePayManager
(
param
).
stream
()
.
map
(
d
->
{
d
.
buildName
();
return
d
.
buildRepoAccountDTO
();
})
.
collect
(
Collectors
.
toList
());
List
<
Integer
>
accountIds
=
data
.
stream
().
map
(
RepoAccountDTO:
:
getId
).
collect
(
Collectors
.
toList
());
param
.
setAccountIds
(
accountIds
);
// List<RepoWalletDTO> wallets = repoPayServletClient.feignListWalletInfo(param);
List
<
RepoWalletDTO
>
wallets
=
listWalletInfo
(
param
);
Map
<
Integer
,
RepoWalletDTO
>
mapWallet
=
wallets
.
stream
()
.
collect
(
Collectors
.
toMap
(
RepoWalletDTO:
:
getRepoAccountId
,
wallet
->
wallet
,
(
k1
,
k2
)
->
k2
));
for
(
RepoAccountDTO
ac
:
data
)
{
if
(
mapWallet
.
containsKey
(
ac
.
getId
()))
{
ac
.
setCashAmt
(
mapWallet
.
get
(
ac
.
getId
()).
getCashAmt
());
ac
.
setRemark
(
mapWallet
.
get
(
ac
.
getId
()).
getRemark
());
}
}
return
PageResult
.
buildPage
(
pageNo
,
param
.
getPageSize
(),
count
,
data
);
}
Integer
pageNo
=
param
.
getPageNo
();
param
.
buildCurrentPage
();
List
<
RepoAccountDTO
>
data
=
repoAccountDao
.
listPagePayManager
(
param
).
stream
()
.
map
(
d
->
{
d
.
buildName
();
return
d
.
buildRepoAccountDTO
();
})
.
collect
(
Collectors
.
toList
());
List
<
Integer
>
accountIds
=
data
.
stream
().
map
(
RepoAccountDTO:
:
getId
).
collect
(
Collectors
.
toList
());
param
.
setAccountIds
(
accountIds
);
// List<RepoWalletDTO> wallets = repoPayServletClient.feignListWalletInfo(param);
List
<
RepoWalletDTO
>
wallets
=
listWalletInfo
(
param
);
Map
<
Integer
,
RepoWalletDTO
>
mapWallet
=
wallets
.
stream
()
.
collect
(
Collectors
.
toMap
(
RepoWalletDTO:
:
getRepoAccountId
,
wallet
->
wallet
,
(
k1
,
k2
)
->
k2
));
for
(
RepoAccountDTO
ac
:
data
)
{
if
(
mapWallet
.
containsKey
(
ac
.
getId
()))
{
ac
.
setCashAmt
(
mapWallet
.
get
(
ac
.
getId
()).
getCashAmt
());
ac
.
setRemark
(
mapWallet
.
get
(
ac
.
getId
()).
getRemark
());
}
}
return
PageResult
.
buildPage
(
pageNo
,
param
.
getPageSize
(),
count
,
data
);
}
public
List
<
RepoWalletDTO
>
listWalletInfo
(
RepoAccountQO
param
)
{
if
(
CollectionUtils
.
isEmpty
(
param
.
getAccountIds
()))
{
return
java
.
util
.
Collections
.
emptyList
();
public
List
<
RepoWalletDTO
>
listWalletInfo
(
RepoAccountQO
param
)
{
if
(
CollectionUtils
.
isEmpty
(
param
.
getAccountIds
()))
{
return
java
.
util
.
Collections
.
emptyList
();
}
List
<
RepoWalletDO
>
wallets
=
repoAccountDao
.
listWalletInfo
(
param
);
return
wallets
.
stream
()
.
map
(
d
->
{
return
d
.
buildRepoWalletDTO
();
})
.
collect
(
Collectors
.
toList
());
}
List
<
RepoWalletDO
>
wallets
=
repoAccountDao
.
listWalletInfo
(
param
);
return
wallets
.
stream
()
.
map
(
d
->
{
return
d
.
buildRepoWalletDTO
();
})
.
collect
(
Collectors
.
toList
());
}
}
src/main/java/com/mmc/payment/service/Impl/RepoCashServiceImpl.java
浏览文件 @
e5d2b13a
差异被折叠。
点击展开。
src/main/java/com/mmc/payment/service/RepoAccountService.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
service
;
import
com.mmc.payment.common.PageResult
;
import
com.mmc.payment.model.dto.BaseAccountDTO
;
import
com.mmc.payment.common.
result.
PageResult
;
import
com.mmc.payment.model.dto.
user.
BaseAccountDTO
;
import
com.mmc.payment.model.qo.RepoAccountQO
;
/**
...
...
src/main/java/com/mmc/payment/service/RepoCashService.java
浏览文件 @
e5d2b13a
package
com
.
mmc
.
payment
.
service
;
import
com.mmc.payment.common.PageResult
;
import
com.mmc.payment.common.ResultBody
;
import
com.mmc.payment.model.dto.
BaseAccoun
tDTO
;
import
com.mmc.payment.model.dto.
PayCashResult
DTO
;
import
com.mmc.payment.model.dto.
RepoCash
DTO
;
import
com.mmc.payment.common.
result.
PageResult
;
import
com.mmc.payment.common.
result.
ResultBody
;
import
com.mmc.payment.model.dto.
repo.PayCashResul
tDTO
;
import
com.mmc.payment.model.dto.
repo.RepoCash
DTO
;
import
com.mmc.payment.model.dto.
user.BaseAccount
DTO
;
import
com.mmc.payment.model.qo.RepoCashQO
;
import
com.mmc.payment.model.vo.RepoCashVO
;
import
com.mmc.payment.model.vo.RepoOrderPayVO
;
import
com.mmc.payment.model.qo.UserCashQO
;
import
com.mmc.payment.model.vo.repo.RepoCashVO
;
import
com.mmc.payment.model.vo.repo.RepoOrderPayVO
;
import
com.mmc.payment.model.vo.wallet.WalletUsersVO
;
import
java.math.BigDecimal
;
/**
* @Author small @Date 2023/5/24 10:06 @Version 1.0
* @Author small
* @Date 2023/5/29 17:59
* @Version 1.0
*/
public
interface
RepoCashService
{
PageResult
listPageRepoCash
(
RepoCashQO
param
);
PageResult
listPageRepoCash
(
BaseAccountDTO
cuser
,
RepoCashQO
param
);
void
updateCashRemark
(
Integer
id
,
String
remark
);
void
updateCashRemark
(
Integer
id
,
String
remark
);
/**
* 充值
*
* @param cash
* @return
*/
ResultBody
reqCash
(
BaseAccountDTO
cuser
,
RepoCashVO
cash
);
/**
* 充值
*
* @param cash
* @return
*/
ResultBody
reqCash
(
BaseAccountDTO
cuser
,
RepoCashVO
cash
);
ResultBody
dedCash
(
BaseAccountDTO
cuser
,
RepoCashVO
cash
);
ResultBody
amountOfRefund
(
BaseAccountDTO
cuser
,
String
orderNo
,
BigDecimal
actualPay
,
Integer
repoAccountId
,
String
refundNo
);
RepoCashDTO
getRefundInfo
(
String
refundNo
);
ResultBody
dedCash
(
BaseAccountDTO
cuser
,
RepoCashVO
cash
);
BigDecimal
RemainingBalance
(
Integer
uid
);
RepoCashDTO
getRefundInfo
(
String
refundNo
);
PayCashResultDTO
orderPayment
(
BaseAccountDTO
currentAccount
,
String
orderNo
);
BigDecimal
RemainingBalance
(
Integer
uid
);
PayCashResultDTO
payCashOrder
(
RepoOrderPayVO
orderPay
);
ResultBody
orderPayment
(
BaseAccountDTO
currentAccount
,
String
orderNo
);
PayCashResultDTO
payCashOrder
(
RepoOrderPayVO
orderPay
);
PageResult
listPagePayManager
(
BaseAccountDTO
currentAccount
,
UserCashQO
param
);
ResultBody
walletUsers
(
WalletUsersVO
walletUsersVO
);
ResultBody
cashType
();
ResultBody
userWallet
(
BaseAccountDTO
currentAccount
);
}
src/main/resources/application-dev.yml
浏览文件 @
e5d2b13a
...
...
@@ -2,14 +2,14 @@ spring:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://mysql.default:3306/iuav_payment?characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://mysql.default:3306/iuav_payment
_dev
?characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
username
:
tmj
password
:
MMC@2022&MYSQL
redis
:
database
:
1
host
:
redis.default
password
:
MMC@2022&REDIS
port
:
6379
password
:
MMC@2022&REDIS
jedis
:
pool
:
max-active
:
2
...
...
@@ -33,4 +33,10 @@ mmcflying:
mount
:
directory
:
D:@javaVolume@
userapp
:
url
:
https://test.iuav.shop/userapp/
oms
:
url
:
https://test.iuav.shop/oms/
src/main/resources/application-local.yml
浏览文件 @
e5d2b13a
...
...
@@ -2,7 +2,7 @@ spring:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://rm-wz9dd796t4j1giz6t2o.mysql.rds.aliyuncs.com:3306/iuav_payment?characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://rm-wz9dd796t4j1giz6t2o.mysql.rds.aliyuncs.com:3306/iuav_payment
_dev
?characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
username
:
tmj
password
:
MMC@2022&MYSQL
redis
:
...
...
@@ -37,4 +37,8 @@ mount:
userapp
:
url
:
http://localhost:35150/userapp/
oms
:
url
:
http://localhost:8077/oms/
src/main/resources/application-prod.yml
浏览文件 @
e5d2b13a
...
...
@@ -32,3 +32,9 @@ mmcflying:
path
:
/ossservlet/upload/download/
mount
:
directory
:
D:@javaVolume@
userapp
:
url
:
https://www.iuav.shop/userapp/
oms
:
url
:
https://www.iuav.shop/oms/
src/main/resources/application.yml
浏览文件 @
e5d2b13a
...
...
@@ -15,8 +15,12 @@ spring:
jackson
:
date-format
:
yyyy-MM-dd HH:mm:ss
time-zone
:
GMT+8
main
:
banner-mode
:
off
logging
:
level
:
com
:
mmc
:
payment
:
DEBUG
file
:
name
:
"
/var/log/app/${spring.application.name}.log"
src/main/resources/mapper/RepoCashDao.xml
浏览文件 @
e5d2b13a
...
...
@@ -5,7 +5,7 @@
<mapper
namespace=
"com.mmc.payment.dao.RepoCashDao"
>
<resultMap
id=
"repoWalletResultMap"
type=
"com.mmc.payment.entity.RepoWalletDO"
>
type=
"com.mmc.payment.entity.
repo.
RepoWalletDO"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"repoAccountId"
column=
"repo_account_id"
/>
<result
property=
"cashAmt"
column=
"cash_amt"
/>
...
...
@@ -19,7 +19,7 @@
<result
property=
"createTime"
column=
"update_time"
/>
</resultMap>
<resultMap
id=
"repoCashResultMap"
type=
"com.mmc.payment.entity.RepoCashDO"
>
type=
"com.mmc.payment.entity.
repo.
RepoCashDO"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"repoAccountId"
column=
"repo_account_id"
/>
<result
property=
"uid"
column=
"uid"
/>
...
...
@@ -43,7 +43,21 @@
<result
property=
"updateUser"
column=
"update_user"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createUser"
column=
"create_user"
/>
<result
property=
"orderName"
column=
"order_name"
/>
<result
property=
"type"
column=
"type"
/>
</resultMap>
<resultMap
type=
"com.mmc.payment.entity.repo.RepoWalletDO"
id=
"RepoAccountResultMap"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"repoAccountId"
column=
"repo_account_id"
/>
<result
property=
"cashAmt"
column=
"cash_amt"
/>
<result
property=
"cashPaid"
column=
"cash_paid"
/>
<result
property=
"cashFreeze"
column=
"cash_freeze"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<select
id=
"getRefundCashInfo"
resultMap=
"repoCashResultMap"
parameterType=
"Integer"
>
select c.id,c.repo_account_id,c.ware_title,c.pay_no,
...
...
@@ -57,15 +71,15 @@
<insert
id=
"insertRepoCash"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.mmc.payment.entity.RepoCashDO"
>
keyProperty=
"id"
parameterType=
"com.mmc.payment.entity.
repo.
RepoCashDO"
>
insert into repo_cash
(repo_account_id, uid, account_name, order_info_id, order_no, sku_info_id, sku_title,
ware_info_id, ware_no, ware_title, pay_no, pay_method, amt_paid, cash_amt, pay_time, remark,
voucher, refund_no, update_time, update_user, create_time, create_user)
voucher, refund_no, update_time, update_user, create_time, create_user
, cash_type_id
)
values (#{repoAccountId}, #{uid}, #{accountName}, #{orderInfoId}, #{orderNo}, #{skuInfoId}, #{skuTitle},
#{wareInfoId}, #{wareNo}, #{wareTitle}, #{payNo}, #{payMethod}, #{amtPaid}, #{cashAmt}, #{payTime},
#{remark},
#{voucher}, #{refundNo}, #{updateTime}, #{updateUser}, #{createTime}, #{createUser})
#{voucher}, #{refundNo}, #{updateTime}, #{updateUser}, #{createTime}, #{createUser}
, 4
)
</insert>
<update
id=
"updateCashRemark"
>
...
...
@@ -77,9 +91,11 @@
parameterType=
"com.mmc.payment.model.qo.RepoCashQO"
>
select c.id,c.repo_account_id,c.ware_title,c.pay_no,
c.order_no,c.refund_no,c.create_user,c.pay_method,
c.amt_paid,c.cash_amt,c.remark,c.voucher
c.amt_paid,c.cash_amt,c.remark,c.voucher
,c.pay_time,c.order_name,ct.type
from repo_cash c
LEFT JOIN cash_type ct on c.cash_type_id=ct.id
<where>
1=1
and c.repo_account_id = #{repoAccountId}
<if
test=
" keyword!=null and keyword!='' "
>
and (
...
...
@@ -89,6 +105,9 @@
or c.refund_no like CONCAT('%',#{keyword},'%')
)
</if>
<if
test=
"cashTypeId!=null and cashTypeId!=''"
>
and ct.id=#{cashTypeId}
</if>
<if
test=
" startTime != null and startTime != '' "
>
and c.pay_time
>
= STR_TO_DATE(#{startTime},'%Y-%m-%d
%H:%i:%s')
...
...
@@ -97,9 +116,6 @@
and c.pay_time
<
= STR_TO_DATE(#{endTime},'%Y-%m-%d
%H:%i:%s')
</if>
<if
test=
" payMethod != null "
>
and c.pay_method = #{payMethod}
</if>
</where>
order by c.pay_time desc
limit #{pageNo},#{pageSize}
...
...
@@ -107,10 +123,12 @@
<select
id=
"countPagePFRepoCash"
resultType=
"int"
parameterType=
"com.mmc.payment.model.qo.RepoCashQO"
>
select count(
*
)
select count(
1
)
from repo_cash c
LEFT JOIN cash_type ct on c.cash_type_id=ct.id
<where>
and c.repo_account_id = #{repoAccountId}
1=1 and
c.repo_account_id = #{repoAccountId}
<if
test=
" keyword!=null and keyword!='' "
>
and (
c.ware_title like CONCAT('%',#{keyword},'%')
...
...
@@ -119,6 +137,9 @@
or c.refund_no like CONCAT('%',#{keyword},'%')
)
</if>
<if
test=
"cashTypeId!=null and cashTypeId!=''"
>
and ct.id=#{cashTypeId}
</if>
<if
test=
" startTime != null and startTime != '' "
>
and c.pay_time
>
= STR_TO_DATE(#{startTime},'%Y-%m-%d
%H:%i:%s')
...
...
@@ -127,10 +148,8 @@
and c.pay_time
<
= STR_TO_DATE(#{endTime},'%Y-%m-%d
%H:%i:%s')
</if>
<if
test=
" payMethod != null "
>
and c.pay_method = #{payMethod}
</if>
</where>
order by c.pay_time desc
</select>
<select
id=
"getRepoWalletInfo"
resultMap=
"repoWalletResultMap"
>
...
...
@@ -169,15 +188,83 @@
<insert
id=
"orderPayment"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.mmc.payment.entity.RepoCashDO"
>
keyProperty=
"id"
parameterType=
"com.mmc.payment.entity.
repo.
RepoCashDO"
>
insert into repo_cash
(repo_account_id, uid, account_name, order_info_id, order_no, sku_info_id, sku_title,
ware_info_id, ware_no, ware_title, pay_no, pay_method, amt_paid, cash_amt, pay_time, remark,
voucher, refund_no, update_time, update_user, create_time, create_user)
voucher, refund_no, update_time, update_user, create_time, create_user
, cash_type_id
)
values (#{repoAccountId}, #{uid}, #{accountName}, #{orderInfoId}, #{orderNo}, #{skuInfoId}, #{skuTitle},
#{wareInfoId}, #{wareNo}, #{wareTitle}, #{payNo}, #{payMethod}, #{amtPaid}, #{cashAmt},
#{payTime}
,
#{wareInfoId}, #{wareNo}, #{wareTitle}, #{payNo}, #{payMethod}, #{amtPaid}, #{cashAmt},
now()
,
#{remark},
#{voucher}, #{refundNo}, #{updateTime}, #{updateUser},
#{createTime}, #{createUser}
)
#{voucher}, #{refundNo}, #{updateTime}, #{updateUser},
now(), #{createUser}, 2
)
</insert>
<select
id=
"countPagePayManager"
resultType=
"Integer"
parameterType=
"com.mmc.payment.model.qo.RepoAccountQO"
>
select count(*)
from repo_wallet
</select>
<select
id=
"listPagePayManager"
resultMap=
"RepoAccountResultMap"
parameterType=
"com.mmc.payment.model.qo.UserCashQO"
>
SELECT id,
repo_account_id,
cash_amt,
cash_paid,
cash_freeze,
remark
FROM repo_wallet
WHERE 1 = 1
ORDER BY create_time DESC
limit #{pageNo}, #{pageSize}
</select>
<select
id=
"listWalletInfo"
resultMap=
"repoWalletResultMap"
parameterType=
"com.mmc.payment.model.qo.UserCashQO"
>
select w.id,w.repo_account_id,w.cash_amt,w.cash_freeze,
w.cash_paid,w.rcd_rebate_amt,w.rebate_wdl,w.rebate_freeze,w.remark,w.create_time,w.update_time
from repo_wallet w
where
w.repo_account_id in
<foreach
collection=
"accountIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
<insert
id=
"walletUsers"
parameterType=
"com.mmc.payment.model.qo.WalletUsersQO"
>
insert into repo_wallet(repo_account_id, create_time)
values (#{repoAccountId}, now())
</insert>
<select
id=
"findWalletUsers"
resultType=
"int"
parameterType=
"com.mmc.payment.model.qo.WalletUsersQO"
>
select repo_account_id As repoAccountId
from repo_wallet
where repo_account_id = #{repoAccountId}
</select>
<select
id=
"cashType"
resultType=
"com.mmc.payment.entity.cash.CashTypeDO"
>
select id, `type`
from cash_type
</select>
<select
id=
"userWallet"
resultType=
"com.mmc.payment.entity.repo.RepoWalletDO"
>
SELECT id,
repo_account_id AS repoAccountId,
cash_amt AS cashAmt,
cash_paid AS cashPaid,
cash_paid,
cash_freeze AS cashFreeze,
remark,
rcd_rebate_amt AS rcdRebateAmt,
rebate_wdl AS rebateWdl,
rebate_freeze AS rebateFreeze,
update_time AS updateTime,
create_time AS createTime
FROM repo_wallet
where repo_account_id = #{userAccountId}
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论