|
|
|
@ -16,9 +16,9 @@ import java.util.Objects;
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
public class CrmCustomerPoolConfigSaveReqVO extends CrmCustomerPoolConfigBaseVO {
|
|
|
|
public class CrmCustomerPoolConfigSaveReqVO extends CrmCustomerPoolConfigBaseVO {
|
|
|
|
|
|
|
|
|
|
|
|
// TODO @wanwan:AssertTrue 必须 is 开头哈;注意需要 json 忽略下,避免被序列化;
|
|
|
|
// TODO @puhui999:AssertTrue 必须 is 开头哈;注意需要 json 忽略下,避免被序列化;
|
|
|
|
@AssertTrue(message = "客户公海规则设置不正确")
|
|
|
|
@AssertTrue(message = "客户公海规则设置不正确")
|
|
|
|
// TODO @wanwan:这个方法,是不是拆成 2 个,一个校验 contactExpireDays、一个校验 dealExpireDays;
|
|
|
|
// TODO @puhui999:这个方法,是不是拆成 2 个,一个校验 contactExpireDays、一个校验 dealExpireDays;
|
|
|
|
public boolean poolEnableValid() {
|
|
|
|
public boolean poolEnableValid() {
|
|
|
|
if (!BooleanUtil.isTrue(getEnabled())) {
|
|
|
|
if (!BooleanUtil.isTrue(getEnabled())) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
@ -27,7 +27,7 @@ public class CrmCustomerPoolConfigSaveReqVO extends CrmCustomerPoolConfigBaseVO
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AssertTrue(message = "客户公海规则设置不正确")
|
|
|
|
@AssertTrue(message = "客户公海规则设置不正确")
|
|
|
|
// TODO @wanwan:这个方法,是不是改成 isNotifyDaysValid() 更好点?本质校验的是 notifyDays 是否为空
|
|
|
|
// TODO @puhui999:这个方法,是不是改成 isNotifyDaysValid() 更好点?本质校验的是 notifyDays 是否为空
|
|
|
|
public boolean notifyEnableValid() {
|
|
|
|
public boolean notifyEnableValid() {
|
|
|
|
if (!BooleanUtil.isTrue(getNotifyEnabled())) {
|
|
|
|
if (!BooleanUtil.isTrue(getNotifyEnabled())) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|