Merge remote-tracking branch 'origin/dev' into test

This commit is contained in:
qianshijiang
2025-12-31 11:36:52 +08:00
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);
}