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
32998fb7
Commit
32998fb7
authored
Dec 15, 2021
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】获取前四个公告
parent
76e5c9d1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
1 deletions
+46
-1
EanUpcController.java
...io/office/modules/manage/controller/EanUpcController.java
+8
-0
EanUpcDao.java
src/main/java/io/office/modules/manage/dao/EanUpcDao.java
+1
-0
EanUpcService.java
.../java/io/office/modules/manage/service/EanUpcService.java
+4
-0
EanUpcServiceImpl.java
...office/modules/manage/service/impl/EanUpcServiceImpl.java
+5
-0
NewsServiceImpl.java
...o/office/modules/manage/service/impl/NewsServiceImpl.java
+0
-1
EanUpcDao.xml
src/main/resources/mapper/manage/EanUpcDao.xml
+28
-0
No files found.
src/main/java/io/office/modules/manage/controller/EanUpcController.java
View file @
32998fb7
...
...
@@ -111,6 +111,14 @@ public class EanUpcController {
return
R
.
ok
().
put
(
"data"
,
pageUtils
);
}
@Login
@RequestMapping
(
"/api/getEanUpcTop4"
)
// @RequiresPermissions("manage:partners:list")
public
R
getEanUpcTop4
(){
return
R
.
ok
().
put
(
"data"
,
this
.
eanUpcService
.
getEanUpcTop
());
}
/**
* 详情
* @param eanUpcEntity
...
...
src/main/java/io/office/modules/manage/dao/EanUpcDao.java
View file @
32998fb7
...
...
@@ -23,6 +23,7 @@ public interface EanUpcDao extends BaseMapper<EanUpcEntity> {
List
<
EanUpcEntityVo
>
getEanUpcByCondition
(
@Param
(
"eanUpcEntity"
)
EanUpcEntity
eanUpcEntity
,
Page
page
);
List
<
EanUpcEntityVo
>
getEanUpcTop
();
EanUpcEntityDetailVo
getDetailById
(
@Param
(
"eanUpcEntity"
)
EanUpcEntity
eanUpcEntity
);
...
...
src/main/java/io/office/modules/manage/service/EanUpcService.java
View file @
32998fb7
...
...
@@ -9,6 +9,7 @@ import io.office.modules.manage.vo.request.EanUpcEntityVo;
import
io.office.modules.manage.vo.response.EanUpcEntityDetailVo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -26,6 +27,9 @@ public interface EanUpcService extends IService<EanUpcEntity> {
Page
<
EanUpcEntityVo
>
getEanUpcByCondition
(
EanUpcEntity
eanUpcEntity
,
Page
page
);
List
<
EanUpcEntityVo
>
getEanUpcTop
();
EanUpcEntityDetailVo
getDetailById
(
EanUpcEntity
eanUpcEntity
);
}
...
...
src/main/java/io/office/modules/manage/service/impl/EanUpcServiceImpl.java
View file @
32998fb7
...
...
@@ -40,6 +40,11 @@ public class EanUpcServiceImpl extends ServiceImpl<EanUpcDao, EanUpcEntity> impl
}
@Override
public
List
<
EanUpcEntityVo
>
getEanUpcTop
()
{
return
this
.
baseMapper
.
getEanUpcTop
();
}
@Override
public
EanUpcEntityDetailVo
getDetailById
(
EanUpcEntity
eanUpcEntity
)
{
return
baseMapper
.
getDetailById
(
eanUpcEntity
);
...
...
src/main/java/io/office/modules/manage/service/impl/NewsServiceImpl.java
View file @
32998fb7
...
...
@@ -9,7 +9,6 @@ import io.office.modules.manage.vo.response.SearchVo;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/resources/mapper/manage/EanUpcDao.xml
View file @
32998fb7
...
...
@@ -43,6 +43,34 @@
f_id DESC
</select>
<select
id=
"getEanUpcTop"
resultType=
"io.office.modules.manage.vo.request.EanUpcEntityVo"
>
SELECT top 4
b.logout_flag AS logout_flag,
a.firm_name,
b.f_id,
b.code,
a.log_date,
b.login_date
FROM
center_outer.dbo.bulletin AS a
INNER JOIN ean_upc AS b ON a.code = b.code
WHERE
(
DATEDIFF(DAY, login_date, getdate()) >= 7
OR b.code = '69507917'
)
AND b.code
<>
'69305132'
AND type_name IN (
'系统成员注册',
'厂商识别代码注销'
)
ORDER BY
login_date DESC,
f_id DESC
</select>
<select
id=
"getDetailById"
parameterType=
"io.office.modules.manage.entity.EanUpcEntity"
resultType=
"io.office.modules.manage.vo.response.EanUpcEntityDetailVo"
>
SELECT
a.firm_name,
...
...
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