删除客户导购关系

dev_0531
yechenhao 5 years ago
parent 1e8af0ed51
commit 5098a86107

@ -378,9 +378,9 @@ public class CustomerService {
cpUserQw.eq("cp_user_id", turnBackDTOS.getUserId()).last("limit 1");
PrivilageCpUserDO privilageCpUserDO = privilageCpUserDOMapper.selectOne(cpUserQw);
QueryWrapper<PrivilageCpUserStoreDO> relationQw = new QueryWrapper<>();
QueryWrapper<OpSellerCustomerRelation> relationQw = new QueryWrapper<>();
relationQw.eq("customer_id", customer.getId()).eq("user_id", privilageCpUserDO.getId()).eq("type", 3);
privilageCpUserStoreDOMapper.delete(relationQw);
opSellerCustomerRelationDOMapper.delete(relationQw);
} else {
String eaCode = turnBackDTOS.getEaCode();
PoiStoreStaff staff;
@ -392,9 +392,9 @@ public class CustomerService {
staffQw.eq("staff_code", turnBackDTOS.getUserId()).eq("type", 1).eq("store_id", poiStore.getStoreId()).last("limit 1");
staff = poiStoreStaffDOMapper.selectOne(staffQw);
}
QueryWrapper<PrivilageCpUserStoreDO> relationQw = new QueryWrapper<>();
QueryWrapper<OpSellerCustomerRelation> relationQw = new QueryWrapper<>();
relationQw.eq("customer_id", customer.getId()).eq("user_id", staff.getId());
privilageCpUserStoreDOMapper.delete(relationQw);
opSellerCustomerRelationDOMapper.delete(relationQw);
}
}

Loading…
Cancel
Save