| | |
| | | using Model.ModelDto.SysDto; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | |
| | | /// <param name="limit"></param> |
| | | /// <param name="count"></param> |
| | | /// <returns></returns> |
| | | List<CustomerDto> GetCustomerList(string no, string name,int? type,string linkMan,string phone ,int page,int limit,out int count); |
| | | Task<List<CustomerDto>> GetCustomerList(string no, string name,int? type,string linkMan,string phone ,int page,int limit,RefAsync<int> count); |
| | | /// <summary> |
| | | /// 查询单条客户信息 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | SysCustomer GetCustomer(int id); |
| | | Task<SysCustomer> GetCustomer(int id); |
| | | /// <summary> |
| | | /// 查询全部客户信息 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | List<SysCustomer> GetCustomerSelect(); |
| | | Task<List<SysCustomer>> GetCustomerSelect(); |
| | | /// <summary> |
| | | /// 添加客户信息 |
| | | /// </summary> |
| | |
| | | /// <param name="creditRating">信用等级</param> |
| | | /// <param name="userId">操作人</param> |
| | | /// <returns></returns> |
| | | bool AddCustomer(string no,string name, int type,string address, string linkMan, string phone,string bankAccount,string creditRating, string demo,int userId); |
| | | Task<bool> AddCustomer(string no,string name, int type,string address, string linkMan, string phone,string bankAccount,string creditRating, string demo,int userId); |
| | | |
| | | /// <summary> |
| | | /// 编辑客户信息 |
| | |
| | | /// <param name="creditRating">信用等级</param> |
| | | /// <param name="userId">操作人</param> |
| | | /// <returns></returns> |
| | | bool EditCustomer(int id,string no,string name, int type, string address, string linkMan, string phone, string bankAccount, string creditRating, string demo, int userId); |
| | | Task<bool> EditCustomer(int id,string no,string name, int type, string address, string linkMan, string phone, string bankAccount, string creditRating, string demo, int userId); |
| | | /// <summary> |
| | | /// 删除单条客户信息 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <param name="userId"></param> |
| | | /// <returns></returns> |
| | | bool DelCustomer(int id,int userId); |
| | | Task<bool> DelCustomer(int id,int userId); |
| | | /// <summary> |
| | | /// 删除单条客户信息 |
| | | /// </summary> |
| | | /// <param name="ids"></param> |
| | | /// <param name="userId"></param> |
| | | /// <returns></returns> |
| | | bool DelsCustomer(List<int> ids, int userId); |
| | | Task<bool> DelsCustomer(List<int> ids, int userId); |
| | | } |
| | | } |