|
@@ -78,6 +78,19 @@ public class ChangeOrderLogic {
|
|
|
@Autowired
|
|
|
IncreMapper increMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ RegionService regionService;
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ SysDictCompanyService sysDictCompanyService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ OrderSmallTypeService orderSmallTypeService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ GoodsCategoryService goodsCategoryService;
|
|
|
+
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void changeAppointmentTime(String id, String appointmentTime, String appointmentEndTime,String remark) {
|
|
@@ -326,4 +339,29 @@ public class ChangeOrderLogic {
|
|
|
List<String> adminCompanyIds = adminUser.getCompanyWechatIds();
|
|
|
return increMapper.sourceList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId,adminCompanyIds);
|
|
|
}
|
|
|
+
|
|
|
+ public void saveDispatch(WebsitDispatchAdd websitDispatchAdd) {
|
|
|
+ AdminWebsit adminWebsit = adminWebsitService.getById(websitDispatchAdd.getWebsitId());
|
|
|
+
|
|
|
+ Region region = regionService.getById(websitDispatchAdd.getStreetId());
|
|
|
+
|
|
|
+ List<WebsitDispatch> websitDispatches = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String orderSmallId : websitDispatchAdd.getOrderSmallIds()) {
|
|
|
+
|
|
|
+ for (String categoryId : websitDispatchAdd.getCategoryIds()) {
|
|
|
+
|
|
|
+ for (String orderChannel : websitDispatchAdd.getOrderChannelIds()) {
|
|
|
+
|
|
|
+ for (String orderSourceId : websitDispatchAdd.getOrderSourceIds()) {
|
|
|
+ WebsitDispatch websitDispatch = new WebsitDispatch();
|
|
|
+ websitDispatch.setWebsitId(adminWebsit.getWebsitId());
|
|
|
+ websitDispatch.setWebsitName(adminWebsit.getName());
|
|
|
+ websitDispatch.setProvinceCode(adminWebsit.getName());
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|