| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ClientService extends BaseServiceImpl<ClientMapper, Client> { |
| | | |
| | | |
| | | private final ClientMapper clientMapper; |
| | | |
| | | public boolean addClient(ClientPrarm clientPrarm) { |
| | | Client client=new Client(); |
| | |
| | | return removeById(id); |
| | | } |
| | | |
| | | public List<Client> clientList(Long userId) { |
| | | return clientMapper.clientList(userId); |
| | | } |
| | | |
| | | public Client findByPhone(String phone) { |
| | | return getOne(Wrappers.lambdaQuery(Client.class).eq(Client::getMobile, phone).last("limit 1")); |
| | | } |