更改delete和put

wushunjie
杜函宇 10 months ago
parent ac4506e166
commit a86b98161a

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -185,7 +185,7 @@ public class JSmartRemindersController extends BaseController {
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "修改定期提醒数据")
@PutMapping("/updateDq")
@PostMapping("/updateDq")
public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) {
return success(jSmartRemindersService.updateDq(dq));
}
@ -198,7 +198,7 @@ public class JSmartRemindersController extends BaseController {
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "修改不定期提醒数据")
@PutMapping("/updateNdq")
@PostMapping("/updateNdq")
public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) {
return success(jSmartRemindersService.updateNdq(ndq));
}
@ -212,8 +212,8 @@ public class JSmartRemindersController extends BaseController {
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "删除数据")
@DeleteMapping
public AjaxResult delete(@RequestParam("id") Long id) {
@PostMapping("/{id}")
public AjaxResult delete( @PathVariable Long id) {
JSmartReminders js = jSmartRemindersService.getById(id);
if (js.getAlertManner() == 2) {
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.RedisTemplate;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
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 org.springframework.web.bind.annotation.*;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
@ -93,7 +89,7 @@ public class CacheController
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheName/{cacheName}")
@PostMapping("/clearCacheName/{cacheName}")
public AjaxResult clearCacheName(@PathVariable String cacheName)
{
Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*");
@ -102,7 +98,7 @@ public class CacheController
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheKey/{cacheKey}")
@PostMapping("/clearCacheKey/{cacheKey}")
public AjaxResult clearCacheKey(@PathVariable String cacheKey)
{
redisTemplate.delete(cacheKey);
@ -110,7 +106,7 @@ public class CacheController
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheAll")
@PostMapping("/clearCacheAll")
public AjaxResult clearCacheAll()
{
Collection<String> cacheKeys = redisTemplate.keys("*");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save