|
@@ -174,6 +174,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
Contacts contacts = new Contacts();
|
|
|
contacts.setContactName(item.getContactName());
|
|
|
contacts.setMemberId(orderVo.getMemberId());
|
|
|
+ if (item.getMemberId() == null) {
|
|
|
+ item.setMemberId(orderVo.getMemberId());
|
|
|
+ }
|
|
|
List<Contacts> list = contactsService.queryList(contacts);
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
contactsService.save(item);
|