Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
fcd2b395
Commit
fcd2b395
authored
Nov 27, 2021
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增在审批管理中增加一个审批查询的功能
parent
d58b1161
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+13
-0
src/main/java/cn/timer/api/dao/spmk/SpmkApprovalGMapper.java
+3
-0
src/main/resources/mapping/spmk/SpmkApprovalGMapper.xml
+12
-0
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
fcd2b395
...
...
@@ -313,6 +313,19 @@ public class SpmkController {
}
/**
* 查询列表-审批组-审批管理 新增查询
*/
@GetMapping
(
value
=
"/all_approval_g1"
)
@ApiOperation
(
value
=
"11.查询列表-审批组-审批管理"
,
httpMethod
=
"GET"
,
notes
=
"查询列表-审批组-审批管理"
)
@ApiOperationSupport
(
order
=
11
)
public
Result
<
Object
>
selectListAgByAdmin1
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
"eaaname"
)
String
eaaname
){
List
<
Integer
>
depts
=
zzglBmgwMService
.
empNumupGetDepts
(
userBean
.
getOrgCode
(),
userBean
.
getEmpNum
());
return
ResultUtil
.
data
(
spmkApprovalGMapper
.
selectListAgInCaByAdmin1
(
userBean
.
getOrgCode
(),
userBean
.
getEmpNum
(),
depts
,
eaaname
));
}
/**
* 查询列表-审批组-个人审批
*/
@GetMapping
(
value
=
"/list_approval_g"
)
...
...
src/main/java/cn/timer/api/dao/spmk/SpmkApprovalGMapper.java
View file @
fcd2b395
...
...
@@ -23,4 +23,7 @@ public interface SpmkApprovalGMapper extends BaseMapper<SpmkApprovalG> {
List
<
SpmkApprovalG
>
selectListAgInCaByAdmin
(
@Param
(
"org_code"
)
Integer
org_code
,
@Param
(
"emp_num"
)
Integer
emp_num
,
@Param
(
"deptIds"
)
List
<
Integer
>
deptIds
);
List
<
SpmkApprovalG
>
selectListAgInCaByAdmin1
(
@Param
(
"org_code"
)
Integer
org_code
,
@Param
(
"emp_num"
)
Integer
emp_num
,
@Param
(
"deptIds"
)
List
<
Integer
>
deptIds
,
@Param
(
"eaaname"
)
String
eaaname
);
}
src/main/resources/mapping/spmk/SpmkApprovalGMapper.xml
View file @
fcd2b395
...
...
@@ -78,6 +78,18 @@
ORDER BY a.ranks, b.ranks,b.id DESC
</select>
<select
id=
"selectListAgInCaByAdmin1"
resultMap=
"BaseResultMapDto"
>
SELECT
<include
refid=
"Base_Column_List_Alias_a"
/>
,
<include
refid=
"Base_Column_List_Alias_ca"
/>
FROM spmk_approval_g a
LEFT JOIN spmk_custom_approval b
ON a.id = b.approval_g_id
WHERE a.org_code = #{org_code} and b.name like CONCAT('%',#{eaaname},'%')
ORDER BY a.ranks, b.ranks,b.id DESC
</select>
<select
id=
"selectListAgInCa"
resultMap=
"BaseResultMapDto"
>
SELECT
<include
refid=
"Base_Column_List_Alias_a"
/>
,
...
...
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