重构所有VO对象,统一字段命名规范,移除冗余字段,优化接口实现 新增Voable接口用于VO对象转换 调整BaseViewModel和ProjectBasedViewModel接口定义 更新相关服务和控制器以适应VO对象变更
21 lines
732 B
Java
21 lines
732 B
Java
package com.ecep.contract.service;
|
|
|
|
import java.util.List;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import com.ecep.contract.util.ParamUtils;
|
|
import com.ecep.contract.vm.CustomerEntityViewModel;
|
|
import com.ecep.contract.vo.CompanyCustomerEntityVo;
|
|
import com.ecep.contract.vo.CompanyCustomerVo;
|
|
|
|
@Service
|
|
public class CompanyCustomerEntityService extends QueryService<CompanyCustomerEntityVo, CustomerEntityViewModel> {
|
|
public List<CompanyCustomerEntityVo> findAllByCustomer(CompanyCustomerVo customer) {
|
|
return findAll(ParamUtils.builder()
|
|
.equals("customer", customer.getId()).build(), Pageable.unpaged())
|
|
.getContent();
|
|
}
|
|
}
|