Commit b506c8bf authored by tangwei's avatar tangwei

修改删除接口

parent 3fd38aa3
...@@ -148,7 +148,7 @@ public class PlanController extends AbstractBaseController { ...@@ -148,7 +148,7 @@ public class PlanController extends AbstractBaseController {
@ApiOperation(value = "删除巡检计划", notes = "删除巡检计划") @ApiOperation(value = "删除巡检计划", notes = "删除巡检计划")
@RequestMapping(value = "/deletePlanById", produces = "application/json;charset=UTF-8", method = RequestMethod.POST) @RequestMapping(value = "/deletePlanById", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
public CommonResponse deletePlanById( public CommonResponse deletePlanById(
@ApiParam(value = "巡检计划ID", required = true) @RequestBody String[] param) { @ApiParam(value = "巡检计划ID", required = true) @RequestBody Integer[] param) {
try { try {
planService.delPlanById(param); planService.delPlanById(param);
return CommonResponseUtil.success(); return CommonResponseUtil.success();
......
...@@ -93,10 +93,10 @@ public class PlanServiceImpl implements IPlanService { ...@@ -93,10 +93,10 @@ public class PlanServiceImpl implements IPlanService {
@Override @Override
@Transactional @Transactional
public void delPlanById(String[] param) { public void delPlanById(Integer[] param) {
List<Long> ids = new ArrayList<Long>(); List<Long> ids = new ArrayList<Long>();
for(int i=0;i<param.length;i++){ for(int i=0;i<param.length;i++){
ids.add(Long.parseLong(param[i])); ids.add(Long.parseLong(param[i].toString()));
} }
planDao.updatePlanDel(ids); planDao.updatePlanDel(ids);
// 删除对应该计划今天往后的所有计划执行信息 // 删除对应该计划今天往后的所有计划执行信息
......
...@@ -26,7 +26,7 @@ public interface IPlanService { ...@@ -26,7 +26,7 @@ public interface IPlanService {
/** /**
* 巡检计划删除 * 巡检计划删除
*/ */
void delPlanById(String[] param); void delPlanById(Integer[] param);
/** /**
* 巡检计划另存 * 巡检计划另存
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment