|
|
@@ -48,7 +48,7 @@ public class PurchaseNotifyServiceImpl implements PurchaseNotifyService {
|
|
|
for (PurchaseNotify notify : notifies) {
|
|
|
PurchaseNotice notice = notify.convert();
|
|
|
List<PurchaseNotice> existNotices = purchaseNoticeDao.findByEnUUAndSourceId(notice.getEnUU(), notice.getSourceId());
|
|
|
- if (CollectionUtils.isEmpty(existNotices)) {// sourceId已存在不考虑
|
|
|
+ if (CollectionUtils.isEmpty(existNotices)) {// sourceId不存在新增保存
|
|
|
List<PurchaseOrderItem> orderItems = purchaseOrderItemDao.findByEnUUAndOrderCodeAndNumber(notice.getEnUU(), notice
|
|
|
.getOrderItem().getOrder().getCode(), notice.getOrderItem().getNumber());
|
|
|
if (!CollectionUtils.isEmpty(orderItems)) {
|
|
|
@@ -56,7 +56,7 @@ public class PurchaseNotifyServiceImpl implements PurchaseNotifyService {
|
|
|
notice.setOrderItemId(notice.getOrderItem().getId());
|
|
|
notices.add(notice);
|
|
|
}
|
|
|
- } else {// 对现有的单据,
|
|
|
+ } else {// 对现有的单据,修改
|
|
|
PurchaseNotice existNotice = existNotices.get(0);
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("MM月dd日");
|
|
|
String dateString = dateFormat.format(new Date());
|