|
|
|
@ -161,7 +161,6 @@ public class CustomerService {
|
|
|
|
|
* @param turnBackDTOS 数据实体
|
|
|
|
|
* @return 是否成功
|
|
|
|
|
*/
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void turnBack(TurnBackDTO turnBackDTOS) throws Exception {
|
|
|
|
|
if (turnBackDTOS.getWxData().getUnionId() == null || turnBackDTOS.getUserId() == null) {
|
|
|
|
|
return;
|
|
|
|
@ -307,7 +306,8 @@ public class CustomerService {
|
|
|
|
|
* @param opCustomer 客户的数据信息
|
|
|
|
|
* @param staffCode 导购Code
|
|
|
|
|
*/
|
|
|
|
|
private void sellerCustomerRelation(OpCustomer opCustomer, String staffCode,Date joinTime, long shopId, long sellerId) {
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void sellerCustomerRelation(OpCustomer opCustomer, String staffCode,Date joinTime, long shopId, long sellerId) {
|
|
|
|
|
QueryWrapper<PoiStoreStaff> staf = new QueryWrapper<PoiStoreStaff>();
|
|
|
|
|
staf.eq("staff_code", staffCode).eq("status", 1).ne("user_id", 0).last("limit 1");
|
|
|
|
|
|
|
|
|
@ -341,7 +341,8 @@ public class CustomerService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void storeCustomerRelation(OpCustomer opCustomer, Date joinTime,long shopId) {
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void storeCustomerRelation(OpCustomer opCustomer, Date joinTime,long shopId) {
|
|
|
|
|
QueryWrapper<OpSellerCustomerRelation> wrapper1 = new QueryWrapper<>();
|
|
|
|
|
wrapper1.eq("customer_id", opCustomer.getId()).eq("store_id", shopId).last("limit 1");
|
|
|
|
|
OpSellerCustomerRelation opSellerCustomerRelation = opSellerCustomerRelationDOMapper.selectOne(wrapper1);
|
|
|
|
|