| | |
| | | import com.iailab.module.model.mcs.pre.enums.ItemIncreaseCodeEnum; |
| | | import com.iailab.module.model.mcs.pre.enums.ItemTypeEnum; |
| | | import com.iailab.module.model.mcs.pre.service.MmPredictItemService; |
| | | import com.iailab.module.model.mcs.pre.service.SequenceNumService; |
| | | import com.iailab.module.model.mcs.pre.service.MmSequenceNumService; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictItemPageReqVO; |
| | | import com.iailab.module.model.mdk.vo.ItemVO; |
| | | import com.iailab.module.model.mdk.vo.MergeItemVO; |
| | |
| | | private MmItemTypeImpl mmItemTypeImpl; |
| | | |
| | | @Autowired |
| | | private SequenceNumService sequenceNumService; |
| | | private MmSequenceNumService sequenceNumService; |
| | | |
| | | @Autowired |
| | | private MmPredictItemDao mmPredictItemDao; |
| | |
| | | // } |
| | | |
| | | @Override |
| | | public List<MmPredictItemEntity> list(Map<String, Object> params) { |
| | | return Collections.emptyList(); |
| | | public List<MmPredictItemEntity> list() { |
| | | return mmPredictItemDao.selectList(new QueryWrapper<>()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | MmItemTypeEntity itemType = mmItemTypeImpl.getById(predictItem.getItemtypeid()); |
| | | if (itemType != null && ItemTypeEnum.NORMAL_ITEM.getName().equals(itemType.getItemtypename())) { |
| | | SequenceNumEntity sequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.IM.toString()); |
| | | MmSequenceNumEntity sequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.IM.toString()); |
| | | String str = String.format("%010d", sequenceNumEntity.getSequenceNum()); |
| | | predictItem.setItemno(sequenceNumEntity.getPrefix() + str); |
| | | |
| | | MmPredictModelEntity mmPredictModel = mmPredictItemDto.getMmPredictModel(); |
| | | SequenceNumEntity preMdlSequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.PRE_MDL.toString()); |
| | | MmSequenceNumEntity preMdlSequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.PRE_MDL.toString()); |
| | | String preMdlStr = String.format("%04d", preMdlSequenceNumEntity.getSequenceNum()); |
| | | mmPredictModel.setModelno(preMdlSequenceNumEntity.getPrefix() + preMdlStr); |
| | | mmPredictModel.setItemid(predictItem.getId()); |
| | |
| | | }); |
| | | mmModelParamService.saveList(mmModelParamList); |
| | | } else if (itemType != null && ItemTypeEnum.MERGE_ITEM.getName().equals(itemType.getItemtypename())) { |
| | | SequenceNumEntity sequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.IC.toString()); |
| | | MmSequenceNumEntity sequenceNumEntity = sequenceNumService.getAndIncreaseByCode(ItemIncreaseCodeEnum.IC.toString()); |
| | | String str = String.format("%010d", sequenceNumEntity.getSequenceNum()); |
| | | predictItem.setItemno(sequenceNumEntity.getPrefix() + str); |
| | | |