|
|
|
@@ -1,10 +1,13 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.domain.dto.MarkingCouponDataReportDto; |
|
|
|
import com.iformall.domain.po.WxUserVisit; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.vo.TouchUsersReportVo; |
|
|
|
import com.iformall.mapper.WxUserVisitMapper; |
|
|
|
import com.iformall.service.WxUserVisitService; |
|
|
|
@@ -16,6 +19,7 @@ import com.iformall.common.IdWorker; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class WxUserVisitServiceImpl implements WxUserVisitService { |
|
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@@ -33,8 +37,11 @@ public class WxUserVisitServiceImpl implements WxUserVisitService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxUserVisit getById(Long id) { |
|
|
|
return wxUserVisitMapper.selectById(id); |
|
|
|
public WxUserVisit getById(Long id, TenantEntity tenantEntity) { |
|
|
|
WxUserVisit record = new WxUserVisit(); |
|
|
|
record.updateTenantInfo(tenantEntity); |
|
|
|
record.setId(id); |
|
|
|
return wxUserVisitMapper.selectOne(new QueryWrapper<>(record)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@@ -50,8 +57,11 @@ public class WxUserVisitServiceImpl implements WxUserVisitService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteById(Long id) { |
|
|
|
wxUserVisitMapper.deleteById(id); |
|
|
|
public void deleteById(Long id, TenantEntity tenantEntity) { |
|
|
|
WxUserVisit record = new WxUserVisit(); |
|
|
|
record.updateTenantInfo(tenantEntity); |
|
|
|
record.setId(id); |
|
|
|
wxUserVisitMapper.delete(new QueryWrapper<>(record)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|