Explorar o código

feat(vendor): 供应商分配代码优化

hejq %!s(int64=7) %!d(string=hai) anos
pai
achega
8de834788f

+ 1 - 1
src/main/java/com/uas/platform/b2b/service/impl/VendorsServiceImpl.java

@@ -618,7 +618,7 @@ public class VendorsServiceImpl implements VendorService {
                             distribute = distributes.get(0);
                             boolean isNotTransfer = null == distribute.getDistribute() || Constant.NO == distribute.getDistribute();
                             if (!Objects.equals(distribute.getLeaderUU(), currentUserUU) || isNotTransfer) {
-                                distribute.setLeaderUU(SystemSession.getUser().getUserUU());
+                                distribute.setLeaderUU(currentUserUU);
                                 distribute.setIsTransfer(Constant.YES);
                                 saveList.add(distribute);
                             }