Commit e74da019 by 吴迪

修改项目请求方式

parent 046bb944
......@@ -40,7 +40,7 @@ public class AppLoginController {
/**
* 登录
*/
@PostMapping("login")
@RequestMapping("login")
public R login(@RequestBody LoginForm form) {
//表单校验
ValidatorUtils.validateEntity(form);
......
......@@ -31,7 +31,7 @@ public class AppRegisterController {
@Autowired
private UserService userService;
@PostMapping("register")
@RequestMapping("register")
public R register(@RequestBody RegisterForm form) {
//表单校验
......
......@@ -125,7 +125,7 @@ public class AnnounceController extends AbstractController {
* 审核
*/
@SysLog("审核公告[announce]")
@PostMapping("/verify")
@RequestMapping("/verify")
@Transactional
@RequiresPermissions("manage:announce:check")
public R verify(@RequestBody AnnounceEntity announce) {
......
......@@ -36,7 +36,7 @@ public class BarcodeGenerationController {
* @return pictureUrl 获取条形码地址
*/
@Login
@PostMapping("/api/createQRcode")
@RequestMapping("/api/createQRcode")
public R createQRcode(@RequestBody CreateQRcodeVo createQRcodeVo) {
if (createQRcodeVo.getParam().size() == 0) {
return R.error("参数有误");
......@@ -46,7 +46,7 @@ public class BarcodeGenerationController {
}
@Login
@PostMapping("/api/getGS1CodeListSSCC")
@RequestMapping("/api/getGS1CodeListSSCC")
public R getGS1CodeListSSCC() {
List<GS1CodeListEntity> ais = barcodeGenerationService.getGS1CodeListSSCC();
return R.ok().put("data", ais);
......@@ -54,7 +54,7 @@ public class BarcodeGenerationController {
@Login
@PostMapping("/api/getGS1CodeListGRAI")
@RequestMapping("/api/getGS1CodeListGRAI")
public R getGS1CodeListGRAI() {
GS1CodeListEntity ai = barcodeGenerationService.getGS1CodeListGRAI();
return R.ok().put("data", ai);
......@@ -62,7 +62,7 @@ public class BarcodeGenerationController {
@Login
@PostMapping("/api/checkGS1Code")
@RequestMapping("/api/checkGS1Code")
public R checkGS1Code(@Valid @RequestBody CheckAIVo body) {
String result = CheckAICodeUtil.ckeckCode(body.getCode(), body.getContent());
return R.ok().put("data", result);
......
......@@ -106,7 +106,7 @@ public class BikefirmController {
@Login
@PostMapping("/api/getBikeFirm")
@RequestMapping("/api/getBikeFirm")
public R getBikeFirm(@RequestBody BikeFirmVo bikeFirmVo, HttpServletRequest request) {
......
......@@ -143,7 +143,7 @@ public class CasesController extends AbstractController {
*/
@SysLog("审核案例[cases]")
@Transactional
@PostMapping("/verify")
@RequestMapping("/verify")
@RequiresPermissions("standard:cases:verify")
public R verify(@RequestBody CasesEntity casesEntity){
try {
......
......@@ -127,7 +127,7 @@ public class CenterController extends AbstractController {
*/
@SysLog("审核中央总局和精神[center]")
@Transactional
@PostMapping("/verifyTopic")
@RequestMapping("/verifyTopic")
@RequiresPermissions("manage:center:check")
public R verify(@RequestBody NewsEntity news) {
try {
......
......@@ -112,7 +112,7 @@ public class DocController extends AbstractController {
}
@Login
@PostMapping("/api/downLoad")
@RequestMapping("/api/downLoad")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public R downLoad() {
try {
......@@ -131,7 +131,7 @@ public class DocController extends AbstractController {
@Login
@PostMapping("/api/list")
@RequestMapping("/api/list")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public R listPage(@RequestBody Map<String, Object> params) {
try {
......
......@@ -26,7 +26,7 @@ public class FileController {
private UploadUtils uploadUtils;
@Login
@PostMapping("/uploadFile")
@RequestMapping("/uploadFile")
public R uploadFile(@RequestParam("file") MultipartFile file) {
return R.ok().put("data",uploadUtils.fileUpload(file));
}
......
......@@ -56,7 +56,7 @@ public class GLNController {
@Login
@PostMapping("/api/gln")
@RequestMapping("/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
@PostMapping("/api/domesticCode")
@RequestMapping("/api/domesticCode")
public R domesticCode(@RequestBody DomesticCodeVo domesticCodeVo, HttpServletRequest request) {
if(StringUtils.isBlank(domesticCodeVo.getCode())) {
......@@ -212,7 +212,7 @@ public class GLNController {
*/
@Login
@PostMapping("/api/domesticCodeDetail")
@RequestMapping("/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
@PostMapping("/api/domesticCodeUpdateList")
@RequestMapping("/api/domesticCodeUpdateList")
public R domesticCodeUpdateList(@RequestBody DomesticCodeDetailRequest domesticCodeDetailRequest, HttpServletRequest request) {
return R.ok().put("data",firmService.domesticCodeUpdateList(domesticCodeDetailRequest.getCode()));
......
......@@ -47,7 +47,7 @@ public class GTINController {
private SearchLimitUtil searchLimitUtil;
@Login
@PostMapping("/api/gtin")
@RequestMapping("/api/gtin")
public void uploadFile(@RequestBody GLNRequestBo glnRequestBo, HttpServletRequest request, HttpServletResponse response) {
PrintWriter printWriter = null;
try {
......@@ -117,7 +117,7 @@ public class GTINController {
}
@Login
@PostMapping("/api/domesticCodeProductionNews")
@RequestMapping("/api/domesticCodeProductionNews")
public void domesticCodeProductionNews(@RequestBody GLNRequestBo glnRequestBo, HttpServletRequest request, HttpServletResponse response) {
PrintWriter printWriter = null;
try {
......
......@@ -119,7 +119,7 @@ public class GlossaryController extends AbstractController {
@Login
@PostMapping("/api/terminology")
@RequestMapping("/api/terminology")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public R terminology(@RequestBody TerminologyVo terminologyVo, HttpServletRequest request) {
try {
......
......@@ -126,7 +126,7 @@ public class HotFollowController extends AbstractController {
*/
@SysLog("审核热点关注[hotFlow]")
@Transactional
@PostMapping("/verifyTopic")
@RequestMapping("/verifyTopic")
@RequiresPermissions("manage:hotFlow:check")
public R verify(@RequestBody NewsEntity news) {
try {
......
......@@ -171,7 +171,7 @@ public class IndexCarouselManageController extends AbstractController {
*/
@Transactional
@SysLog("审核首页轮播[indexcarouselmanage]")
@PostMapping("/verifyIndexCarouselManage")
@RequestMapping("/verifyIndexCarouselManage")
@RequiresPermissions("manage:indexcarouselmanage:check")
public R verify(@RequestBody IndexCarouselManageEntity indexCarouselManage) {
try {
......@@ -186,7 +186,7 @@ public class IndexCarouselManageController extends AbstractController {
@Transactional
@SysLog("隐藏或显示首页轮播更多按钮[indexcarouselmanage]")
@PostMapping("/updateIsShow")
@RequestMapping("/updateIsShow")
@RequiresPermissions("manage:indexcarouselmanage:check")
public R updateIsShow(@RequestBody IndexCarouselManageEntity indexCarouselManage) {
try {
......@@ -203,7 +203,7 @@ public class IndexCarouselManageController extends AbstractController {
@Login
@PostMapping("/api/bigImages")
@RequestMapping("/api/bigImages")
// @RequiresPermissions("manage:indexcarouselmanage:bigImages")
public R bigImages() {
try {
......@@ -222,7 +222,7 @@ public class IndexCarouselManageController extends AbstractController {
}
@Login
@PostMapping("/api/smallImages")
@RequestMapping("/api/smallImages")
// @RequiresPermissions("manage:indexcarouselmanage:bigImages")
public R smallImages() {
try {
......
......@@ -133,7 +133,7 @@ public class LogisticsController extends AbstractController {
@SysLog("审核物流管理[logistics]")
@Transactional
@PostMapping("/verifyLogistics")
@RequestMapping("/verifyLogistics")
@RequiresPermissions("manage:logistics:check")
public R verifyMedical(@RequestBody LogisticsEntity logistics){
String username = getUser().getUsername();
......
......@@ -135,7 +135,7 @@ public class MedicalController extends AbstractController {
@SysLog("审核医疗管理[medical]")
@Transactional
@PostMapping("/verifyMedical")
@RequestMapping("/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("审核成功!");
}
@PostMapping("/api/getList10ByType")
@RequestMapping("/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;
@PostMapping({"/api/getDetailById"})
@RequestMapping({"/api/getDetailById"})
public R getDetailById(@RequestBody MedicalEntity medical) {
MedicalEntity medicalEntity = medicalService.getById(medical.getId());
if (medicalEntity == null) {
......
......@@ -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());
......
......@@ -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());
......
......@@ -46,7 +46,7 @@ public class PartnersController extends AbstractController {
/**
* 列表
*/
@PostMapping("/list")
@RequestMapping("/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
@PostMapping("/save")
@RequestMapping("/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
@PostMapping("/update")
@RequestMapping("/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
@PostMapping("/delete")
@RequestMapping("/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
@PostMapping("/verifyPartners")
@RequestMapping("/verifyPartners")
@RequiresPermissions("standard:partners:check")
public R verifyPartners(@RequestBody PartnersEntity partnersEntity){
try {
......
......@@ -132,7 +132,7 @@ public class PictureController extends AbstractController {
*/
@SysLog("审核图片资讯[picture]")
@Transactional
@PostMapping("/verifyPicture")
@RequestMapping("/verifyPicture")
@RequiresPermissions("manage:picture:check")
public R verify(@RequestBody PictureEntity picture) {
try {
......@@ -145,7 +145,7 @@ public class PictureController extends AbstractController {
}
@Login
@PostMapping("/api/pictureImageList")
@RequestMapping("/api/pictureImageList")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R bigImages() {
try {
......@@ -169,7 +169,7 @@ public class PictureController extends AbstractController {
@Login
@PostMapping("/api/pictureList")
@RequestMapping("/api/pictureList")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R pictureList(@RequestBody NewsParams params) {
try {
......@@ -223,7 +223,7 @@ public class PictureController extends AbstractController {
@Login
@PostMapping("/api/retailPictureList")
@RequestMapping("/api/retailPictureList")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R retailPictureList(@RequestBody Map<String, String> params) {
try {
......
......@@ -131,7 +131,7 @@ public class PolicyController extends AbstractController {
*/
@SysLog("审核政策法规规定管理[policy]")
@Transactional
@PostMapping("/verifyPolicy")
@RequestMapping("/verifyPolicy")
@RequiresPermissions("manage:policy:check")
public R verify(@RequestBody PolicyEntity policyEntity) {
try {
......@@ -145,7 +145,7 @@ public class PolicyController extends AbstractController {
@Login
@PostMapping("/api/getTop4")
@RequestMapping("/api/getTop4")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R getTop4() {
try {
......@@ -165,7 +165,7 @@ public class PolicyController extends AbstractController {
}
@Login
@PostMapping("/api/policyList")
@RequestMapping("/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();
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);
......
......@@ -126,7 +126,7 @@ public class ProductController extends AbstractController {
*/
@SysLog("审核商品[product]")
@Transactional
@PostMapping("/verifyProduct")
@RequestMapping("/verifyProduct")
@RequiresPermissions("plate:product:check")
public R verify(@RequestBody ProductEntity product) {
try {
......
......@@ -25,7 +25,7 @@ public class ProductionController {
SysCaptchaService sysCaptchaService;
@Login
@PostMapping("/search")
@RequestMapping("/search")
public R search(@RequestBody ProductionVo productionVo) {
boolean captcha = sysCaptchaService.validate(productionVo.getUuid(), productionVo.getCaptcha());
......
......@@ -96,7 +96,7 @@ public class RetailController {
* @return
*/
@Login
@PostMapping("/api/guideList")
@RequestMapping("/api/guideList")
public R guideList(@RequestParam Map<String, Object> params) {
PageUtils page = retailService.queryPageList(params);
return R.ok().put("data", page);
......
......@@ -135,7 +135,7 @@ public class RetailpictureController extends AbstractController {
*/
@SysLog("审核零售图片[retailPicture]")
@Transactional
@PostMapping("/verifyPicture")
@RequestMapping("/verifyPicture")
@RequiresPermissions("manage:retailPicture:check")
public R verify(@RequestBody RetailpictureEntity picture) {
try {
......
......@@ -130,7 +130,7 @@ public class RulesAndRegulationsController extends AbstractController {
*/
@SysLog("审核规章制度[rules]")
@Transactional
@PostMapping("/verifyTopic")
@RequestMapping("/verifyTopic")
@RequiresPermissions("manage:rules:check")
public R verify(@RequestBody NewsEntity news) {
try {
......
......@@ -132,7 +132,7 @@ public class TopicnewsController extends AbstractController {
*/
@SysLog("审核活动报道[topicnews]")
@Transactional
@PostMapping("/verifyTopic")
@RequestMapping("/verifyTopic")
@RequiresPermissions("manage:news:check")
public R verify(@RequestBody NewsEntity news) {
try {
......@@ -146,7 +146,7 @@ public class TopicnewsController extends AbstractController {
@Login
@PostMapping("/api/get4PartyTopNews")
@RequestMapping("/api/get4PartyTopNews")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R get4PartyTopNews(@RequestBody TopicNewsPartyRequestVo topicNewsPartyRequestVo) {
try {
......@@ -158,7 +158,7 @@ public class TopicnewsController extends AbstractController {
}
@Login
@PostMapping("/api/getHdbdList")
@RequestMapping("/api/getHdbdList")
// @RequiresPermissions("manage:indexcarouselmanage:pictureImageList")
public R getHdbdList(@RequestBody NewsParams newsParams) {
Page<NewsEntity> page = this.topicnewsService.getHdbdList(newsParams,
......
......@@ -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);
......
......@@ -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){
......
......@@ -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);
}
......
......@@ -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<>();
......
......@@ -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){
......
......@@ -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<>();
......
......@@ -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());
......
......@@ -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);
......
......@@ -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<>();
......
......@@ -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<>();
......
......@@ -74,7 +74,7 @@ public class SysOssController {
/**
* 保存云存储配置信息
*/
@PostMapping("/saveConfig")
@RequestMapping("/saveConfig")
@RequiresPermissions("sys:oss:all")
public R saveConfig(@RequestBody CloudStorageConfig config){
//校验类型
......@@ -100,7 +100,7 @@ public class SysOssController {
/**
* 上传文件
*/
@PostMapping("/upload")
@RequestMapping("/upload")
@RequiresPermissions("sys:oss:all")
public R upload(@RequestParam("file") MultipartFile file) throws Exception {
if (file.isEmpty()) {
......@@ -124,7 +124,7 @@ public class SysOssController {
/**
* 删除
*/
@PostMapping("/delete")
@RequestMapping("/delete")
@RequiresPermissions("sys:oss:all")
public R delete(@RequestBody Long[] ids){
sysOssService.removeByIds(Arrays.asList(ids));
......
......@@ -59,7 +59,7 @@ public class SysConfigController extends AbstractController {
* 保存配置
*/
@SysLog("保存配置")
@PostMapping("/save")
@RequestMapping("/save")
@RequiresPermissions("sys:config:save")
public R save(@RequestBody SysConfigEntity config){
ValidatorUtils.validateEntity(config);
......@@ -73,7 +73,7 @@ public class SysConfigController extends AbstractController {
* 修改配置
*/
@SysLog("修改配置")
@PostMapping("/update")
@RequestMapping("/update")
@RequiresPermissions("sys:config:update")
public R update(@RequestBody SysConfigEntity config){
ValidatorUtils.validateEntity(config);
......@@ -87,7 +87,7 @@ public class SysConfigController extends AbstractController {
* 删除配置
*/
@SysLog("删除配置")
@PostMapping("/delete")
@RequestMapping("/delete")
@RequiresPermissions("sys:config:delete")
public R delete(@RequestBody Long[] ids){
sysConfigService.deleteBatch(ids);
......
......@@ -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
@PostMapping("/sys/login")
@RequestMapping("/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 {
/**
* 退出
*/
@PostMapping("/sys/logout")
@RequestMapping("/sys/logout")
public R logout() {
sysUserTokenService.logout(getUserId());
return R.ok();
......
......@@ -105,7 +105,7 @@ public class SysMenuController extends AbstractController {
* 保存
*/
@SysLog("保存菜单")
@PostMapping("/save")
@RequestMapping("/save")
@RequiresPermissions("sys:menu:save")
public R save(@RequestBody SysMenuEntity menu){
//数据校验
......@@ -120,7 +120,7 @@ public class SysMenuController extends AbstractController {
* 修改
*/
@SysLog("修改菜单")
@PostMapping("/update")
@RequestMapping("/update")
@RequiresPermissions("sys:menu:update")
public R update(@RequestBody SysMenuEntity menu){
//数据校验
......@@ -135,7 +135,7 @@ public class SysMenuController extends AbstractController {
* 删除
*/
@SysLog("删除菜单")
@PostMapping("/delete/{menuId}")
@RequestMapping("/delete/{menuId}")
@RequiresPermissions("sys:menu:delete")
public R delete(@PathVariable("menuId") long menuId){
if(menuId <= 31){
......
......@@ -89,7 +89,7 @@ public class SysRoleController extends AbstractController {
* 保存角色
*/
@SysLog("保存角色")
@PostMapping("/save")
@RequestMapping("/save")
@RequiresPermissions("sys:role:save")
public R save(@RequestBody SysRoleEntity role){
ValidatorUtils.validateEntity(role);
......@@ -104,7 +104,7 @@ public class SysRoleController extends AbstractController {
* 修改角色
*/
@SysLog("修改角色")
@PostMapping("/update")
@RequestMapping("/update")
@RequiresPermissions("sys:role:update")
public R update(@RequestBody SysRoleEntity role){
ValidatorUtils.validateEntity(role);
......@@ -119,7 +119,7 @@ public class SysRoleController extends AbstractController {
* 删除角色
*/
@SysLog("删除角色")
@PostMapping("/delete")
@RequestMapping("/delete")
@RequiresPermissions("sys:role:delete")
public R delete(@RequestBody Long[] roleIds){
sysRoleService.deleteBatch(roleIds);
......
......@@ -70,7 +70,7 @@ public class SysUserController extends AbstractController {
* 修改登录用户密码
*/
@SysLog("修改密码")
@PostMapping("/password")
@RequestMapping("/password")
public R password(@RequestBody PasswordForm form){
Assert.isBlank(form.getNewPassword(), "新密码不为能空");
......@@ -107,7 +107,7 @@ public class SysUserController extends AbstractController {
* 保存用户
*/
@SysLog("保存用户")
@PostMapping("/save")
@RequestMapping("/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("修改用户")
@PostMapping("/update")
@RequestMapping("/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("删除用户")
@PostMapping("/delete")
@RequestMapping("/delete")
@RequiresPermissions("sys:user:delete")
public R delete(@RequestBody Long[] userIds){
if(ArrayUtils.contains(userIds, 1L)){
......
......@@ -70,7 +70,7 @@ logging:
org:
mybatis: debug
dao: debug
token.count: 3
#预览次数控制
token.count: 5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment