Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
fac942b2
Commit
fac942b2
authored
May 20, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据业务主表id和业务表名查询对应申请人的直接领导
parent
47bf80b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Function.java
topsun/src/main/java/com/huigou/topsun/common/Function.java
+13
-0
function.xml
topsun/src/main/resources/config/topsun/base/function.xml
+7
-0
No files found.
topsun/src/main/java/com/huigou/topsun/common/Function.java
View file @
fac942b2
...
@@ -264,4 +264,17 @@ public class Function extends AbstractDaoFunction {
...
@@ -264,4 +264,17 @@ public class Function extends AbstractDaoFunction {
String
sql
=
this
.
getSqlByname
(
"queryStationLeaders"
);
String
sql
=
this
.
getSqlByname
(
"queryStationLeaders"
);
return
this
.
sqlExecutorDao
.
queryToList
(
sql
,
OrgUnit
.
class
,
bizId
);
return
this
.
sqlExecutorDao
.
queryToList
(
sql
,
OrgUnit
.
class
,
bizId
);
}
}
/**
* 根据业务主表id和业务表名查询对应申请人的直接领导
* @param bizId
* @param tableName
* @return
*/
public
List
<
OrgUnit
>
findbmjl
(
String
bizId
,
String
tableName
){
Assert
.
hasText
(
bizId
,
"参数id不能为空。"
);
String
sql
=
this
.
getSqlByname
(
"querybmjl"
);
sql
=
sql
.
replace
(
"%s"
,
tableName
);
return
this
.
sqlExecutorDao
.
queryToList
(
sql
,
OrgUnit
.
class
,
bizId
);
}
}
}
topsun/src/main/resources/config/topsun/base/function.xml
View file @
fac942b2
...
@@ -234,6 +234,13 @@
...
@@ -234,6 +234,13 @@
)
)
AND sa.CODE = ?;
AND sa.CODE = ?;
</sql>
</sql>
<!--根据物料主数据查询创建人的直接上级-->
<sql
name=
"querybmjl"
>
SELECT o.FULL_ID, o.FULL_NAME
FROM sa_oporg o WHERE o.PARENT_ID IN (
SELECT o.PARENT_ID FROM sa_oporg o WHERE o.id IN ( SELECT o.PARENT_ID FROM sa_oporg o LEFT JOIN %s pro ON o.id = pro.person_member_id WHERE pro.id = ? ) )
AND o.CODE IN ( 'JL', 'ZZ', 'KZ', 'FL', 'FKZ' );
</sql>
</query>
</query>
</query-mappings>
</query-mappings>
\ 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