Commit ace9fd26 authored by lisong's avatar lisong

修改bug

parent 579aebcc
...@@ -8,6 +8,7 @@ import lombok.Data; ...@@ -8,6 +8,7 @@ import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
* 接警记录导出 * 接警记录导出
...@@ -49,4 +50,6 @@ public class AlertCalledRecordDto { ...@@ -49,4 +50,6 @@ public class AlertCalledRecordDto {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date callTimeEnd; private Date callTimeEnd;
@ExcelIgnore
List<String> ids;
} }
...@@ -103,7 +103,8 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> { ...@@ -103,7 +103,8 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
String type, String type,
String alertSource, String alertSource,
String alarmType, String alarmType,
@Param("list") Set<String> userIds); @Param("list") Set<String> userIds,
@Param("ids") List<String> ids);
List<AlertPaperInfoDto> getAlertPaperInfoList(@Param("regionCodes") List<String> regionCodes, @Param("isHistory") Boolean isHistory); List<AlertPaperInfoDto> getAlertPaperInfoList(@Param("regionCodes") List<String> regionCodes, @Param("isHistory") Boolean isHistory);
......
...@@ -82,7 +82,7 @@ public interface IAlertCalledService { ...@@ -82,7 +82,7 @@ public interface IAlertCalledService {
* @param alarmType * @param alarmType
* @return * @return
*/ */
List<AlertCalledRecordDto> queryAlertRecordListByQueryDto(String callTimeStart, String callTimeEnd, String type, String alertSource, String alarmType, Set<String> userIds); List<AlertCalledRecordDto> queryAlertRecordListByQueryDto(String callTimeStart, String callTimeEnd, String type, String alertSource, String alarmType, Set<String> userIds, List<String> ids);
/** /**
* 获取坐席信息 * 获取坐席信息
......
...@@ -530,6 +530,12 @@ ...@@ -530,6 +530,12 @@
#{id} #{id}
</foreach> </foreach>
</if> </if>
<if test="ids != null ">
and a.sequence_nbr in
<foreach collection="ids" item="id" separator="," open="(" close=")">
#{id}
</foreach>
</if>
</select> </select>
......
...@@ -547,7 +547,8 @@ public class AlertCalledController extends BaseController { ...@@ -547,7 +547,8 @@ public class AlertCalledController extends BaseController {
alertCalledQueryDto.getType(), alertCalledQueryDto.getType(),
alertCalledQueryDto.getAlertSource(), alertCalledQueryDto.getAlertSource(),
alertCalledQueryDto.getAlarmType(), alertCalledQueryDto.getAlarmType(),
userIds); userIds,
alertCalledQueryDto.getIds());
String fileName = "接警记录" + System.currentTimeMillis(); String fileName = "接警记录" + System.currentTimeMillis();
ExcelUtil.createTemplate(response, fileName, "接警记录", list, AlertCalledRecordDto.class, null, false); ExcelUtil.createTemplate(response, fileName, "接警记录", list, AlertCalledRecordDto.class, null, false);
} }
......
...@@ -449,8 +449,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall ...@@ -449,8 +449,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
} }
@Override @Override
public List<AlertCalledRecordDto> queryAlertRecordListByQueryDto(String callTimeStart, String callTimeEnd, String type, String alertSource, String alarmType, Set<String> userIds) { public List<AlertCalledRecordDto> queryAlertRecordListByQueryDto(String callTimeStart, String callTimeEnd, String type, String alertSource, String alarmType, Set<String> userIds, List<String> ids) {
List<AlertCalledRecordDto> list = alertCalledMapper.queryAlertRecordListByQueryDto(callTimeStart, callTimeEnd, type, alertSource, alarmType, userIds); List<AlertCalledRecordDto> list = alertCalledMapper.queryAlertRecordListByQueryDto(callTimeStart, callTimeEnd, type, alertSource, alarmType, userIds, ids);
return list; return list;
} }
......
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