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