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
046bb944
Commit
046bb944
authored
May 21, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 05.16-05.18
parent
ddcdf2ef
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
12 deletions
+30
-12
CenterController.java
...io/office/modules/manage/controller/CenterController.java
+6
-2
LogisticsController.java
...office/modules/manage/controller/LogisticsController.java
+11
-3
RulesAndRegulationsController.java
...ules/manage/controller/RulesAndRegulationsController.java
+6
-2
TopicnewsController.java
...office/modules/manage/controller/TopicnewsController.java
+6
-4
RetailpictureDao.xml
src/main/resources/mapper/manage/RetailpictureDao.xml
+1
-1
No files found.
src/main/java/io/office/modules/manage/controller/CenterController.java
View file @
046bb944
...
@@ -8,6 +8,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
...
@@ -8,6 +8,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.NewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -92,6 +93,8 @@ public class CenterController extends AbstractController {
...
@@ -92,6 +93,8 @@ public class CenterController extends AbstractController {
}
}
}
}
@Autowired
private
NewsService
newsService
;
/**
/**
* 删除
* 删除
*/
*/
...
@@ -103,9 +106,10 @@ public class CenterController extends AbstractController {
...
@@ -103,9 +106,10 @@ public class CenterController extends AbstractController {
try
{
try
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
for
(
Long
id
:
ids
)
{
for
(
Long
id
:
ids
)
{
TopicnewsEntity
topicnewsEntity
=
topicnewsService
.
getById
(
id
);
NewsEntity
newsEntity
=
newsService
.
getById
(
id
);
// TopicnewsEntity topicnewsEntity = (TopicnewsEntity) newsEntity;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
if
(
topicnewsEntity
.
getNewsl
evels
()
==
0
)
{
if
(
newsEntity
.
getL
evels
()
==
0
)
{
return
R
.
error
(
"当前级别为0不能删除!"
);
return
R
.
error
(
"当前级别为0不能删除!"
);
}
}
}
}
...
...
src/main/java/io/office/modules/manage/controller/LogisticsController.java
View file @
046bb944
...
@@ -8,10 +8,13 @@ import java.util.Map;
...
@@ -8,10 +8,13 @@ import java.util.Map;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.annotation.SysLog
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.ProductEntity
;
import
io.office.modules.manage.entity.ProductEntity
;
import
io.office.modules.manage.service.NewsService
;
import
io.office.modules.manage.utils.IdKeysConstant
;
import
io.office.modules.manage.utils.IdKeysConstant
;
import
io.office.modules.manage.utils.IdWorkerUtils
;
import
io.office.modules.manage.utils.IdWorkerUtils
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -92,6 +95,8 @@ public class LogisticsController extends AbstractController {
...
@@ -92,6 +95,8 @@ public class LogisticsController extends AbstractController {
return
R
.
ok
(
"修改成功!"
);
return
R
.
ok
(
"修改成功!"
);
}
}
@Autowired
private
NewsService
newsService
;
/**
/**
* 删除
* 删除
*/
*/
...
@@ -102,15 +107,18 @@ public class LogisticsController extends AbstractController {
...
@@ -102,15 +107,18 @@ public class LogisticsController extends AbstractController {
public
R
delete
(
@RequestBody
List
<
String
>
ids
){
public
R
delete
(
@RequestBody
List
<
String
>
ids
){
if
(
CollectionUtil
.
isNotEmpty
(
ids
))
{
if
(
CollectionUtil
s
.
isNotEmpty
(
ids
))
{
for
(
String
id
:
ids
)
{
for
(
String
id
:
ids
)
{
LogisticsEntity
logisticsEntity
=
logisticsService
.
getById
(
id
);
NewsEntity
newsEntity
=
newsService
.
getById
(
id
);
if
(
logisticsEntity
.
getLevel
()
==
0
)
{
// TopicnewsEntity topicnewsEntity = (TopicnewsEntity) newsEntity;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
if
(
newsEntity
.
getLevels
()
==
0
)
{
return
R
.
error
(
"当前级别为0不能删除!"
);
return
R
.
error
(
"当前级别为0不能删除!"
);
}
}
}
}
}
}
LogisticsEntity
logistics
=
new
LogisticsEntity
();
LogisticsEntity
logistics
=
new
LogisticsEntity
();
String
username
=
getUser
().
getUsername
();
String
username
=
getUser
().
getUsername
();
// logistics.setEditor(username);
// logistics.setEditor(username);
...
...
src/main/java/io/office/modules/manage/controller/RulesAndRegulationsController.java
View file @
046bb944
...
@@ -8,6 +8,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
...
@@ -8,6 +8,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.NewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -32,6 +33,8 @@ public class RulesAndRegulationsController extends AbstractController {
...
@@ -32,6 +33,8 @@ public class RulesAndRegulationsController extends AbstractController {
@Autowired
@Autowired
private
TopicnewsService
topicnewsService
;
private
TopicnewsService
topicnewsService
;
@Autowired
private
NewsService
newsService
;
/**
/**
* 列表
* 列表
*/
*/
...
@@ -105,9 +108,10 @@ public class RulesAndRegulationsController extends AbstractController {
...
@@ -105,9 +108,10 @@ public class RulesAndRegulationsController extends AbstractController {
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
for
(
Long
id
:
ids
)
{
for
(
Long
id
:
ids
)
{
TopicnewsEntity
topicnewsEntity
=
topicnewsService
.
getById
(
id
);
NewsEntity
newsEntity
=
newsService
.
getById
(
id
);
// TopicnewsEntity topicnewsEntity = (TopicnewsEntity) newsEntity;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
if
(
topicnewsEntity
.
getNewsl
evels
()
==
0
)
{
if
(
newsEntity
.
getL
evels
()
==
0
)
{
return
R
.
error
(
"当前级别为0不能删除!"
);
return
R
.
error
(
"当前级别为0不能删除!"
);
}
}
}
}
...
...
src/main/java/io/office/modules/manage/controller/TopicnewsController.java
View file @
046bb944
...
@@ -11,6 +11,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
...
@@ -11,6 +11,7 @@ import io.office.modules.manage.entity.IndexCarouselManageEntity;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.NewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.manage.vo.request.TopicNewsPartyRequestVo
;
import
io.office.modules.manage.vo.request.TopicNewsPartyRequestVo
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
...
@@ -96,7 +97,8 @@ public class TopicnewsController extends AbstractController {
...
@@ -96,7 +97,8 @@ public class TopicnewsController extends AbstractController {
return
R
.
error
(
e
.
getMessage
());
return
R
.
error
(
e
.
getMessage
());
}
}
}
}
@Autowired
private
NewsService
newsService
;
/**
/**
* 删除
* 删除
*/
*/
...
@@ -108,10 +110,10 @@ public class TopicnewsController extends AbstractController {
...
@@ -108,10 +110,10 @@ public class TopicnewsController extends AbstractController {
try
{
try
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
for
(
Long
id
:
ids
)
{
for
(
Long
id
:
ids
)
{
TopicnewsEntity
topicnewsEntity
=
topic
newsService
.
getById
(
id
);
NewsEntity
newsEntity
=
newsService
.
getById
(
id
);
//
IndexCarouselManageEntity indexCarouselManageEntity = (IndexCarouselManageEntity) topic
newsEntity;
//
TopicnewsEntity topicnewsEntity = (TopicnewsEntity)
newsEntity;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
//MedicalEntity medicalServiceById = (MedicalEntity) pictureServiceById;
if
(
topicnewsEntity
.
getNewsl
evels
()
==
0
)
{
if
(
newsEntity
.
getL
evels
()
==
0
)
{
return
R
.
error
(
"当前级别为0不能删除!"
);
return
R
.
error
(
"当前级别为0不能删除!"
);
}
}
}
}
...
...
src/main/resources/mapper/manage/RetailpictureDao.xml
View file @
046bb944
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
and inputDate BETWEEN #{params.inputDateStart} AND #{params.inputDateEnd}
and inputDate BETWEEN #{params.inputDateStart} AND #{params.inputDateEnd}
</if>
</if>
<choose>
<choose>
<when
test=
"params.pictureLevel !=null
and params.pictureLevel !=0
"
>
<when
test=
"params.pictureLevel !=null "
>
AND PicLevel = #{params.pictureLevel}
AND PicLevel = #{params.pictureLevel}
</when>
</when>
<otherwise>
<otherwise>
...
...
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