| | |
| | | import org.jeecg.modules.dnc.entity.*; |
| | | import org.jeecg.modules.dnc.mapper.*; |
| | | import org.jeecg.modules.dnc.service.*; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.service.IMdcProductionService; |
| | | import org.jeecg.modules.system.service.ISysUserService; |
| | | import org.slf4j.Logger; |
| | |
| | | } |
| | | } |
| | | if (permissionStreamNew.getDepartId() != null) { |
| | | String id=mdcProductionService.findByOrgCode(permissionStreamNew.getDepartId()).getId(); |
| | | if (id!=null){ |
| | | permissionStreamNew.setDepartId(id); |
| | | MdcProduction mdcProduction=mdcProductionService.findByOrgCode(permissionStreamNew.getDepartId()); |
| | | if (mdcProduction!=null){ |
| | | permissionStreamNew.setDepartId(mdcProduction.getId()); |
| | | } |
| | | } |
| | | permissionStreamNewMapper.insert(permissionStreamNew); |
| | |
| | | |
| | | private void saveGuideCardBatch(GuideCardBatch guideCardBatch) { |
| | | if (guideCardBatchMapper.selectById(guideCardBatch.getId()) == null) { |
| | | guideCardBatch.setFlowStatus("1"); |
| | | guideCardBatchMapper.insert(guideCardBatch); |
| | | logger.debug("刀片批次已保存: {}", guideCardBatch.getId()); |
| | | } else { |