You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
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<CustomerAccountActivity> getCustomerAccountActivity(String porOrgacode, String cmpCustcode, String fdate, String tdate) {
|
|
return customerAccountActivityRepository.findAllByCmpUserIdAndDateBetween(porOrgacode, cmpCustcode, fdate, tdate);
|
|
}
|
|
|
|
public void postCustomerAccountActivity(CustomerAccountActivity customerAccountActivity) {
|
|
customerAccountActivityRepository.save(customerAccountActivity);
|
|
}
|
|
|
|
}
|