| | |
| | | import com.iailab.module.ansteel.coking.entity.CokingProdDayEntity; |
| | | import com.iailab.module.ansteel.coking.service.CokingProcessConfService; |
| | | import com.iailab.module.ansteel.coking.service.CokingProdDayService; |
| | | import com.iailab.module.ansteel.coking.service.CokingTraceIndService; |
| | | import com.iailab.module.ansteel.common.enums.ProcessConfDataTypeEnum; |
| | | import com.iailab.module.data.api.ind.IndItemApi; |
| | | import com.iailab.module.data.api.ind.dto.ApiIndItemValueDTO; |
| | |
| | | |
| | | @Resource |
| | | private CokingProdDayService cokingProdDayService; |
| | | |
| | | @Resource |
| | | private CokingTraceIndService cokingTraceIndService; |
| | | |
| | | @Resource |
| | | private DataPointApi dataPointApi; |
| | |
| | | break; |
| | | |
| | | } |
| | | saveProdDay(conf, value, clock); |
| | | saveProdDay(conf, value, clock, conf.getIndCode()); |
| | | } |
| | | } catch (Exception ex) { |
| | | logger.error("RunCokingProdDayTask运行异常"); |
| | |
| | | |
| | | } |
| | | |
| | | private void saveProdDay(CokingProcessConfEntity conf, String value, String clock) { |
| | | CokingProdDayEntity cokingProdDayEntity = new CokingProdDayEntity(); |
| | | cokingProdDayEntity.setInfoType(conf.getInfoType()); |
| | | cokingProdDayEntity.setSort(conf.getSort()); |
| | | cokingProdDayEntity.setIndName(conf.getIndName()); |
| | | cokingProdDayEntity.setIndUnit(conf.getIndUnit()); |
| | | cokingProdDayEntity.setIndValue(value); |
| | | cokingProdDayEntity.setClock(clock); |
| | | cokingProdDayService.save(cokingProdDayEntity); |
| | | private void saveProdDay(CokingProcessConfEntity conf, String value, String clock, String indCode) { |
| | | CokingProdDayEntity entity = new CokingProdDayEntity(); |
| | | entity.setInfoType(conf.getInfoType()); |
| | | entity.setSort(conf.getSort()); |
| | | entity.setIndCode(indCode); |
| | | entity.setIndName(conf.getIndName()); |
| | | entity.setIndUnit(conf.getIndUnit()); |
| | | entity.setIndValue(value); |
| | | entity.setClock(clock); |
| | | cokingProdDayService.save(entity); |
| | | } |
| | | } |