Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
0d1758a7
Commit
0d1758a7
authored
Aug 06, 2025
by
wujipeng
Browse files
资金流接口调整
parent
4cf4fdf2
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/mapper/ExcelDataMapper.java
View file @
0d1758a7
...
@@ -35,4 +35,5 @@ public interface ExcelDataMapper extends BaseMapper<ExcelDataEntity> {
...
@@ -35,4 +35,5 @@ public interface ExcelDataMapper extends BaseMapper<ExcelDataEntity> {
List
<
ExcelDataEntity
>
queryInfoList
(
CaseDTO
caseDTO
);
List
<
ExcelDataEntity
>
queryInfoList
(
CaseDTO
caseDTO
);
List
<
AssociationVO
>
queryAccountTemporary
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"caseId"
)
String
caseId
);
List
<
AssociationVO
>
queryAccountTemporary
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"caseId"
)
String
caseId
);
List
<
ExcelDataEntity
>
accountCashFlow
(
UserDTO
userDTO
);
}
}
src/main/java/com/platform/model/dto/UserDTO.java
View file @
0d1758a7
...
@@ -12,6 +12,9 @@ import java.util.List;
...
@@ -12,6 +12,9 @@ import java.util.List;
@Data
@Data
public
class
UserDTO
extends
UserEntity
{
public
class
UserDTO
extends
UserEntity
{
@ApiModelProperty
(
value
=
"1、查人 2、查账号"
)
private
String
identifier
;
private
List
<
UserAccountEntity
>
userAccountList
;
private
List
<
UserAccountEntity
>
userAccountList
;
@ApiModelProperty
(
value
=
"对方用户名"
)
@ApiModelProperty
(
value
=
"对方用户名"
)
...
@@ -30,6 +33,7 @@ public class UserDTO extends UserEntity {
...
@@ -30,6 +33,7 @@ public class UserDTO extends UserEntity {
private
String
otherName
;
private
String
otherName
;
private
String
oldName
;
private
String
oldName
;
private
String
newName
;
private
String
newName
;
}
}
src/main/java/com/platform/service/ExcelDataService.java
View file @
0d1758a7
...
@@ -61,4 +61,6 @@ public interface ExcelDataService extends IService<ExcelDataEntity> {
...
@@ -61,4 +61,6 @@ public interface ExcelDataService extends IService<ExcelDataEntity> {
List
<
ExcelDataEntity
>
queryListByPayeeName
(
String
oldName
,
String
caseId
);
List
<
ExcelDataEntity
>
queryListByPayeeName
(
String
oldName
,
String
caseId
);
List
<
AssociationVO
>
queryAccountTemporary
(
String
userName
,
String
caseId
);
List
<
AssociationVO
>
queryAccountTemporary
(
String
userName
,
String
caseId
);
List
<
ExcelDataEntity
>
accountCashFlow
(
UserDTO
userDTO
);
}
}
src/main/java/com/platform/service/impl/ExcelDataServiceImpl.java
View file @
0d1758a7
...
@@ -111,4 +111,9 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
...
@@ -111,4 +111,9 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
public
List
<
AssociationVO
>
queryAccountTemporary
(
String
userName
,
String
caseId
)
{
public
List
<
AssociationVO
>
queryAccountTemporary
(
String
userName
,
String
caseId
)
{
return
baseMapper
.
queryAccountTemporary
(
userName
,
caseId
);
return
baseMapper
.
queryAccountTemporary
(
userName
,
caseId
);
}
}
@Override
public
List
<
ExcelDataEntity
>
accountCashFlow
(
UserDTO
userDTO
)
{
return
baseMapper
.
accountCashFlow
(
userDTO
);
}
}
}
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
0d1758a7
...
@@ -205,7 +205,14 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
...
@@ -205,7 +205,14 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
@Override
@Override
public
List
<
ExcelDataEntity
>
cashFlow
(
UserDTO
userDTO
)
{
public
List
<
ExcelDataEntity
>
cashFlow
(
UserDTO
userDTO
)
{
List
<
ExcelDataEntity
>
excelDataList
=
excelDataService
.
cashFlow
(
userDTO
);
List
<
ExcelDataEntity
>
excelDataList
=
null
;
if
(
"1"
.
equals
(
userDTO
.
getIdentifier
()))
{
excelDataList
=
excelDataService
.
cashFlow
(
userDTO
);
}
else
if
(
"2"
.
equals
(
userDTO
.
getIdentifier
()))
{
excelDataList
=
excelDataService
.
accountCashFlow
(
userDTO
);
}
else
{
return
null
;
}
for
(
ExcelDataEntity
excelDataEntity
:
excelDataList
)
{
for
(
ExcelDataEntity
excelDataEntity
:
excelDataList
)
{
if
(
"出账"
.
equals
(
excelDataEntity
.
getDirection
()))
{
if
(
"出账"
.
equals
(
excelDataEntity
.
getDirection
()))
{
excelDataEntity
.
setSelfAccount
(
excelDataEntity
.
getPayAccount
());
excelDataEntity
.
setSelfAccount
(
excelDataEntity
.
getPayAccount
());
...
...
src/main/resources/com/platform/mapper/ExcelDataMapper.xml
View file @
0d1758a7
...
@@ -199,4 +199,37 @@
...
@@ -199,4 +199,37 @@
payment_account,
payment_account,
direction
direction
</select>
</select>
<select
id=
"accountCashFlow"
resultType=
"com.platform.model.entity.ExcelDataEntity"
>
select id,
directory_id,
type,
direction,
time,
amount,
serial,
payee_bank_card,
payee_account,
payee_merchant,
payee_name,
payment_bank_name,
payment_bank_card,
payment_account,
ip,
mac,
external_channel,
pay_account,
remark,
case_id,
pay_user_name,
use_flag,
file_id
from excel_data
where case_id = #{caseId}
and payee_name = #{userName}
and (
payee_account = #{otherUserName}
or
payment_account = #{otherUserName}
)
</select>
</mapper>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment