| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Comparator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 配方配置子信息Controller |
| | |
| | | @Autowired |
| | | private ProductProcessService productProcessService; |
| | | |
| | | private static final String ZERO = "0"; |
| | | |
| | | /** |
| | | * 查询配方配置子信息列表 |
| | | */ |
| | |
| | | formulaChildInfo.setAddress(formulaChildInfo.getTechRequirement()); |
| | | formulaChildInfo.setImg(formulaChildInfo.getPicture()); |
| | | } |
| | | list = list.stream() |
| | | .filter(x -> !ZERO.equals(x.getSort())).sorted(Comparator.comparing(BsFormulaChildInfo::getSort)).collect(Collectors.toList()); |
| | | return getDataTable(list); |
| | | } |
| | | |