package com.ltkj.hosp.mapper;
|
|
import java.sql.ResultSet;
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ltkj.hosp.domain.TjCustomer;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Select;
|
|
/**
|
* 客户信息Mapper接口
|
*
|
* @author ltkj
|
* @date 2022-11-17
|
*/
|
@Mapper
|
public interface TjCustomerMapper extends BaseMapper<TjCustomer> {
|
/**
|
* 查询客户信息
|
*
|
* @param cusId 客户信息主键
|
* @return 客户信息
|
*/
|
public TjCustomer selectTjCustomerByCusId(Long cusId);
|
|
/**
|
* 查询客户信息列表
|
*
|
* @param tjCustomer 客户信息
|
* @return 客户信息集合
|
*/
|
public List<TjCustomer> selectTjCustomerList(TjCustomer tjCustomer);
|
|
/**
|
* 新增客户信息
|
*
|
* @param tjCustomer 客户信息
|
* @return 结果
|
*/
|
public int insertTjCustomer(TjCustomer tjCustomer);
|
|
/**
|
* 修改客户信息
|
*
|
* @param tjCustomer 客户信息
|
* @return 结果
|
*/
|
public int updateTjCustomer(TjCustomer tjCustomer);
|
|
/**
|
* 删除客户信息
|
*
|
* @param cusId 客户信息主键
|
* @return 结果
|
*/
|
public int deleteTjCustomerByCusId(Long cusId);
|
|
/**
|
* 批量删除客户信息
|
*
|
* @param cusIds 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteTjCustomerByCusIds(Long[] cusIds);
|
|
|
@Select("SELECT * FROM tj_customer WHERE cus_name like concat('%',#{name},'%') AND deleted=0 ")
|
List<TjCustomer> getTjCustomerList(String name);
|
|
|
@Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard}")
|
TjCustomer getTjCustomerByCusIdCard(String cusIdCard);
|
|
|
@Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard}")
|
ResultSet getJsonParseCustomerList(String deptId, Integer page, Integer pageSize, String cusName, String tjNumber);
|
}
|