Commit e984cf57 authored by yexiong.wang's avatar yexiong.wang

edit

parent 4b1b833f
...@@ -306,21 +306,11 @@ public class VccServiceImpl implements IVccService { ...@@ -306,21 +306,11 @@ public class VccServiceImpl implements IVccService {
public JsonResult queryApplyRecord(UserPreRepayInfoQuery query) throws Exception { public JsonResult queryApplyRecord(UserPreRepayInfoQuery query) throws Exception {
BooleanExpression booleanExpression = Expressions.asBoolean(true).isTrue(); BooleanExpression booleanExpression = Expressions.asBoolean(true).isTrue();
String phone = "";
if (StringUtils.isNotBlank(query.getUserId())){ if (StringUtils.isNotBlank(query.getUserId())){
log.info("userSdk={}",userSdk); booleanExpression = booleanExpression.and(QOfflineRepaySubmitRecord.offlineRepaySubmitRecord.userId.eq(Integer.valueOf(query.getUserId())));
UserSysResult<XUser> userByUserId = userSdk.getService().findUserByUserId(Long.getLong(query.getUserId()));
if (userByUserId == null || !userByUserId.isSuccess() || userByUserId.getData() == null) {
log.info("queryApplyRecord | 查询用户中心失败");
}else {
phone = userByUserId.getData().getPhoneNo();
}
} }
if (StringUtils.isNotBlank(query.getPhone())){ if (StringUtils.isNotBlank(query.getPhone())){
phone = query.getPhone(); booleanExpression = booleanExpression.and(QOfflineRepaySubmitRecord.offlineRepaySubmitRecord.phone.eq(query.getPhone()));
}
if (StringUtils.isNotBlank(phone)){
booleanExpression = booleanExpression.and(QOfflineRepaySubmitRecord.offlineRepaySubmitRecord.phone.eq(phone));
} }
if (query.getApprovalStatus() != null){ if (query.getApprovalStatus() != null){
booleanExpression = booleanExpression.and(QOfflineRepaySubmitRecord.offlineRepaySubmitRecord.approvalStatus.eq(query.getApprovalStatus())); booleanExpression = booleanExpression.and(QOfflineRepaySubmitRecord.offlineRepaySubmitRecord.approvalStatus.eq(query.getApprovalStatus()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment