Commit 19720387 authored by tangwei's avatar tangwei

修改接口

parent 56340018
......@@ -110,7 +110,16 @@ public class PlanTaskController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "导出巡检记录", notes = "导出巡检记录")
@RequestMapping(value = "/exportSelectPlanTaskNew", method = RequestMethod.GET)
public void exportSelectPlanTaskNew(
@ApiParam(value = "查询条件", required = false) @RequestParam(required = false) Long[] ids,
HttpServletResponse response) {
List<PlanTaskVo> list = planTaskService.getPlanTaskListByIds(getToken(), getProduct(), getAppKey(), ids);
String fileName = "巡检记录" + System.currentTimeMillis();
FileHelper.exportExcel(list, "计划执行", "计划执行", PlanTaskVo.class, fileName + ".xls", response);
}
......
......@@ -110,7 +110,6 @@ public interface PlanTaskMapper extends BaseMapper {
* @return
*/
List<PlanTaskVo> getPlanTaskListByIds(@Param("ids") Long[] ids);
/**
* 分页统计
* @param param
......
......@@ -1012,6 +1012,13 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
@Override
public List<PlanTaskVo> getPlanTaskListByIdsNew(Long[] ids) {
List<PlanTaskVo> content = planTaskMapper.getPlanTaskListByIds(ids);
return content;
}
@Override
public Page<CheckChkExListBo> getChkExList(String toke, String product, String appKey, CheckPtListPageParam param) {
long total = planTaskMapper.countChkExListData(param);
List<CheckChkExListBo> content = planTaskMapper.getChkExList(param);
......
......@@ -130,7 +130,7 @@ public interface IPlanTaskService {
* @return
*/
List<PlanTaskVo> getPlanTaskListByIds(String toke,String product,String appKey,Long[] ids);
List<PlanTaskVo> getPlanTaskListByIdsNew(Long[] ids);
/**
* 根据任务id点id 获取点详情
* @param planTaskId
......
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