Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
d0067066
Commit
d0067066
authored
May 18, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改分组
parent
f922daf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
35 deletions
+63
-35
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+7
-1
HmQrcodeUpdateQO.java
...ava/com/gic/haoban/manage/web/qo/hm/HmQrcodeUpdateQO.java
+56
-34
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
d0067066
...
...
@@ -469,7 +469,13 @@ public class HmQrcodeController {
@RequestMapping
(
path
=
"/update/qrcode/group"
)
public
RestResponse
<?>
batchUpdateQrcodeGroup
(
@RequestBody
HmQrcodeUpdateQO
qrcodeUpdateQo
)
{
ServiceResponse
<
Boolean
>
serviceResponse
=
hmQrcodeApiService
.
batchUpdateHmQrcodeGroup
(
qrcodeUpdateQo
.
getHmIds
(),
qrcodeUpdateQo
.
getGroupId
());
List
<
Long
>
idlist
=
qrcodeUpdateQo
.
getHmIds
()
;
if
(
qrcodeUpdateQo
.
getAllFlag
()==
1
)
{
HmQrcodeListQO
qo
=
new
HmQrcodeListQO
()
;
qo
.
setInFields
(
qrcodeUpdateQo
.
getInFields
());
idlist
=
this
.
getHmCount
(
qo
).
stream
().
map
(
o
->
Long
.
valueOf
(
o
)).
collect
(
Collectors
.
toList
())
;
}
ServiceResponse
<
Boolean
>
serviceResponse
=
hmQrcodeApiService
.
batchUpdateHmQrcodeGroup
(
idlist
,
qrcodeUpdateQo
.
getGroupId
());
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/hm/HmQrcodeUpdateQO.java
View file @
d0067066
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
hm
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Author MUSI
* @Date 2022/7/13 6:54 PM
* @Description
* @Version
**/
public
class
HmQrcodeUpdateQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1636719509633485056L
;
private
List
<
Long
>
hmIds
;
private
Long
groupId
;
public
List
<
Long
>
getHmIds
()
{
return
hmIds
;
}
public
void
setHmIds
(
List
<
Long
>
hmIds
)
{
this
.
hmIds
=
hmIds
;
}
public
Long
getGroupId
()
{
return
groupId
;
}
public
void
setGroupId
(
Long
groupId
)
{
this
.
groupId
=
groupId
;
}
}
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
hm
;
import
java.io.Serializable
;
import
java.util.List
;
import
com.gic.haoban.manage.web.qo.hm.data.HmQrcodeListQO.InFields
;
/**
* @Author MUSI
* @Date 2022/7/13 6:54 PM
* @Description
* @Version
**/
public
class
HmQrcodeUpdateQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1636719509633485056L
;
private
List
<
Long
>
hmIds
;
private
Long
groupId
;
private
InFields
inFields
;
private
int
allFlag
;
public
int
getAllFlag
()
{
return
allFlag
;
}
public
void
setAllFlag
(
int
allFlag
)
{
this
.
allFlag
=
allFlag
;
}
public
InFields
getInFields
()
{
return
inFields
;
}
public
void
setInFields
(
InFields
inFields
)
{
this
.
inFields
=
inFields
;
}
public
List
<
Long
>
getHmIds
()
{
return
hmIds
;
}
public
void
setHmIds
(
List
<
Long
>
hmIds
)
{
this
.
hmIds
=
hmIds
;
}
public
Long
getGroupId
()
{
return
groupId
;
}
public
void
setGroupId
(
Long
groupId
)
{
this
.
groupId
=
groupId
;
}
}
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