|
|
|
@ -16,6 +16,7 @@ import org.dromara.qms.domain.QcTemplateItem;
|
|
|
|
|
import org.dromara.qms.domain.bo.QcTemplateItemBo;
|
|
|
|
|
import org.dromara.qms.domain.vo.QcTemplateItemVo;
|
|
|
|
|
import org.dromara.qms.mapper.QcTemplateItemMapper;
|
|
|
|
|
import org.dromara.qms.service.IQcInspectionTypeService;
|
|
|
|
|
import org.dromara.qms.service.IQcTemplateItemService;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@ -47,6 +48,8 @@ public class QcInspectionItemServiceImpl implements IQcInspectionItemService {
|
|
|
|
|
private final QcTemplateItemMapper qcTemplateItemMapper;
|
|
|
|
|
private final IQcTemplateItemService qcTemplateItemService;
|
|
|
|
|
|
|
|
|
|
private final IQcInspectionTypeService qcInspectionTypeService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询检测项定义
|
|
|
|
|
*
|
|
|
|
@ -103,9 +106,12 @@ public class QcInspectionItemServiceImpl implements IQcInspectionItemService {
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getInspectionPosition()), QcInspectionItem::getInspectionPosition, bo.getInspectionPosition())
|
|
|
|
|
.eq(bo.getCategoryId() != null, QcInspectionItem::getCategoryId, bo.getCategoryId())
|
|
|
|
|
.eq(bo.getInspectionType() != null, QcInspectionItem::getInspectionType, bo.getInspectionType())
|
|
|
|
|
.eq(bo.getMethod() != null, QcInspectionItem::getMethod, bo.getMethod())
|
|
|
|
|
.eq(bo.getDetectType() != null, QcInspectionItem::getDetectType, bo.getDetectType())
|
|
|
|
|
.eq(bo.getControlType() != null, QcInspectionItem::getControlType, bo.getControlType())
|
|
|
|
|
// .eq(bo.getMethod() != null, QcInspectionItem::getMethod, bo.getMethod())
|
|
|
|
|
// .eq(bo.getDetectType() != null, QcInspectionItem::getDetectType, bo.getDetectType())
|
|
|
|
|
// .eq(bo.getControlType() != null, QcInspectionItem::getControlType, bo.getControlType())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getMethod()), QcInspectionItem::getMethod, bo.getMethod())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getDetectType()), QcInspectionItem::getDetectType, bo.getDetectType())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getControlType()), QcInspectionItem::getControlType, bo.getControlType())
|
|
|
|
|
.eq(bo.getStandardValue() != null, QcInspectionItem::getStandardValue, bo.getStandardValue())
|
|
|
|
|
.eq(bo.getUpperLimit() != null, QcInspectionItem::getUpperLimit, bo.getUpperLimit())
|
|
|
|
|
.eq(bo.getLowerLimit() != null, QcInspectionItem::getLowerLimit, bo.getLowerLimit())
|
|
|
|
@ -170,7 +176,10 @@ public class QcInspectionItemServiceImpl implements IQcInspectionItemService {
|
|
|
|
|
oldQcTemplateItem.setInspectionItemName(update.getItemName());
|
|
|
|
|
oldQcTemplateItem.setInspectionPosition(update.getInspectionPosition());
|
|
|
|
|
oldQcTemplateItem.setCategoryName(update.getCategoryName());
|
|
|
|
|
|
|
|
|
|
//XXX:注意:检测类型(关联检测类型表主键)
|
|
|
|
|
oldQcTemplateItem.setInspectionType(update.getInspectionType());
|
|
|
|
|
|
|
|
|
|
oldQcTemplateItem.setDetectType(update.getDetectType());
|
|
|
|
|
oldQcTemplateItem.setControlType(update.getControlType());
|
|
|
|
|
oldQcTemplateItem.setStandardValue(update.getStandardValue());
|
|
|
|
|