|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|