|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.controller.sm; |
|
|
|
|
|
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.annotation.ApiVersion; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
@@ -88,6 +89,10 @@ public class ServiceInfoController extends MallUserInfoBaseController{ |
|
|
|
if (null == dto.getServiceId()) { |
|
|
|
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"serviceId无效"); |
|
|
|
} |
|
|
|
dto.setUsername(StringUtils.trimToNull(dto.getUsername())); |
|
|
|
if (StringUtils.isBlank(dto.getUsername()) || dto.getUsername().length() < 6) { |
|
|
|
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"账号必须大于6位"); |
|
|
|
} |
|
|
|
|
|
|
|
ServiceInfo si = serviceInfoService.getServiceInfo(dto.getServiceId()); |
|
|
|
if (null == si) { |
|
|
|