|
|
@@ -1,7 +1,6 @@
|
|
|
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.dao.B2bCodeSetDao;
|
|
|
import com.uas.platform.b2b.dao.BarLPSetingDao;
|
|
|
import com.uas.platform.b2b.dao.BarPackageDao;
|
|
|
@@ -290,6 +289,16 @@ public class PurchaseNoticeServiceImpl implements PurchaseNoticeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 送货提醒结案
|
|
|
+ *
|
|
|
+ * @param notifies 买家ERP系统的送货提醒单
|
|
|
+ * @return 原ERPid拼接的字符串
|
|
|
+ * @modify-author hejq
|
|
|
+ * @modify-date 2018-10-25 9:31
|
|
|
+ * @modify-desc 移除送货提醒结案id日志记录,查询地点迁移
|
|
|
+ * <a href="https://b2b-admin.usoftchina.com/notice"></a>
|
|
|
+ */
|
|
|
@Override
|
|
|
public String end(List<PurchaseNotify> notifies) {
|
|
|
long enUU = SystemSession.getUser().getEnterprise().getUu();
|
|
|
@@ -303,20 +312,12 @@ public class PurchaseNoticeServiceImpl implements PurchaseNoticeService {
|
|
|
}
|
|
|
noticeList = noticeEndDao.save(noticeList);
|
|
|
StringBuffer buffer = new StringBuffer();
|
|
|
- List<Long> idList = new ArrayList<>();
|
|
|
noticeList.forEach(notice -> {
|
|
|
if (buffer.length() > 0) {
|
|
|
buffer.append(",");
|
|
|
}
|
|
|
buffer.append(notice.getSourceId());
|
|
|
- idList.add(notice.getId());
|
|
|
});
|
|
|
- int maxIdNum = 50;
|
|
|
- if (idList.size() > 0) {
|
|
|
- List<List<Long>> ids = SplitArray.splitAry(idList, maxIdNum);
|
|
|
- final Long userUU = SystemSession.getUser().getUserUU();
|
|
|
- ids.forEach(idString -> logger.log(userUU, enUU, "结案送货提醒", "ERP上传单据结案送货提醒", idString.toString()));
|
|
|
- }
|
|
|
return buffer.toString();
|
|
|
}
|
|
|
|