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