|
@@ -18,8 +18,8 @@ import com.gree.mall.manager.plus.service.AdminDeptWebsitService;
|
|
|
import com.gree.mall.manager.plus.service.AdminUserPermissionsRelaService;
|
|
|
import com.gree.mall.manager.plus.service.AdminWebsitService;
|
|
|
import com.gree.mall.manager.utils.StringUtil;
|
|
|
+import com.gree.mall.manager.zfire.bean.DeptZfireParamBean;
|
|
|
import com.gree.mall.manager.zfire.bean.QueryParamBean;
|
|
|
-import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -90,7 +90,7 @@ public class AdminDeptLogic {
|
|
|
return adminDeptTrees;
|
|
|
}
|
|
|
|
|
|
- public IPage<AdminDeptWebsitVO> list(Page page, ZfireParamBean zfireParam) {
|
|
|
+ public IPage<AdminDeptWebsitVO> list(Page page, DeptZfireParamBean zfireParam) {
|
|
|
//获取当前登录企业id
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
|
|
@@ -108,8 +108,9 @@ public class AdminDeptLogic {
|
|
|
FieldUtils.supplyParam(zfireParam, AdminDeptWebsitVO.class);
|
|
|
|
|
|
IPage<AdminDeptWebsitVO> adminDeptWebsitVOIPage = adminMapper.list(page, zfireParam);
|
|
|
- if (isAll) {
|
|
|
+ if (isAll && CollectionUtil.isEmpty(adminDeptWebsitVOIPage.getRecords())) {
|
|
|
final List<AdminWebsit> websitList = adminWebsitService.lambdaQuery()
|
|
|
+ .eq(StringUtils.isNotBlank(zfireParam.getCurDeptId()), AdminWebsit::getCompanyWechatId, zfireParam.getCurDeptId())
|
|
|
.list();
|
|
|
if (CollectionUtil.isNotEmpty(websitList)) {
|
|
|
List<AdminDeptWebsitVO> voList = new ArrayList<>();
|