Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
2ef68131
Commit
2ef68131
authored
Jan 13, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改注册注销
parent
fe0e9419
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
5 deletions
+52
-5
EanUpcServiceImpl.java
...office/modules/manage/service/impl/EanUpcServiceImpl.java
+6
-5
TransferController.java
...io/office/modules/manage/transfer/TransferController.java
+46
-0
No files found.
src/main/java/io/office/modules/manage/service/impl/EanUpcServiceImpl.java
View file @
2ef68131
...
...
@@ -46,17 +46,18 @@ public class EanUpcServiceImpl extends ServiceImpl<EanUpcDao, EanUpcEntity> impl
List
<
EanUpcEntityVo
>
eanUpcTopList
=
new
ArrayList
<>();
EanUpcEntity
eanUpcEntity
=
new
EanUpcEntity
();
eanUpcEntity
.
setLogoutFlag
(
"1"
);
List
<
EanUpcEntityVo
>
eanUpcTop1
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop1
))
{
eanUpcTopList
.
addAll
(
eanUpcTop1
);
}
eanUpcEntity
.
setLogoutFlag
(
"0"
);
List
<
EanUpcEntityVo
>
eanUpcTop
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop
))
{
eanUpcTopList
.
addAll
(
eanUpcTop
);
}
eanUpcEntity
.
setLogoutFlag
(
"1"
);
List
<
EanUpcEntityVo
>
eanUpcTop1
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop1
))
{
eanUpcTopList
.
addAll
(
eanUpcTop1
);
}
return
eanUpcTopList
;
}
...
...
src/main/java/io/office/modules/manage/transfer/TransferController.java
View file @
2ef68131
...
...
@@ -61,6 +61,8 @@ public class TransferController {
private
PolicyService
policyService
;
@Autowired
private
KnowledgeinfoService
knowledgeinfoService
;
@Autowired
private
DocService
docService
;
@RequestMapping
(
"/api/indexCarouselManage"
)
// @RequiresPermissions("generator:topicnews:list")
...
...
@@ -1407,6 +1409,50 @@ public class TransferController {
}
@RequestMapping
(
"/api/doc"
)
// @RequiresPermissions("generator:topicnews:list")
public
R
doc
()
{
QueryWrapper
<
DocEntity
>
indexCarouselManageEntityQueryWrapper
=
new
QueryWrapper
<>();
int
count
=
docService
.
count
(
indexCarouselManageEntityQueryWrapper
);
if
(
count
>
0
)
{
boolean
flag
=
true
;
int
n
=
1
;
while
(
flag
)
{
int
limit
=
10
;
int
pages
=
0
;
if
((
count
%
limit
)
==
0
)
{
pages
=
(
count
/
limit
);
}
else
{
pages
=
(
count
/
limit
)
+
1
;
}
if
(
n
<=
pages
)
{
IPage
<
DocEntity
>
pageData
=
docService
.
page
(
new
Page
(
n
,
limit
),
indexCarouselManageEntityQueryWrapper
);
if
(
CollectionUtils
.
isNotEmpty
(
pageData
.
getRecords
()))
{
for
(
DocEntity
docEntity
:
pageData
.
getRecords
())
{
//如果不为空
if
(
StringUtils
.
isNotBlank
(
docEntity
.
getDocfile
()))
{
//处理图片
docEntity
.
setDocfile
(
fileRequestPrefix
+
"manage/down/"
+
docEntity
.
getDocfile
());
//修改
UpdateWrapper
<
DocEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"id"
,
docEntity
.
getId
());
docService
.
update
(
docEntity
,
updateWrapper
);
}
}
n
=
n
+
1
;
}
}
else
{
flag
=
false
;
}
}
}
return
R
.
ok
().
put
(
"data"
,
null
);
}
public
static
void
main
(
String
[]
args
)
{
...
...
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