Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
afb6c288
提交
afb6c288
authored
10月 23, 2023
作者:
huyufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改BUG
上级
2f85027e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
15 行删除
+17
-15
OwnerAccountController.java
...rformance/controller/pc/owner/OwnerAccountController.java
+0
-3
OwnerRunningWaterRecord.java
...va/com/clx/performance/model/OwnerRunningWaterRecord.java
+0
-2
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+17
-10
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/pc/owner/OwnerAccountController.java
浏览文件 @
afb6c288
...
...
@@ -98,9 +98,6 @@ public class OwnerAccountController {
@PostMapping
(
"/accountCaseOut"
)
@UnitCovert
public
Result
<
Long
>
accountCaseOut
(
@RequestBody
OwnerCaseOutParam
param
)
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
param
.
setOwnerUserNo
(
loginUserInfo
.
getUserNo
());
Long
id
=
ownerAccountService
.
accountCaseOut
(
param
);
return
Result
.
ok
(
id
);
}
...
...
performance-web/src/main/java/com/clx/performance/model/OwnerRunningWaterRecord.java
浏览文件 @
afb6c288
...
...
@@ -7,10 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
import
com.msl.common.config.KeyColumn
;
import
com.msl.common.model.HasKey
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
org.apache.poi.hpsf.Decimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
afb6c288
...
...
@@ -134,6 +134,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Long
accountCaseOut
(
OwnerCaseOutParam
param
)
{
BigDecimal
caseOutBalance
=
param
.
getCaseOutBalance
();
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
param
.
setOwnerUserNo
(
loginUserInfo
.
getUserNo
());
LocalDateTime
now
=
LocalDateTime
.
now
();
while
(
true
)
{
...
...
@@ -158,6 +160,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
OwnerCaseOut
entity
=
new
OwnerCaseOut
();
entity
.
setAccountType
(
param
.
getAccountType
());
entity
.
setCaseOutNo
(
idGenerateSnowFlake
.
nextId
(
IdTypeEnum
.
Type
.
CASE_OUT
.
getCode
()));
entity
.
setCaseOutBalance
(
caseOutBalance
);
entity
.
setOwnerUserNo
(
param
.
getOwnerUserNo
());
entity
.
setStatus
(
OwnerAccountEnum
.
CaseOutStatus
.
PENDING_PAYMENT
.
getCode
());
entity
.
setCaseOutBank
(
param
.
getCaseOutBank
());
...
...
@@ -166,9 +169,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
ownerCaseOutDao
.
saveEntity
(
entity
);
//插入冻结流水
OwnerRunningWaterRecord
runningWaterRecord
=
new
OwnerRunningWaterRecord
();
runningWaterRecord
.
setOwnerName
(
"测试"
);
runningWaterRecord
.
setMobile
(
"11111111111"
);
runningWaterRecord
.
setCreateBy
(
"操作人测试"
);
runningWaterRecord
.
setOwnerName
(
loginUserInfo
.
getUserName
()
);
runningWaterRecord
.
setMobile
(
loginUserInfo
.
getUserMobile
()
);
runningWaterRecord
.
setCreateBy
(
loginUserInfo
.
getUserName
()
);
runningWaterRecord
.
setRelationId
(
entity
.
getCaseOutNo
());
runningWaterRecord
.
setAccountBalance
(
caseOutBalance
);
runningWaterRecord
.
setOwnerUserNo
(
param
.
getOwnerUserNo
());
...
...
@@ -184,7 +187,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Long
openAccountCaseOut
(
OpenOwnerCaseOutParam
param
)
{
BigDecimal
caseOutBalance
=
param
.
getCaseOutBalance
();
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
param
.
setOwnerUserNo
(
loginUserInfo
.
getUserNo
());
LocalDateTime
now
=
LocalDateTime
.
now
();
while
(
true
)
{
//冻结账户可用金额
...
...
@@ -212,9 +216,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
ownerCaseOutDao
.
saveEntity
(
entity
);
//插入冻结流水
OwnerRunningWaterRecord
runningWaterRecord
=
new
OwnerRunningWaterRecord
();
runningWaterRecord
.
setOwnerName
(
"测试"
);
runningWaterRecord
.
setMobile
(
"11111111111"
);
runningWaterRecord
.
setCreateBy
(
"操作人测试"
);
runningWaterRecord
.
setOwnerName
(
loginUserInfo
.
getUserName
()
);
runningWaterRecord
.
setMobile
(
loginUserInfo
.
getUserMobile
()
);
runningWaterRecord
.
setCreateBy
(
loginUserInfo
.
getUserName
()
);
runningWaterRecord
.
setRelationId
(
entity
.
getCaseOutNo
());
runningWaterRecord
.
setAccountBalance
(
caseOutBalance
);
runningWaterRecord
.
setOwnerUserNo
(
param
.
getOwnerUserNo
());
...
...
@@ -232,12 +236,14 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
accountTopUpApprove
(
PlatformAccountTopUpParam
param
)
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
Optional
<
OwnerTopUp
>
optional
=
ownerTopUpDao
.
getEntityByKey
(
param
.
getId
());
if
(!
optional
.
isPresent
())
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
HTTP_ERROR
,
"当前ID未查询到有效记录"
);
}
OwnerTopUp
ownerTopUp
=
optional
.
get
();
OwnerTopUp
entity
=
new
OwnerTopUp
();
String
ownerName
=
""
;
if
(!
param
.
getPassType
())
{
entity
.
setId
(
param
.
getId
());
entity
.
setApprovalTurnDown
(
param
.
getTurnDownContent
());
...
...
@@ -256,6 +262,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
update
.
setModifiedTime
(
account
.
getModifiedTime
());
Integer
flag
=
ownerAccountDao
.
updateAccountCAS
(
update
,
now
,
true
);
if
(
null
!=
flag
)
{
ownerName
=
account
.
getOwnerUserName
();
break
;
}
}
...
...
@@ -265,9 +272,9 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
ownerTopUpDao
.
updateEntityByKey
(
entity
);
//需要插入充值流水
OwnerRunningWaterRecord
runningWaterRecord
=
new
OwnerRunningWaterRecord
();
runningWaterRecord
.
setOwnerName
(
"测试"
);
runningWaterRecord
.
setMobile
(
"11111111111"
);
runningWaterRecord
.
setCreateBy
(
"操作人测试"
);
runningWaterRecord
.
setOwnerName
(
ownerName
);
runningWaterRecord
.
setMobile
(
loginUserInfo
.
getUserMobile
()
);
runningWaterRecord
.
setCreateBy
(
loginUserInfo
.
getUserName
()
);
runningWaterRecord
.
setRelationId
(
ownerTopUp
.
getTopUpNo
());
runningWaterRecord
.
setAccountBalance
(
topUpBalance
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论