ソースを参照

Merge branch 'hurx'

hurx 1 ヶ月 前
コミット
894799b299

+ 7 - 7
ruoyi-modules/ruoyi-customer/src/main/java/org/dromara/customer/service/impl/CustomerInfoServiceImpl.java

@@ -176,22 +176,22 @@ public class CustomerInfoServiceImpl extends ServiceImpl<CustomerInfoMapper, Cus
         Set<Long> comDeptIds = new HashSet<>(); //系统的部门
 
         if (vo.getSalesPersonId() != null) {
-            comStaffIds.add(customerSalesInfo.getSalesPersonId());
+            comStaffIds.add(vo.getSalesPersonId());
         }
         if (vo.getServiceStaffId() != null) {
-            comStaffIds.add(customerSalesInfo.getServiceStaffId());
+            comStaffIds.add(vo.getServiceStaffId());
         }
         if (vo.getBelongingDepartmentId() != null) {
-            comDeptIds.add(customerSalesInfo.getBelongingDepartmentId());
+            comDeptIds.add(vo.getBelongingDepartmentId());
         }
 
-        Map<Long, String> comStaffMap = staffIds.isEmpty()
+        Map<Long, String> comStaffMap = comStaffIds.isEmpty()
             ? Collections.emptyMap()
-            : remoteComStaffService.selectStaffNameByIds(staffIds);
+            : remoteComStaffService.selectStaffNameByIds(comStaffIds);
 
-        Map<Long, String> comDeptMap = deptIds.isEmpty()//系统的部门
+        Map<Long, String> comDeptMap = comDeptIds.isEmpty()//系统的部门
             ? Collections.emptyMap()
-            : remoteDeptService.selectDeptNameByIds(deptIds);
+            : remoteDeptService.selectDeptNameByIds(comDeptIds);
 
         /*回填系统的人员与部门*/
         vo.setSalesPersonName(comStaffMap.get(vo.getSalesPersonId()));

+ 1 - 1
ruoyi-modules/ruoyi-order/src/main/java/org/dromara/order/service/impl/OrderMainServiceImpl.java

@@ -602,7 +602,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
 
             Map<Long, String> deptMap = deptIds.isEmpty()
                 ? Collections.emptyMap()
-                : remoteComDeptService.selectDeptNameByIds(deptIds);
+                : remoteDeptService.selectDeptNameByIds(deptIds);
 
             mainBo.setBusinessStaff(staffMap.get(salesPersonId));
             mainBo.setCustomerService(staffMap.get(serviceStaffId));