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
ccb25a52
Commit
ccb25a52
authored
Jun 13, 2023
by
lizhichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应收、应付列表查询接口
parent
67a15ef9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
0 deletions
+31
-0
TTradeProjectController.java
...g/web/controller/transaction/TTradeProjectController.java
+8
-0
TTradeProjectMapper.java
...in/java/com/zehong/system/mapper/TTradeProjectMapper.java
+7
-0
ITTradeProjectService.java
...java/com/zehong/system/service/ITTradeProjectService.java
+1
-0
TTradeProjectServiceImpl.java
.../zehong/system/service/impl/TTradeProjectServiceImpl.java
+5
-0
TTradeProjectMapper.xml
...rc/main/resources/mapper/business/TTradeProjectMapper.xml
+10
-0
No files found.
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TTradeProjectController.java
View file @
ccb25a52
...
...
@@ -101,4 +101,12 @@ public class TTradeProjectController extends BaseController
{
return
toAjax
(
tTradeProjectService
.
deleteTTradeProjectByIds
(
tradeIds
));
}
@GetMapping
(
"/getIncomeOrPayableList"
)
public
TableDataInfo
getIncomeOrPayableList
(
TTradeProject
tTradeProject
)
{
startPage
();
List
<
TTradeProject
>
list
=
tTradeProjectService
.
getIncomeOrPayableList
(
tTradeProject
);
return
getDataTable
(
list
);
}
}
precision-effect-system/src/main/java/com/zehong/system/mapper/TTradeProjectMapper.java
View file @
ccb25a52
...
...
@@ -58,4 +58,11 @@ public interface TTradeProjectMapper
* @return 结果
*/
public
int
deleteTTradeProjectByIds
(
Long
[]
tradeIds
);
/**
* 查询应收、应付项目列表
* @param tTradeProject
* @return
*/
public
List
<
TTradeProject
>
getIncomeOrPayableList
(
TTradeProject
tTradeProject
);
}
precision-effect-system/src/main/java/com/zehong/system/service/ITTradeProjectService.java
View file @
ccb25a52
...
...
@@ -65,4 +65,5 @@ public interface ITTradeProjectService
* @return 结果
*/
public
int
deleteTTradeProjectById
(
Long
tradeId
);
public
List
<
TTradeProject
>
getIncomeOrPayableList
(
TTradeProject
tTradeProject
);
}
precision-effect-system/src/main/java/com/zehong/system/service/impl/TTradeProjectServiceImpl.java
View file @
ccb25a52
...
...
@@ -155,4 +155,9 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService
{
return
tTradeProjectMapper
.
deleteTTradeProjectById
(
tradeId
);
}
@Override
public
List
<
TTradeProject
>
getIncomeOrPayableList
(
TTradeProject
tTradeProject
)
{
return
tTradeProjectMapper
.
getIncomeOrPayableList
(
tTradeProject
);
}
}
precision-effect-system/src/main/resources/mapper/business/TTradeProjectMapper.xml
View file @
ccb25a52
...
...
@@ -212,4 +212,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{tradeId}
</foreach>
</delete>
<select
id=
"getIncomeOrPayableList"
parameterType=
"TTradeProject"
resultMap=
"TTradeProjectResult"
>
<include
refid=
"selectTTradeProjectVo"
/>
<where>
trade_status =3
<if
test=
"applyDeptId != null"
>
and apply_dept_id = #{applyDeptId}
</if>
<if
test=
"tradeTransactor != null"
>
and trade_transactor = #{tradeTransactor}
</if>
<if
test=
"tradeDeptId != null"
>
and trade_dept_id = #{tradeDeptId}
</if>
</where>
order by create_time desc
</select>
</mapper>
\ No newline at end of file
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