fix:
1、联系人保存报错,去掉甲乙方必填选项 add: 1、新增工厂自动绑定的功能 2、新增工厂更新只能修改绑定的信息、绑定的编码和操作类型
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -39,4 +39,6 @@ public class ErpFactoryRespVO {
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
@Schema(description = "操作类型")
|
||||
private String operationType;
|
||||
}
|
||||
@@ -33,4 +33,7 @@ public class ErpFactorySaveReqVO {
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "操作类型")
|
||||
private String operationType;
|
||||
}
|
||||
@@ -72,4 +72,10 @@ public class ErpFactoryDO extends BusinessBaseDO {
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
|
||||
/**
|
||||
* 操作类型
|
||||
*/
|
||||
@TableField("OPTN_TP")
|
||||
private String operationType;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user