package com.mfsys.uco.service; import com.mfsys.uco.model.CustomerAccountActivity; import com.mfsys.uco.repository.CustomerAccountActivityRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class CustomerAccountActivityService { private CustomerAccountActivityRepository customerAccountActivityRepository; @Autowired public CustomerAccountActivityService(CustomerAccountActivityRepository customerAccountActivityRepository) { this.customerAccountActivityRepository = customerAccountActivityRepository; } public List getCustomerAccountActivity(String porOrgacode, String cmpCustcode, String fdate, String tdate) { return customerAccountActivityRepository.findAllByCmpUserIdAndDateBetween(porOrgacode, cmpCustcode, fdate, tdate); } public void postCustomerAccountActivity(CustomerAccountActivity customerAccountActivity) { customerAccountActivityRepository.save(customerAccountActivity); } }