|
|
@@ -7,6 +7,7 @@ import cn.com.taiji.core.model.comm.protocol.constraint.IntegerConstant; |
|
|
|
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
|
|
|
@@ -51,17 +52,17 @@ public class ChangeGoodsRequest extends AbstractSignTypeRequest<ChangeGoodsRespo |
|
|
|
private String serviceHallId;//退货网点id |
|
|
|
|
|
|
|
public void relatedValid(ErrorMsgBuilder builder) { |
|
|
|
if(rechangeMode == 1) { |
|
|
|
builder.validFieldNotBlank(logisticsCompany, "logisticsCompany"); |
|
|
|
builder.validFieldNotBlank(logisticsNumber, "logisticsNumber"); |
|
|
|
if (rechangeMode == 1) { |
|
|
|
builder.validFieldNotBlank("logisticsCompany", logisticsCompany); |
|
|
|
builder.validFieldNotBlank("logisticsNumber", logisticsNumber); |
|
|
|
|
|
|
|
builder.validFieldNotBlank(consignee, "consignee"); |
|
|
|
builder.validFieldNotBlank(consigneeTel, "consigneeTel"); |
|
|
|
builder.validFieldNotBlank(region, "region"); |
|
|
|
builder.validFieldNotBlank(address, "address"); |
|
|
|
}else { |
|
|
|
builder.validFieldNotBlank(cardId, "cardId"); |
|
|
|
builder.validFieldNotBlank(obuId, "obuId"); |
|
|
|
builder.validFieldNotBlank("consignee", consignee); |
|
|
|
builder.validFieldNotBlank("consigneeTel", consigneeTel); |
|
|
|
builder.validFieldNotBlank("region", region); |
|
|
|
builder.validFieldNotBlank("address", address); |
|
|
|
} else { |
|
|
|
builder.validFieldNotBlank("cardId", cardId); |
|
|
|
builder.validFieldNotBlank("obuId", obuId); |
|
|
|
} |
|
|
|
} |
|
|
|
|