Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jilinzhongdianrenqun
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
jilinzhongdianrenqun
Commits
5ae2d1ad
Commit
5ae2d1ad
authored
Dec 30, 2025
by
zhangtw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批权限
parent
bb3880d1
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
21 行增加
和
5 行删除
+21
-5
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmBorrowServiceImpl.java
+2
-0
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmUserCategoryServiceImpl.java
+10
-1
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmBorrowApplicationDao.xml
+2
-1
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmMaterialLogDao.xml
+1
-1
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmUserCategoryDao.xml
+6
-2
没有找到文件。
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmBorrowServiceImpl.java
View file @
5ae2d1ad
...
...
@@ -40,6 +40,8 @@ public class KeyDmBorrowServiceImpl {
@ApiOperation
(
value
=
"待审核列表"
,
desc
=
"分页查询待审核"
)
public
Page
<
Map
<
String
,
Object
>>
selectPendingList
(
Map
<
String
,
Object
>
map
)
{
if
(
map
==
null
)
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
user
=
(
Map
<
String
,
Object
>)
map
.
get
(
"_user"
);
map
.
put
(
"params"
,
user
);
return
commonService
.
findPage
(
namespace
+
"selectPendingList"
,
map
);
}
...
...
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmUserCategoryServiceImpl.java
View file @
5ae2d1ad
...
...
@@ -10,6 +10,7 @@ import com.scpyun.platform.jilinsscgsdp.utils.DataScopeUtil;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -241,7 +242,15 @@ public class KeyDmUserCategoryServiceImpl {
@ApiOperation
(
value
=
"获取人员权限配置列表"
,
desc
=
"从字典获取权限并关联用户"
)
public
List
<
Map
<
String
,
Object
>>
selectOrgPermission
(
Map
<
String
,
Object
>
map
)
{
if
(
map
==
null
)
map
=
new
HashMap
<>();
return
commonService
.
findList
(
namespace
+
"selectOrgPermission"
,
map
);
Map
<
String
,
Object
>
user
=
(
Map
<
String
,
Object
>)
map
.
get
(
"_user"
);
String
leader
=
commonService
.
getObject
(
namespace
+
"findLeader"
,
user
.
get
(
"id"
));
List
<
Map
<
String
,
Object
>>
userList
=
commonService
.
findList
(
namespace
+
"selectOrgPermission"
,
map
);
for
(
Map
<
String
,
Object
>
map1
:
userList
)
{
if
(
map1
.
get
(
"id"
)
!=
null
&&
map1
.
get
(
"id"
).
equals
(
leader
)){
map1
.
put
(
"leader"
,
1
);
}
}
return
userList
;
}
// ===== 图表分析 =====
...
...
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmBorrowApplicationDao.xml
View file @
5ae2d1ad
...
...
@@ -24,6 +24,7 @@
<where>
is_used = 1
AND approval_status = 1
and approver_id = #{params.params.id}
</where>
ORDER BY submit_time DESC
</select>
...
...
@@ -66,7 +67,7 @@
</update>
<update
id=
"submit"
parameterType=
"map"
>
UPDATE jl_key_dm_borrow_application SET approval_status = 1, submit_time = NOW(), update_by = #{_user.id}, update_time = NOW() WHERE id = #{id}
UPDATE jl_key_dm_borrow_application SET approv
er_id = #{approver_id}, approver_name = #{approver_name}, approv
al_status = 1, submit_time = NOW(), update_by = #{_user.id}, update_time = NOW() WHERE id = #{id}
</update>
<update
id=
"revoke"
parameterType=
"map"
>
...
...
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmMaterialLogDao.xml
View file @
5ae2d1ad
...
...
@@ -8,7 +8,7 @@
) VALUES
<foreach
collection=
"details"
item=
"item"
separator=
","
>
(
UUID(),#{item.category_id},#{item.material_id},#{op_type},#{id},#{item.material_id},#{item.apply_quantity},#{item.unit_price},#{item.total_amount},1,#{
create_by
},NOW()
UUID(),#{item.category_id},#{item.material_id},#{op_type},#{id},#{item.material_id},#{item.apply_quantity},#{item.unit_price},#{item.total_amount},1,#{
approver_id
},NOW()
)
</foreach>
</insert>
...
...
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmUserCategoryDao.xml
View file @
5ae2d1ad
...
...
@@ -501,13 +501,13 @@
left join jl_key_dm_user u on p.user_id = u.id
<where>
AND is_used = 1
<if
test=
"_user.company_id != null
and _user.company_id != ''
"
>
<if
test=
"_user.company_id != null"
>
AND u.office_id = #{_user.company_id}
</if>
<if
test=
"_user.id != null and _user.id != ''"
>
AND u.id != #{_user.id}
</if>
<if
test=
"permissionType != null
and permissionType != ''
"
>
<if
test=
"permissionType != null"
>
AND p.permission_code = #{permissionType}
</if>
</where>
...
...
@@ -719,5 +719,9 @@
update_time = NOW()
WHERE id = #{user_id}
</update>
<select
id=
"findLeader"
parameterType=
"String"
resultType=
"String"
>
select leader from jl_key_dm_user where id = #{param}
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论