|
@@ -27,6 +27,7 @@ import com.platform.service.remote.RemoteOpcService;
|
|
|
import com.platform.service.remote.RemotePositionService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.activiti.engine.task.Task;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -352,6 +353,7 @@ public class RemoteOpcServiceImpl extends BaseServiceImpl<RemoteOpcMapper, Remot
|
|
|
}
|
|
|
// 发送到采购系统
|
|
|
if (!CollectionUtils.isEmpty(list)) {
|
|
|
+ list = list.stream().distinct().collect(Collectors.toList());
|
|
|
String url = ConfigCache.getLabelByValueAllowNull(SysConfigEnum.PURCHASE_SYSTEM_URL_YEWEI.name());
|
|
|
if (StringUtil.isEmpty(url)) {
|
|
|
throw new BusinessException("请配置采购系统液位接收地址");
|