Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
23cb67b9
Commit
23cb67b9
authored
Nov 27, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业任务删除bug修复
parent
214e16e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+15
-15
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsUserInfoController.java
View file @
23cb67b9
...
@@ -181,22 +181,22 @@ public class TzsUserInfoController extends BaseController {
...
@@ -181,22 +181,22 @@ public class TzsUserInfoController extends BaseController {
@PostMapping
(
value
=
"/deleteBatch"
)
@PostMapping
(
value
=
"/deleteBatch"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量删除"
,
notes
=
"批量删除"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量删除"
,
notes
=
"批量删除"
)
public
ResponseModel
<
Object
>
deleteBatch
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
deleteBatch
(
@RequestBody
JSONObject
map
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
//
ReginParams reginParams = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
if
(
ObjectUtils
.
isEmpty
(
reginParams
))
{
//
if (ObjectUtils.isEmpty(reginParams)) {
return
null
;
//
return null;
}
//
}
TzsUserInfo
tzsUserInfo
=
tzsUserInfoMapper
.
selectOne
(
new
QueryWrapper
<
TzsUserInfo
>().
eq
(
"amos_user_id"
,
reginParams
.
getUserModel
().
getUserId
()));
//
TzsUserInfo tzsUserInfo = tzsUserInfoMapper.selectOne(new QueryWrapper<TzsUserInfo>().eq("amos_user_id", reginParams.getUserModel().getUserId()));
Object
[]
ids
=
((
List
<
Long
>)
map
.
get
(
"ids"
)).
toArray
();
Object
[]
ids
=
((
List
<
Long
>)
map
.
get
(
"ids"
)).
toArray
();
Boolean
flag
=
false
;
//
Boolean flag = false;
for
(
Object
id
:
ids
)
{
//
for (Object id : ids) {
if
(
id
.
equals
(
tzsUserInfo
.
getSequenceNbr
().
toString
()))
{
//
if (id.equals(tzsUserInfo.getSequenceNbr().toString())) {
flag
=
true
;
//
flag = true;
break
;
//
break;
}
//
}
}
//
}
if
(
flag
)
{
//
if (flag) {
throw
new
BadRequest
(
"不能删除当前登录人所对应的数据,请取消勾选后再做删除处理"
);
//
throw new BadRequest("不能删除当前登录人所对应的数据,请取消勾选后再做删除处理");
}
//
}
tzsUserInfoService
.
deleteBatch
(
ids
);
tzsUserInfoService
.
deleteBatch
(
ids
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
}
...
...
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