Commit 47856f5e authored by yexiong.wang's avatar yexiong.wang

edit

parent 7304bf8b
......@@ -5,6 +5,7 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
@Entity
......@@ -17,8 +18,9 @@ import java.time.LocalDateTime;
@NoArgsConstructor
@DynamicUpdate
@DynamicInsert
public class OfflineRepayOperateRecord {
public class OfflineRepayOperateRecord implements Serializable {
private static final long serialVersionUID = -9206318459421433518L;
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
......
......@@ -5,6 +5,7 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
......@@ -20,8 +21,9 @@ import java.util.Date;
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
public class OfflineRepaySubmitRecord {
public class OfflineRepaySubmitRecord implements Serializable {
private static final long serialVersionUID = 2930019435843122345L;
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
......
package cn.quantgroup.customer.rest;
import cn.quantgroup.customer.aop.OperateLog;
import cn.quantgroup.customer.rest.param.vcc.OfflineRepaySubmitParam;
import cn.quantgroup.customer.rest.param.vcc.UserPreRepayInfoQuery;
import cn.quantgroup.customer.rest.vo.JsonResult;
......@@ -48,7 +49,7 @@ public class VccRest {
return jsonResult;
} catch (Exception e){
log.error("queryPage | 用户待还款查询发生异常",e);
return JsonResult.buildErrorStateResult("用户待还款查询发生异常");
return JsonResult.buildErrorStateResult("用户待还款查询发生异常:"+ e.getMessage());
}
}
......@@ -67,7 +68,7 @@ public class VccRest {
return jsonResult;
} catch (Exception e){
log.error("repayPlanDetail | 查询用户分期的详情及试算详情发生异常",e);
return JsonResult.buildErrorStateResult("查询用户分期的详情及试算详情发生异常");
return JsonResult.buildErrorStateResult("查询用户分期的详情及试算详情发生异常:"+e.getMessage());
}
}
......@@ -78,6 +79,7 @@ public class VccRest {
* @return
*/
@PostMapping("/offline_repay/save_submit")
@OperateLog
public JsonResult saveSubmit(HttpServletRequest request, @RequestBody@Valid OfflineRepaySubmitParam param,BindingResult bindingResult){
if (bindingResult.hasErrors()){
return JsonResult.buildErrorStateResult(bindingResult.getFieldError().getField() + ":" + bindingResult.getFieldError().getDefaultMessage());
......@@ -103,7 +105,7 @@ public class VccRest {
return JsonResult.buildSuccessResult("请求成功",null);
} catch (Exception e){
log.error("saveSubmit | 保存线下还款提交申请时发生异常",e);
return JsonResult.buildErrorStateResult("保存线下还款提交申请时发生异常");
return JsonResult.buildErrorStateResult("保存线下还款提交申请时发生异常:"+e.getMessage());
}
}
......@@ -121,7 +123,7 @@ public class VccRest {
return JsonResult.buildSuccessResult("请求成功",param);
} catch (Exception e){
log.error("approval | 点击审批按钮查询信息时发生异常",e);
return JsonResult.buildErrorStateResult("点击审批按钮查询信息时发生异常");
return JsonResult.buildErrorStateResult("点击审批按钮查询信息时发生异常:",e.getMessage());
}
}
......@@ -139,7 +141,7 @@ public class VccRest {
return jsonResult;
} catch (Exception e){
log.error("queryApprovalRecord | 查询审批流水时发生异常",e);
return JsonResult.buildErrorStateResult("查询审批流水时发生异常");
return JsonResult.buildErrorStateResult("查询审批流水时发生异常:"+e.getMessage());
}
}
......@@ -152,6 +154,7 @@ public class VccRest {
* @return
*/
@GetMapping("/approval/result")
@OperateLog
public JsonResult approvalResult(HttpServletRequest request,@NotNull String serialNo,String remark,@NotNull Integer status){
log.info("approvalResult | 开始提交审批结果,serialNo={},remark={},status={}",serialNo,remark,status);
try {
......@@ -161,7 +164,7 @@ public class VccRest {
return JsonResult.buildSuccessResult("请求成功",null);
}catch (Exception e){
log.error("approvalResult | 通过/拒绝审批时发生异常",e);
return JsonResult.buildErrorStateResult("通过/拒绝审批时发生异常");
return JsonResult.buildErrorStateResult("通过/拒绝审批时发生异常:"+ e.getMessage());
}
}
......@@ -179,7 +182,7 @@ public class VccRest {
return JsonResult.buildSuccessResult("请求成功",map);
}catch (Exception e){
log.error("fileUpload | 文件上传时发生异常",e);
return JsonResult.buildErrorStateResult("文件上传时发生异常");
return JsonResult.buildErrorStateResult("文件上传时发生异常:"+e.getMessage());
}
}
......@@ -205,7 +208,7 @@ public class VccRest {
return jsonResult;
}catch (Exception e){
log.error("queryApplyRecord | 查询线下还款申请记录时发生异常",e);
return JsonResult.buildErrorStateResult("查询线下还款申请记录时发生异常");
return JsonResult.buildErrorStateResult("查询线下还款申请记录时发生异常:"+e.getMessage());
}
}
}
......@@ -59,12 +59,8 @@ public class VccServiceImpl implements IVccService {
@Autowired
private IFastDFSService fastDfsService;
private final UserSdkImpl userSdk;
@Autowired
public VccServiceImpl(UserSdkImpl userSdk) {
this.userSdk = userSdk;
}
private UserSdkImpl userSdk;
@Override
public JsonResult queryPage(UserPreRepayInfoQuery query) throws Exception{
......@@ -197,7 +193,12 @@ public class VccServiceImpl implements IVccService {
param.setList(billList);
String[] split = bySerialNoEquals.getCredentialsAddress().split(",");
List<String> list = Arrays.asList(split);
param.setCredentialsAddress(list);
List<String> addressList = new ArrayList<>();
for (String baseUrl:list){
String viewUrl = fastDfsService.toUrl(baseUrl);
addressList.add(viewUrl);
}
param.setCredentialsAddress(addressList);
return param;
}
......@@ -277,6 +278,7 @@ public class VccServiceImpl implements IVccService {
String phone = "";
if (StringUtils.isNotBlank(query.getUserId())){
log.info("userSdk={}",userSdk);
UserSysResult<XUser> userByUserId = userSdk.getService().findUserByUserId(Long.getLong(query.getUserId()));
phone = userByUserId.getData().getPhoneNo();
}
......
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