Commit 3fd38aa3 authored by tangwei's avatar tangwei

修改bug

parent 2d0b603f
......@@ -168,7 +168,7 @@ public class PlanController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "另存巡检计划", notes = "另存巡检计划")
@RequestMapping(value = "/saveAs", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
public CommonResponse planSaveAs(@ApiParam(value = "参数", required = true) @RequestBody String[] param) {
public CommonResponse planSaveAs(@ApiParam(value = "参数", required = true) @RequestBody Integer[] param) {
try {
planService.planSaveAs(param);
return CommonResponseUtil.success();
......
......@@ -117,9 +117,9 @@ public class PlanServiceImpl implements IPlanService {
}
@Override
public void planSaveAs(String[] param) {
public void planSaveAs(Integer[] param) {
for(int i=0;i<param.length;i++){
planMapper.saveAs(param[i]);
planMapper.saveAs(param[i].toString());
}
}
......
......@@ -31,7 +31,7 @@ public interface IPlanService {
/**
* 巡检计划另存
*/
void planSaveAs(String[] param);
void planSaveAs(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