用车需求计算,审核通过无法删除
This commit is contained in:
parent
c144976ec2
commit
94162de4d1
@ -116,6 +116,10 @@ public class VehicleDemandCountController extends JeecgController<VehicleDemandC
|
||||
//@RequiresPermissions("org.jeecg.modules.tms:tms_vehicle_demand_count:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
VehicleDemandCount byId = vehicleDemandCountService.getById(id);
|
||||
if ("1".equals(byId.getAuditResult())) {
|
||||
return Result.error("当前数据已审核通过,无法删除!");
|
||||
}
|
||||
vehicleDemandCountService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user