Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
855987ca
提交
855987ca
authored
10月 19, 2023
作者:
huyufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复BUG
上级
b888f898
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
23 行增加
和
17 行删除
+23
-17
OwnerAccountVO.java
...c/main/java/com/clx/performance/vo/pc/OwnerAccountVO.java
+2
-1
OwnerCaseOutVO.java
...c/main/java/com/clx/performance/vo/pc/OwnerCaseOutVO.java
+2
-1
OwnerAccountController.java
...rformance/controller/pc/owner/OwnerAccountController.java
+6
-2
OwnerAccount.java
...src/main/java/com/clx/performance/model/OwnerAccount.java
+2
-2
OwnerCaseOut.java
...src/main/java/com/clx/performance/model/OwnerCaseOut.java
+2
-2
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+3
-3
OwnerAccountSqlProvider.java
.../clx/performance/sqlProvider/OwnerAccountSqlProvider.java
+4
-4
OwnerCaseOutProvider.java
...com/clx/performance/sqlProvider/OwnerCaseOutProvider.java
+1
-1
OwnerTopUpProvider.java
...a/com/clx/performance/sqlProvider/OwnerTopUpProvider.java
+1
-1
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/OwnerAccountVO.java
浏览文件 @
855987ca
...
...
@@ -68,6 +68,6 @@ public class OwnerAccountVO {
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"修改时间"
)
private
LocalDateTime
modif
y
Time
;
private
LocalDateTime
modif
ied
Time
;
}
\ No newline at end of file
performance-api/src/main/java/com/clx/performance/vo/pc/OwnerCaseOutVO.java
浏览文件 @
855987ca
...
...
@@ -101,6 +101,6 @@ public class OwnerCaseOutVO {
* 修改时间
*/
@ApiModelProperty
(
value
=
"修改时间"
)
private
LocalDateTime
modif
y
Time
;
private
LocalDateTime
modif
ied
Time
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/controller/pc/owner/OwnerAccountController.java
浏览文件 @
855987ca
package
com
.
clx
.
performance
.
controller
.
pc
.
owner
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.enums.OwnerAccountEnum
;
import
com.clx.performance.model.OwnerTransferInfo
;
import
com.clx.performance.param.pc.*
;
import
com.clx.performance.service.*
;
...
...
@@ -26,7 +27,10 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.constraints.NotNull
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
@Slf4j
@RestController
...
...
@@ -50,10 +54,10 @@ public class OwnerAccountController {
@ApiOperation
(
value
=
"账户信息"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/accountInfo"
)
@UnitCovert
(
param
=
false
)
public
Result
<
List
<
OwnerAccountVO
>
>
accountInfo
()
{
public
Result
<
Map
>
accountInfo
()
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
List
<
OwnerAccountVO
>
accountVOList
=
ownerAccountService
.
accountInfo
(
loginUserInfo
.
getUserNo
());
return
Result
.
ok
(
accountVOList
);
return
Result
.
ok
(
accountVOList
.
stream
().
collect
(
Collectors
.
groupingBy
(
OwnerAccountVO:
:
getAccountType
))
);
}
@ApiOperation
(
value
=
"货主充值记录列表"
,
notes
=
"<br>By:胡宇帆"
)
...
...
performance-web/src/main/java/com/clx/performance/model/OwnerAccount.java
浏览文件 @
855987ca
...
...
@@ -75,8 +75,8 @@ public class OwnerAccount implements HasKey<Integer> {
@TableField
(
"create_time"
)
private
LocalDateTime
createTime
;
@TableField
(
"modif
y
_time"
)
private
LocalDateTime
modif
y
Time
;
@TableField
(
"modif
ied
_time"
)
private
LocalDateTime
modif
ied
Time
;
@KeyColumn
(
"id"
)
@Override
...
...
performance-web/src/main/java/com/clx/performance/model/OwnerCaseOut.java
浏览文件 @
855987ca
...
...
@@ -110,8 +110,8 @@ public class OwnerCaseOut implements HasKey<Integer> {
/**
* 修改时间
*/
@TableField
(
"modif
y
_time"
)
private
LocalDateTime
modif
y
Time
;
@TableField
(
"modif
ied
_time"
)
private
LocalDateTime
modif
ied
Time
;
@Override
@KeyColumn
(
"id"
)
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
855987ca
...
...
@@ -111,7 +111,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
OwnerAccount
update
=
new
OwnerAccount
();
update
.
setUsableBalance
(
caseOutBalance
.
negate
());
update
.
setFrozenBalance
(
caseOutBalance
);
update
.
setModif
yTime
(
account
.
getModify
Time
());
update
.
setModif
iedTime
(
account
.
getModified
Time
());
update
.
setId
(
account
.
getId
());
int
flag
=
ownerAccountDao
.
updateAccount
(
update
,
now
);
if
(
flag
>
0
)
{
...
...
@@ -172,7 +172,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
update
.
setAccountBalance
(
topUpBalance
);
update
.
setUsableBalance
(
topUpBalance
);
update
.
setId
(
account
.
getId
());
update
.
setModif
yTime
(
account
.
getModify
Time
());
update
.
setModif
iedTime
(
account
.
getModified
Time
());
int
flag
=
ownerAccountDao
.
updateAccount
(
update
,
now
);
if
(
flag
>
0
)
{
break
;
...
...
@@ -462,7 +462,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
OwnerAccount
entity
=
new
OwnerAccount
();
entity
.
setAccountType
(
ownerAccount
.
getAccountType
());
entity
.
setId
(
ownerAccount
.
getId
());
entity
.
setModif
yTime
(
ownerAccount
.
getModify
Time
());
entity
.
setModif
iedTime
(
ownerAccount
.
getModified
Time
());
if
(
ownerAccount
.
getAccountType
().
equals
(
OwnerAccountEnum
.
AccountTypeStatus
.
MARGIN_ACCOUNT
.
getCode
()))
{
if
(
ownerAccount
.
getUsableBalance
().
compareTo
(
frozenBalance
)
<
0
)
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
HTTP_ERROR
,
"当前货主保证金账户可用余额不够冻结"
);
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/OwnerAccountSqlProvider.java
浏览文件 @
855987ca
...
...
@@ -44,8 +44,8 @@ public class OwnerAccountSqlProvider {
account
.
getUsableBalance
()
+
",frozen_balance = frozen_balance +"
+
account
.
getUsableBalance
()
+
",account_balance = account_balance +"
+
account
.
getAccountBalance
()+
",modif
y
_time="
+
now
+
"where id = "
+
account
.
getId
()
+
"and modif
y_time = "
+
account
.
getModify
Time
()
",modif
ied
_time="
+
now
+
"where id = "
+
account
.
getId
()
+
"and modif
ied_time = "
+
account
.
getModified
Time
()
);
return
sqlList
.
toString
();
...
...
@@ -56,8 +56,8 @@ public class OwnerAccountSqlProvider {
//
// sqlList.append("update owner_account set usable_balance = usable_balance -" +
// account.getUsableBalance() + ",frozen_balance = frozen_balance -"
// + account.getUsableBalance() + ",modif
y
_time=" + now
// + "where id = " + account.getId() + "and modif
y
_time = " + account.getModifyTime()
// + account.getUsableBalance() + ",modif
ied
_time=" + now
// + "where id = " + account.getId() + "and modif
ied
_time = " + account.getModifyTime()
// );
//
// return sqlList.toString();
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/OwnerCaseOutProvider.java
浏览文件 @
855987ca
...
...
@@ -13,7 +13,7 @@ public class OwnerCaseOutProvider {
String
sql
=
new
SQL
()
{{
SELECT
(
"a.id, a.owner_user_no,"
+
" a.case_out_no, a.case_out_balance, a.account_type, "
+
" a.status,a.case_out_bank,a.case_out_bank_number,a.payment_time,a.create_by,a.platform_payment_bank_number,a.platform_payment_bank,a.payment_by,a.payment_proof,a.create_time,a.modif
y
_time"
);
" a.status,a.case_out_bank,a.case_out_bank_number,a.payment_time,a.create_by,a.platform_payment_bank_number,a.platform_payment_bank,a.payment_by,a.payment_proof,a.create_time,a.modif
ied
_time"
);
FROM
(
"owner_case_out a"
);
if
(
StringUtils
.
isNotBlank
(
param
.
getBeginTime
())
&&
StringUtils
.
isNotBlank
(
param
.
getEndTime
()))
{
WHERE
(
"a.create_time >= #{param.beginTime} and a.create_time <= #{param.endTime}"
);
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/OwnerTopUpProvider.java
浏览文件 @
855987ca
...
...
@@ -13,7 +13,7 @@ public class OwnerTopUpProvider {
String
sql
=
new
SQL
()
{{
SELECT
(
"a.id, a.owner_user_no,"
+
" a.top_up_no, a.top_up_balance, a.account_type, "
+
" a.status,a.drawing_bank, a.drawing_bank_number,a.drawing_proof,a.approval_time,a.approval_by,a.approval_turn_down,a.create_by,a.create_time,a.modif
y
_time"
);
" a.status,a.drawing_bank, a.drawing_bank_number,a.drawing_proof,a.approval_time,a.approval_by,a.approval_turn_down,a.create_by,a.create_time,a.modif
ied
_time"
);
FROM
(
"owner_top_up a"
);
if
(
StringUtils
.
isNotBlank
(
param
.
getBeginTime
())
&&
StringUtils
.
isNotBlank
(
param
.
getEndTime
()))
{
WHERE
(
"a.create_time >= #{param.beginTime} and a.create_time <= #{param.endTime}"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论