update putMapping和DeleteMapping改为PostMapping

This commit is contained in:
lijiarao
2023-08-21 09:45:49 +08:00
parent 13c7e83205
commit 7e08f3df4b
18 changed files with 42 additions and 42 deletions
@@ -97,7 +97,7 @@ public class OnlCgformCollectionController extends JeroController<OnlCgformColle
*/
@AutoLog(value = "我的收藏-通过id删除")
@ApiOperation(value="我的收藏-通过id删除", notes="我的收藏-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
onlCgformCollectionService.deleteById(id);
return Result.OK("删除成功!");
@@ -111,7 +111,7 @@ public class OnlCgformCollectionController extends JeroController<OnlCgformColle
*/
@AutoLog(value = "我的收藏-批量删除")
@ApiOperation(value="我的收藏-批量删除", notes="我的收藏-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.onlCgformCollectionService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -94,7 +94,7 @@ public class PhoneOnlCgformCollectionController extends JeroController<OnlCgform
*/
@AutoLog(value = "我的收藏-通过id删除")
@ApiOperation(value="我的收藏-通过id删除", notes="我的收藏-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
onlCgformCollectionService.deleteById(id);
return Result.OK("删除成功!");
@@ -108,7 +108,7 @@ public class PhoneOnlCgformCollectionController extends JeroController<OnlCgform
*/
@AutoLog(value = "我的收藏-批量删除")
@ApiOperation(value="我的收藏-批量删除", notes="我的收藏-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.onlCgformCollectionService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -135,7 +135,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息表-编辑")
@ApiOperation(value = "文档对比信息表-编辑", notes = "文档对比信息表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
sarFileCompareInfoService.editById(sarFileCompareInfo);
return Result.OK("编辑成功!");
@@ -149,7 +149,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息表-通过id删除")
@ApiOperation(value = "文档对比信息表-通过id删除", notes = "文档对比信息表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sarFileCompareInfoService.deleteById(id);
return Result.OK("删除成功!");
@@ -163,7 +163,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息表-批量删除")
@ApiOperation(value = "文档对比信息表-批量删除", notes = "文档对比信息表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -270,7 +270,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
@AutoLog(value = "文档对比信息表-编辑全文评论")
@ApiOperation(value = "文档对比信息表-编辑全文评论", notes = "文档对比信息表-编辑全文评论")
@PutMapping(value = "/editComments")
@PostMapping(value = "/editComments")
public Result<?> editComments(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
SarFileCompareInfo info = sarFileCompareInfoService.getById(sarFileCompareInfo.getId());
info.setComments(sarFileCompareInfo.getComments());
@@ -107,7 +107,7 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
*/
@AutoLog(value = "文档对比信息条款评论表-编辑")
@ApiOperation(value = "文档对比信息条款评论表-编辑", notes = "文档对比信息条款评论表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileCompareItemComment sarFileCompareItemComment) {
sarFileCompareItemCommentService.editById(sarFileCompareItemComment);
return Result.OK("编辑成功!");
@@ -121,7 +121,7 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
*/
@AutoLog(value = "文档对比信息条款评论表-通过id删除")
@ApiOperation(value = "文档对比信息条款评论表-通过id删除", notes = "文档对比信息条款评论表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sarFileCompareItemCommentService.deleteById(id);
return Result.OK("删除成功!");
@@ -135,7 +135,7 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
*/
@AutoLog(value = "文档对比信息条款评论表-批量删除")
@ApiOperation(value = "文档对比信息条款评论表-批量删除", notes = "文档对比信息条款评论表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sarFileCompareItemCommentService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -94,7 +94,7 @@ public class SarFileCompareItemController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息条款表-编辑")
@ApiOperation(value="文档对比信息条款表-编辑", notes="文档对比信息条款表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileCompareItem sarFileCompareItem) {
sarFileCompareItemService.editById(sarFileCompareItem);
return Result.OK("编辑成功!");
@@ -108,7 +108,7 @@ public class SarFileCompareItemController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息条款表-通过id删除")
@ApiOperation(value="文档对比信息条款表-通过id删除", notes="文档对比信息条款表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
sarFileCompareItemService.deleteById(id);
return Result.OK("删除成功!");
@@ -122,7 +122,7 @@ public class SarFileCompareItemController extends JeroController<SarFileCompareI
*/
@AutoLog(value = "文档对比信息条款表-批量删除")
@ApiOperation(value="文档对比信息条款表-批量删除", notes="文档对比信息条款表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.sarFileCompareItemService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -94,7 +94,7 @@ public class SarFileCompareMenuController extends JeroController<SarFileCompareM
*/
@AutoLog(value = "文档对比信息目录表-编辑")
@ApiOperation(value="文档对比信息目录表-编辑", notes="文档对比信息目录表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileCompareMenu sarFileCompareMenu) {
sarFileCompareMenuService.editById(sarFileCompareMenu);
return Result.OK("编辑成功!");
@@ -108,7 +108,7 @@ public class SarFileCompareMenuController extends JeroController<SarFileCompareM
*/
@AutoLog(value = "文档对比信息目录表-通过id删除")
@ApiOperation(value="文档对比信息目录表-通过id删除", notes="文档对比信息目录表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
sarFileCompareMenuService.deleteById(id);
return Result.OK("删除成功!");
@@ -122,7 +122,7 @@ public class SarFileCompareMenuController extends JeroController<SarFileCompareM
*/
@AutoLog(value = "文档对比信息目录表-批量删除")
@ApiOperation(value="文档对比信息目录表-批量删除", notes="文档对比信息目录表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.sarFileCompareMenuService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -95,7 +95,7 @@ public class SarFileCompareResCommentController extends JeroController<SarFileCo
*/
@AutoLog(value = "文档对比信息结果评论表-编辑")
@ApiOperation(value = "文档对比信息结果评论表-编辑", notes = "文档对比信息结果评论表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileCompareResComment sarFileCompareResComment) {
sarFileCompareResCommentService.editById(sarFileCompareResComment);
return Result.OK("编辑成功!");
@@ -109,7 +109,7 @@ public class SarFileCompareResCommentController extends JeroController<SarFileCo
*/
@AutoLog(value = "文档对比信息结果评论表-通过id删除")
@ApiOperation(value = "文档对比信息结果评论表-通过id删除", notes = "文档对比信息结果评论表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sarFileCompareResCommentService.deleteById(id);
return Result.OK("删除成功!");
@@ -123,7 +123,7 @@ public class SarFileCompareResCommentController extends JeroController<SarFileCo
*/
@AutoLog(value = "文档对比信息结果评论表-批量删除")
@ApiOperation(value = "文档对比信息结果评论表-批量删除", notes = "文档对比信息结果评论表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sarFileCompareResCommentService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -96,7 +96,7 @@ public class PhasedImplementationDetailsEOController extends JeroController<Phas
*/
@AutoLog(value = "文档库-分阶段实施详情表-编辑")
@ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
return Result.OK("编辑成功!");
@@ -110,7 +110,7 @@ public class PhasedImplementationDetailsEOController extends JeroController<Phas
*/
@AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
@ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
phasedImplementationDetailsEOService.deleteById(id);
return Result.OK("删除成功!");
@@ -124,7 +124,7 @@ public class PhasedImplementationDetailsEOController extends JeroController<Phas
*/
@AutoLog(value = "文档库-分阶段实施详情表-批量删除")
@ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -96,7 +96,7 @@ public class PhonePhasedImplementationDetailsEOController extends JeroController
*/
@AutoLog(value = "文档库-分阶段实施详情表-编辑")
@ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
return Result.OK("编辑成功!");
@@ -110,7 +110,7 @@ public class PhonePhasedImplementationDetailsEOController extends JeroController
*/
@AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
@ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
phasedImplementationDetailsEOService.deleteById(id);
return Result.OK("删除成功!");
@@ -124,7 +124,7 @@ public class PhonePhasedImplementationDetailsEOController extends JeroController
*/
@AutoLog(value = "文档库-分阶段实施详情表-批量删除")
@ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -155,7 +155,7 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
*/
@AutoLog(value = "对外报告数据表-编辑")
@ApiOperation(value = "对外报告数据表-编辑", notes = "对外报告数据表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody ExtRepoData extRepoData, HttpSession session) {
Result<ExtRepoData> result = new Result();
ExtRepoData erd = extRepoDataService.queryById(extRepoData.getId());
@@ -189,7 +189,7 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
*/
@AutoLog(value = "对外报告数据表-通过id删除")
@ApiOperation(value = "对外报告数据表-通过id删除", notes = "对外报告数据表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam("id") String id,
@RequestParam(name = "cut", defaultValue = "cn") String cut, HttpSession session) {
Result<ExtRepoData> result = new Result();
@@ -233,7 +233,7 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
*/
@AutoLog(value = "对外报告数据表-批量删除")
@ApiOperation(value = "对外报告数据表-批量删除", notes = "对外报告数据表-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam("ids") String ids,
@RequestParam(name = "cut", defaultValue = "cn") String cut) {
Result<ExtRepoData> result = new Result();
@@ -142,7 +142,7 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
*/
@AutoLog(value = "对外报告文件夹表-编辑")
@ApiOperation(value = "对外报告文件夹表-编辑", notes = "对外报告文件夹表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody ExtRepoFolder extRepoFolder, HttpSession session) {
Result<ExtRepoFolder> result = new Result();
session.setAttribute("haveSuperiorManageAuth", false);
@@ -172,7 +172,7 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
*/
@AutoLog(value = "对外报告文件夹表-通过id删除")
@ApiOperation(value = "对外报告文件夹表-通过id删除", notes = "对外报告文件夹表-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id,
@RequestParam(name = "cut", defaultValue = "cn") String cut, HttpSession session) {
Result<ExtRepoFolder> result = new Result();
@@ -109,7 +109,7 @@ public class HomeDocumentDynamicEOController extends JeroController<HomeDocument
*/
@AutoLog(value = "文档动态-编辑")
@ApiOperation(value="文档动态-编辑", notes="文档动态-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody HomeDocumentDynamicEO homeDocumentDynamicEO) {
homeDocumentDynamicEOService.editById(homeDocumentDynamicEO);
return Result.OK("编辑成功!");
@@ -123,7 +123,7 @@ public class HomeDocumentDynamicEOController extends JeroController<HomeDocument
*/
@AutoLog(value = "文档动态-通过id删除")
@ApiOperation(value="文档动态-通过id删除", notes="文档动态-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
homeDocumentDynamicEOService.deleteById(id);
return Result.OK("删除成功!");
@@ -95,7 +95,7 @@ public class HomeFunctionModuleEOController extends JeroController<HomeFunctionM
*/
@AutoLog(value = "功能模块-编辑")
@ApiOperation(value="功能模块-编辑", notes="功能模块-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody HomeFunctionModuleEO homeFunctionModuleEO) {
homeFunctionModuleEOService.editById(homeFunctionModuleEO);
return Result.OK("编辑成功!");
@@ -109,7 +109,7 @@ public class HomeFunctionModuleEOController extends JeroController<HomeFunctionM
*/
@AutoLog(value = "功能模块-通过id删除")
@ApiOperation(value="功能模块-通过id删除", notes="功能模块-通过id删除")
@DeleteMapping(value = "/delete")
@PostMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
homeFunctionModuleEOService.deleteById(id);
return Result.OK("删除成功!");
@@ -123,7 +123,7 @@ public class HomeFunctionModuleEOController extends JeroController<HomeFunctionM
*/
@AutoLog(value = "功能模块-批量删除")
@ApiOperation(value="功能模块-批量删除", notes="功能模块-批量删除")
@DeleteMapping(value = "/deleteBatch")
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.homeFunctionModuleEOService.deleteByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
@@ -137,7 +137,7 @@ public class SarFileSplitInfoController extends JeroController<SarFileSplitInfoE
*/
@AutoLog(value = "文档拆分表-编辑")
@ApiOperation(value="文档拆分表-编辑", notes="文档拆分表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
public Result<?> edit(@Validated @RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) {
sarFileSplitInfoService.editById(sarFileSplitInfoEO);
return Result.OK("编辑成功!");
@@ -96,7 +96,7 @@ public class SarFileSplitItemsValEOController extends JeroController<SarFileSpli
// }
//
// @ApiOperation(value = "|SarFileSplitItemsValEO|修改")
// @PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
// @PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
// @RequiresPermissions("lawss:sarFileSplitItemsVal:update")
// public Result<SarFileSplitItemsValEO> update(@RequestBody SarFileSplitItemsValEO sarFileSplitItemsValEO) throws Exception {
// sarFileSplitItemsValEOService.updateByPrimaryKeySelective(sarFileSplitItemsValEO);
@@ -104,7 +104,7 @@ public class SarFileSplitItemsValEOController extends JeroController<SarFileSpli
// }
//
// @ApiOperation(value = "|SarFileSplitItemsValEO|删除")
// @DeleteMapping("/{id}")
// @PostMapping("/{id}")
// @RequiresPermissions("lawss:sarFileSplitItemsVal:delete")
// public Result delete(@PathVariable String id) throws Exception {
// sarFileSplitItemsValEOService.deleteByPrimaryKey(id);
@@ -63,7 +63,7 @@ public class SarFileSplitMenuEOController extends JeroController<SarFileSplitMen
}
@ApiOperation(value = "文档拆分条款目录-修改Y")
@PutMapping("/updateMenu")
@PostMapping("/updateMenu")
@RequiresPermissions("split:sarFileSplitMenu:update")
public Result<SarFileSplitMenuEO> update(@RequestBody SarFileSplitMenuEO sarFileSplitMenuEO) throws Exception {
sarFileSplitMenuEOService.updateByPrimaryKeySelective(sarFileSplitMenuEO);
@@ -117,7 +117,7 @@ public class LawsAreaController extends JeroController<LawsArea, ILawsAreaServic
*/
@AutoLog(value = "区域管理表-编辑")
@ApiOperation(value="区域管理表-编辑", notes="区域管理表-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
@RequiresPermissions("area:edit")
public Result<?> edit(@Validated @RequestBody LawsArea lawsArea) {
// TODO 编辑的时候不考虑ID?不试试现在还能编辑成功?
@@ -147,7 +147,7 @@ public class LawsTagController extends JeroController<LawsTag, ILawsTagService>
*/
@AutoLog(value = "标签管理-编辑")
@ApiOperation(value="标签管理-编辑", notes="标签管理-编辑")
@PutMapping(value = "/edit")
@PostMapping(value = "/edit")
@RequiresPermissions("tag:edit")
public Result<?> edit(@Validated @RequestBody LawsTag lawsTag) {
if (FixedFieldEnum.FIXED_FIELD_ENUM.getValue().equals(lawsTag.getIsReadOnly()) || FixedFieldEnum.CONFIGURABLE_FIELD.getValue().equals(lawsTag.getIsReadOnly())) {