|
@@ -49,6 +49,7 @@ import com.qunzhixinxi.hnqz.common.core.util.R;
|
|
|
import com.qunzhixinxi.hnqz.common.data.datascope.DataScope;
|
|
|
import com.qunzhixinxi.hnqz.common.security.util.SecurityUtils;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -71,6 +72,7 @@ import java.util.stream.Collectors;
|
|
|
* @author gaoyanng
|
|
|
* @date 2020-06-25 23:35:42
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
@AllArgsConstructor
|
|
|
public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent> implements WmDaAgentService {
|
|
@@ -235,8 +237,11 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
|
|
|
areaIds = sysUserAreaService.listUserAreas(Long.valueOf(SecurityUtils.getUser().getId()));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
List<Long> ents = enterpriseAreaService.listAreaEnts(areaIds);
|
|
|
- wmDaAgent.setEntIds(ents);
|
|
|
+ List<Long> collect = new ArrayList<>(new HashSet<>(ents));
|
|
|
+ log.info("total: {} to {}", ents.size(), collect.size());
|
|
|
+ wmDaAgent.setEntIds(collect);
|
|
|
|
|
|
|
|
|
wmDaAgentMapper.selectWmManagementPage(page, wmDaAgent);
|