|
|
@@ -707,14 +707,14 @@ public class UserApiController extends BaseApiController {
|
|
|
if ((System.currentTimeMillis() - u.getPaymentDate().getTime()) > 432000000) {
|
|
|
u.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
userIdentityService.updateByPrimaryKeySelective(u);
|
|
|
- res.getError().add(buildError("", "1"));// 超过打款日期5日,无法提交确认
|
|
|
+ res.getError().add(buildError(ErrorConstants.IDENTITY_PAY_OVER_TIME));// 超过打款日期5日,无法提交确认
|
|
|
return res;
|
|
|
}
|
|
|
if (MAX_WRONG_COUNT.equals(u.getWrongCount())) {
|
|
|
u.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
u.setProcess(IdentityProcess.RESULTS.getCode());// 5
|
|
|
userIdentityService.updateByPrimaryKeySelective(u);
|
|
|
- res.getError().add(buildError("", "2"));// 输入错误金额次数过多
|
|
|
+ res.getError().add(buildError(ErrorConstants.OVER_MAX_WRONG_COUNT));// 输入错误金额次数过多
|
|
|
return res;
|
|
|
}
|
|
|
if (0 != (u.getAmountMoney().compareTo(userIdentity.getAmountMoney()))) {
|
|
|
@@ -724,9 +724,9 @@ public class UserApiController extends BaseApiController {
|
|
|
if (0 == t) {
|
|
|
u.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
u.setProcess(IdentityProcess.RESULTS.getCode());// 5
|
|
|
- res.getError().add(buildError("", "2"));// 输入错误金额次数过多
|
|
|
+ res.getError().add(buildError(ErrorConstants.OVER_MAX_WRONG_COUNT));// 输入错误金额次数过多
|
|
|
} else {
|
|
|
- res.getError().add(buildError("", "输入打款金额错误,您还有" + t + "次机会"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.WRONG_MONEY, "", t));
|
|
|
}
|
|
|
userIdentityService.updateByPrimaryKeySelective(u);
|
|
|
return res;
|
|
|
@@ -785,14 +785,14 @@ public class UserApiController extends BaseApiController {
|
|
|
if (System.currentTimeMillis() - o.getPaymentDate().getTime() > 432000000) {
|
|
|
o.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
organizationIdentityService.updateByPrimaryKeySelective(o);
|
|
|
- res.getError().add(buildError("", "1"));// 超过打款日期5日,无法提交确认
|
|
|
+ res.getError().add(buildError(ErrorConstants.IDENTITY_PAY_OVER_TIME));// 超过打款日期5日,无法提交确认
|
|
|
return res;
|
|
|
}
|
|
|
if (MAX_WRONG_COUNT.equals(o.getWrongCount())) {
|
|
|
o.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
o.setProcess(IdentityProcess.RESULTS.getCode());// 5
|
|
|
organizationIdentityService.updateByPrimaryKeySelective(o);
|
|
|
- res.getError().add(buildError("", "2"));// 输入错误金额次数过多
|
|
|
+ res.getError().add(buildError(ErrorConstants.OVER_MAX_WRONG_COUNT));// 输入错误金额次数过多
|
|
|
return res;
|
|
|
}
|
|
|
if (0 != (o.getValidationAmount().compareTo(orgIdentity.getValidationAmount()))) {
|
|
|
@@ -801,9 +801,9 @@ public class UserApiController extends BaseApiController {
|
|
|
if (0 == t) {
|
|
|
o.setAuditStatus(IdentityAuditStatus.NOTPASSED.getCode());// 4
|
|
|
o.setProcess(IdentityProcess.RESULTS.getCode());// 5
|
|
|
- res.getError().add(buildError("", "2"));// 输入错误金额次数过多
|
|
|
+ res.getError().add(buildError(ErrorConstants.OVER_MAX_WRONG_COUNT));// 输入错误金额次数过多
|
|
|
} else {
|
|
|
- res.getError().add(buildError("", "输入打款金额错误,您还有" + t + "次机会"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.WRONG_MONEY, "", t));
|
|
|
}
|
|
|
organizationIdentityService.updateByPrimaryKeySelective(o);
|
|
|
return res;
|