Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
precision-effect
Commits
8ffbd43c
Commit
8ffbd43c
authored
Jun 15, 2023
by
lizhichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应收、应付列表查询功能优化
parent
772ee3d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
6 deletions
+49
-6
TTradeProject.java
...src/main/java/com/zehong/system/domain/TTradeProject.java
+10
-0
TTradeProjectMapper.xml
...rc/main/resources/mapper/business/TTradeProjectMapper.xml
+33
-2
MoneyTable.vue
...ion-effect-web/src/views/account/component/MoneyTable.vue
+6
-4
No files found.
precision-effect-system/src/main/java/com/zehong/system/domain/TTradeProject.java
View file @
8ffbd43c
...
@@ -131,6 +131,16 @@ public class TTradeProject extends BaseEntity
...
@@ -131,6 +131,16 @@ public class TTradeProject extends BaseEntity
private
String
tradeTransactorName
;
private
String
tradeTransactorName
;
public
String
getProjectName
()
{
return
projectName
;
}
public
void
setProjectName
(
String
projectName
)
{
this
.
projectName
=
projectName
;
}
private
String
projectName
;
/**操作类型*/
/**操作类型*/
private
List
<
String
>
operators
=
new
ArrayList
<>();
private
List
<
String
>
operators
=
new
ArrayList
<>();
...
...
precision-effect-system/src/main/resources/mapper/business/TTradeProjectMapper.xml
View file @
8ffbd43c
...
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"tradeId"
column=
"trade_id"
/>
<result
property=
"tradeId"
column=
"trade_id"
/>
<result
property=
"receiptNum"
column=
"receipt_num"
/>
<result
property=
"receiptNum"
column=
"receipt_num"
/>
<result
property=
"relationTransactionProjectId"
column=
"relation_transaction_project_id"
/>
<result
property=
"relationTransactionProjectId"
column=
"relation_transaction_project_id"
/>
<result
property=
"projectName"
column=
"project_name"
/>
<result
property=
"applyId"
column=
"apply_id"
/>
<result
property=
"applyId"
column=
"apply_id"
/>
<result
property=
"applyDeptId"
column=
"apply_dept_id"
/>
<result
property=
"applyDeptId"
column=
"apply_dept_id"
/>
<result
property=
"applyDeptManagerId"
column=
"apply_dept_manager_id"
/>
<result
property=
"applyDeptManagerId"
column=
"apply_dept_manager_id"
/>
...
@@ -223,9 +224,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -223,9 +224,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND pending_payment > 0
AND pending_payment > 0
</select>
</select>
<select
id=
"getIncomeOrPayableList"
parameterType=
"TTradeProject"
resultMap=
"TTradeProjectResult"
>
<select
id=
"getIncomeOrPayableList"
parameterType=
"TTradeProject"
resultMap=
"TTradeProjectResult"
>
<include
refid=
"selectTTradeProjectVo"
/>
SELECT
trade_id,
receipt_num,
relation_transaction_project_id,
apply_id,
apply_dept_id,
apply_dept_manager_id,
(select transaction_project_name from t_transaction_project where transaction_project_id=relation_transaction_project_id) project_name,
trade_transactor,
trade_dept_id,
trade_price,
trade_count,
trade_total,
trade_score,
trade_dept_manager_id,
settlement_time,
deal_price,
pending_payment,
attachment_url,
trade_status,
create_time,
update_time,
is_del,
remark,
deal_remark,
(SELECT nick_name FROM sys_user WHERE user_id = trade_transactor) AS trade_transactor_name,
(SELECT nick_name FROM sys_user WHERE user_id = apply_id) AS apply_name,
(SELECT dept_name FROM sys_dept WHERE dept_id = apply_dept_id) AS apply_dept_name,
(SELECT dept_name FROM sys_dept WHERE dept_id = trade_dept_id) AS trade_dept_name
FROM
t_trade_project
<where>
<where>
trade_status =3
trade_status =3
and pending_payment>0
<if
test=
"applyDeptId != null"
>
and apply_dept_id = #{applyDeptId}
</if>
<if
test=
"applyDeptId != null"
>
and apply_dept_id = #{applyDeptId}
</if>
<if
test=
"tradeTransactor != null"
>
and trade_transactor = #{tradeTransactor}
</if>
<if
test=
"tradeTransactor != null"
>
and trade_transactor = #{tradeTransactor}
</if>
<if
test=
"tradeDeptId != null"
>
and trade_dept_id = #{tradeDeptId}
</if>
<if
test=
"tradeDeptId != null"
>
and trade_dept_id = #{tradeDeptId}
</if>
...
...
precision-effect-web/src/views/account/component/MoneyTable.vue
View file @
8ffbd43c
...
@@ -13,13 +13,15 @@
...
@@ -13,13 +13,15 @@
<el-table-column
<el-table-column
label=
"交易项目"
label=
"交易项目"
align=
"center"
align=
"center"
prop=
"
a
"
prop=
"
projectName
"
:formatter=
"formatter"
:formatter=
"formatter"
/>
/>
<el-table-column
label=
"卖方
"
align=
"center"
prop=
"tradeTransactor
Name"
/>
<el-table-column
label=
"卖方
部门"
align=
"center"
prop=
"applyDept
Name"
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"applyName"
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"applyName"
/>
<el-table-column
label=
"买方"
align=
"center"
prop=
"applyDeptName"
/>
<el-table-column
label=
"申请时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"买方经办人"
align=
"center"
prop=
"tradeDeptName"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"买方部门"
align=
"center"
prop=
"tradeDeptName"
/>
<el-table-column
label=
"买方经办人"
align=
"center"
prop=
"tradeTransactorName"
/>
<template
v-if=
"or === 'income'"
>
<template
v-if=
"or === 'income'"
>
<el-table-column
<el-table-column
label=
"应收金额"
label=
"应收金额"
...
...
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