1、联系人保存报错,去掉甲乙方必填选项
add:
1、新增工厂自动绑定的功能
2、新增工厂更新只能修改绑定的信息、绑定的编码和操作类型
This commit is contained in:
潘荣晟
2025-12-31 11:35:15 +08:00
parent 69375988c2
commit 90d3db4f6d
5 changed files with 13 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ public class ContactSaveReqVO {
private Long id;
@Schema(description = "类型甲方/乙方", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotEmpty(message = "类型甲方/乙方不能为空")
// @NotEmpty(message = "类型甲方/乙方不能为空")
private String type;
@Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@@ -39,4 +39,6 @@ public class ErpFactoryRespVO {
@Schema(description = "是否启用")
private String isEnable;
@Schema(description = "操作类型")
private String operationType;
}

View File

@@ -33,4 +33,7 @@ public class ErpFactorySaveReqVO {
@Schema(description = "是否启用")
private String isEnable;
@Schema(description = "操作类型")
private String operationType;
}

View File

@@ -72,4 +72,10 @@ public class ErpFactoryDO extends BusinessBaseDO {
*/
@TableField("IS_ENB")
private String isEnable;
/**
* 操作类型
*/
@TableField("OPTN_TP")
private String operationType;
}

View File

@@ -98,6 +98,7 @@ public class ErpFactoryServiceImpl implements ErpFactoryService {
if (updateObj.getType().equals("ERP") || updateObj.getIsEnable().equals("1")) {
throw exception(ERP_FACTORY_NOT_ALLOW_UPDATE);
}
//不允许修改除了绑定工厂名称、绑定工厂编码和操作以外的信息
erpFactoryMapper.updateById(updateObj);
}