Changeset 4a93293
- Timestamp:
- 01/08/23 21:27:17 (23 months ago)
- Branches:
- main
- Children:
- c579aef
- Parents:
- 0afa35a
- Location:
- FullyStocked/src/main
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FullyStocked/src/main/java/com/bazi/fullystocked/Services/ArticlesService.java
r0afa35a r4a93293 5 5 import com.bazi.fullystocked.Models.SqlViews.ArticlesAtLocationReport; 6 6 import com.bazi.fullystocked.Models.SqlViews.SupplierSuppliesArticleReport; 7 8 7 import java.util.*; 9 8 10 9 public interface ArticlesService { 10 11 11 Optional<Articles> create(String description, String articlename, int maxquantityperlocation); 12 12 13 Optional<Articles> create(String description, String articlename, String imageurl, int maxquantityperlocation); 14 13 15 Optional<Articles> addToCategory(Integer articleId, Integer categoryId); 14 16 List<Categories> findAllCategoriesByArticle(Integer articleId); 17 15 18 List<SupplierSuppliesArticleReport> findAllBySupplier(Integer id); 19 16 20 List<ArticlesAtLocationReport> findAvailabilityAtAllLocations(Integer id); 17 21 -
FullyStocked/src/main/java/com/bazi/fullystocked/Services/Implementations/ArticlesServiceImpl.java
r0afa35a r4a93293 32 32 33 33 @Override 34 @Transactional 34 35 public Optional<Articles> create(String description, String articlename, int maxquantityperlocation) { 35 36 if(description==null || description.isEmpty() || articlename==null || articlename.isEmpty() || maxquantityperlocation<=0) … … 41 42 42 43 @Override 44 @Transactional 43 45 public Optional<Articles> create(String description, String articlename, String imageurl, int maxquantityperlocation) { 44 46 if(description==null || description.isEmpty() || articlename==null || articlename.isEmpty() || maxquantityperlocation<=0)
Note:
See TracChangeset
for help on using the changeset viewer.