瀏覽代碼

bug修改

master
yangpeilai 2 週之前
父節點
當前提交
f893efe58c

+ 2
- 2
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/dto/system/AccountInfoAuthRequestDTO.java 查看文件

@@ -22,7 +22,7 @@ public class AccountInfoAuthRequestDTO extends AbstractBizRequestDTO {
@NotBlank(message = "证件号码不能为空")
private String idNum;// 会员证件号
@NotNull(message = "证件类型不能为空")
private IdType idType;// 会员证件类型;
private String idType;// 会员证件类型;
@NotBlank(message = "姓名不能为空")
private String userName;//
@NotNull(message = "性别不能为空")
@@ -41,7 +41,7 @@ public class AccountInfoAuthRequestDTO extends AbstractBizRequestDTO {
private String address;// 地址;

public void validate(ViolationValidator validator) {
if (IdType.SFZ == this.idType)
if (IdType.SFZ == IdType.findByCode(Integer.valueOf(this.idType)))
validator.validField("idNum", !IdcardUtil.isValidCard(this.idNum), "请输入正确的证件号");
}
}

+ 2
- 0
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/manager/system/AccountInfoManagerImpl.java 查看文件

@@ -2,6 +2,7 @@ package cn.com.taiji.userw.manager.system;

import cn.com.taiji.common.manager.ManagerException;
import cn.com.taiji.common.model.dao.Pagination;
import cn.com.taiji.core.entity.dict.basic.IdType;
import cn.com.taiji.core.entity.dict.basic.SourceType;
import cn.com.taiji.core.entity.dict.user.RbacSource;
import cn.com.taiji.core.entity.dict.user.SystemType;
@@ -211,6 +212,7 @@ public class AccountInfoManagerImpl extends AbstractCommManager implements Accou
AuthRequest authRequest = new AuthRequest();
authRequest.setLoginSource(SourceType.findByCode(dto.getLoginSource()));
copyProperties(dto, authRequest);
authRequest.setIdType(IdType.findByCode(Integer.valueOf(dto.getIdType())));
authRequest.setUserIdImgUrl(dto.getUserIdImgUrl().replace(minioUtil.getProxyUrl(),""));
authRequest.setUserIdBackImgUrl(dto.getUserIdBackImgUrl().replace(minioUtil.getProxyUrl(),""));
jsonPostRepeat(authRequest);

Loading…
取消
儲存