Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
王蔡翾
operation_platform
Commits
b9ed8286
Commit
b9ed8286
authored
Apr 09, 2026
by
王蔡翾
Browse files
工单修改
parent
809c6c50
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/com/example/operation_platform/filter/JwtAuthFilter.java
View file @
b9ed8286
...
...
@@ -36,7 +36,10 @@ public class JwtAuthFilter extends OncePerRequestFilter implements Ordered {
"/user/register"
,
"/role/list"
,
"/dept/list"
,
"/api/work/addByOperationTable"
"/api/work/addByOperationTable"
,
"/*/work/addByOperationTable"
,
"/work/addByOperationTable"
,
"**/work/addByOperationTable"
// 经Nginx转发后的路径// 通配中间路径
);
@Override
...
...
src/main/java/com/example/operation_platform/service/impl/BsWorkServiceImpl.java
View file @
b9ed8286
...
...
@@ -142,7 +142,16 @@ public class BsWorkServiceImpl extends ServiceImpl <BsWorkMapper, BsWorkEntity>
bsWorkDTO
.
setProjectId
(
bsProjectEntity
.
getId
());
}
//先检查项目中是否存在相同错误,若存在则原来错误次数+1,不创建新工单,若不存在则创建工单
BsWorkEntity
bsWork
=
getOne
(
new
QueryWrapper
<
BsWorkEntity
>().
eq
(
"project_id"
,
bsWorkDTO
.
getProjectId
()).
eq
(
"detail"
,
bsWorkDTO
.
getDetail
()));
QueryWrapper
<
BsWorkEntity
>
wrapper
=
new
QueryWrapper
<
BsWorkEntity
>()
.
eq
(
"project_id"
,
bsWorkDTO
.
getProjectId
());
if
(
bsWorkDTO
.
getDetail
()
!=
null
)
{
wrapper
.
eq
(
"detail"
,
bsWorkDTO
.
getDetail
());
}
else
{
wrapper
.
isNull
(
"detail"
);
}
BsWorkEntity
bsWork
=
getOne
(
wrapper
);
if
(
bsWork
==
null
)
{
//设置错误次数
bsWorkDTO
.
setErrorCount
(
1
);
...
...
src/main/resources/mapper/BsWorkMapper.xml
View file @
b9ed8286
...
...
@@ -16,7 +16,8 @@
ur.name handleByName,
bwl.color color,
bp.project_name projectName,
bw.file_path filePath
bw.file_path filePath,
bw.error_count errorCount
from
bs_work bw
left join
...
...
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