| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | @ApiOperation(value = "下载任务记录数据", tags = {"任务记录"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "列表数据id,多个逗号分隔", name = "ids", dataType = "String"), |
| | | @ApiImplicitParam(value = "状态(1=待执行,2=进行中,3=成功,4=失败)", name = "status", dataType = "int"), |
| | | @ApiImplicitParam(value = "状态(1=待执行,2=进行中,3=成功,4=失败)", name = "statuss", dataType = "String"), |
| | | @ApiImplicitParam(value = "规则编号", name = "code", dataType = "String"), |
| | | @ApiImplicitParam(value = "系统审核状态(1=未执行,2=正常,3=异常)", name = "sysStatus", dataType = "int"), |
| | | }) |
| | | public void downloadTaskRecord(String ids, String code, Integer status,Integer sysStatus, HttpServletResponse response){ |
| | | public void downloadTaskRecord(String ids, String code, String statuss,Integer sysStatus, HttpServletResponse response){ |
| | | List<String> id = null; |
| | | if(ToolUtil.isNotEmpty(ids)){ |
| | | String[] split = ids.split(","); |
| | | id = Arrays.asList(split); |
| | | } |
| | | taskDetailService.downloadTaskRecord(id, code, status,sysStatus, response); |
| | | List<Integer> statusList=null; |
| | | if(ToolUtil.isNotEmpty(statuss)){ |
| | | String[] split = ids.split(","); |
| | | statusList = Arrays.stream(split) |
| | | .map(Integer::parseInt) |
| | | .collect(Collectors.toList()); |
| | | |
| | | } |
| | | taskDetailService.downloadTaskRecord(id, code, statusList,sysStatus, response); |
| | | } |
| | | |
| | | |