Files
klp-oa/klp-crm/src/main/java/com/klp/crm/mapper/CrmCustomerMapper.java
Joshi 2559dc27cb feat(crm): 添加客户编码自动生成功能
- 新增 selectMaxCustomerCode 方法查询最大客户编码
- 实现客户编码自动生成逻辑,支持纯数字和带前缀格式
- 添加正则表达式解析编码规则并递增末尾数字
- 集成编码生成功能到客户插入业务流程中
2026-06-12 13:17:33 +08:00

21 lines
472 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.crm.mapper;
import com.klp.crm.domain.CrmCustomer;
import com.klp.crm.domain.vo.CrmCustomerVo;
import com.klp.common.core.mapper.BaseMapperPlus;
/**
* 客户信息Mapper接口
*
* @author klp
* @date 2025-12-15
*/
public interface CrmCustomerMapper extends BaseMapperPlus<CrmCustomerMapper, CrmCustomer, CrmCustomerVo> {
/**
* 查询当前最大的customer_code用于自动生成新编码
*/
String selectMaxCustomerCode();
}