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
e74da019
Commit
e74da019
authored
May 29, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目请求方式
parent
046bb944
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
123 additions
and
116 deletions
+123
-116
AppLoginController.java
.../io/office/modules/app/controller/AppLoginController.java
+1
-1
AppRegisterController.java
.../office/modules/app/controller/AppRegisterController.java
+1
-1
AnnounceController.java
.../office/modules/manage/controller/AnnounceController.java
+1
-1
BarcodeGenerationController.java
...odules/manage/controller/BarcodeGenerationController.java
+4
-4
BikefirmController.java
.../office/modules/manage/controller/BikefirmController.java
+1
-1
CasesController.java
.../io/office/modules/manage/controller/CasesController.java
+1
-1
CenterController.java
...io/office/modules/manage/controller/CenterController.java
+1
-1
DocController.java
...va/io/office/modules/manage/controller/DocController.java
+2
-2
FileController.java
...a/io/office/modules/manage/controller/FileController.java
+1
-1
GLNController.java
...va/io/office/modules/manage/controller/GLNController.java
+4
-4
GTINController.java
...a/io/office/modules/manage/controller/GTINController.java
+2
-2
GlossaryController.java
.../office/modules/manage/controller/GlossaryController.java
+1
-1
HotFollowController.java
...office/modules/manage/controller/HotFollowController.java
+1
-1
IndexCarouselManageController.java
...ules/manage/controller/IndexCarouselManageController.java
+4
-4
LogisticsController.java
...office/modules/manage/controller/LogisticsController.java
+1
-1
MedicalController.java
...o/office/modules/manage/controller/MedicalController.java
+3
-3
NewsController.java
...a/io/office/modules/manage/controller/NewsController.java
+34
-29
NewsMovieController.java
...office/modules/manage/controller/NewsMovieController.java
+1
-1
NewtopicController.java
.../office/modules/manage/controller/NewtopicController.java
+1
-1
PartnersController.java
.../office/modules/manage/controller/PartnersController.java
+5
-5
PictureController.java
...o/office/modules/manage/controller/PictureController.java
+4
-4
PolicyController.java
...io/office/modules/manage/controller/PolicyController.java
+9
-4
ProductController.java
...o/office/modules/manage/controller/ProductController.java
+1
-1
ProductionController.java
...ffice/modules/manage/controller/ProductionController.java
+1
-1
RetailController.java
...io/office/modules/manage/controller/RetailController.java
+1
-1
RetailpictureController.java
...ce/modules/manage/controller/RetailpictureController.java
+1
-1
RulesAndRegulationsController.java
...ules/manage/controller/RulesAndRegulationsController.java
+1
-1
TopicnewsController.java
...office/modules/manage/controller/TopicnewsController.java
+3
-3
AnnounceServiceImpl.java
...fice/modules/manage/service/impl/AnnounceServiceImpl.java
+1
-1
CasesServiceImpl.java
.../office/modules/manage/service/impl/CasesServiceImpl.java
+1
-1
DocServiceImpl.java
...io/office/modules/manage/service/impl/DocServiceImpl.java
+1
-1
NewsServiceImpl.java
...o/office/modules/manage/service/impl/NewsServiceImpl.java
+1
-1
PartnersServiceImpl.java
...fice/modules/manage/service/impl/PartnersServiceImpl.java
+1
-1
PictureServiceImpl.java
...ffice/modules/manage/service/impl/PictureServiceImpl.java
+1
-1
PolicyServiceImpl.java
...office/modules/manage/service/impl/PolicyServiceImpl.java
+1
-1
ProductServiceImpl.java
...ffice/modules/manage/service/impl/ProductServiceImpl.java
+1
-1
RetailpictureServiceImpl.java
...modules/manage/service/impl/RetailpictureServiceImpl.java
+1
-1
TopicnewsServiceImpl.java
...ice/modules/manage/service/impl/TopicnewsServiceImpl.java
+1
-1
SysOssController.java
...va/io/office/modules/oss/controller/SysOssController.java
+3
-3
SysConfigController.java
...io/office/modules/sys/controller/SysConfigController.java
+3
-3
SysLoginController.java
.../io/office/modules/sys/controller/SysLoginController.java
+3
-6
SysMenuController.java
...a/io/office/modules/sys/controller/SysMenuController.java
+3
-3
SysRoleController.java
...a/io/office/modules/sys/controller/SysRoleController.java
+3
-3
SysUserController.java
...a/io/office/modules/sys/controller/SysUserController.java
+4
-4
application.yml
src/main/resources/application.yml
+2
-2
FirmDao.xml
src/main/resources/mapper/manage/FirmDao.xml
+1
-1
No files found.
src/main/java/io/office/modules/app/controller/AppLoginController.java
View file @
e74da019
...
...
@@ -40,7 +40,7 @@ public class AppLoginController {
/**
* 登录
*/
@
Po
stMapping
(
"login"
)
@
Reque
stMapping
(
"login"
)
public
R
login
(
@RequestBody
LoginForm
form
)
{
//表单校验
ValidatorUtils
.
validateEntity
(
form
);
...
...
src/main/java/io/office/modules/app/controller/AppRegisterController.java
View file @
e74da019
...
...
@@ -31,7 +31,7 @@ public class AppRegisterController {
@Autowired
private
UserService
userService
;
@
Po
stMapping
(
"register"
)
@
Reque
stMapping
(
"register"
)
public
R
register
(
@RequestBody
RegisterForm
form
)
{
//表单校验
...
...
src/main/java/io/office/modules/manage/controller/AnnounceController.java
View file @
e74da019
...
...
@@ -125,7 +125,7 @@ public class AnnounceController extends AbstractController {
* 审核
*/
@SysLog
(
"审核公告[announce]"
)
@
Po
stMapping
(
"/verify"
)
@
Reque
stMapping
(
"/verify"
)
@Transactional
@RequiresPermissions
(
"manage:announce:check"
)
public
R
verify
(
@RequestBody
AnnounceEntity
announce
)
{
...
...
src/main/java/io/office/modules/manage/controller/BarcodeGenerationController.java
View file @
e74da019
...
...
@@ -36,7 +36,7 @@ public class BarcodeGenerationController {
* @return pictureUrl 获取条形码地址
*/
@Login
@
Po
stMapping
(
"/api/createQRcode"
)
@
Reque
stMapping
(
"/api/createQRcode"
)
public
R
createQRcode
(
@RequestBody
CreateQRcodeVo
createQRcodeVo
)
{
if
(
createQRcodeVo
.
getParam
().
size
()
==
0
)
{
return
R
.
error
(
"参数有误"
);
...
...
@@ -46,7 +46,7 @@ public class BarcodeGenerationController {
}
@Login
@
Po
stMapping
(
"/api/getGS1CodeListSSCC"
)
@
Reque
stMapping
(
"/api/getGS1CodeListSSCC"
)
public
R
getGS1CodeListSSCC
()
{
List
<
GS1CodeListEntity
>
ais
=
barcodeGenerationService
.
getGS1CodeListSSCC
();
return
R
.
ok
().
put
(
"data"
,
ais
);
...
...
@@ -54,7 +54,7 @@ public class BarcodeGenerationController {
@Login
@
Po
stMapping
(
"/api/getGS1CodeListGRAI"
)
@
Reque
stMapping
(
"/api/getGS1CodeListGRAI"
)
public
R
getGS1CodeListGRAI
()
{
GS1CodeListEntity
ai
=
barcodeGenerationService
.
getGS1CodeListGRAI
();
return
R
.
ok
().
put
(
"data"
,
ai
);
...
...
@@ -62,7 +62,7 @@ public class BarcodeGenerationController {
@Login
@
Po
stMapping
(
"/api/checkGS1Code"
)
@
Reque
stMapping
(
"/api/checkGS1Code"
)
public
R
checkGS1Code
(
@Valid
@RequestBody
CheckAIVo
body
)
{
String
result
=
CheckAICodeUtil
.
ckeckCode
(
body
.
getCode
(),
body
.
getContent
());
return
R
.
ok
().
put
(
"data"
,
result
);
...
...
src/main/java/io/office/modules/manage/controller/BikefirmController.java
View file @
e74da019
...
...
@@ -106,7 +106,7 @@ public class BikefirmController {
@Login
@
Po
stMapping
(
"/api/getBikeFirm"
)
@
Reque
stMapping
(
"/api/getBikeFirm"
)
public
R
getBikeFirm
(
@RequestBody
BikeFirmVo
bikeFirmVo
,
HttpServletRequest
request
)
{
...
...
src/main/java/io/office/modules/manage/controller/CasesController.java
View file @
e74da019
...
...
@@ -143,7 +143,7 @@ public class CasesController extends AbstractController {
*/
@SysLog
(
"审核案例[cases]"
)
@Transactional
@
Po
stMapping
(
"/verify"
)
@
Reque
stMapping
(
"/verify"
)
@RequiresPermissions
(
"standard:cases:verify"
)
public
R
verify
(
@RequestBody
CasesEntity
casesEntity
){
try
{
...
...
src/main/java/io/office/modules/manage/controller/CenterController.java
View file @
e74da019
...
...
@@ -127,7 +127,7 @@ public class CenterController extends AbstractController {
*/
@SysLog
(
"审核中央总局和精神[center]"
)
@Transactional
@
Po
stMapping
(
"/verifyTopic"
)
@
Reque
stMapping
(
"/verifyTopic"
)
@RequiresPermissions
(
"manage:center:check"
)
public
R
verify
(
@RequestBody
NewsEntity
news
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/DocController.java
View file @
e74da019
...
...
@@ -112,7 +112,7 @@ public class DocController extends AbstractController {
}
@Login
@
Po
stMapping
(
"/api/downLoad"
)
@
Reque
stMapping
(
"/api/downLoad"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
downLoad
()
{
try
{
...
...
@@ -131,7 +131,7 @@ public class DocController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/list"
)
@
Reque
stMapping
(
"/api/list"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
listPage
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/FileController.java
View file @
e74da019
...
...
@@ -26,7 +26,7 @@ public class FileController {
private
UploadUtils
uploadUtils
;
@Login
@
Po
stMapping
(
"/uploadFile"
)
@
Reque
stMapping
(
"/uploadFile"
)
public
R
uploadFile
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
return
R
.
ok
().
put
(
"data"
,
uploadUtils
.
fileUpload
(
file
));
}
...
...
src/main/java/io/office/modules/manage/controller/GLNController.java
View file @
e74da019
...
...
@@ -56,7 +56,7 @@ public class GLNController {
@Login
@
Po
stMapping
(
"/api/gln"
)
@
Reque
stMapping
(
"/api/gln"
)
public
R
uploadFile
(
@RequestBody
GLNRequestBo
glnRequestBo
,
HttpServletRequest
request
)
{
String
typeKey
=
""
;
boolean
captcha
=
sysCaptchaService
.
validate
(
glnRequestBo
.
getUuid
(),
glnRequestBo
.
getCaptcha
());
...
...
@@ -112,7 +112,7 @@ public class GLNController {
* @return
*/
@Login
@
Po
stMapping
(
"/api/domesticCode"
)
@
Reque
stMapping
(
"/api/domesticCode"
)
public
R
domesticCode
(
@RequestBody
DomesticCodeVo
domesticCodeVo
,
HttpServletRequest
request
)
{
if
(
StringUtils
.
isBlank
(
domesticCodeVo
.
getCode
()))
{
...
...
@@ -212,7 +212,7 @@ public class GLNController {
*/
@Login
@
Po
stMapping
(
"/api/domesticCodeDetail"
)
@
Reque
stMapping
(
"/api/domesticCodeDetail"
)
public
R
domesticCodeDetail
(
@RequestBody
DomesticCodeDetailRequest
domesticCodeDetailRequest
,
HttpServletRequest
request
)
{
return
R
.
ok
().
put
(
"data"
,
firmService
.
getDetail
(
domesticCodeDetailRequest
));
...
...
@@ -225,7 +225,7 @@ public class GLNController {
* @return
*/
@Login
@
Po
stMapping
(
"/api/domesticCodeUpdateList"
)
@
Reque
stMapping
(
"/api/domesticCodeUpdateList"
)
public
R
domesticCodeUpdateList
(
@RequestBody
DomesticCodeDetailRequest
domesticCodeDetailRequest
,
HttpServletRequest
request
)
{
return
R
.
ok
().
put
(
"data"
,
firmService
.
domesticCodeUpdateList
(
domesticCodeDetailRequest
.
getCode
()));
...
...
src/main/java/io/office/modules/manage/controller/GTINController.java
View file @
e74da019
...
...
@@ -47,7 +47,7 @@ public class GTINController {
private
SearchLimitUtil
searchLimitUtil
;
@Login
@
Po
stMapping
(
"/api/gtin"
)
@
Reque
stMapping
(
"/api/gtin"
)
public
void
uploadFile
(
@RequestBody
GLNRequestBo
glnRequestBo
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
PrintWriter
printWriter
=
null
;
try
{
...
...
@@ -117,7 +117,7 @@ public class GTINController {
}
@Login
@
Po
stMapping
(
"/api/domesticCodeProductionNews"
)
@
Reque
stMapping
(
"/api/domesticCodeProductionNews"
)
public
void
domesticCodeProductionNews
(
@RequestBody
GLNRequestBo
glnRequestBo
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
PrintWriter
printWriter
=
null
;
try
{
...
...
src/main/java/io/office/modules/manage/controller/GlossaryController.java
View file @
e74da019
...
...
@@ -119,7 +119,7 @@ public class GlossaryController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/terminology"
)
@
Reque
stMapping
(
"/api/terminology"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
terminology
(
@RequestBody
TerminologyVo
terminologyVo
,
HttpServletRequest
request
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/HotFollowController.java
View file @
e74da019
...
...
@@ -126,7 +126,7 @@ public class HotFollowController extends AbstractController {
*/
@SysLog
(
"审核热点关注[hotFlow]"
)
@Transactional
@
Po
stMapping
(
"/verifyTopic"
)
@
Reque
stMapping
(
"/verifyTopic"
)
@RequiresPermissions
(
"manage:hotFlow:check"
)
public
R
verify
(
@RequestBody
NewsEntity
news
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/IndexCarouselManageController.java
View file @
e74da019
...
...
@@ -171,7 +171,7 @@ public class IndexCarouselManageController extends AbstractController {
*/
@Transactional
@SysLog
(
"审核首页轮播[indexcarouselmanage]"
)
@
Po
stMapping
(
"/verifyIndexCarouselManage"
)
@
Reque
stMapping
(
"/verifyIndexCarouselManage"
)
@RequiresPermissions
(
"manage:indexcarouselmanage:check"
)
public
R
verify
(
@RequestBody
IndexCarouselManageEntity
indexCarouselManage
)
{
try
{
...
...
@@ -186,7 +186,7 @@ public class IndexCarouselManageController extends AbstractController {
@Transactional
@SysLog
(
"隐藏或显示首页轮播更多按钮[indexcarouselmanage]"
)
@
Po
stMapping
(
"/updateIsShow"
)
@
Reque
stMapping
(
"/updateIsShow"
)
@RequiresPermissions
(
"manage:indexcarouselmanage:check"
)
public
R
updateIsShow
(
@RequestBody
IndexCarouselManageEntity
indexCarouselManage
)
{
try
{
...
...
@@ -203,7 +203,7 @@ public class IndexCarouselManageController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/bigImages"
)
@
Reque
stMapping
(
"/api/bigImages"
)
// @RequiresPermissions("manage:indexcarouselmanage:bigImages")
public
R
bigImages
()
{
try
{
...
...
@@ -222,7 +222,7 @@ public class IndexCarouselManageController extends AbstractController {
}
@Login
@
Po
stMapping
(
"/api/smallImages"
)
@
Reque
stMapping
(
"/api/smallImages"
)
// @RequiresPermissions("manage:indexcarouselmanage:bigImages")
public
R
smallImages
()
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/LogisticsController.java
View file @
e74da019
...
...
@@ -133,7 +133,7 @@ public class LogisticsController extends AbstractController {
@SysLog
(
"审核物流管理[logistics]"
)
@Transactional
@
Po
stMapping
(
"/verifyLogistics"
)
@
Reque
stMapping
(
"/verifyLogistics"
)
@RequiresPermissions
(
"manage:logistics:check"
)
public
R
verifyMedical
(
@RequestBody
LogisticsEntity
logistics
){
String
username
=
getUser
().
getUsername
();
...
...
src/main/java/io/office/modules/manage/controller/MedicalController.java
View file @
e74da019
...
...
@@ -135,7 +135,7 @@ public class MedicalController extends AbstractController {
@SysLog
(
"审核医疗管理[medical]"
)
@Transactional
@
Po
stMapping
(
"/verifyMedical"
)
@
Reque
stMapping
(
"/verifyMedical"
)
@RequiresPermissions
(
"manage:medical:check"
)
public
R
verifyMedical
(
@RequestBody
MedicalEntity
medical
)
{
String
username
=
getUser
().
getUsername
();
...
...
@@ -150,7 +150,7 @@ public class MedicalController extends AbstractController {
return
R
.
ok
(
"审核成功!"
);
}
@
Po
stMapping
(
"/api/getList10ByType"
)
@
Reque
stMapping
(
"/api/getList10ByType"
)
public
R
getList10ByType
(
@RequestBody
MedicalEntity
medical
)
{
QueryWrapper
<
MedicalEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
select
(
"top 7 id,title "
);
...
...
@@ -182,7 +182,7 @@ public class MedicalController extends AbstractController {
@Value
(
"${token.count}"
)
private
int
tokenCountConfig
;
@
Po
stMapping
({
"/api/getDetailById"
})
@
Reque
stMapping
({
"/api/getDetailById"
})
public
R
getDetailById
(
@RequestBody
MedicalEntity
medical
)
{
MedicalEntity
medicalEntity
=
medicalService
.
getById
(
medical
.
getId
());
if
(
medicalEntity
==
null
)
{
...
...
src/main/java/io/office/modules/manage/controller/NewsController.java
View file @
e74da019
This diff is collapsed.
Click to expand it.
src/main/java/io/office/modules/manage/controller/NewsMovieController.java
View file @
e74da019
...
...
@@ -134,7 +134,7 @@ public class NewsMovieController extends AbstractController {
SysUserEntity
user
=
getUser
();
NewsMovieEntity
newsMovieEntity
=
new
NewsMovieEntity
();
//
newsMovieEntity.setAuditor(user.getUsername());
newsMovieEntity
.
setAuditor
(
user
.
getUsername
());
BeanUtils
.
copyProperties
(
newsMovieEntityVo
,
newsMovieEntity
);
QueryWrapper
<
NewsMovieEntity
>
newsMovieEntityQueryWrapper
=
new
QueryWrapper
<>();
newsMovieEntityQueryWrapper
.
eq
(
"id"
,
newsMovieEntityVo
.
getId
());
...
...
src/main/java/io/office/modules/manage/controller/NewtopicController.java
View file @
e74da019
...
...
@@ -134,7 +134,7 @@ public class NewtopicController extends AbstractController {
Date
date
=
new
Date
();
SysUserEntity
user
=
getUser
();
NewtopicEntity
newtopicEntity
=
new
NewtopicEntity
();
//
newtopicEntity.setAuditor(user.getUsername());
newtopicEntity
.
setAuditor
(
user
.
getUsername
());
newtopicEntity
.
setCheckflag
(
Integer
.
valueOf
(
params
.
getStatus
()));
QueryWrapper
<
NewtopicEntity
>
newtopicEntityQueryWrapper
=
new
QueryWrapper
<>();
newtopicEntityQueryWrapper
.
eq
(
"classid"
,
newtopicEntity
.
getClassid
());
...
...
src/main/java/io/office/modules/manage/controller/PartnersController.java
View file @
e74da019
...
...
@@ -46,7 +46,7 @@ public class PartnersController extends AbstractController {
/**
* 列表
*/
@
Po
stMapping
(
"/list"
)
@
Reque
stMapping
(
"/list"
)
// @RequiresPermissions("manage:partners:list")
public
R
list
(
@RequestBody
NewsParams
newsParams
){
Page
<
PartnersEntity
>
page
=
this
.
partnersService
.
selectPartnersList
(
newsParams
,
...
...
@@ -85,7 +85,7 @@ public class PartnersController extends AbstractController {
*/
@SysLog
(
"保存提供商[partners]"
)
@Transactional
@
Po
stMapping
(
"/save"
)
@
Reque
stMapping
(
"/save"
)
@RequiresPermissions
(
"standard:partners:save"
)
public
R
save
(
@RequestBody
PartnersEntity
partners
){
partners
.
setEditor
(
getUser
().
getUsername
());
...
...
@@ -101,7 +101,7 @@ public class PartnersController extends AbstractController {
*/
@SysLog
(
"修改提供商[partners]"
)
@Transactional
@
Po
stMapping
(
"/update"
)
@
Reque
stMapping
(
"/update"
)
@RequiresPermissions
(
"standard:partners:update"
)
public
R
update
(
@RequestBody
PartnersEntity
partners
){
partners
.
setEditor
(
getUser
().
getUsername
());
...
...
@@ -116,7 +116,7 @@ public class PartnersController extends AbstractController {
*/
@SysLog
(
"删除提供商[partners]"
)
@Transactional
@
Po
stMapping
(
"/delete"
)
@
Reque
stMapping
(
"/delete"
)
@RequiresPermissions
(
"standard:partners:delete"
)
public
R
delete
(
@RequestBody
List
<
Long
>
ids
){
try
{
...
...
@@ -145,7 +145,7 @@ public class PartnersController extends AbstractController {
*/
@SysLog
(
"审核提供商[partners]"
)
@Transactional
@
Po
stMapping
(
"/verifyPartners"
)
@
Reque
stMapping
(
"/verifyPartners"
)
@RequiresPermissions
(
"standard:partners:check"
)
public
R
verifyPartners
(
@RequestBody
PartnersEntity
partnersEntity
){
try
{
...
...
src/main/java/io/office/modules/manage/controller/PictureController.java
View file @
e74da019
...
...
@@ -132,7 +132,7 @@ public class PictureController extends AbstractController {
*/
@SysLog
(
"审核图片资讯[picture]"
)
@Transactional
@
Po
stMapping
(
"/verifyPicture"
)
@
Reque
stMapping
(
"/verifyPicture"
)
@RequiresPermissions
(
"manage:picture:check"
)
public
R
verify
(
@RequestBody
PictureEntity
picture
)
{
try
{
...
...
@@ -145,7 +145,7 @@ public class PictureController extends AbstractController {
}
@Login
@
Po
stMapping
(
"/api/pictureImageList"
)
@
Reque
stMapping
(
"/api/pictureImageList"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
bigImages
()
{
try
{
...
...
@@ -169,7 +169,7 @@ public class PictureController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/pictureList"
)
@
Reque
stMapping
(
"/api/pictureList"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
pictureList
(
@RequestBody
NewsParams
params
)
{
try
{
...
...
@@ -223,7 +223,7 @@ public class PictureController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/retailPictureList"
)
@
Reque
stMapping
(
"/api/retailPictureList"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
retailPictureList
(
@RequestBody
Map
<
String
,
String
>
params
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/PolicyController.java
View file @
e74da019
...
...
@@ -131,7 +131,7 @@ public class PolicyController extends AbstractController {
*/
@SysLog
(
"审核政策法规规定管理[policy]"
)
@Transactional
@
Po
stMapping
(
"/verifyPolicy"
)
@
Reque
stMapping
(
"/verifyPolicy"
)
@RequiresPermissions
(
"manage:policy:check"
)
public
R
verify
(
@RequestBody
PolicyEntity
policyEntity
)
{
try
{
...
...
@@ -145,7 +145,7 @@ public class PolicyController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/getTop4"
)
@
Reque
stMapping
(
"/api/getTop4"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
getTop4
()
{
try
{
...
...
@@ -165,7 +165,7 @@ public class PolicyController extends AbstractController {
}
@Login
@
Po
stMapping
(
"/api/policyList"
)
@
Reque
stMapping
(
"/api/policyList"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
policyList
(
@RequestBody
NewsParams
params
)
{
// try {
...
...
@@ -226,7 +226,12 @@ public class PolicyController extends AbstractController {
}
//点击量+1
PolicyEntity
policyUpdate
=
new
PolicyEntity
();
policyUpdate
.
setHits
(
policyUpdate
.
getHits
()+
1
);
if
(
policyUpdate
.
getHits
()!=
null
){
policyUpdate
.
setHits
(
policyUpdate
.
getHits
()+
1
);
}
else
{
policyUpdate
.
setHits
(
1
);
}
UpdateWrapper
<
PolicyEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"id"
,
id
);
policyService
.
update
(
policyUpdate
,
updateWrapper
);
...
...
src/main/java/io/office/modules/manage/controller/ProductController.java
View file @
e74da019
...
...
@@ -126,7 +126,7 @@ public class ProductController extends AbstractController {
*/
@SysLog
(
"审核商品[product]"
)
@Transactional
@
Po
stMapping
(
"/verifyProduct"
)
@
Reque
stMapping
(
"/verifyProduct"
)
@RequiresPermissions
(
"plate:product:check"
)
public
R
verify
(
@RequestBody
ProductEntity
product
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/ProductionController.java
View file @
e74da019
...
...
@@ -25,7 +25,7 @@ public class ProductionController {
SysCaptchaService
sysCaptchaService
;
@Login
@
Po
stMapping
(
"/search"
)
@
Reque
stMapping
(
"/search"
)
public
R
search
(
@RequestBody
ProductionVo
productionVo
)
{
boolean
captcha
=
sysCaptchaService
.
validate
(
productionVo
.
getUuid
(),
productionVo
.
getCaptcha
());
...
...
src/main/java/io/office/modules/manage/controller/RetailController.java
View file @
e74da019
...
...
@@ -96,7 +96,7 @@ public class RetailController {
* @return
*/
@Login
@
Po
stMapping
(
"/api/guideList"
)
@
Reque
stMapping
(
"/api/guideList"
)
public
R
guideList
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
retailService
.
queryPageList
(
params
);
return
R
.
ok
().
put
(
"data"
,
page
);
...
...
src/main/java/io/office/modules/manage/controller/RetailpictureController.java
View file @
e74da019
...
...
@@ -135,7 +135,7 @@ public class RetailpictureController extends AbstractController {
*/
@SysLog
(
"审核零售图片[retailPicture]"
)
@Transactional
@
Po
stMapping
(
"/verifyPicture"
)
@
Reque
stMapping
(
"/verifyPicture"
)
@RequiresPermissions
(
"manage:retailPicture:check"
)
public
R
verify
(
@RequestBody
RetailpictureEntity
picture
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/RulesAndRegulationsController.java
View file @
e74da019
...
...
@@ -130,7 +130,7 @@ public class RulesAndRegulationsController extends AbstractController {
*/
@SysLog
(
"审核规章制度[rules]"
)
@Transactional
@
Po
stMapping
(
"/verifyTopic"
)
@
Reque
stMapping
(
"/verifyTopic"
)
@RequiresPermissions
(
"manage:rules:check"
)
public
R
verify
(
@RequestBody
NewsEntity
news
)
{
try
{
...
...
src/main/java/io/office/modules/manage/controller/TopicnewsController.java
View file @
e74da019
...
...
@@ -132,7 +132,7 @@ public class TopicnewsController extends AbstractController {
*/
@SysLog
(
"审核活动报道[topicnews]"
)
@Transactional
@
Po
stMapping
(
"/verifyTopic"
)
@
Reque
stMapping
(
"/verifyTopic"
)
@RequiresPermissions
(
"manage:news:check"
)
public
R
verify
(
@RequestBody
NewsEntity
news
)
{
try
{
...
...
@@ -146,7 +146,7 @@ public class TopicnewsController extends AbstractController {
@Login
@
Po
stMapping
(
"/api/get4PartyTopNews"
)
@
Reque
stMapping
(
"/api/get4PartyTopNews"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
get4PartyTopNews
(
@RequestBody
TopicNewsPartyRequestVo
topicNewsPartyRequestVo
)
{
try
{
...
...
@@ -158,7 +158,7 @@ public class TopicnewsController extends AbstractController {
}
@Login
@
Po
stMapping
(
"/api/getHdbdList"
)
@
Reque
stMapping
(
"/api/getHdbdList"
)
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public
R
getHdbdList
(
@RequestBody
NewsParams
newsParams
)
{
Page
<
NewsEntity
>
page
=
this
.
topicnewsService
.
getHdbdList
(
newsParams
,
...
...
src/main/java/io/office/modules/manage/service/impl/AnnounceServiceImpl.java
View file @
e74da019
...
...
@@ -58,7 +58,7 @@ public class AnnounceServiceImpl extends ServiceImpl<AnnounceDao, AnnounceEntity
public
R
verify
(
AnnounceEntity
announce
,
SysUserEntity
user
)
{
//announce.setUpdatedate(new Date());
//announce.setEditor(user.getUsername());
//
announce.setAuditor(user.getUsername());
announce
.
setAuditor
(
user
.
getUsername
());
QueryWrapper
<
AnnounceEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
newsEntityQueryWrapper
.
eq
(
"id"
,
announce
.
getId
());
announceDao
.
update
(
announce
,
newsEntityQueryWrapper
);
...
...
src/main/java/io/office/modules/manage/service/impl/CasesServiceImpl.java
View file @
e74da019
...
...
@@ -88,7 +88,7 @@ public class CasesServiceImpl extends ServiceImpl<CasesDao, CasesEntity> impleme
public
R
verify
(
CasesEntity
casesEntity
,
SysUserEntity
user
)
{
QueryWrapper
<
CasesEntity
>
partnersEntityQueryWrapper
=
new
QueryWrapper
<>();
partnersEntityQueryWrapper
.
in
(
"id"
,
casesEntity
.
getId
());
//
casesEntity.setAuditor(user.getUsername());
casesEntity
.
setAuditor
(
user
.
getUsername
());
casesEntity
.
setCheckdate
(
new
Date
());
int
update
=
this
.
baseMapper
.
update
(
casesEntity
,
partnersEntityQueryWrapper
);
if
(
update
>
0
){
...
...
src/main/java/io/office/modules/manage/service/impl/DocServiceImpl.java
View file @
e74da019
...
...
@@ -55,7 +55,7 @@ public class DocServiceImpl extends ServiceImpl<DocDao, DocEntity> implements Do
public
void
verifyDoc
(
DocEntity
doc
,
SysUserEntity
user
)
{
QueryWrapper
<
DocEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
in
(
"id"
,
doc
.
getId
());
//
doc.setAuditor(user.getUsername());
doc
.
setAuditor
(
user
.
getUsername
());
this
.
baseMapper
.
update
(
doc
,
queryWrapper
);
}
...
...
src/main/java/io/office/modules/manage/service/impl/NewsServiceImpl.java
View file @
e74da019
...
...
@@ -103,7 +103,7 @@ public class NewsServiceImpl extends ServiceImpl<NewsDao, NewsEntity> implements
@Override
public
R
verifyNews
(
NewsEntity
news
,
SysUserEntity
user
)
{
//
news.setAuditor(user.getUsername());
news
.
setAuditor
(
user
.
getUsername
());
news
.
setCheckdate
(
new
Date
());
//news.setLasteditor(user.getUsername());
QueryWrapper
<
NewsEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
...
...
src/main/java/io/office/modules/manage/service/impl/PartnersServiceImpl.java
View file @
e74da019
...
...
@@ -67,7 +67,7 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity
public
R
verifyPartners
(
PartnersEntity
partnersEntity
,
SysUserEntity
user
)
{
QueryWrapper
<
PartnersEntity
>
partnersEntityQueryWrapper
=
new
QueryWrapper
<>();
partnersEntityQueryWrapper
.
in
(
"id"
,
partnersEntity
.
getId
());
//
partnersEntity.setAuditor(user.getUsername());
partnersEntity
.
setAuditor
(
user
.
getUsername
());
partnersEntity
.
setCheckdate
(
new
Date
());
int
update
=
this
.
baseMapper
.
update
(
partnersEntity
,
partnersEntityQueryWrapper
);
if
(
update
>
0
){
...
...
src/main/java/io/office/modules/manage/service/impl/PictureServiceImpl.java
View file @
e74da019
...
...
@@ -91,7 +91,7 @@ public class PictureServiceImpl extends ServiceImpl<PictureDao, PictureEntity> i
@Override
public
R
verifyPicture
(
PictureEntity
picture
,
SysUserEntity
user
)
{
//
picture.setAuditor(user.getUsername());
picture
.
setAuditor
(
user
.
getUsername
());
picture
.
setInputdate
(
new
Date
());
// picture.setLasteditor(user.getUsername());
QueryWrapper
<
PictureEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
...
...
src/main/java/io/office/modules/manage/service/impl/PolicyServiceImpl.java
View file @
e74da019
...
...
@@ -91,7 +91,7 @@ public class PolicyServiceImpl extends ServiceImpl<PolicyDao, PolicyEntity> impl
@Override
public
R
verifyTopic
(
PolicyEntity
policyEntity
,
SysUserEntity
user
)
{
//
policyEntity.setAuditor(user.getUsername());
policyEntity
.
setAuditor
(
user
.
getUsername
());
// policyEntity.setLasteditor(user.getUsername());
QueryWrapper
<
PolicyEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
newsEntityQueryWrapper
.
eq
(
"id"
,
policyEntity
.
getId
());
...
...
src/main/java/io/office/modules/manage/service/impl/ProductServiceImpl.java
View file @
e74da019
...
...
@@ -63,7 +63,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductDao, ProductEntity> i
@Override
public
R
verifyProduct
(
ProductEntity
product
,
SysUserEntity
user
)
{
//
product.setAuditor(user.getUsername());
product
.
setAuditor
(
user
.
getUsername
());
QueryWrapper
<
ProductEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
newsEntityQueryWrapper
.
in
(
"id"
,
product
.
getId
());
int
delete
=
baseMapper
.
update
(
product
,
newsEntityQueryWrapper
);
...
...
src/main/java/io/office/modules/manage/service/impl/RetailpictureServiceImpl.java
View file @
e74da019
...
...
@@ -87,7 +87,7 @@ public class RetailpictureServiceImpl extends ServiceImpl<RetailpictureDao, Reta
@Override
public
R
verifyPicture
(
RetailpictureEntity
picture
,
SysUserEntity
user
)
{
//
picture.setAuditor(user.getUsername());
picture
.
setAuditor
(
user
.
getUsername
());
// picture.setInputdate(new Date());
// picture.setLasteditor(user.getUsername());
QueryWrapper
<
RetailpictureEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
...
...
src/main/java/io/office/modules/manage/service/impl/TopicnewsServiceImpl.java
View file @
e74da019
...
...
@@ -92,7 +92,7 @@ public class TopicnewsServiceImpl extends ServiceImpl<TopicnewsDao, TopicnewsEnt
@Override
public
R
verifyTopic
(
NewsEntity
news
,
SysUserEntity
user
)
{
//
news.setAuditor(user.getUsername());
news
.
setAuditor
(
user
.
getUsername
());
news
.
setCheckdate
(
new
Date
());
// news.setLasteditor(user.getUsername());
QueryWrapper
<
NewsEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
...
...
src/main/java/io/office/modules/oss/controller/SysOssController.java
View file @
e74da019
...
...
@@ -74,7 +74,7 @@ public class SysOssController {
/**
* 保存云存储配置信息
*/
@
Po
stMapping
(
"/saveConfig"
)
@
Reque
stMapping
(
"/saveConfig"
)
@RequiresPermissions
(
"sys:oss:all"
)
public
R
saveConfig
(
@RequestBody
CloudStorageConfig
config
){
//校验类型
...
...
@@ -100,7 +100,7 @@ public class SysOssController {
/**
* 上传文件
*/
@
Po
stMapping
(
"/upload"
)
@
Reque
stMapping
(
"/upload"
)
@RequiresPermissions
(
"sys:oss:all"
)
public
R
upload
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
Exception
{
if
(
file
.
isEmpty
())
{
...
...
@@ -124,7 +124,7 @@ public class SysOssController {
/**
* 删除
*/
@
Po
stMapping
(
"/delete"
)
@
Reque
stMapping
(
"/delete"
)
@RequiresPermissions
(
"sys:oss:all"
)
public
R
delete
(
@RequestBody
Long
[]
ids
){
sysOssService
.
removeByIds
(
Arrays
.
asList
(
ids
));
...
...
src/main/java/io/office/modules/sys/controller/SysConfigController.java
View file @
e74da019
...
...
@@ -59,7 +59,7 @@ public class SysConfigController extends AbstractController {
* 保存配置
*/
@SysLog
(
"保存配置"
)
@
Po
stMapping
(
"/save"
)
@
Reque
stMapping
(
"/save"
)
@RequiresPermissions
(
"sys:config:save"
)
public
R
save
(
@RequestBody
SysConfigEntity
config
){
ValidatorUtils
.
validateEntity
(
config
);
...
...
@@ -73,7 +73,7 @@ public class SysConfigController extends AbstractController {
* 修改配置
*/
@SysLog
(
"修改配置"
)
@
Po
stMapping
(
"/update"
)
@
Reque
stMapping
(
"/update"
)
@RequiresPermissions
(
"sys:config:update"
)
public
R
update
(
@RequestBody
SysConfigEntity
config
){
ValidatorUtils
.
validateEntity
(
config
);
...
...
@@ -87,7 +87,7 @@ public class SysConfigController extends AbstractController {
* 删除配置
*/
@SysLog
(
"删除配置"
)
@
Po
stMapping
(
"/delete"
)
@
Reque
stMapping
(
"/delete"
)
@RequiresPermissions
(
"sys:config:delete"
)
public
R
delete
(
@RequestBody
Long
[]
ids
){
sysConfigService
.
deleteBatch
(
ids
);
...
...
src/main/java/io/office/modules/sys/controller/SysLoginController.java
View file @
e74da019
...
...
@@ -18,10 +18,7 @@ import io.office.modules.sys.service.SysUserTokenService;
import
org.apache.commons.io.IOUtils
;
import
org.apache.shiro.crypto.hash.Sha256Hash
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.imageio.ImageIO
;
import
javax.servlet.ServletOutputStream
;
...
...
@@ -64,7 +61,7 @@ public class SysLoginController extends AbstractController {
* 登录
*/
@Login
@
Po
stMapping
(
"/sys/login"
)
@
Reque
stMapping
(
"/sys/login"
)
public
Map
<
String
,
Object
>
login
(
@RequestBody
SysLoginForm
form
)
throws
IOException
{
/*boolean captcha = sysCaptchaService.validate(form.getUuid(), form.getCaptcha());
if(!captcha){
...
...
@@ -93,7 +90,7 @@ public class SysLoginController extends AbstractController {
/**
* 退出
*/
@
Po
stMapping
(
"/sys/logout"
)
@
Reque
stMapping
(
"/sys/logout"
)
public
R
logout
()
{
sysUserTokenService
.
logout
(
getUserId
());
return
R
.
ok
();
...
...
src/main/java/io/office/modules/sys/controller/SysMenuController.java
View file @
e74da019
...
...
@@ -105,7 +105,7 @@ public class SysMenuController extends AbstractController {
* 保存
*/
@SysLog
(
"保存菜单"
)
@
Po
stMapping
(
"/save"
)
@
Reque
stMapping
(
"/save"
)
@RequiresPermissions
(
"sys:menu:save"
)
public
R
save
(
@RequestBody
SysMenuEntity
menu
){
//数据校验
...
...
@@ -120,7 +120,7 @@ public class SysMenuController extends AbstractController {
* 修改
*/
@SysLog
(
"修改菜单"
)
@
Po
stMapping
(
"/update"
)
@
Reque
stMapping
(
"/update"
)
@RequiresPermissions
(
"sys:menu:update"
)
public
R
update
(
@RequestBody
SysMenuEntity
menu
){
//数据校验
...
...
@@ -135,7 +135,7 @@ public class SysMenuController extends AbstractController {
* 删除
*/
@SysLog
(
"删除菜单"
)
@
Po
stMapping
(
"/delete/{menuId}"
)
@
Reque
stMapping
(
"/delete/{menuId}"
)
@RequiresPermissions
(
"sys:menu:delete"
)
public
R
delete
(
@PathVariable
(
"menuId"
)
long
menuId
){
if
(
menuId
<=
31
){
...
...
src/main/java/io/office/modules/sys/controller/SysRoleController.java
View file @
e74da019
...
...
@@ -89,7 +89,7 @@ public class SysRoleController extends AbstractController {
* 保存角色
*/
@SysLog
(
"保存角色"
)
@
Po
stMapping
(
"/save"
)
@
Reque
stMapping
(
"/save"
)
@RequiresPermissions
(
"sys:role:save"
)
public
R
save
(
@RequestBody
SysRoleEntity
role
){
ValidatorUtils
.
validateEntity
(
role
);
...
...
@@ -104,7 +104,7 @@ public class SysRoleController extends AbstractController {
* 修改角色
*/
@SysLog
(
"修改角色"
)
@
Po
stMapping
(
"/update"
)
@
Reque
stMapping
(
"/update"
)
@RequiresPermissions
(
"sys:role:update"
)
public
R
update
(
@RequestBody
SysRoleEntity
role
){
ValidatorUtils
.
validateEntity
(
role
);
...
...
@@ -119,7 +119,7 @@ public class SysRoleController extends AbstractController {
* 删除角色
*/
@SysLog
(
"删除角色"
)
@
Po
stMapping
(
"/delete"
)
@
Reque
stMapping
(
"/delete"
)
@RequiresPermissions
(
"sys:role:delete"
)
public
R
delete
(
@RequestBody
Long
[]
roleIds
){
sysRoleService
.
deleteBatch
(
roleIds
);
...
...
src/main/java/io/office/modules/sys/controller/SysUserController.java
View file @
e74da019
...
...
@@ -70,7 +70,7 @@ public class SysUserController extends AbstractController {
* 修改登录用户密码
*/
@SysLog
(
"修改密码"
)
@
Po
stMapping
(
"/password"
)
@
Reque
stMapping
(
"/password"
)
public
R
password
(
@RequestBody
PasswordForm
form
){
Assert
.
isBlank
(
form
.
getNewPassword
(),
"新密码不为能空"
);
...
...
@@ -107,7 +107,7 @@ public class SysUserController extends AbstractController {
* 保存用户
*/
@SysLog
(
"保存用户"
)
@
Po
stMapping
(
"/save"
)
@
Reque
stMapping
(
"/save"
)
@RequiresPermissions
(
"sys:user:save"
)
public
R
save
(
@RequestBody
SysUserEntity
user
){
ValidatorUtils
.
validateEntity
(
user
,
AddGroup
.
class
);
...
...
@@ -122,7 +122,7 @@ public class SysUserController extends AbstractController {
* 修改用户
*/
@SysLog
(
"修改用户"
)
@
Po
stMapping
(
"/update"
)
@
Reque
stMapping
(
"/update"
)
@RequiresPermissions
(
"sys:user:update"
)
public
R
update
(
@RequestBody
SysUserEntity
user
){
ValidatorUtils
.
validateEntity
(
user
,
UpdateGroup
.
class
);
...
...
@@ -137,7 +137,7 @@ public class SysUserController extends AbstractController {
* 删除用户
*/
@SysLog
(
"删除用户"
)
@
Po
stMapping
(
"/delete"
)
@
Reque
stMapping
(
"/delete"
)
@RequiresPermissions
(
"sys:user:delete"
)
public
R
delete
(
@RequestBody
Long
[]
userIds
){
if
(
ArrayUtils
.
contains
(
userIds
,
1L
)){
...
...
src/main/resources/application.yml
View file @
e74da019
...
...
@@ -70,7 +70,7 @@ logging:
org
:
mybatis
:
debug
dao
:
debug
token.count
:
3
#预览次数控制
token.count
:
5
src/main/resources/mapper/manage/FirmDao.xml
View file @
e74da019
...
...
@@ -65,7 +65,7 @@
<select
id=
"domesticCodeUpdateList"
parameterType=
"string"
resultType=
"io.office.modules.manage.vo.response.DomesticCodeUpdateResponse"
>
SELECT
FIRM_NAME,
top 1
FIRM_NAME,
FIRM_NAME_NOW,
AUDIT_DATE
FROM
...
...
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