|
|
|
@ -52,7 +52,16 @@ public class InvRemindSetServiceImpl implements InvRemindSetService {
|
|
|
|
|
if (null != filterInvRemindSetRequest.getPage() && null != filterInvRemindSetRequest.getLimit()) {
|
|
|
|
|
PageHelper.offsetPage((filterInvRemindSetRequest.getPage() - 1) * filterInvRemindSetRequest.getLimit(), filterInvRemindSetRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
return invRemindSetDao.filterList(filterInvRemindSetRequest);
|
|
|
|
|
List<InvRemindSetResponse> list = invRemindSetDao.filterList(filterInvRemindSetRequest);
|
|
|
|
|
if (CollUtil.isNotEmpty(list)) {
|
|
|
|
|
list.forEach(invRemindSetResponse -> {
|
|
|
|
|
if (invRemindSetResponse.getIsDateBy() == 1 && null != invRemindSetResponse.getRecentDateTime()) {
|
|
|
|
|
//将近效期预警值由小时换算成天
|
|
|
|
|
invRemindSetResponse.setRecentDateTime(invRemindSetResponse.getRecentDateTime() / 24);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|