| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | |
| | | CokingProcessConfEntity queryParams = new CokingProcessConfEntity(); |
| | | queryParams.setIndType("child"); |
| | | List<CokingProcessConfEntity> list = cokingProcessConfService.list(queryParams); |
| | | if (ObjectUtils.isNotEmpty(list)) { |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | logger.info("子工序配置为空"); |
| | | return; |
| | | } |
| | | // 先建立ext1到sort的映射关系 |
| | | Map<String, Integer> ext1ToSort = list.stream() |
| | | .collect(Collectors.toMap( |
| | |
| | | }); |
| | | cokingProcessChildService.save(cokingProcessChildEntity); |
| | | }); |
| | | } |
| | | |
| | | } catch (Exception ex) { |
| | | logger.error("RunCokingChildDayTask运行异常"); |