fix(标准主计划): 删除接口 get -> post
This commit is contained in:
+4
-3
@@ -12,6 +12,7 @@ import com.jero.modules.laws.standardmasterplan.entity.LawsStandardMasterPlanSub
|
||||
import com.jero.modules.laws.standardmasterplan.servicce.ILawsStandardMasterPlanService;
|
||||
import com.jero.modules.laws.standardmasterplan.vo.LawsStandardMasterPlanDetailsVO;
|
||||
import com.jero.modules.laws.standardmasterplan.vo.LawsStandardMasterPlanVO;
|
||||
import com.jero.modules.system.vo.IdMapBody;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -130,10 +131,10 @@ public class LawsStandardMasterPlanController {
|
||||
*/
|
||||
@AutoLog(value = "标准主计划-删除", operateType = CommonConstant.OPERATE_TYPE_4)
|
||||
@ApiOperation(value="标准主计划-删除", notes="标准主计划-删除")
|
||||
@GetMapping(value = "/delete")
|
||||
@PostMapping(value = "/delete")
|
||||
@RequiresPermissions("standardMasterPlan:delete")
|
||||
public Result<T> delete(String ids) {
|
||||
lawsStandardMasterPlanService.delete(ids);
|
||||
public Result<T> delete(@RequestBody IdMapBody map) {
|
||||
lawsStandardMasterPlanService.delete(map.getId());
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user