|
@@ -62,14 +62,14 @@ public class TbVmsDsplPrstService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Transactional(readOnly = true)
|
|
|
- public List<TbVmsDsplPrstDto> findAllByIds(List<Long> ids, boolean isMemory) {
|
|
|
+ public List<TbVmsDsplPrstDto> findAllListByIds(List<Long> ids, boolean isMemory) {
|
|
|
List<TbVmsDsplPrst> data = this.repo.findAllByIds(ids);
|
|
|
List<TbVmsCtlr> stts;
|
|
|
if (isMemory) {
|
|
|
- List<TbVmsCtlr> temp = this.ctlrManager.findAll();
|
|
|
+ List<TbVmsCtlr> temp = this.ctlrManager.findAllByIds(ids);
|
|
|
stts = temp.stream().filter(obj -> "N".equals(obj.getDelYn())).collect(Collectors.toList());
|
|
|
} else {
|
|
|
- stts = this.ctlrRepo.findAllList();
|
|
|
+ stts = this.ctlrRepo.findAllListByIds(ids);
|
|
|
}
|
|
|
|
|
|
return makeDsplPrstList(data, stts);
|