You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
761 B
24 lines
761 B
package com.example.web.mapper;
|
|
|
|
import com.example.web.entity.Contacts;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface SupplyContactsMapper {
|
|
|
|
// 根据企业ID查询联系人信息
|
|
List<Contacts> selectContactsByEnterpriseId(String id);
|
|
|
|
// 查询所有联系人信息
|
|
List<Contacts> selectAllContacts();
|
|
// 新增联系人
|
|
int insertContacts(Contacts contacts);
|
|
// 新增:根据电话号码查询记录数(用于判断是否重复)
|
|
int countByPhoneNumber(String phoneNumber);
|
|
// 新增:根据手机号查询联系人(关联企业信息)
|
|
Contacts selectByPhoneNumber(String phoneNumber);
|
|
// 修改编辑功能
|
|
int updateContacts(Contacts contacts);
|
|
}
|
|
|