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
2b1bb5da
Commit
2b1bb5da
authored
Apr 04, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】零售接口
parent
557fe721
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
10 deletions
+29
-10
GTINController.java
...a/io/office/modules/manage/controller/GTINController.java
+1
-2
PictureController.java
...o/office/modules/manage/controller/PictureController.java
+4
-8
PictureDao.java
src/main/java/io/office/modules/manage/dao/PictureDao.java
+3
-0
PictureService.java
...java/io/office/modules/manage/service/PictureService.java
+3
-0
PictureServiceImpl.java
...ffice/modules/manage/service/impl/PictureServiceImpl.java
+8
-0
PictureDao.xml
src/main/resources/mapper/manage/PictureDao.xml
+10
-0
No files found.
src/main/java/io/office/modules/manage/controller/GTINController.java
View file @
2b1bb5da
...
...
@@ -140,7 +140,7 @@ public class GTINController {
if
(
glnRequestBo
.
getCode
().
length
()
<
13
)
{
R
r
=
new
R
();
r
.
put
(
"code"
,
"500"
);
r
.
put
(
"msg"
,
"商品条码
不能少于13位!
"
);
r
.
put
(
"msg"
,
"商品条码
卡位数太少!请输入正确的13位或14位商品条码!
"
);
printWriter
.
write
(
JSONUtil
.
toJsonStr
(
r
));
return
;
}
...
...
@@ -173,7 +173,6 @@ public class GTINController {
e
.
printStackTrace
();
}
finally
{
printWriter
.
flush
();
;
printWriter
.
close
();
}
...
...
src/main/java/io/office/modules/manage/controller/PictureController.java
View file @
2b1bb5da
...
...
@@ -173,15 +173,11 @@ public class PictureController extends AbstractController {
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
retailPictureList
(
@RequestBody
Map
<
String
,
String
>
params
)
{
try
{
QueryWrapper
<
PictureEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
gt
(
"PicLevel"
,
"0"
);
queryWrapper
.
eq
(
"status"
,
"1"
);
queryWrapper
.
like
(
"keyword"
,
"零售"
).
or
().
like
(
"keyword"
,
"全渠道"
).
like
(
"keyword"
,
"商品二维码"
);
queryWrapper
.
orderByDesc
(
"PicLevel"
,
"PictureId"
,
"showtime"
);
IPage
<
PictureEntity
>
page
=
pictureService
.
page
(
new
Page
(
Integer
.
valueOf
(
params
.
get
(
"page"
)),
Integer
.
valueOf
(
params
.
get
(
"size"
))),
queryWrapper
);
PageUtils
pageUtils
=
new
PageUtils
(
page
);
Page
page
=
new
Page
(
Long
.
parseLong
(
params
.
get
(
"page"
)),
Long
.
parseLong
(
params
.
get
(
"size"
)));
Page
<
PictureEntity
>
pictureEntityPage
=
pictureService
.
selectRetailPicture
(
page
);
PageUtils
pageUtils
=
new
PageUtils
(
pictureEntityPage
);
return
R
.
ok
().
put
(
"data"
,
pageUtils
);
}
catch
(
Exception
e
)
{
log
.
error
(
"pictureList error:"
,
e
);
...
...
src/main/java/io/office/modules/manage/dao/PictureDao.java
View file @
2b1bb5da
...
...
@@ -23,4 +23,7 @@ public interface PictureDao extends BaseMapper<PictureEntity> {
List
<
PictureEntity
>
selectPictureList
(
@Param
(
"params"
)
PictureParams
params
,
Page
page
);
List
<
PictureEntity
>
selectPictureNewList
(
@Param
(
"params"
)
NewsParams
params
,
Page
page
);
List
<
PictureEntity
>
selectRetailPicture
(
Page
page
);
}
src/main/java/io/office/modules/manage/service/PictureService.java
View file @
2b1bb5da
...
...
@@ -34,5 +34,8 @@ public interface PictureService extends IService<PictureEntity> {
Page
<
PictureEntity
>
selectPictureList
(
PictureParams
params
,
Page
page
);
Page
<
PictureEntity
>
selectPictureNewList
(
NewsParams
params
,
Page
page
);
Page
<
PictureEntity
>
selectRetailPicture
(
Page
page
);
}
src/main/java/io/office/modules/manage/service/impl/PictureServiceImpl.java
View file @
2b1bb5da
...
...
@@ -120,4 +120,11 @@ public class PictureServiceImpl extends ServiceImpl<PictureDao, PictureEntity> i
return
page
;
}
@Override
public
Page
<
PictureEntity
>
selectRetailPicture
(
Page
page
)
{
List
<
PictureEntity
>
newsList
=
this
.
pictureDao
.
selectRetailPicture
(
page
);
page
.
setRecords
(
newsList
);
return
page
;
}
}
\ No newline at end of file
src/main/resources/mapper/manage/PictureDao.xml
View file @
2b1bb5da
...
...
@@ -82,4 +82,13 @@
ORDER BY PicLevel DESC,
pictureid DESC
</select>
<select
id=
"selectRetailPicture"
resultMap=
"pictureMap"
>
select * from V_retailPicture order by INPUTdate desc,
PicLevel DESC,
pictureid DESC
</select>
</mapper>
\ No newline at end of file
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