更改delete和put

wushunjie
杜函宇 10 months ago
parent ac4506e166
commit a86b98161a

@ -80,7 +80,7 @@ public class BmsApprovalInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:approvalInfo:edit") // @RequiresPermissions("system:approvalInfo:edit")
@Log(title = "审批记录信息", businessType = BusinessType.UPDATE) @Log(title = "审批记录信息", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsApprovalInfo bmsApprovalInfo) { public AjaxResult edit(@RequestBody BmsApprovalInfo bmsApprovalInfo) {
return toAjax(bmsApprovalInfoService.updateBmsApprovalInfo(bmsApprovalInfo)); return toAjax(bmsApprovalInfoService.updateBmsApprovalInfo(bmsApprovalInfo));
} }
@ -90,7 +90,7 @@ public class BmsApprovalInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:approvalInfo:remove") // @RequiresPermissions("system:approvalInfo:remove")
@Log(title = "审批记录信息", businessType = BusinessType.DELETE) @Log(title = "审批记录信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsApprovalInfoService.deleteBmsApprovalInfoByIds(ids)); return toAjax(bmsApprovalInfoService.deleteBmsApprovalInfoByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsBigStrongAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:bigStrongAward:edit") // @RequiresPermissions("system:bigStrongAward:edit")
@Log(title = "做大做强奖详情", businessType = BusinessType.UPDATE) @Log(title = "做大做强奖详情", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsBigStrongAwardUpdateDto bmsBigStrongAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsBigStrongAwardUpdateDto bmsBigStrongAwardUpdateDto) {
return toAjax(bmsBigStrongAwardService.updateBmsBigStrongAward(bmsBigStrongAwardUpdateDto)); return toAjax(bmsBigStrongAwardService.updateBmsBigStrongAward(bmsBigStrongAwardUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsBigStrongAwardController extends BaseController {
@ApiOperation(value = "修改做大做强奖(只做修改,不做逻辑)") @ApiOperation(value = "修改做大做强奖(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改做大做强奖(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改做大做强奖(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsBigStrongAward bmsBigStrongAward) { public AjaxResult update(@RequestBody BmsBigStrongAward bmsBigStrongAward) {
bmsBigStrongAwardService.updateById(bmsBigStrongAward); bmsBigStrongAwardService.updateById(bmsBigStrongAward);
JProject jps = new JProject(); JProject jps = new JProject();
@ -118,7 +118,7 @@ public class BmsBigStrongAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:bigStrongAward:remove") // @RequiresPermissions("system:bigStrongAward:remove")
@Log(title = "做大做强奖详情", businessType = BusinessType.DELETE) @Log(title = "做大做强奖详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsBigStrongAwardService.deleteBmsBigStrongAwardByIds(ids)); return toAjax(bmsBigStrongAwardService.deleteBmsBigStrongAwardByIds(ids));
} }

@ -83,7 +83,7 @@ public class BmsBrandingAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:brandingAward:edit") // @RequiresPermissions("system:brandingAward:edit")
@Log(title = "品牌打造奖补", businessType = BusinessType.UPDATE) @Log(title = "品牌打造奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsBrandingAwardUpdateDto bmsBrandingAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsBrandingAwardUpdateDto bmsBrandingAwardUpdateDto) {
return toAjax(bmsBrandingAwardService.updateBmsBrandingAward(bmsBrandingAwardUpdateDto)); return toAjax(bmsBrandingAwardService.updateBmsBrandingAward(bmsBrandingAwardUpdateDto));
} }
@ -94,7 +94,7 @@ public class BmsBrandingAwardController extends BaseController {
@ApiOperation(value = "修改品牌打造奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改品牌打造奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改品牌打造奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改品牌打造奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsBrandingAward bmsBrandingAward) { public AjaxResult update(@RequestBody BmsBrandingAward bmsBrandingAward) {
bmsBrandingAwardService.updateById(bmsBrandingAward); bmsBrandingAwardService.updateById(bmsBrandingAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -111,7 +111,7 @@ public class BmsBrandingAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:brandingAward:remove") // @RequiresPermissions("system:brandingAward:remove")
@Log(title = "品牌打造奖补", businessType = BusinessType.DELETE) @Log(title = "品牌打造奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsBrandingAwardService.deleteBmsBrandingAwardByIds(ids)); return toAjax(bmsBrandingAwardService.deleteBmsBrandingAwardByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsCarrierConstructionAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:carrierConstructionAward:edit") // @RequiresPermissions("system:carrierConstructionAward:edit")
@Log(title = "载体建设奖补", businessType = BusinessType.UPDATE) @Log(title = "载体建设奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsCarrierConstructionAwardUpdateDto bmsCarrierConstructionAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsCarrierConstructionAwardUpdateDto bmsCarrierConstructionAwardUpdateDto) {
return toAjax(bmsCarrierConstructionAwardService.updateBmsCarrierConstructionAward(bmsCarrierConstructionAwardUpdateDto)); return toAjax(bmsCarrierConstructionAwardService.updateBmsCarrierConstructionAward(bmsCarrierConstructionAwardUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsCarrierConstructionAwardController extends BaseController {
@ApiOperation(value = "修改载体建设奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改载体建设奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改载体建设奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改载体建设奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsCarrierConstructionAward bmsCarrierConstructionAward) { public AjaxResult update(@RequestBody BmsCarrierConstructionAward bmsCarrierConstructionAward) {
bmsCarrierConstructionAwardService.updateById(bmsCarrierConstructionAward); bmsCarrierConstructionAwardService.updateById(bmsCarrierConstructionAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -119,7 +119,7 @@ public class BmsCarrierConstructionAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:carrierConstructionAward:remove") // @RequiresPermissions("system:carrierConstructionAward:remove")
@Log(title = "载体建设奖补", businessType = BusinessType.DELETE) @Log(title = "载体建设奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsCarrierConstructionAwardService.deleteBmsCarrierConstructionAwardByIds(ids)); return toAjax(bmsCarrierConstructionAwardService.deleteBmsCarrierConstructionAwardByIds(ids));
} }

@ -93,7 +93,7 @@ public class BmsCreditManagementController extends BaseController {
*/ */
// @RequiresPermissions("system:creditManagement:edit") // @RequiresPermissions("system:creditManagement:edit")
@Log(title = "信用管理奖补", businessType = BusinessType.UPDATE) @Log(title = "信用管理奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsCreditManagementUpdateDto bmsCreditManagementUpdateDto) { public AjaxResult edit(@RequestBody BmsCreditManagementUpdateDto bmsCreditManagementUpdateDto) {
return toAjax(bmsCreditManagementService.updateBmsCreditManagement(bmsCreditManagementUpdateDto)); return toAjax(bmsCreditManagementService.updateBmsCreditManagement(bmsCreditManagementUpdateDto));
} }
@ -104,7 +104,7 @@ public class BmsCreditManagementController extends BaseController {
@ApiOperation(value = "修改信用管理奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改信用管理奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改信用管理奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改信用管理奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsCreditManagement bmsCreditManagement) { public AjaxResult update(@RequestBody BmsCreditManagement bmsCreditManagement) {
bmsCreditManagementService.updateById(bmsCreditManagement); bmsCreditManagementService.updateById(bmsCreditManagement);
JProject jp = new JProject(); JProject jp = new JProject();
@ -122,7 +122,7 @@ public class BmsCreditManagementController extends BaseController {
*/ */
// @RequiresPermissions("system:creditManagement:remove") // @RequiresPermissions("system:creditManagement:remove")
@Log(title = "信用管理奖补", businessType = BusinessType.DELETE) @Log(title = "信用管理奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsCreditManagementService.deleteBmsCreditManagementByIds(ids)); return toAjax(bmsCreditManagementService.deleteBmsCreditManagementByIds(ids));
} }

@ -82,7 +82,7 @@ public class BmsDeclarationRecordsController extends BaseController {
@ApiOperation(value = "审批记录信息") @ApiOperation(value = "审批记录信息")
@PreAuthorize("@ss.hasAnyRoles('admin,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,gov')")
@Log(title = "审批记录信息", businessType = BusinessType.UPDATE) @Log(title = "审批记录信息", businessType = BusinessType.UPDATE)
@PutMapping("/approvalEdit") @PostMapping("/approvalEdit")
public AjaxResult approvalEdit(@RequestBody BmsApprovalInfoUpdateDto bmsApprovalInfoUpdateDto) { public AjaxResult approvalEdit(@RequestBody BmsApprovalInfoUpdateDto bmsApprovalInfoUpdateDto) {
return toAjax(bmsDeclarationRecordsService.updateApprovalInfo(bmsApprovalInfoUpdateDto)); return toAjax(bmsDeclarationRecordsService.updateApprovalInfo(bmsApprovalInfoUpdateDto));
} }
@ -212,20 +212,20 @@ public class BmsDeclarationRecordsController extends BaseController {
*/ */
// @RequiresPermissions("system:declarationRecords:edit") // @RequiresPermissions("system:declarationRecords:edit")
@Log(title = "在线申报记录", businessType = BusinessType.UPDATE) @Log(title = "在线申报记录", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsDeclarationRecords bmsDeclarationRecords) { public AjaxResult edit(@RequestBody BmsDeclarationRecords bmsDeclarationRecords) {
return toAjax(bmsDeclarationRecordsService.updateBmsDeclarationRecords(bmsDeclarationRecords)); return toAjax(bmsDeclarationRecordsService.updateBmsDeclarationRecords(bmsDeclarationRecords));
} }
// @Log(title = "市级评定结果确认-old", businessType = BusinessType.UPDATE) // @Log(title = "市级评定结果确认-old", businessType = BusinessType.UPDATE)
// @PutMapping("/municipalReview") // @PostMapping("/municipalReview")
// @Deprecated // @Deprecated
// public AjaxResult municipalReview(@RequestBody MunicipalReviewDto municipalReviewDto) { // public AjaxResult municipalReview(@RequestBody MunicipalReviewDto municipalReviewDto) {
// return success("市级评定结果确认成功" + bmsDeclarationRecordsService.municipalReview(municipalReviewDto) + "条数据"); // return success("市级评定结果确认成功" + bmsDeclarationRecordsService.municipalReview(municipalReviewDto) + "条数据");
// } // }
// @Log(title = "市级评定结果确认-new", businessType = BusinessType.UPDATE) // @Log(title = "市级评定结果确认-new", businessType = BusinessType.UPDATE)
// @PutMapping("/municipalReviewNew") // @PostMapping("/municipalReviewNew")
// public AjaxResult municipalReviewNew(@RequestBody MunicipalReviewDto municipalReviewDto) { // public AjaxResult municipalReviewNew(@RequestBody MunicipalReviewDto municipalReviewDto) {
// return success("市级评定结果确认成功" + bmsDeclarationRecordsService.municipalReviewNew(municipalReviewDto) + "条数据"); // return success("市级评定结果确认成功" + bmsDeclarationRecordsService.municipalReviewNew(municipalReviewDto) + "条数据");
// } // }
@ -236,7 +236,7 @@ public class BmsDeclarationRecordsController extends BaseController {
*/ */
// @RequiresPermissions("system:declarationRecords:remove") // @RequiresPermissions("system:declarationRecords:remove")
@Log(title = "在线申报记录", businessType = BusinessType.DELETE) @Log(title = "在线申报记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsDeclarationRecordsService.deleteBmsDeclarationRecordsByIds(ids)); return toAjax(bmsDeclarationRecordsService.deleteBmsDeclarationRecordsByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsEnterpriseDirectoryController extends BaseController {
*/ */
// @RequiresPermissions("system:enterpriseDirectory:edit") // @RequiresPermissions("system:enterpriseDirectory:edit")
@Log(title = "企业名录", businessType = BusinessType.UPDATE) @Log(title = "企业名录", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsEnterpriseDirectory bmsEnterpriseDirectory) { public AjaxResult edit(@RequestBody BmsEnterpriseDirectory bmsEnterpriseDirectory) {
return toAjax(bmsEnterpriseDirectoryService.updateBmsEnterpriseDirectory(bmsEnterpriseDirectory)); return toAjax(bmsEnterpriseDirectoryService.updateBmsEnterpriseDirectory(bmsEnterpriseDirectory));
} }
@ -90,7 +90,7 @@ public class BmsEnterpriseDirectoryController extends BaseController {
*/ */
// @RequiresPermissions("system:enterpriseDirectory:remove") // @RequiresPermissions("system:enterpriseDirectory:remove")
@Log(title = "企业名录", businessType = BusinessType.DELETE) @Log(title = "企业名录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsEnterpriseDirectoryService.deleteBmsEnterpriseDirectoryByIds(ids)); return toAjax(bmsEnterpriseDirectoryService.deleteBmsEnterpriseDirectoryByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsFieldInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fieldInfo:edit") // @RequiresPermissions("system:fieldInfo:edit")
@Log(title = "模板字段填写详情", businessType = BusinessType.UPDATE) @Log(title = "模板字段填写详情", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsFieldInfo bmsFieldInfo) { public AjaxResult edit(@RequestBody BmsFieldInfo bmsFieldInfo) {
return toAjax(bmsFieldInfoService.updateBmsFieldInfo(bmsFieldInfo)); return toAjax(bmsFieldInfoService.updateBmsFieldInfo(bmsFieldInfo));
} }
@ -90,7 +90,7 @@ public class BmsFieldInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fieldInfo:remove") // @RequiresPermissions("system:fieldInfo:remove")
@Log(title = "模板字段填写详情", businessType = BusinessType.DELETE) @Log(title = "模板字段填写详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsFieldInfoService.deleteBmsFieldInfoByIds(ids)); return toAjax(bmsFieldInfoService.deleteBmsFieldInfoByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsFileInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fileInfo:edit") // @RequiresPermissions("system:fileInfo:edit")
@Log(title = "文件存储说明详情", businessType = BusinessType.UPDATE) @Log(title = "文件存储说明详情", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsFileInfo bmsFileInfo) { public AjaxResult edit(@RequestBody BmsFileInfo bmsFileInfo) {
return toAjax(bmsFileInfoService.updateBmsFileInfo(bmsFileInfo)); return toAjax(bmsFileInfoService.updateBmsFileInfo(bmsFileInfo));
} }
@ -90,7 +90,7 @@ public class BmsFileInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fileInfo:remove") // @RequiresPermissions("system:fileInfo:remove")
@Log(title = "文件存储说明详情", businessType = BusinessType.DELETE) @Log(title = "文件存储说明详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsFileInfoService.deleteBmsFileInfoByIds(ids)); return toAjax(bmsFileInfoService.deleteBmsFileInfoByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsFundingDetailController extends BaseController {
*/ */
// @RequiresPermissions("system:fundingDetail:edit") // @RequiresPermissions("system:fundingDetail:edit")
@Log(title = "资金信息详情", businessType = BusinessType.UPDATE) @Log(title = "资金信息详情", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsFundingDetail bmsFundingDetail) { public AjaxResult edit(@RequestBody BmsFundingDetail bmsFundingDetail) {
return toAjax(bmsFundingDetailService.updateBmsFundingDetail(bmsFundingDetail)); return toAjax(bmsFundingDetailService.updateBmsFundingDetail(bmsFundingDetail));
} }
@ -90,7 +90,7 @@ public class BmsFundingDetailController extends BaseController {
*/ */
// @RequiresPermissions("system:fundingDetail:remove") // @RequiresPermissions("system:fundingDetail:remove")
@Log(title = "资金信息详情", businessType = BusinessType.DELETE) @Log(title = "资金信息详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsFundingDetailService.deleteBmsFundingDetailByIds(ids)); return toAjax(bmsFundingDetailService.deleteBmsFundingDetailByIds(ids));
} }

@ -90,7 +90,7 @@ public class BmsIndustrialInternetAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "5G+工业互联网奖补", businessType = BusinessType.UPDATE) @Log(title = "5G+工业互联网奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsIndustrialInternetAwardUpdateDto bmsIndustrialInternetAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsIndustrialInternetAwardUpdateDto bmsIndustrialInternetAwardUpdateDto) {
return toAjax(bmsIndustrialInternetAwardService.updateBmsIndustrialInternetAward(bmsIndustrialInternetAwardUpdateDto)); return toAjax(bmsIndustrialInternetAwardService.updateBmsIndustrialInternetAward(bmsIndustrialInternetAwardUpdateDto));
} }
@ -101,7 +101,7 @@ public class BmsIndustrialInternetAwardController extends BaseController {
@ApiOperation(value = "修改5G+工业互联网奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改5G+工业互联网奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改5G+工业互联网奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改5G+工业互联网奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsIndustrialInternetAward bmsIndustrialInternetAward) { public AjaxResult update(@RequestBody BmsIndustrialInternetAward bmsIndustrialInternetAward) {
bmsIndustrialInternetAwardService.updateById(bmsIndustrialInternetAward); bmsIndustrialInternetAwardService.updateById(bmsIndustrialInternetAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -117,7 +117,7 @@ public class BmsIndustrialInternetAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:industrialInternetAward:remove") // @RequiresPermissions("system:industrialInternetAward:remove")
@Log(title = "5G+工业互联网奖补", businessType = BusinessType.DELETE) @Log(title = "5G+工业互联网奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsIndustrialInternetAwardService.deleteBmsIndustrialInternetAwardByIds(ids)); return toAjax(bmsIndustrialInternetAwardService.deleteBmsIndustrialInternetAwardByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsIntegrationIndustriesController extends BaseController {
*/ */
// @RequiresPermissions("system:integrationIndustries:edit") // @RequiresPermissions("system:integrationIndustries:edit")
@Log(title = "两业融合奖补", businessType = BusinessType.UPDATE) @Log(title = "两业融合奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsIntegrationIndustriesUpdateDto bmsIntegrationIndustriesUpdateDto) { public AjaxResult edit(@RequestBody BmsIntegrationIndustriesUpdateDto bmsIntegrationIndustriesUpdateDto) {
return toAjax(bmsIntegrationIndustriesService.updateBmsIntegrationIndustries(bmsIntegrationIndustriesUpdateDto)); return toAjax(bmsIntegrationIndustriesService.updateBmsIntegrationIndustries(bmsIntegrationIndustriesUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsIntegrationIndustriesController extends BaseController {
@ApiOperation(value = "修改两业融合奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改两业融合奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改两业融合奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改两业融合奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsIntegrationIndustries bmsIntegrationIndustries) { public AjaxResult update(@RequestBody BmsIntegrationIndustries bmsIntegrationIndustries) {
bmsIntegrationIndustriesService.updateById(bmsIntegrationIndustries); bmsIntegrationIndustriesService.updateById(bmsIntegrationIndustries);
JProject jp = new JProject(); JProject jp = new JProject();
@ -126,7 +126,7 @@ public class BmsIntegrationIndustriesController extends BaseController {
*/ */
// @RequiresPermissions("system:integrationIndustries:remove") // @RequiresPermissions("system:integrationIndustries:remove")
@Log(title = "两业融合奖补", businessType = BusinessType.DELETE) @Log(title = "两业融合奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsIntegrationIndustriesService.deleteBmsIntegrationIndustriesByIds(ids)); return toAjax(bmsIntegrationIndustriesService.deleteBmsIntegrationIndustriesByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsLogisticsDevelopmentAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:logisticsDevelopmentAward:edit") // @RequiresPermissions("system:logisticsDevelopmentAward:edit")
@Log(title = "物流发展奖补", businessType = BusinessType.UPDATE) @Log(title = "物流发展奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsLogisticsDevelopmentAwardUpdateDto bmsLogisticsDevelopmentAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsLogisticsDevelopmentAwardUpdateDto bmsLogisticsDevelopmentAwardUpdateDto) {
return toAjax(bmsLogisticsDevelopmentAwardService.updateBmsLogisticsDevelopmentAward(bmsLogisticsDevelopmentAwardUpdateDto)); return toAjax(bmsLogisticsDevelopmentAwardService.updateBmsLogisticsDevelopmentAward(bmsLogisticsDevelopmentAwardUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsLogisticsDevelopmentAwardController extends BaseController {
@ApiOperation(value = "修改物流发展奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改物流发展奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改物流发展奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改物流发展奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsLogisticsDevelopmentAward bmsLogisticsDevelopmentAward) public AjaxResult update(@RequestBody BmsLogisticsDevelopmentAward bmsLogisticsDevelopmentAward)
{ {
bmsLogisticsDevelopmentAwardService.updateById(bmsLogisticsDevelopmentAward); bmsLogisticsDevelopmentAwardService.updateById(bmsLogisticsDevelopmentAward);
@ -121,7 +121,7 @@ public class BmsLogisticsDevelopmentAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:logisticsDevelopmentAward:remove") // @RequiresPermissions("system:logisticsDevelopmentAward:remove")
@Log(title = "物流发展奖补", businessType = BusinessType.DELETE) @Log(title = "物流发展奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsLogisticsDevelopmentAwardService.deleteBmsLogisticsDevelopmentAwardByIds(ids)); return toAjax(bmsLogisticsDevelopmentAwardService.deleteBmsLogisticsDevelopmentAwardByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsManufacturingServicesAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:manufacturingServicesAward:edit") // @RequiresPermissions("system:manufacturingServicesAward:edit")
@Log(title = "制造服务业有效投入奖补", businessType = BusinessType.UPDATE) @Log(title = "制造服务业有效投入奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsManufacturingServicesAwardUpdateDto bmsManufacturingServicesAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsManufacturingServicesAwardUpdateDto bmsManufacturingServicesAwardUpdateDto) {
return toAjax(bmsManufacturingServicesAwardService.updateBmsManufacturingServicesAward(bmsManufacturingServicesAwardUpdateDto)); return toAjax(bmsManufacturingServicesAwardService.updateBmsManufacturingServicesAward(bmsManufacturingServicesAwardUpdateDto));
} }
@ -101,7 +101,7 @@ public class BmsManufacturingServicesAwardController extends BaseController {
@ApiOperation(value = "修改制造服务业有效投入奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改制造服务业有效投入奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改制造服务业有效投入奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改制造服务业有效投入奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsManufacturingServicesAward bmsManufacturingServicesAward) { public AjaxResult update(@RequestBody BmsManufacturingServicesAward bmsManufacturingServicesAward) {
bmsManufacturingServicesAwardService.updateById(bmsManufacturingServicesAward); bmsManufacturingServicesAwardService.updateById(bmsManufacturingServicesAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -119,7 +119,7 @@ public class BmsManufacturingServicesAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:manufacturingServicesAward:remove") // @RequiresPermissions("system:manufacturingServicesAward:remove")
@Log(title = "制造服务业有效投入奖补", businessType = BusinessType.DELETE) @Log(title = "制造服务业有效投入奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsManufacturingServicesAwardService.deleteBmsManufacturingServicesAwardByIds(ids)); return toAjax(bmsManufacturingServicesAwardService.deleteBmsManufacturingServicesAwardByIds(ids));
} }

@ -89,7 +89,7 @@ public class BmsOutQuitProductsController extends BaseController {
*/ */
@ApiOperation(value = "修改") @ApiOperation(value = "修改")
@Log(title = "修改2024年度淘汰落后和退出低端低效产能装备清单", businessType = BusinessType.UPDATE) @Log(title = "修改2024年度淘汰落后和退出低端低效产能装备清单", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsOutQuitProductsUpdateDto bmsOutQuitProductsUpdateDto) { public AjaxResult edit(@RequestBody BmsOutQuitProductsUpdateDto bmsOutQuitProductsUpdateDto) {
return toAjax(bmsOutQuitProductsService.updateBmsOutQuitProducts(bmsOutQuitProductsUpdateDto)); return toAjax(bmsOutQuitProductsService.updateBmsOutQuitProducts(bmsOutQuitProductsUpdateDto));
} }
@ -99,7 +99,7 @@ public class BmsOutQuitProductsController extends BaseController {
*/ */
@ApiOperation(value = "只做修改,不做逻辑") @ApiOperation(value = "只做修改,不做逻辑")
@Log(title = "修改2024年度淘汰落后和退出低端低效产能装备清单只做修改不做逻辑", businessType = BusinessType.UPDATE) @Log(title = "修改2024年度淘汰落后和退出低端低效产能装备清单只做修改不做逻辑", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsOutQuitProducts bmsOutQuitProducts) { public AjaxResult update(@RequestBody BmsOutQuitProducts bmsOutQuitProducts) {
bmsOutQuitProductsService.updateById(bmsOutQuitProducts); bmsOutQuitProductsService.updateById(bmsOutQuitProducts);
JProject jps = new JProject(); JProject jps = new JProject();
@ -116,7 +116,7 @@ public class BmsOutQuitProductsController extends BaseController {
*/ */
@ApiOperation(value = "删除2024年度淘汰落后和退出低端低效产能装备清单") @ApiOperation(value = "删除2024年度淘汰落后和退出低端低效产能装备清单")
@Log(title = "删除2024年度淘汰落后和退出低端低效产能装备清单详情", businessType = BusinessType.DELETE) @Log(title = "删除2024年度淘汰落后和退出低端低效产能装备清单详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsOutQuitProductsService.deleteBmsOutQuitProductsByIds(ids)); return toAjax(bmsOutQuitProductsService.deleteBmsOutQuitProductsByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsPlatformConstructionAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:platformConstructionAward:edit") // @RequiresPermissions("system:platformConstructionAward:edit")
@Log(title = "平台建设奖补", businessType = BusinessType.UPDATE) @Log(title = "平台建设奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsPlatformConstructionAwardUpdateDto bmsPlatformConstructionAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsPlatformConstructionAwardUpdateDto bmsPlatformConstructionAwardUpdateDto) {
return toAjax(bmsPlatformConstructionAwardService.updateBmsPlatformConstructionAward(bmsPlatformConstructionAwardUpdateDto)); return toAjax(bmsPlatformConstructionAwardService.updateBmsPlatformConstructionAward(bmsPlatformConstructionAwardUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsPlatformConstructionAwardController extends BaseController {
@ApiOperation(value = "修改平台建设奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改平台建设奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改平台建设奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改平台建设奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsPlatformConstructionAward bmsPlatformConstructionAward) { public AjaxResult update(@RequestBody BmsPlatformConstructionAward bmsPlatformConstructionAward) {
bmsPlatformConstructionAwardService.updateById(bmsPlatformConstructionAward); bmsPlatformConstructionAwardService.updateById(bmsPlatformConstructionAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -118,7 +118,7 @@ public class BmsPlatformConstructionAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:platformConstructionAward:remove") // @RequiresPermissions("system:platformConstructionAward:remove")
@Log(title = "平台建设奖补", businessType = BusinessType.DELETE) @Log(title = "平台建设奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsPlatformConstructionAwardService.deleteBmsPlatformConstructionAwardByIds(ids)); return toAjax(bmsPlatformConstructionAwardService.deleteBmsPlatformConstructionAwardByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsProcessInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:processInfo:edit") // @RequiresPermissions("system:processInfo:edit")
@Log(title = "审批流程", businessType = BusinessType.UPDATE) @Log(title = "审批流程", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsProcessInfo bmsProcessInfo) { public AjaxResult edit(@RequestBody BmsProcessInfo bmsProcessInfo) {
return toAjax(bmsProcessInfoService.updateBmsProcessInfo(bmsProcessInfo)); return toAjax(bmsProcessInfoService.updateBmsProcessInfo(bmsProcessInfo));
} }
@ -90,7 +90,7 @@ public class BmsProcessInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:processInfo:remove") // @RequiresPermissions("system:processInfo:remove")
@Log(title = "审批流程", businessType = BusinessType.DELETE) @Log(title = "审批流程", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsProcessInfoService.deleteBmsProcessInfoByIds(ids)); return toAjax(bmsProcessInfoService.deleteBmsProcessInfoByIds(ids));
} }

@ -80,7 +80,7 @@ public class BmsProjectInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:projectInfo:edit") // @RequiresPermissions("system:projectInfo:edit")
@Log(title = "项目基本信息", businessType = BusinessType.UPDATE) @Log(title = "项目基本信息", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsProjectInfo bmsProjectInfo) { public AjaxResult edit(@RequestBody BmsProjectInfo bmsProjectInfo) {
return toAjax(bmsProjectInfoService.updateBmsProjectInfo(bmsProjectInfo)); return toAjax(bmsProjectInfoService.updateBmsProjectInfo(bmsProjectInfo));
} }
@ -90,7 +90,7 @@ public class BmsProjectInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:projectInfo:remove") // @RequiresPermissions("system:projectInfo:remove")
@Log(title = "项目基本信息", businessType = BusinessType.DELETE) @Log(title = "项目基本信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsProjectInfoService.deleteBmsProjectInfoByIds(ids)); return toAjax(bmsProjectInfoService.deleteBmsProjectInfoByIds(ids));
} }

@ -91,7 +91,7 @@ public class BmsProjectSettlementAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:projectSettlementAward:edit") // @RequiresPermissions("system:projectSettlementAward:edit")
@Log(title = "项目落户奖补", businessType = BusinessType.UPDATE) @Log(title = "项目落户奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsProjectSettlementAwardUpdateDto bmsProjectSettlementAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsProjectSettlementAwardUpdateDto bmsProjectSettlementAwardUpdateDto) {
return toAjax(bmsProjectSettlementAwardService.updateBmsProjectSettlementAward(bmsProjectSettlementAwardUpdateDto)); return toAjax(bmsProjectSettlementAwardService.updateBmsProjectSettlementAward(bmsProjectSettlementAwardUpdateDto));
} }
@ -102,7 +102,7 @@ public class BmsProjectSettlementAwardController extends BaseController {
@ApiOperation(value = "修改项目落户奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改项目落户奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改项目落户奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改项目落户奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsProjectSettlementAward bmsProjectSettlementAward) { public AjaxResult update(@RequestBody BmsProjectSettlementAward bmsProjectSettlementAward) {
bmsProjectSettlementAwardService.updateById(bmsProjectSettlementAward); bmsProjectSettlementAwardService.updateById(bmsProjectSettlementAward);
String str1 = "{" + String str1 = "{" +
@ -122,7 +122,7 @@ public class BmsProjectSettlementAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:projectSettlementAward:remove") // @RequiresPermissions("system:projectSettlementAward:remove")
@Log(title = "项目落户奖补", businessType = BusinessType.DELETE) @Log(title = "项目落户奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsProjectSettlementAwardService.deleteBmsProjectSettlementAwardByIds(ids)); return toAjax(bmsProjectSettlementAwardService.deleteBmsProjectSettlementAwardByIds(ids));
} }

@ -92,7 +92,7 @@ public class BmsSceneOpeningAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:sceneOpeningAward:edit") // @RequiresPermissions("system:sceneOpeningAward:edit")
@Log(title = "场景开放奖补", businessType = BusinessType.UPDATE) @Log(title = "场景开放奖补", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsSceneOpeningAwardUpdateDto bmsSceneOpeningAwardUpdateDto) { public AjaxResult edit(@RequestBody BmsSceneOpeningAwardUpdateDto bmsSceneOpeningAwardUpdateDto) {
return toAjax(bmsSceneOpeningAwardService.updateBmsSceneOpeningAward(bmsSceneOpeningAwardUpdateDto)); return toAjax(bmsSceneOpeningAwardService.updateBmsSceneOpeningAward(bmsSceneOpeningAwardUpdateDto));
} }
@ -103,7 +103,7 @@ public class BmsSceneOpeningAwardController extends BaseController {
@ApiOperation(value = "修改场景开放奖补(只做修改,不做逻辑)") @ApiOperation(value = "修改场景开放奖补(只做修改,不做逻辑)")
// @RequiresPermissions("system:industrialInternetAward:edit") // @RequiresPermissions("system:industrialInternetAward:edit")
@Log(title = "修改场景开放奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE) @Log(title = "修改场景开放奖补(只做修改,不做逻辑)", businessType = BusinessType.UPDATE)
@PutMapping("/update") @PostMapping("/update")
public AjaxResult update(@RequestBody BmsSceneOpeningAward bmsSceneOpeningAward) { public AjaxResult update(@RequestBody BmsSceneOpeningAward bmsSceneOpeningAward) {
bmsSceneOpeningAwardService.updateById(bmsSceneOpeningAward); bmsSceneOpeningAwardService.updateById(bmsSceneOpeningAward);
JProject jp = new JProject(); JProject jp = new JProject();
@ -119,7 +119,7 @@ public class BmsSceneOpeningAwardController extends BaseController {
*/ */
// @RequiresPermissions("system:sceneOpeningAward:remove") // @RequiresPermissions("system:sceneOpeningAward:remove")
@Log(title = "场景开放奖补", businessType = BusinessType.DELETE) @Log(title = "场景开放奖补", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsSceneOpeningAwardService.deleteBmsSceneOpeningAwardByIds(ids)); return toAjax(bmsSceneOpeningAwardService.deleteBmsSceneOpeningAwardByIds(ids));
} }

@ -108,7 +108,7 @@ public class BmsTemplateInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@Log(title = "申报模板信息", businessType = BusinessType.UPDATE) @Log(title = "申报模板信息", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsTemplateInfo bmsTemplateInfo) { public AjaxResult edit(@RequestBody BmsTemplateInfo bmsTemplateInfo) {
return toAjax(bmsTemplateInfoService.updateBmsTemplateInfo(bmsTemplateInfo)); return toAjax(bmsTemplateInfoService.updateBmsTemplateInfo(bmsTemplateInfo));
} }
@ -118,7 +118,7 @@ public class BmsTemplateInfoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@Log(title = "申报模板信息", businessType = BusinessType.DELETE) @Log(title = "申报模板信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsTemplateInfoService.deleteBmsTemplateInfoByIds(ids)); return toAjax(bmsTemplateInfoService.deleteBmsTemplateInfoByIds(ids));
} }

@ -115,7 +115,7 @@ public class BmsTemplateRecordController extends BaseController {
@ApiOperation(value = "修改在线模板") @ApiOperation(value = "修改在线模板")
@PreAuthorize("@ss.hasAnyRoles('admin')") @PreAuthorize("@ss.hasAnyRoles('admin')")
@Log(title = "在线模板", businessType = BusinessType.UPDATE) @Log(title = "在线模板", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BmsTemplateRecordUpdateDto bmsTemplateRecordUpdateDto) { public AjaxResult edit(@RequestBody BmsTemplateRecordUpdateDto bmsTemplateRecordUpdateDto) {
return toAjax(bmsTemplateRecordService.updateBmsTemplateRecord(bmsTemplateRecordUpdateDto)); return toAjax(bmsTemplateRecordService.updateBmsTemplateRecord(bmsTemplateRecordUpdateDto));
} }
@ -126,7 +126,7 @@ public class BmsTemplateRecordController extends BaseController {
@ApiOperation(value = "删除在线模板") @ApiOperation(value = "删除在线模板")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@Log(title = "在线模板", businessType = BusinessType.DELETE) @Log(title = "在线模板", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bmsTemplateRecordService.deleteBmsTemplateRecordByIds(ids)); return toAjax(bmsTemplateRecordService.deleteBmsTemplateRecordByIds(ids));
} }

@ -80,7 +80,7 @@ public class BsmFundingInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fundingInfo:edit") // @RequiresPermissions("system:fundingInfo:edit")
@Log(title = "资金信息", businessType = BusinessType.UPDATE) @Log(title = "资金信息", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody BsmFundingInfo bsmFundingInfo) { public AjaxResult edit(@RequestBody BsmFundingInfo bsmFundingInfo) {
return toAjax(bsmFundingInfoService.updateBsmFundingInfo(bsmFundingInfo)); return toAjax(bsmFundingInfoService.updateBsmFundingInfo(bsmFundingInfo));
} }
@ -90,7 +90,7 @@ public class BsmFundingInfoController extends BaseController {
*/ */
// @RequiresPermissions("system:fundingInfo:remove") // @RequiresPermissions("system:fundingInfo:remove")
@Log(title = "资金信息", businessType = BusinessType.DELETE) @Log(title = "资金信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(bsmFundingInfoService.deleteBsmFundingInfoByIds(ids)); return toAjax(bsmFundingInfoService.deleteBsmFundingInfoByIds(ids));
} }

@ -93,7 +93,7 @@ public class JEnterpriseContactController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')")
@ApiOperation(value = "修改数据") @ApiOperation(value = "修改数据")
@PutMapping @PostMapping("/edit")
public AjaxResult update(@RequestBody JEnterpriseContact jEnterpriseContact) { public AjaxResult update(@RequestBody JEnterpriseContact jEnterpriseContact) {
return success(jEnterpriseContactService.updateById(jEnterpriseContact)); return success(jEnterpriseContactService.updateById(jEnterpriseContact));
} }
@ -101,13 +101,13 @@ public class JEnterpriseContactController extends BaseController {
/** /**
* *
* *
* @param id * @param ids
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')")
@ApiOperation(value = "删除数据") @ApiOperation(value = "删除数据")
@DeleteMapping @PostMapping("/{ids}")
public AjaxResult delete(@RequestParam("id") Long[] id) { public AjaxResult delete( @PathVariable Long[] ids) {
return success(jEnterpriseContactService.removeByIds(Arrays.asList(id))); return success(jEnterpriseContactService.removeByIds(Arrays.asList(ids)));
} }
} }

@ -141,7 +141,7 @@ public class JMemorandumController extends BaseController {
* @return * @return
*/ */
@ApiOperation(value = "修改数据") @ApiOperation(value = "修改数据")
@PutMapping @PostMapping("/edit")
public AjaxResult update(@RequestBody JMemorandum jMemorandum) { public AjaxResult update(@RequestBody JMemorandum jMemorandum) {
return success(jMemorandumService.updateById(jMemorandum)); return success(jMemorandumService.updateById(jMemorandum));
} }
@ -153,8 +153,8 @@ public class JMemorandumController extends BaseController {
* @return * @return
*/ */
@ApiOperation(value = "删除数据") @ApiOperation(value = "删除数据")
@DeleteMapping @PostMapping("/{id}")
public AjaxResult delete(@RequestParam("id") Long id) { public AjaxResult delete(@PathVariable Long id) {
return success(jMemorandumService.removeById(id)); return success(jMemorandumService.removeById(id));
} }
} }

@ -74,7 +74,7 @@ public class JPolicyFileController extends BaseController {
* @return * @return
*/ */
@ApiOperation(value = "修改数据") @ApiOperation(value = "修改数据")
@PutMapping @PostMapping("/edit")
public AjaxResult update(@RequestBody JPolicyFile jPolicyFile) { public AjaxResult update(@RequestBody JPolicyFile jPolicyFile) {
return success(jPolicyFileService.updateById(jPolicyFile)); return success(jPolicyFileService.updateById(jPolicyFile));
} }
@ -86,8 +86,8 @@ public class JPolicyFileController extends BaseController {
* @return * @return
*/ */
@ApiOperation(value = "删除数据") @ApiOperation(value = "删除数据")
@DeleteMapping @PostMapping("/{id}")
public AjaxResult delete(@RequestParam("id") Long id) { public AjaxResult delete(@PathVariable Long id) {
return success(jPolicyFileService.removeById(id)); return success(jPolicyFileService.removeById(id));
} }
} }

@ -149,7 +149,7 @@ public class JProjectController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin')") @PreAuthorize("@ss.hasAnyRoles('admin')")
@ApiOperation(value = "修改项目") @ApiOperation(value = "修改项目")
@PutMapping @PostMapping("/edit")
public AjaxResult update(@RequestBody JProject jProject) { public AjaxResult update(@RequestBody JProject jProject) {
return success(jProjectService.updateById(jProject)); return success(jProjectService.updateById(jProject));
} }
@ -162,8 +162,8 @@ public class JProjectController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin')") @PreAuthorize("@ss.hasAnyRoles('admin')")
@ApiOperation(value = "删除项目") @ApiOperation(value = "删除项目")
@DeleteMapping @PostMapping("/{id}")
public AjaxResult delete(@RequestParam("id") Long id) { public AjaxResult delete( @PathVariable Long id) {
return success(jProjectService.removeById(id)); return success(jProjectService.removeById(id));
} }

@ -185,7 +185,7 @@ public class JSmartRemindersController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "修改定期提醒数据") @ApiOperation(value = "修改定期提醒数据")
@PutMapping("/updateDq") @PostMapping("/updateDq")
public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) { public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) {
return success(jSmartRemindersService.updateDq(dq)); return success(jSmartRemindersService.updateDq(dq));
} }
@ -198,7 +198,7 @@ public class JSmartRemindersController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "修改不定期提醒数据") @ApiOperation(value = "修改不定期提醒数据")
@PutMapping("/updateNdq") @PostMapping("/updateNdq")
public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) { public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) {
return success(jSmartRemindersService.updateNdq(ndq)); return success(jSmartRemindersService.updateNdq(ndq));
} }
@ -212,8 +212,8 @@ public class JSmartRemindersController extends BaseController {
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "删除数据") @ApiOperation(value = "删除数据")
@DeleteMapping @PostMapping("/{id}")
public AjaxResult delete(@RequestParam("id") Long id) { public AjaxResult delete( @PathVariable Long id) {
JSmartReminders js = jSmartRemindersService.getById(id); JSmartReminders js = jSmartRemindersService.getById(id);
if (js.getAlertManner() == 2) { if (js.getAlertManner() == 2) {
throw new ServiceException("不定期提醒不允许删除"); throw new ServiceException("不定期提醒不允许删除");

@ -11,11 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisCallback; import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.constant.CacheConstants; import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
@ -93,7 +89,7 @@ public class CacheController
} }
@PreAuthorize("@ss.hasPermi('monitor:cache:list')") @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheName/{cacheName}") @PostMapping("/clearCacheName/{cacheName}")
public AjaxResult clearCacheName(@PathVariable String cacheName) public AjaxResult clearCacheName(@PathVariable String cacheName)
{ {
Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*"); Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*");
@ -102,7 +98,7 @@ public class CacheController
} }
@PreAuthorize("@ss.hasPermi('monitor:cache:list')") @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheKey/{cacheKey}") @PostMapping("/clearCacheKey/{cacheKey}")
public AjaxResult clearCacheKey(@PathVariable String cacheKey) public AjaxResult clearCacheKey(@PathVariable String cacheKey)
{ {
redisTemplate.delete(cacheKey); redisTemplate.delete(cacheKey);
@ -110,7 +106,7 @@ public class CacheController
} }
@PreAuthorize("@ss.hasPermi('monitor:cache:list')") @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheAll") @PostMapping("/clearCacheAll")
public AjaxResult clearCacheAll() public AjaxResult clearCacheAll()
{ {
Collection<String> cacheKeys = redisTemplate.keys("*"); Collection<String> cacheKeys = redisTemplate.keys("*");

@ -56,7 +56,7 @@ public class SysLogininforController extends BaseController
@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
@Log(title = "登录日志", businessType = BusinessType.DELETE) @Log(title = "登录日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{infoIds}") @PostMapping("/{infoIds}")
public AjaxResult remove(@PathVariable Long[] infoIds) public AjaxResult remove(@PathVariable Long[] infoIds)
{ {
return toAjax(logininforService.deleteLogininforByIds(infoIds)); return toAjax(logininforService.deleteLogininforByIds(infoIds));
@ -64,7 +64,7 @@ public class SysLogininforController extends BaseController
@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
@Log(title = "登录日志", businessType = BusinessType.CLEAN) @Log(title = "登录日志", businessType = BusinessType.CLEAN)
@DeleteMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {
logininforService.cleanLogininfor(); logininforService.cleanLogininfor();

@ -52,7 +52,7 @@ public class SysOperlogController extends BaseController
@Log(title = "操作日志", businessType = BusinessType.DELETE) @Log(title = "操作日志", businessType = BusinessType.DELETE)
@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
@DeleteMapping("/{operIds}") @PostMapping("/{operIds}")
public AjaxResult remove(@PathVariable Long[] operIds) public AjaxResult remove(@PathVariable Long[] operIds)
{ {
return toAjax(operLogService.deleteOperLogByIds(operIds)); return toAjax(operLogService.deleteOperLogByIds(operIds));
@ -60,7 +60,7 @@ public class SysOperlogController extends BaseController
@Log(title = "操作日志", businessType = BusinessType.CLEAN) @Log(title = "操作日志", businessType = BusinessType.CLEAN)
@PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')")
@DeleteMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {
operLogService.cleanOperLog(); operLogService.cleanOperLog();

@ -6,11 +6,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.CacheConstants; import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
@ -74,7 +70,7 @@ public class SysUserOnlineController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')")
@Log(title = "在线用户", businessType = BusinessType.FORCE) @Log(title = "在线用户", businessType = BusinessType.FORCE)
@DeleteMapping("/{tokenId}") @PostMapping("/{tokenId}")
public AjaxResult forceLogout(@PathVariable String tokenId) public AjaxResult forceLogout(@PathVariable String tokenId)
{ {
redisCache.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId); redisCache.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId);

@ -96,7 +96,7 @@ public class SysConfigController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:config:edit')") @PreAuthorize("@ss.hasPermi('system:config:edit')")
@Log(title = "参数管理", businessType = BusinessType.UPDATE) @Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysConfig config) public AjaxResult edit(@Validated @RequestBody SysConfig config)
{ {
if (!configService.checkConfigKeyUnique(config)) if (!configService.checkConfigKeyUnique(config))
@ -112,7 +112,7 @@ public class SysConfigController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:config:remove')") @PreAuthorize("@ss.hasPermi('system:config:remove')")
@Log(title = "参数管理", businessType = BusinessType.DELETE) @Log(title = "参数管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{configIds}") @PostMapping("/{configIds}")
public AjaxResult remove(@PathVariable Long[] configIds) public AjaxResult remove(@PathVariable Long[] configIds)
{ {
configService.deleteConfigByIds(configIds); configService.deleteConfigByIds(configIds);
@ -124,7 +124,7 @@ public class SysConfigController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:config:remove')") @PreAuthorize("@ss.hasPermi('system:config:remove')")
@Log(title = "参数管理", businessType = BusinessType.CLEAN) @Log(title = "参数管理", businessType = BusinessType.CLEAN)
@DeleteMapping("/refreshCache") @PostMapping("/refreshCache")
public AjaxResult refreshCache() public AjaxResult refreshCache()
{ {
configService.resetConfigCache(); configService.resetConfigCache();

@ -89,7 +89,7 @@ public class SysDeptController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dept:edit')") @PreAuthorize("@ss.hasPermi('system:dept:edit')")
@Log(title = "部门管理", businessType = BusinessType.UPDATE) @Log(title = "部门管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysDept dept) public AjaxResult edit(@Validated @RequestBody SysDept dept)
{ {
Long deptId = dept.getDeptId(); Long deptId = dept.getDeptId();
@ -115,7 +115,7 @@ public class SysDeptController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dept:remove')") @PreAuthorize("@ss.hasPermi('system:dept:remove')")
@Log(title = "部门管理", businessType = BusinessType.DELETE) @Log(title = "部门管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{deptId}") @PostMapping("/{deptId}")
public AjaxResult remove(@PathVariable Long deptId) public AjaxResult remove(@PathVariable Long deptId)
{ {
if (deptService.hasChildByDeptId(deptId)) if (deptService.hasChildByDeptId(deptId))

@ -100,7 +100,7 @@ public class SysDictDataController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dict:edit')") @PreAuthorize("@ss.hasPermi('system:dict:edit')")
@Log(title = "字典数据", businessType = BusinessType.UPDATE) @Log(title = "字典数据", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysDictData dict) public AjaxResult edit(@Validated @RequestBody SysDictData dict)
{ {
dict.setUpdateBy(getUsername()); dict.setUpdateBy(getUsername());
@ -112,7 +112,7 @@ public class SysDictDataController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dict:remove')") @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.DELETE) @Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{dictCodes}") @PostMapping("/{dictCodes}")
public AjaxResult remove(@PathVariable Long[] dictCodes) public AjaxResult remove(@PathVariable Long[] dictCodes)
{ {
dictDataService.deleteDictDataByIds(dictCodes); dictDataService.deleteDictDataByIds(dictCodes);

@ -84,7 +84,7 @@ public class SysDictTypeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dict:edit')") @PreAuthorize("@ss.hasPermi('system:dict:edit')")
@Log(title = "字典类型", businessType = BusinessType.UPDATE) @Log(title = "字典类型", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysDictType dict) public AjaxResult edit(@Validated @RequestBody SysDictType dict)
{ {
if (!dictTypeService.checkDictTypeUnique(dict)) if (!dictTypeService.checkDictTypeUnique(dict))
@ -100,7 +100,7 @@ public class SysDictTypeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dict:remove')") @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.DELETE) @Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{dictIds}") @PostMapping("/{dictIds}")
public AjaxResult remove(@PathVariable Long[] dictIds) public AjaxResult remove(@PathVariable Long[] dictIds)
{ {
dictTypeService.deleteDictTypeByIds(dictIds); dictTypeService.deleteDictTypeByIds(dictIds);
@ -112,7 +112,7 @@ public class SysDictTypeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:dict:remove')") @PreAuthorize("@ss.hasPermi('system:dict:remove')")
@Log(title = "字典类型", businessType = BusinessType.CLEAN) @Log(title = "字典类型", businessType = BusinessType.CLEAN)
@DeleteMapping("/refreshCache") @PostMapping("/refreshCache")
public AjaxResult refreshCache() public AjaxResult refreshCache()
{ {
dictTypeService.resetDictCache(); dictTypeService.resetDictCache();

@ -102,7 +102,7 @@ public class SysMenuController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:menu:edit')") @PreAuthorize("@ss.hasPermi('system:menu:edit')")
@Log(title = "菜单管理", businessType = BusinessType.UPDATE) @Log(title = "菜单管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysMenu menu) public AjaxResult edit(@Validated @RequestBody SysMenu menu)
{ {
if (!menuService.checkMenuNameUnique(menu)) if (!menuService.checkMenuNameUnique(menu))
@ -126,7 +126,7 @@ public class SysMenuController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:menu:remove')") @PreAuthorize("@ss.hasPermi('system:menu:remove')")
@Log(title = "菜单管理", businessType = BusinessType.DELETE) @Log(title = "菜单管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{menuId}") @PostMapping("/{menuId}")
public AjaxResult remove(@PathVariable("menuId") Long menuId) public AjaxResult remove(@PathVariable("menuId") Long menuId)
{ {
if (menuService.hasChildByMenuId(menuId)) if (menuService.hasChildByMenuId(menuId))

@ -71,7 +71,7 @@ public class SysNoticeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:notice:edit')") @PreAuthorize("@ss.hasPermi('system:notice:edit')")
@Log(title = "通知公告", businessType = BusinessType.UPDATE) @Log(title = "通知公告", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysNotice notice) public AjaxResult edit(@Validated @RequestBody SysNotice notice)
{ {
notice.setUpdateBy(getUsername()); notice.setUpdateBy(getUsername());
@ -83,7 +83,7 @@ public class SysNoticeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:notice:remove')") @PreAuthorize("@ss.hasPermi('system:notice:remove')")
@Log(title = "通知公告", businessType = BusinessType.DELETE) @Log(title = "通知公告", businessType = BusinessType.DELETE)
@DeleteMapping("/{noticeIds}") @PostMapping("/{noticeIds}")
public AjaxResult remove(@PathVariable Long[] noticeIds) public AjaxResult remove(@PathVariable Long[] noticeIds)
{ {
return toAjax(noticeService.deleteNoticeByIds(noticeIds)); return toAjax(noticeService.deleteNoticeByIds(noticeIds));

@ -91,7 +91,7 @@ public class SysPostController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:post:edit')") @PreAuthorize("@ss.hasPermi('system:post:edit')")
@Log(title = "岗位管理", businessType = BusinessType.UPDATE) @Log(title = "岗位管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysPost post) public AjaxResult edit(@Validated @RequestBody SysPost post)
{ {
if (!postService.checkPostNameUnique(post)) if (!postService.checkPostNameUnique(post))
@ -111,7 +111,7 @@ public class SysPostController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:post:remove')") @PreAuthorize("@ss.hasPermi('system:post:remove')")
@Log(title = "岗位管理", businessType = BusinessType.DELETE) @Log(title = "岗位管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{postIds}") @PostMapping("/{postIds}")
public AjaxResult remove(@PathVariable Long[] postIds) public AjaxResult remove(@PathVariable Long[] postIds)
{ {
return toAjax(postService.deletePostByIds(postIds)); return toAjax(postService.deletePostByIds(postIds));

@ -56,7 +56,7 @@ public class SysProfileController extends BaseController
* *
*/ */
@Log(title = "个人信息", businessType = BusinessType.UPDATE) @Log(title = "个人信息", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult updateProfile(@RequestBody SysUser user) public AjaxResult updateProfile(@RequestBody SysUser user)
{ {
LoginUser loginUser = getLoginUser(); LoginUser loginUser = getLoginUser();
@ -86,7 +86,7 @@ public class SysProfileController extends BaseController
* *
*/ */
@Log(title = "个人信息", businessType = BusinessType.UPDATE) @Log(title = "个人信息", businessType = BusinessType.UPDATE)
@PutMapping("/updatePwd") @PostMapping("/updatePwd")
public AjaxResult updatePwd(String oldPassword, String newPassword) public AjaxResult updatePwd(String oldPassword, String newPassword)
{ {
LoginUser loginUser = getLoginUser(); LoginUser loginUser = getLoginUser();

@ -111,7 +111,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE) @Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysRole role) public AjaxResult edit(@Validated @RequestBody SysRole role)
{ {
roleService.checkRoleAllowed(role); roleService.checkRoleAllowed(role);
@ -146,7 +146,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE) @Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping("/dataScope") @PostMapping("/dataScope")
public AjaxResult dataScope(@RequestBody SysRole role) public AjaxResult dataScope(@RequestBody SysRole role)
{ {
roleService.checkRoleAllowed(role); roleService.checkRoleAllowed(role);
@ -159,7 +159,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.UPDATE) @Log(title = "角色管理", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus") @PostMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysRole role) public AjaxResult changeStatus(@RequestBody SysRole role)
{ {
roleService.checkRoleAllowed(role); roleService.checkRoleAllowed(role);
@ -173,7 +173,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:remove')") @PreAuthorize("@ss.hasPermi('system:role:remove')")
@Log(title = "角色管理", businessType = BusinessType.DELETE) @Log(title = "角色管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{roleIds}") @PostMapping("/{roleIds}")
public AjaxResult remove(@PathVariable Long[] roleIds) public AjaxResult remove(@PathVariable Long[] roleIds)
{ {
return toAjax(roleService.deleteRoleByIds(roleIds)); return toAjax(roleService.deleteRoleByIds(roleIds));
@ -218,7 +218,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT) @Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/cancel") @PostMapping("/authUser/cancel")
public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
{ {
return toAjax(roleService.deleteAuthUser(userRole)); return toAjax(roleService.deleteAuthUser(userRole));
@ -229,7 +229,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT) @Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/cancelAll") @PostMapping("/authUser/cancelAll")
public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
{ {
return toAjax(roleService.deleteAuthUsers(roleId, userIds)); return toAjax(roleService.deleteAuthUsers(roleId, userIds));
@ -240,7 +240,7 @@ public class SysRoleController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:role:edit')") @PreAuthorize("@ss.hasPermi('system:role:edit')")
@Log(title = "角色管理", businessType = BusinessType.GRANT) @Log(title = "角色管理", businessType = BusinessType.GRANT)
@PutMapping("/authUser/selectAll") @PostMapping("/authUser/selectAll")
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
{ {
roleService.checkRoleDataScope(roleId); roleService.checkRoleDataScope(roleId);

@ -146,7 +146,7 @@ public class SysUserController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:user:edit')") @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE) @Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@Validated @RequestBody SysUser user) public AjaxResult edit(@Validated @RequestBody SysUser user)
{ {
userService.checkUserAllowed(user); userService.checkUserAllowed(user);
@ -172,7 +172,7 @@ public class SysUserController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:user:remove')") @PreAuthorize("@ss.hasPermi('system:user:remove')")
@Log(title = "用户管理", businessType = BusinessType.DELETE) @Log(title = "用户管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{userIds}") @PostMapping("/{userIds}")
public AjaxResult remove(@PathVariable Long[] userIds) public AjaxResult remove(@PathVariable Long[] userIds)
{ {
if (ArrayUtils.contains(userIds, getUserId())) if (ArrayUtils.contains(userIds, getUserId()))
@ -187,7 +187,7 @@ public class SysUserController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:user:resetPwd')") @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE) @Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping("/resetPwd") @PostMapping("/resetPwd")
public AjaxResult resetPwd(@RequestBody SysUser user) public AjaxResult resetPwd(@RequestBody SysUser user)
{ {
userService.checkUserAllowed(user); userService.checkUserAllowed(user);
@ -202,7 +202,7 @@ public class SysUserController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:user:edit')") @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE) @Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus") @PostMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysUser user) public AjaxResult changeStatus(@RequestBody SysUser user)
{ {
userService.checkUserAllowed(user); userService.checkUserAllowed(user);
@ -231,7 +231,7 @@ public class SysUserController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:user:edit')") @PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户管理", businessType = BusinessType.GRANT) @Log(title = "用户管理", businessType = BusinessType.GRANT)
@PutMapping("/authRole") @PostMapping("/authRole")
public AjaxResult insertAuthRole(Long userId, Long[] roleIds) public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
{ {
userService.checkUserDataScope(userId); userService.checkUserDataScope(userId);

@ -162,7 +162,7 @@ public class GenController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('tool:gen:edit')") @PreAuthorize("@ss.hasPermi('tool:gen:edit')")
@Log(title = "代码生成", businessType = BusinessType.UPDATE) @Log(title = "代码生成", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult editSave(@Validated @RequestBody GenTable genTable) public AjaxResult editSave(@Validated @RequestBody GenTable genTable)
{ {
genTableService.validateEdit(genTable); genTableService.validateEdit(genTable);
@ -175,7 +175,7 @@ public class GenController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('tool:gen:remove')") @PreAuthorize("@ss.hasPermi('tool:gen:remove')")
@Log(title = "代码生成", businessType = BusinessType.DELETE) @Log(title = "代码生成", businessType = BusinessType.DELETE)
@DeleteMapping("/{tableIds}") @PostMapping("/{tableIds}")
public AjaxResult remove(@PathVariable Long[] tableIds) public AjaxResult remove(@PathVariable Long[] tableIds)
{ {
genTableService.deleteGenTableByIds(tableIds); genTableService.deleteGenTableByIds(tableIds);

@ -96,7 +96,7 @@ public class ${ClassName}Controller extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
@Log(title = "${functionName}", businessType = BusinessType.UPDATE) @Log(title = "${functionName}", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody ${ClassName} ${className}) public AjaxResult edit(@RequestBody ${ClassName} ${className})
{ {
return toAjax(${className}Service.update${ClassName}(${className})); return toAjax(${className}Service.update${ClassName}(${className}));
@ -107,7 +107,7 @@ public class ${ClassName}Controller extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
@Log(title = "${functionName}", businessType = BusinessType.DELETE) @Log(title = "${functionName}", businessType = BusinessType.DELETE)
@DeleteMapping("/{${pkColumn.javaField}s}") @PostMapping("/{${pkColumn.javaField}s}")
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s)
{ {
return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s)); return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s));

@ -115,7 +115,7 @@ public class SysJobController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:edit')") @PreAuthorize("@ss.hasPermi('monitor:job:edit')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE) @Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping @PostMapping("/edit")
public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException
{ {
if (!CronUtils.isValid(job.getCronExpression())) if (!CronUtils.isValid(job.getCronExpression()))
@ -151,7 +151,7 @@ public class SysJobController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE) @Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus") @PostMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException
{ {
SysJob newJob = jobService.selectJobById(job.getJobId()); SysJob newJob = jobService.selectJobById(job.getJobId());
@ -164,7 +164,7 @@ public class SysJobController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')")
@Log(title = "定时任务", businessType = BusinessType.UPDATE) @Log(title = "定时任务", businessType = BusinessType.UPDATE)
@PutMapping("/run") @PostMapping("/run")
public AjaxResult run(@RequestBody SysJob job) throws SchedulerException public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
{ {
boolean result = jobService.run(job); boolean result = jobService.run(job);
@ -176,7 +176,7 @@ public class SysJobController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:remove')") @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "定时任务", businessType = BusinessType.DELETE) @Log(title = "定时任务", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobIds}") @PostMapping("/{jobIds}")
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
{ {
jobService.deleteJobByIds(jobIds); jobService.deleteJobByIds(jobIds);

@ -72,7 +72,7 @@ public class SysJobLogController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:remove')") @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "定时任务调度日志", businessType = BusinessType.DELETE) @Log(title = "定时任务调度日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{jobLogIds}") @PostMapping("/{jobLogIds}")
public AjaxResult remove(@PathVariable Long[] jobLogIds) public AjaxResult remove(@PathVariable Long[] jobLogIds)
{ {
return toAjax(jobLogService.deleteJobLogByIds(jobLogIds)); return toAjax(jobLogService.deleteJobLogByIds(jobLogIds));
@ -83,7 +83,7 @@ public class SysJobLogController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('monitor:job:remove')") @PreAuthorize("@ss.hasPermi('monitor:job:remove')")
@Log(title = "调度日志", businessType = BusinessType.CLEAN) @Log(title = "调度日志", businessType = BusinessType.CLEAN)
@DeleteMapping("/clean") @PostMapping("/clean")
public AjaxResult clean() public AjaxResult clean()
{ {
jobLogService.cleanJobLog(); jobLogService.cleanJobLog();

Loading…
Cancel
Save