yujia 7 rokov pred
rodič
commit
996b986ca9

+ 1 - 1
src/main/java/com/uas/platform/b2c/trade/presale/service/impl/CollectionServiceImpl.java

@@ -181,7 +181,7 @@ public class CollectionServiceImpl implements CollectionService {
 	public ResultMap getStoreCountByuseruuAndComponent(int kind) {
 		Integer count = 0;
 		User user = SystemSession.getUser();
-		if (SystemSession.getUser().getEnterprise() != null) {
+		if (user.getEnterprise() != null) {
 			count = collectionDao.findStoreCountByUseruuAndEnuuAndKind(user.getUserUU(), user.getEnterprise().getUu(), kind);
 		} else {
 			count = collectionDao.findStoreCountByUseruuAndDissociativeAndKind(user.getUserUU(), Type.PERSONAL.value(), kind);