|
@@ -1,17 +1,25 @@
|
|
package com.gree.mall.manager.logic.workorder;
|
|
package com.gree.mall.manager.logic.workorder;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.gree.mall.manager.bean.SyncOrderDto;
|
|
import com.gree.mall.manager.bean.SyncOrderDto;
|
|
import com.gree.mall.manager.bean.admin.AdminUserCom;
|
|
import com.gree.mall.manager.bean.admin.AdminUserCom;
|
|
|
|
+import com.gree.mall.manager.bean.workorder.DispatchVO;
|
|
|
|
+import com.gree.mall.manager.bean.workorder.IncreVO;
|
|
import com.gree.mall.manager.bean.workorder.PgOrderProductDetailVO;
|
|
import com.gree.mall.manager.bean.workorder.PgOrderProductDetailVO;
|
|
import com.gree.mall.manager.bean.workorder.WorkerOrderDetail;
|
|
import com.gree.mall.manager.bean.workorder.WorkerOrderDetail;
|
|
|
|
+import com.gree.mall.manager.commonmapper.workorder.IncreMapper;
|
|
import com.gree.mall.manager.enums.PayStatusEnum;
|
|
import com.gree.mall.manager.enums.PayStatusEnum;
|
|
import com.gree.mall.manager.enums.admin.AdminWebsitTypeEnum;
|
|
import com.gree.mall.manager.enums.admin.AdminWebsitTypeEnum;
|
|
import com.gree.mall.manager.enums.workorder.OrderBaseStatusEnum;
|
|
import com.gree.mall.manager.enums.workorder.OrderBaseStatusEnum;
|
|
import com.gree.mall.manager.enums.workorder.OrderOperatorLogTypeEnum;
|
|
import com.gree.mall.manager.enums.workorder.OrderOperatorLogTypeEnum;
|
|
|
|
+import com.gree.mall.manager.logic.common.CommonLogic;
|
|
import com.gree.mall.manager.plus.entity.*;
|
|
import com.gree.mall.manager.plus.entity.*;
|
|
import com.gree.mall.manager.plus.service.*;
|
|
import com.gree.mall.manager.plus.service.*;
|
|
|
|
+import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
|
+import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -66,6 +74,13 @@ public class ChangeOrderLogic {
|
|
@Autowired
|
|
@Autowired
|
|
PgOrderOperatorLogService pgOrderOperatorLogService;
|
|
PgOrderOperatorLogService pgOrderOperatorLogService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ CommonLogic commonLogic;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ IncreMapper increMapper;
|
|
|
|
+
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void changeAppointmentTime(String id, String appointmentTime, String appointmentEndTime,String remark) {
|
|
public void changeAppointmentTime(String id, String appointmentTime, String appointmentEndTime,String remark) {
|
|
@@ -223,4 +238,19 @@ public class ChangeOrderLogic {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public IPage<DispatchVO> list(ZfireParamBean zfireParam) {
|
|
|
|
+
|
|
|
|
+ //获取当前登录企业id
|
|
|
|
+ AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
|
+
|
|
|
|
+ List<String> adminCompanyIds = adminUser.getCompanyWechatIds();
|
|
|
|
+ //1.组装查询条件
|
|
|
|
+ zfireParam = FieldUtils.supplyParam(zfireParam, DispatchVO.class);
|
|
|
|
+
|
|
|
|
+ IPage<DispatchVO> dispatchVOIPage = increMapper.listDispatch(new Page(zfireParam.getPageNum(), zfireParam.getPageSize()), zfireParam,adminCompanyIds);
|
|
|
|
+
|
|
|
|
+ return dispatchVOIPage;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|