|
@@ -94,6 +94,8 @@ public class FinanceRecordController extends BaseController {
|
|
|
private IZcFinanceFileRelService iZcFinanceFileRelService;
|
|
|
@Autowired
|
|
|
private FlowableService flowableService;
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceProComRelService iZcFinanceProComRelService;
|
|
|
// 开始流程
|
|
|
public final static String STRART_FLOW = "flow/strartFlow";
|
|
|
|
|
@@ -144,7 +146,7 @@ public class FinanceRecordController extends BaseController {
|
|
|
* @param zfrId 融资id
|
|
|
* @return
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "credit:line:query")
|
|
|
+ @PreAuthorize(hasPermi = "finance:record:query")
|
|
|
@GetMapping(value = "/{zfrId}")
|
|
|
public AjaxResult getInfo(@PathVariable("zfrId") String zfrId)
|
|
|
{
|
|
@@ -152,20 +154,35 @@ public class FinanceRecordController extends BaseController {
|
|
|
//融信id
|
|
|
String zfrFinanceId = zcFinanceRecord.getZfrFinanceId();
|
|
|
Map map = CommonUtil.entityToMap(zcFinanceRecord);
|
|
|
- //查询创建人
|
|
|
+ /*-------查询创建人-------*/
|
|
|
com.huyi.service.base.entity.SysUser user = iSysUserService.getById(zcFinanceRecord.getCreateBy());
|
|
|
//创建人
|
|
|
map.put("createUser", user.getNickName());
|
|
|
- //查询融信信息
|
|
|
+ /*-------查询融信信息-----*/
|
|
|
ZcFinanceInf zcFinanceInf = iZcFinanceInfService.getById(zfrFinanceId);
|
|
|
map.put("zcFinanceInf",zcFinanceInf);
|
|
|
//融资产品id
|
|
|
String zfiProductId = zcFinanceInf.getZfiProductId();
|
|
|
- //查询融资产品
|
|
|
+ /*-----查询融资产品------*/
|
|
|
ZcFinanceProduct zcFinanceProduct = iZcFinanceProductService.getById(zfiProductId);
|
|
|
//签署意愿类型(00:全部, 01:人脸识别, 02:短信)
|
|
|
String zfpAuthType = zcFinanceProduct.getZfpAuthType();
|
|
|
map.put("zfpAuthType",zfpAuthType);
|
|
|
+ /*查询授信信息*/
|
|
|
+ //授信id
|
|
|
+ String zfiCoreQuotaId = zcFinanceInf.getZfiCoreQuotaId();
|
|
|
+ ZcFinanceProComRel zcFinanceProComRel = iZcFinanceProComRelService.getById(zfiCoreQuotaId);
|
|
|
+ //融资金额
|
|
|
+ String zfrAmount = zcFinanceRecord.getZfrAmount();
|
|
|
+ //平台服务费收取费率
|
|
|
+ String zfpcrChargeRate = zcFinanceProComRel.getZfpcrChargeRate();
|
|
|
+ //缴纳费用
|
|
|
+ String needPay = "0.00";
|
|
|
+ if (CommonUtil.isNotEmpty(zfpcrChargeRate)){
|
|
|
+ zfpcrChargeRate = AmtUtil.divide(zfpcrChargeRate,"100",4);
|
|
|
+ needPay = AmtUtil.multiply(zfrAmount,zfpcrChargeRate,2);
|
|
|
+ }
|
|
|
+ map.put("needPay",needPay);
|
|
|
return AjaxResult.success(map);
|
|
|
}
|
|
|
|