初始化项目

This commit is contained in:
andy committed 2026-01-26 16:01:15 +08:00
1 parent 45a1702948
commit 934b8aad40
155 files changed
+2649 -68

No files matched your search

@@ -0,0 +1,73 @@
package com.bycrm.mapper;
import com.bycrm.entity.Report;
import com.bycrm.dto.PageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 报备 Mapper
*/
@Mapper
public interface ReportMapper {
/**
* 根据ID查询报备(含关联信息)
*/
Report selectById(@Param("id") Long id);
/**
* 查询客户的有效报备
*/
Report selectValidByCustomerId(@Param("customerId") Long customerId);
/**
* 分页查询报备
*/
List<Report> selectPage(@Param("query") PageQuery query, @Param("dealerId") Long dealerId,
@Param("dealerName") String dealerName, @Param("customerName") String customerName,
@Param("status") Integer status);
/**
* 查询报备总数
*/
Long countPage(@Param("dealerId") Long dealerId, @Param("dealerName") String dealerName,
@Param("customerName") String customerName, @Param("status") Integer status);
/**
* 插入报备
*/
int insert(Report report);
/**
* 更新报备
*/
int update(Report report);
/**
* 删除报备
*/
int deleteById(@Param("id") Long id);
/**
* 查询即将过期的报备(定时任务使用)
*/
List<Report> selectExpiringReports(@Param("endDate") String endDate);
/**
* 批量更新报备状态为已失效
*/
int batchUpdateExpired(@Param("ids") List<Long> ids);
/**
* 统计报备总数(根据经销商ID过滤)
*/
Long countByDealerId(@Param("dealerId") Long dealerId);
/**
* 统计待审核报备数量(根据经销商ID过滤)
*/
Long countPendingByDealerId(@Param("dealerId") Long dealerId);
}