| | |
| | | package com.yuanchu.limslaboratory.service.impl; |
| | | |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | @Resource |
| | | LinkDetectionMapper linkDetectionMapper; |
| | | |
| | | @Resource |
| | | private NonConformanceReviewMapper nonConformanceReviewMapper; |
| | | |
| | | //查询检验计划 |
| | | @Override |
| | |
| | | inspection.setInspectionStatus(0); |
| | | //更新检验单 |
| | | inspectionMapper.updateById(inspection); |
| | | //添加不合格信息到评审 |
| | | inspectionMapper |
| | | NonConformanceReview nonConformanceReview = new NonConformanceReview(); |
| | | LocalDateTime localDateTime = DateUtil.toLocalDateTime(DateUtil.date()); |
| | | nonConformanceReview.setCreatedTime(localDateTime); |
| | | nonConformanceReview.setUpdatedTime(localDateTime); |
| | | nonConformanceReview.set |
| | | } else if (count == results.size()) { |
| | | Inspection inspection = new Inspection(); |
| | | inspection.setId(id); |