|
@@ -1,5 +1,6 @@
|
|
|
package com.gree.mall.manager.logic.admin;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import com.alibaba.excel.util.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
@@ -7,6 +8,7 @@ import com.gree.mall.manager.bean.ExcelData;
|
|
|
import com.gree.mall.manager.bean.admin.AdminUserCom;
|
|
|
import com.gree.mall.manager.bean.admin.AdminWebsitNewBean;
|
|
|
import com.gree.mall.manager.bean.admin.AdminWebsitTree;
|
|
|
+import com.gree.mall.manager.bean.workorder.AdminWebsitList;
|
|
|
import com.gree.mall.manager.enums.ExamineStatusEnum;
|
|
|
import com.gree.mall.manager.enums.admin.AdminWebsitTypeEnum;
|
|
|
import com.gree.mall.manager.enums.material.WebsitGoodsTypeEnum;
|
|
@@ -825,8 +827,8 @@ public class AdminWebsitLogic {
|
|
|
return excelData;
|
|
|
}
|
|
|
|
|
|
- public List<AdminWebsit> websitList(String type, Boolean isAll, Boolean isIncre, Boolean status, String streetCode, String channelId, String categoryId,
|
|
|
- String orderSmallId, String orderSourceId) {
|
|
|
+ public List<AdminWebsitList> websitList(String type, Boolean isAll, Boolean isIncre, Boolean status, String streetCode, String channelId, String categoryId,
|
|
|
+ String orderSmallId, String orderSourceId) {
|
|
|
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
|
|
@@ -852,6 +854,19 @@ public class AdminWebsitLogic {
|
|
|
.in(CollectionUtils.isNotEmpty(adminUser.getAdminWebsitIds()) && (isAll == null || !isAll), AdminWebsit::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
.in(CollectionUtils.isNotEmpty(adminUser.getCompanyWechatIds()), AdminWebsit::getCompanyWechatId, adminUser.getCompanyWechatIds())
|
|
|
.list();
|
|
|
- return list;
|
|
|
+
|
|
|
+
|
|
|
+ List<AdminWebsitList> adminWebsitLists = BeanUtil.copyToList(list, AdminWebsitList.class);
|
|
|
+
|
|
|
+ if (!CollectionUtils.isEmpty(websitIds)) {
|
|
|
+
|
|
|
+ for (AdminWebsitList adminWebsitList : adminWebsitLists) {
|
|
|
+ if (websitIds.contains(adminWebsitList.getWebsitId())) {
|
|
|
+ adminWebsitList.setIfDispatch(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return adminWebsitLists;
|
|
|
}
|
|
|
}
|