Changeset f29cd58 for src/main/java/edu/gjoko/schedlr/services
- Timestamp:
- 01/15/24 00:11:01 (10 months ago)
- Branches:
- master
- Children:
- 943857c
- Parents:
- e8999eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/services/ServicesService.java
re8999eb rf29cd58 5 5 import edu.gjoko.schedlr.entity.ServiceType; 6 6 import edu.gjoko.schedlr.repositories.BusinessRepository; 7 import edu.gjoko.schedlr.repositories.BusinessTypeRepository;8 7 import edu.gjoko.schedlr.repositories.ServiceRepository; 9 8 import edu.gjoko.schedlr.repositories.ServiceTypeRepository; … … 29 28 } 30 29 30 public List<edu.gjoko.schedlr.entity.Service> getServicesByKeyword(String keyword) { 31 return serviceRepository.getServicesByKeyword(keyword); 32 } 33 31 34 public void saveOrUpdateServices(List<edu.gjoko.schedlr.entity.Service> serviceList, Long ownerId) { 32 35 if (!CollectionUtils.isEmpty(serviceList)) { … … 38 41 found.setPrice(service.getPrice()); 39 42 found.setServiceStatus(ServiceStatus.ACTIVE); 43 found.setDescription(service.getDescription()); 40 44 serviceRepository.save(found); 41 45 } else {
Note:
See TracChangeset
for help on using the changeset viewer.