|
|
@@ -1103,7 +1103,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
nowGoods.setStoreName(sysConf.getEnName());
|
|
|
}else if(Integer.valueOf(oldGoods.getSelfSale()).equals(IntegerConstant.SELF_SALE)){
|
|
|
StoreIn storeIn = storeInService.findByEnUU(nowGoods.getEnUU());
|
|
|
- if(storeIn.getStatus() == StoreStatus.OPENED) {
|
|
|
+ if(storeIn != null && storeIn.getStatus() == StoreStatus.OPENED) {
|
|
|
nowGoods.setStoreid(storeIn.getUuid());
|
|
|
nowGoods.setStoreName(storeIn.getStoreName());
|
|
|
}else {
|