|
|
|
@ -25,6 +25,7 @@ import org.dromara.qms.domain.QcInspectionItem;
|
|
|
|
|
import org.dromara.qms.mapper.QcInspectionItemMapper;
|
|
|
|
|
import org.dromara.qms.service.IQcInspectionItemService;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -162,6 +163,7 @@ public class QcInspectionItemServiceImpl implements IQcInspectionItemService {
|
|
|
|
|
// 创建一个新的QcTemplateItemBo对象
|
|
|
|
|
QcTemplateItem qcTemplateItem = new QcTemplateItem();
|
|
|
|
|
QcTemplateItemVo oldQcTemplateItem = qcTemplateItemMapper.selectQcTemplateItemByItemId(update.getItemId());
|
|
|
|
|
if( !ObjectUtils.isEmpty(oldQcTemplateItem)){
|
|
|
|
|
oldQcTemplateItem.setItemCode(update.getItemCode());
|
|
|
|
|
oldQcTemplateItem.setItemName(update.getItemName());
|
|
|
|
|
oldQcTemplateItem.setInspectionItemCode(update.getItemCode());
|
|
|
|
@ -181,6 +183,7 @@ public class QcInspectionItemServiceImpl implements IQcInspectionItemService {
|
|
|
|
|
BeanUtils.copyProperties(oldQcTemplateItem, qcTemplateItem);
|
|
|
|
|
qcTemplateItemMapper.updateById(qcTemplateItem);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|