趋势报警功能更新

This commit is contained in:
zhangjunwen 2024-09-10 18:06:11 +08:00
parent 86c532fd07
commit ff3ccada41
2 changed files with 5 additions and 3 deletions

View File

@ -19,15 +19,15 @@ public class EquipInfoSaveReqVO {
private String equipId;
@Schema(description = "机床型号id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "机床型号id不能为空")
// @NotEmpty(message = "机床型号id不能为空")
private String modelId;
@Schema(description = "客户信息id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客户信息id不能为空")
// @NotEmpty(message = "客户信息id不能为空")
private String customerId;
@Schema(description = "机床设备编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "机床设备编号不能为空")
// @NotBlank(message = "机床设备编号不能为空")
@Size(message = "机床设备编号最大不允许超过30个字符", max = 30)
private String equipNo;

View File

@ -2,6 +2,7 @@ package com.inspur.module.system.service.equip;
import cn.hutool.core.collection.CollUtil;
import com.inspur.framework.common.pojo.PageResult;
import com.inspur.framework.tenant.core.aop.TenantIgnore;
import com.inspur.module.system.controller.baseData.vo.CustomerInfoSelectionVO;
import com.inspur.module.system.controller.equip.vo.EquipCascaderVO;
import com.inspur.module.system.controller.equip.vo.EquipInfoPageReqVO;
@ -49,6 +50,7 @@ public class EquipInfoServiceImpl implements EquipInfoService {
}
@Override
@TenantIgnore
public void updateEquipInfo(EquipInfoSaveReqVO updateReqVO) {
// 校验存在
validateEquipInfoExists(updateReqVO.getEquipId());