package com.jcdm.main.bs.formulaChild.service.impl; import com.jcdm.main.bs.formulaChild.Query.ProductProcessQuery; import com.jcdm.main.bs.formulaChild.domain.BsFormulaChildInfo; import com.jcdm.main.bs.formulaChild.mapper.BsFormulaChildInfoMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; @Service public class ProductProcessService { @Resource private BsFormulaChildInfoMapper bsFormulaChildInfoMapper; public List getProductProcess(ProductProcessQuery productProcessQuery){ List list = bsFormulaChildInfoMapper.getProductProcess(productProcessQuery); // if (CollUtil.isNotEmpty(list)){ // list = list.stream().sorted(Comparator.comparing(BsFormulaChildInfo::getStepSort)).collect(Collectors.toList()); // } return list; } }