提交 1ee0ec2c authored 作者: 000516's avatar 000516 提交者: Coding

促销员注册时校验部门与城市经理

促销员注册时校验部门与城市经理
......@@ -90,33 +90,36 @@ public class WxTemporaryEnrollVo {
String chargerName;
public void validate() {
if (StringUtils.isBlank(openId)){
throw new ParamException(RCode.WX_OPENID_PARAM_ERROR, null);
}
if (StringUtils.isBlank(avatarUrl)){
throw new ParamException(RCode.NOT_AVATAR_URL_PARAM_ERROR, null);
}
if (StringUtils.isBlank(name)){
throw new ParamException(RCode.NOT_USER_NAME_PARAM_ERROR, null);
}
if (StringUtils.isBlank(phone)){
throw new ParamException(RCode.PHONE_PARAM_ERROR, null);
}
if (StringUtils.isBlank(phoneCode)){
throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
}
if (StringUtils.isBlank(idenNumber)){
throw new ParamException(RCode.IDEN_NUMBER_PARAM_ERROR, null);
}
if (StringUtils.isBlank(deptQcId) || StringUtils.isBlank(chargerQcId)){
throw new ParamException(RCode.CHARGER_ID_ERROR, null);
}
if (StringUtils.isBlank(openId)) {
throw new ParamException(RCode.WX_OPENID_PARAM_ERROR, null);
}
if (StringUtils.isBlank(avatarUrl)) {
throw new ParamException(RCode.NOT_AVATAR_URL_PARAM_ERROR, null);
}
if (StringUtils.isBlank(name)) {
throw new ParamException(RCode.NOT_USER_NAME_PARAM_ERROR, null);
}
if (StringUtils.isBlank(phone)) {
throw new ParamException(RCode.PHONE_PARAM_ERROR, null);
}
if (StringUtils.isBlank(phoneCode)) {
throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
}
if (StringUtils.isBlank(idenNumber)) {
throw new ParamException(RCode.IDEN_NUMBER_PARAM_ERROR, null);
}
if (StringUtils.isBlank(deptQcOrgName)
|| StringUtils.isBlank(chargerName)
|| StringUtils.isBlank(deptQcId)
|| StringUtils.isBlank(chargerQcId)) {
throw new ParamException(RCode.CHARGER_ID_ERROR, null);
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论