质检人员管理功能修改
This commit is contained in:
parent
d77eefc410
commit
78786741b2
|
|
@ -12,10 +12,10 @@ import java.util.List;
|
|||
public class QmsQualityInspectorUpdateQO {
|
||||
|
||||
/**
|
||||
* 质检人ID,必传
|
||||
* 质检人员主表ID,必传
|
||||
*/
|
||||
@NotNull(message = "质检人ID不能为空")
|
||||
private Long userId;
|
||||
@NotNull(message = "ID不能为空")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 新增的物料ID列表(qms_qc_material.id)
|
||||
|
|
|
|||
|
|
@ -209,12 +209,9 @@ public class QmsQualityInspectorServiceImpl extends ServiceImpl<QmsQualityInspec
|
|||
public void update(QmsQualityInspectorUpdateQO request) {
|
||||
String operator = UserUtil.getUserName();
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
Long userId = request.getUserId();
|
||||
|
||||
// 查主表,获取 inspectorId
|
||||
QmsQualityInspector inspector = lambdaQuery()
|
||||
.eq(QmsQualityInspector::getUserId, userId)
|
||||
.one();
|
||||
// 查主表,通过主表ID获取 inspectorId 和 inspectionType
|
||||
QmsQualityInspector inspector = getById(request.getId());
|
||||
if (Objects.isNull(inspector)) {
|
||||
throw new NflgException(STATE.BusinessError, "该质检人员不存在");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue