pull/245/MERGE
YunaiV 2026-04-06 22:48:51 +08:00
commit 86087983a7
6 changed files with 9 additions and 8 deletions

View File

@ -84,7 +84,8 @@ public class MesProProcessController {
public CommonResult<List<MesProProcessRespVO>> getProcessSimpleList() {
List<MesProProcessDO> list = processService.getProcessListByStatus(CommonStatusEnum.ENABLE.getStatus());
return success(convertList(list, process -> new MesProProcessRespVO()
.setId(process.getId()).setName(process.getName()).setCode(process.getCode())));
.setId(process.getId()).setName(process.getName()).setCode(process.getCode())
.setAttention(process.getAttention()).setRemark(process.getRemark())));
}
@GetMapping("/export-excel")

View File

@ -95,7 +95,7 @@ public class MesCalTeamMemberServiceImpl implements MesCalTeamMemberService {
}
private void validateUserExists(Long userId) {
if (adminUserApi.getUser(userId) == null) {
if (adminUserApi.getUser(userId).getCheckedData() == null) {
throw exception(CAL_TEAM_MEMBER_USER_NOT_EXISTS);
}
}

View File

@ -56,7 +56,7 @@ public class MesMdWorkstationWorkerServiceImpl implements MesMdWorkstationWorker
private void validateWorkstationWorkerSaveData(Long id, MesMdWorkstationWorkerSaveReqVO reqVO) {
// 校验岗位是否存在
postApi.validPostList(Collections.singleton(reqVO.getPostId()));
postApi.validPostList(Collections.singleton(reqVO.getPostId())).getCheckedData();
// 校验同一工作站下岗位不重复(排除自身)
MesMdWorkstationWorkerDO existing = workstationWorkerMapper.selectByWorkstationIdAndPostId(
reqVO.getWorkstationId(), reqVO.getPostId());

View File

@ -98,7 +98,7 @@ public class MesProAndonConfigServiceImpl implements MesProAndonConfigService {
adminUserApi.validateUser(reqVO.getHandlerUserId());
}
if (reqVO.getHandlerRoleId() != null) {
roleApi.validRoleList(Collections.singleton(reqVO.getHandlerRoleId()));
roleApi.validRoleList(Collections.singleton(reqVO.getHandlerRoleId())).getCheckedData();
}
}

View File

@ -369,9 +369,9 @@ CREATE TABLE IF NOT EXISTS "mes_qc_rqc" (
"critical_quantity" int DEFAULT 0,
"major_quantity" int DEFAULT 0,
"minor_quantity" int DEFAULT 0,
"critical_rate" decimal(5,2) DEFAULT 0.00,
"major_rate" decimal(5,2) DEFAULT 0.00,
"minor_rate" decimal(5,2) DEFAULT 0.00,
"critical_rate" decimal(14,2) DEFAULT 0.00,
"major_rate" decimal(14,2) DEFAULT 0.00,
"minor_rate" decimal(14,2) DEFAULT 0.00,
"creator" varchar(64) DEFAULT '',
"create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar(64) DEFAULT '',

View File

@ -69,7 +69,7 @@ public interface AdminUserApi extends AutoTransable<AdminUserRespDTO> {
* @param id
*/
default void validateUser(Long id) {
validateUserList(Collections.singleton(id));
validateUserList(Collections.singleton(id)).getCheckedData();
}
@GetMapping(PREFIX + "/valid")