|
|
@@ -3,6 +3,7 @@ package com.uas.platform.b2b.service.impl;
|
|
|
import com.uas.platform.b2b.core.util.ContextUtils;
|
|
|
import com.uas.platform.b2b.core.util.SplitArray;
|
|
|
import com.uas.platform.b2b.core.util.ThreadTask;
|
|
|
+import com.uas.platform.b2b.core.util.ThreadUtils;
|
|
|
import com.uas.platform.b2b.dao.*;
|
|
|
import com.uas.platform.b2b.erp.model.PurchaseNotify;
|
|
|
import com.uas.platform.b2b.event.PurchaseNoticeEndReleaseEvent;
|
|
|
@@ -453,7 +454,15 @@ public class PurchaseNoticeServiceImpl implements PurchaseNoticeService {
|
|
|
saleSends.add(sendItems.get(0).getSend());
|
|
|
}
|
|
|
// 我的产品库更新
|
|
|
- productUsersService.coverToMyProduct(notice.getOrderItem().getProductId(), SystemSession.getUser().getEnterprise().getUu(), SystemSession.getUser().getUserUU(), "单个发货");
|
|
|
+ final Long enUU = SystemSession.getUser().getEnterprise().getUu();
|
|
|
+ final Long userUU = SystemSession.getUser().getUserUU();
|
|
|
+ final Long productId = notice.getOrderItem().getProductId();
|
|
|
+ ThreadUtils.task(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ productUsersService.coverToMyProduct(productId, enUU, userUU, "单个发货");
|
|
|
+ }
|
|
|
+ }).run();
|
|
|
return sendItems.get(0).getSend();
|
|
|
} else {
|
|
|
throw new IllegalOperatorException("请对有效的送货提醒发货!");
|