删除客户导购关系

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"); cpUserQw.eq("cp_user_id", turnBackDTOS.getUserId()).last("limit 1");
PrivilageCpUserDO privilageCpUserDO = privilageCpUserDOMapper.selectOne(cpUserQw); 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); relationQw.eq("customer_id", customer.getId()).eq("user_id", privilageCpUserDO.getId()).eq("type", 3);
privilageCpUserStoreDOMapper.delete(relationQw); opSellerCustomerRelationDOMapper.delete(relationQw);
} else { } else {
String eaCode = turnBackDTOS.getEaCode(); String eaCode = turnBackDTOS.getEaCode();
PoiStoreStaff staff; 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"); staffQw.eq("staff_code", turnBackDTOS.getUserId()).eq("type", 1).eq("store_id", poiStore.getStoreId()).last("limit 1");
staff = poiStoreStaffDOMapper.selectOne(staffQw); 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()); relationQw.eq("customer_id", customer.getId()).eq("user_id", staff.getId());
privilageCpUserStoreDOMapper.delete(relationQw); opSellerCustomerRelationDOMapper.delete(relationQw);
} }
} }

Loading…
Cancel
Save