公告板
版本库
filestore
活动
搜索
登录
main
/
cube-quick-start
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
调整
peng
2026-03-24
73d124ce71e60685b19cc74a44e21dc080f7bfb6
[cube-quick-start.git]
/
jyz-base-start
/
src
/
main
/
java
/
com
/
tievd
/
jyz
/
mapper
/
OilStaticMapper.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.tievd.jyz.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tievd.jyz.entity.OilStatis;
import com.tievd.jyz.entity.vo.CustomerStatVO;
import org.apache.ibatis.annotations.Select;
/**
* OilStatis
* @author cube
* @since 2023-02-27
* @version V2.0.0
*/
public interface OilStaticMapper extends BaseMapper<OilStatis> {
/** 客户类型统计 */
@Select("select count(if(client_type=1, 1, null)) prospectCount, count(if(client_type=2, 1, null)) generalCustomerCount, count(if(client_type=3, 1, null)) loyalCustomerCount from t_oil_statis tos where tos.org_code like concat(#{orgCode}, '%')")
CustomerStatVO custommerStat(String orgCode);
}