package vn.azteam.tpf.service; import vn.azteam.tpf.service.dto.TBCodeDTO; import java.util.List; import java.util.Optional; /** * Service Interface for managing TBCode. */ public interface TBCodeService { TBCodeDTO save(TBCodeDTO tBCodeDTO); List saveAll(List tBCodeDTOs); Optional findOne(Long id); Optional updateStatusTBCode(TBCodeDTO tBCodeDTO); // /** // * Update crop's PIC // * @param cropPersonInChargeDTO // * @return the persisted entity // */ // Optional updateCropPersonInCharge(CropPersonInChargeDTO cropPersonInChargeDTO); // // /** // * Get all the tBCrops. // * // * @param pageable the pagination information // * @return the list of entities // */ // Page findAll(Pageable pageable); // // /** // * Get all the TBCrop with eager load of many-to-many relationships. // * // * @return the list of entities // */ // Page findAllWithEagerRelationships(Pageable pageable); // // /** // * Get the "id" tBCrop. // * // * @param id the id of the entity // * @return the entity // */ // Optional findOne(Long id); // // /** // * Delete the "id" tBCrop. // * // * @param id the id of the entity // */ // void delete(Long id); // // /** // * Search for the tBCrop corresponding to the query. // * // * @param query the query of the search // * // * @param pageable the pagination information // * @return the list of entities // */ // Page search(String query, Pageable pageable); // // /** // * Search for the tBCrop corresponding to the query, areaId or netHouseId. // * // * @param query the query of the search // * @param areaId the areaId of the search // * @param netHouseId the netHouseId of the search // * // * @param pageable the pagination information // * @return the list of entities // */ // Page searchCrop(String query, Long areaId, Long netHouseId, Pageable pageable); // // List getAllCustomerHasCropTypeByCustomerAndCropType(Long customerId, Long cropTypeId); // // List getListActivityTypeIdByByCustomerAndCropType(Long customerId, Long cropTypeId); // // List getListActivityTypeNameByByCustomerAndCropType(Long customerId, Long cropTypeId); // // List getAllCropIdByCustomer(Long customerId); }