|
|
|
@ -52,7 +52,7 @@ public class InvRemindSetServiceImpl implements InvRemindSetService {
|
|
|
|
|
if (null != filterInvRemindSetRequest.getPage() && null != filterInvRemindSetRequest.getLimit()) {
|
|
|
|
|
PageHelper.offsetPage((filterInvRemindSetRequest.getPage() - 1) * filterInvRemindSetRequest.getLimit(), filterInvRemindSetRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
if(StrUtil.isNotBlank(filterInvRemindSetRequest.getProductName())){
|
|
|
|
|
if (StrUtil.isNotBlank(filterInvRemindSetRequest.getProductName())) {
|
|
|
|
|
filterInvRemindSetRequest.setRelIds(udiRelevanceDao.selectRelIdByName(filterInvRemindSetRequest.getProductName()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -233,13 +233,13 @@ public class InvRemindSetServiceImpl implements InvRemindSetService {
|
|
|
|
|
if (null == udiRelevanceEntity) {
|
|
|
|
|
invRemindSetEntity.setStatus(0);
|
|
|
|
|
} else {
|
|
|
|
|
if (invRemindSetEntity.getLowStock() && null == udiRelevanceEntity.getLowStockNum()) {
|
|
|
|
|
if (!invRemindSetEntity.getLowStock() && null == udiRelevanceEntity.getLowStockNum() &&
|
|
|
|
|
!invRemindSetEntity.getOverStock() && null == udiRelevanceEntity.getOverStockNum() &&
|
|
|
|
|
!invRemindSetEntity.getRecentDate() && null == udiRelevanceEntity.getRecentDateTime() &&
|
|
|
|
|
!invRemindSetEntity.getExpireDate() && !invRemindSetEntity.getLackStock()) {
|
|
|
|
|
invRemindSetEntity.setStatus(0);
|
|
|
|
|
} else if (invRemindSetEntity.getOverStock() && null == udiRelevanceEntity.getOverStockNum()) {
|
|
|
|
|
invRemindSetEntity.setStatus(0);
|
|
|
|
|
} else if (invRemindSetEntity.getRecentDate() && null == udiRelevanceEntity.getRecentDateTime()) {
|
|
|
|
|
invRemindSetEntity.setStatus(0);
|
|
|
|
|
} else {
|
|
|
|
|
} else if (invRemindSetEntity.getLowStock() || invRemindSetEntity.getLackStock() ||
|
|
|
|
|
invRemindSetEntity.getOverStock() || invRemindSetEntity.getRecentDate() || invRemindSetEntity.getExpireDate()) {
|
|
|
|
|
invRemindSetEntity.setStatus(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|