49 changed files with 1818 additions and 26 deletions
@ -0,0 +1,47 @@ |
|||
package com.yxt.anrui.fin.api.kingdee.capitalcreditresult; |
|||
|
|||
import com.yxt.anrui.fin.api.kingdee.otherarreceivable.OtherReceivable; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/12 18:13 |
|||
*/ |
|||
@Data |
|||
public class CapitalCreditResult { |
|||
@ApiModelProperty("单据编号") |
|||
public String billNo; |
|||
@ApiModelProperty("单据类型") |
|||
public String billType = "QTYSD01_SYS"; |
|||
@ApiModelProperty("往来单位类型") |
|||
public String commUnitType = "BD_Customer"; |
|||
@ApiModelProperty("往来单位") |
|||
public String commUnit; |
|||
@ApiModelProperty("收款组织") |
|||
public String collectionOrg; |
|||
@ApiModelProperty("币别") |
|||
public String currency = "PRE001"; |
|||
@ApiModelProperty("业务日期") |
|||
public String bussDate; |
|||
@ApiModelProperty("收款明细") |
|||
public List<CapitalCreditResult.CapitalCreditResultDetailDto> resultDetails; |
|||
|
|||
@Data |
|||
public static class CapitalCreditResultDetailDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("承担部门") |
|||
public String dearDept; |
|||
@ApiModelProperty("发票类型") |
|||
public String invoiceType; |
|||
@ApiModelProperty("不含税金额") |
|||
public String exTaxMoney; |
|||
@ApiModelProperty("用途") |
|||
public String useTo; |
|||
} |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.fin.api.kingdee.capitalcreditresult; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/13 17:00 |
|||
*/ |
|||
public enum CwSystemYT { |
|||
|
|||
BOND_AMOUNTS("YT001", "贷款保证金"), |
|||
DEPOSIT_SETTLE("YT002", "落户保证金"), |
|||
DEPOSIT_PREMIUM("YT003", "保险保证金"), |
|||
SHANGPAI_YUNGUAN("YT004", "上牌费、运管费"), |
|||
PROXY_ACCIDENT_PREMIUM("YT005", "代收意外险"), |
|||
SERVICE_AMOUNT_DANBAO("YT006", "服务费(担保/非担保业务)"), |
|||
VEH_OTHER_PRICE("YT007", "补车价"), |
|||
OTHER_AMOUNT("YT009", "其他费用"), |
|||
RONGZI_FANGKUAN("YT010", "融资放款"), |
|||
DIANKUAN("YT011", "垫款"), |
|||
DIANKUAN_LIXI("YT012", "垫款利息"), |
|||
NOMINAL_PRICE("YT013", "留购价"), |
|||
PEIZHI_SHOUXUFEI("YT014", "加装配置手续费"), |
|||
FANLI_DICHEKUAN("YT015", "返利抵车款"), |
|||
SERVICE_AMOUNT_SANFANG("YT016", "服务费(三方金融)"), |
|||
SANFANG_TIEXI_DIECHEKUAN("YT017", "三方金融厂家贴息抵车款"), |
|||
TZSQ("YT018", "款项结转-调账申请"); |
|||
|
|||
|
|||
/** |
|||
* 附件类型 |
|||
*/ |
|||
private final String type; |
|||
|
|||
/** |
|||
* 代号 |
|||
*/ |
|||
private final String mark; |
|||
|
|||
CwSystemYT(String type, String mark) { |
|||
this.type = type; |
|||
this.mark = mark; |
|||
} |
|||
|
|||
public String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public String getMark() { |
|||
return mark; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.yxt.anrui.fin.biz.kingdee.capitalcreditresult; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONArray; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.alibaba.fastjson.parser.Feature; |
|||
import com.yxt.anrui.fin.biz.kingdee.KingDeeUtils; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 封装转换的类 |
|||
*/ |
|||
public class OtherReceivableBillCreditResultCastToKingDeeBillFields { |
|||
/** |
|||
* 构造金蝶需要的数据结构 并对字段赋值 |
|||
* |
|||
* @param map_fEntityModel_ |
|||
* @param vehicleList |
|||
* @return |
|||
*/ |
|||
public static String getKingDeeData(Map<String,String> map_fEntityModel_,List<Map<String,String>> vehicleList){ |
|||
/** |
|||
* 取模板 |
|||
*/ |
|||
String readJsonFile = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/capitalcreditresult/data.json"); |
|||
String fEntityData_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/capitalcreditresult/data_data.json"); |
|||
String fEntityModel_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/capitalcreditresult/data_model.json"); |
|||
|
|||
//模板字符创转json
|
|||
JSONObject jsonObj= JSONObject.parseObject(readJsonFile, Feature.OrderedField); |
|||
JSONObject jsonFEntityData_= JSONObject.parseObject(fEntityData_,Feature.OrderedField); |
|||
fEntityModel_ =KingDeeUtils.replaceTemplateParams(fEntityModel_, map_fEntityModel_); |
|||
JSONObject jsonFEntityModel_= JSONObject.parseObject(fEntityModel_,Feature.OrderedField); |
|||
|
|||
List<JSONObject> list_fEntity_=new ArrayList<>(); |
|||
|
|||
//对模板字段赋值 根据传递进来的map数据的集合进行赋值
|
|||
for(int i=0;i<vehicleList.size();i++){ |
|||
String fEntity_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/capitalcreditresult/data_FEntity.json"); |
|||
Map<String,String> params=vehicleList.get(i); |
|||
Map<String,String> map_fEntity_=new HashMap<>(); |
|||
for (Map.Entry<String, String> entry : params.entrySet()) { |
|||
map_fEntity_.put(entry.getKey(),entry.getValue()); |
|||
} |
|||
fEntity_ =KingDeeUtils.replaceTemplateParams(fEntity_, map_fEntity_); |
|||
list_fEntity_.add(JSONObject.parseObject(fEntity_,Feature.OrderedField)); |
|||
} |
|||
|
|||
jsonFEntityModel_.put("FEntity", JSONArray.parseArray(JSON.toJSONString(list_fEntity_))); |
|||
jsonFEntityData_.put("Model",JSONObject.parseObject(JSON.toJSONString(jsonFEntityModel_),Feature.OrderedField)); |
|||
jsonObj.put("data",jsonFEntityData_.toJSONString()); |
|||
|
|||
return jsonObj.toJSONString(); |
|||
} |
|||
} |
@ -0,0 +1,107 @@ |
|||
package com.yxt.anrui.fin.biz.kingdee.capitalcreditresult; |
|||
|
|||
import com.yxt.anrui.fin.api.kingdee.KingDeeBillId; |
|||
import com.yxt.anrui.fin.api.kingdee.KingDeeBillUrl; |
|||
import com.yxt.anrui.fin.api.kingdee.capitalcreditresult.CapitalCreditResult; |
|||
import com.yxt.anrui.fin.api.kingdee.otherarreceivable.OtherReceivable; |
|||
import com.yxt.anrui.fin.biz.kingdee.FinKingDeeService; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@Service |
|||
public class OtherReceivableBillCreditResultService extends FinKingDeeService { |
|||
|
|||
/** |
|||
* 生成的其他应收单的数据,推送到金蝶的平台中 |
|||
* |
|||
* @param creditResult |
|||
* @return |
|||
*/ |
|||
public ResultBean pushOtherReceivableBill(CapitalCreditResult creditResult) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//业务表的主表数据集合
|
|||
Map<String, String> map_fEntityModel_ = new HashMap<>(); |
|||
//物料的数组集合
|
|||
//单据编号
|
|||
// if (creditResult.getBillNo() == null) {
|
|||
// return rb.setMsg("单据编号不能为空");
|
|||
// }
|
|||
// map_fEntityModel_.put("FBillNo", creditResult.getBillNo());
|
|||
//业务日期
|
|||
if (creditResult.getBussDate() == null) { |
|||
return rb.setMsg("业务日期不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FDATE", creditResult.getBussDate()); |
|||
//到期日期
|
|||
map_fEntityModel_.put("FENDDATE_H", creditResult.getBussDate()); |
|||
//客户
|
|||
if (creditResult.getCommUnit() == null) { |
|||
return rb.setMsg("客户编码不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FCONTACTUNIT", creditResult.getCommUnit()); |
|||
//收款组织
|
|||
if (creditResult.getCollectionOrg() == null) { |
|||
return rb.setMsg("收款组织不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FPAYORGID", creditResult.getCollectionOrg()); |
|||
//收款组织
|
|||
map_fEntityModel_.put("FSETTLEORGID", creditResult.getCollectionOrg()); |
|||
//销售组织
|
|||
map_fEntityModel_.put("FSALEORGID", creditResult.getCollectionOrg()); |
|||
//销售部门
|
|||
map_fEntityModel_.put("FSALEDEPTID", creditResult.getResultDetails().get(0).getDearDept()); |
|||
//申请部门
|
|||
map_fEntityModel_.put("FDEPARTMENTID", creditResult.getResultDetails().get(0).getDearDept()); |
|||
List<CapitalCreditResult.CapitalCreditResultDetailDto> collectionDetails = creditResult.getResultDetails() == null ? new ArrayList<>() : creditResult.getResultDetails(); |
|||
//准备 物料列表的数据
|
|||
ResultBean<List<Map<String, String>>> vehicleListMap = createVehicleListsForReceivableBill(collectionDetails); |
|||
if (!vehicleListMap.getSuccess()) { |
|||
return rb.setMsg(vehicleListMap.getMsg()); |
|||
} |
|||
String kingDeeData = OtherReceivableBillCreditResultCastToKingDeeBillFields.getKingDeeData(map_fEntityModel_, vehicleListMap.getData()); |
|||
try { |
|||
ResultBean<String> resultBean1 = accessKingDeeInterface(KingDeeBillId.AR_OTHERRECEIVABLE.getID(), kingDeeData, KingDeeBillUrl.DRAFT_URL.getURL()); |
|||
if (!resultBean1.getSuccess()) { |
|||
log.info("其他应收单保存失败!"); |
|||
return rb.setMsg("其他应收单保存失败!"); |
|||
} |
|||
log.info("其他应收单保存成功!"); |
|||
// String submitKD = getSubmitKD(resultBean1.getData(),KingDeeBillId.AR_OTHERRECEIVABLE.getID());
|
|||
// ResultBean<String> resultBean2 = accessKingDeeInterface(KingDeeBillId.AR_OTHERRECEIVABLE.getID(), submitKD, KingDeeBillUrl.SUBMIT_URL.getURL());
|
|||
// if(!resultBean2.getSuccess()){
|
|||
// log.info("其他应收单提交失败!");
|
|||
// return rb.setMsg("其他应收单提交失败!");
|
|||
// }
|
|||
// log.info("其他应收单提交成功!");
|
|||
} catch (Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
return rb; |
|||
} |
|||
|
|||
public ResultBean<List<Map<String, String>>> createVehicleListsForReceivableBill(List<CapitalCreditResult.CapitalCreditResultDetailDto> collectionDetails) { |
|||
ResultBean<List<Map<String, String>>> rb = ResultBean.fireFail(); |
|||
List<Map<String, String>> collectionDetailMap = new ArrayList<>(); |
|||
for (int i = 0; i < collectionDetails.size(); i++) { |
|||
CapitalCreditResult.CapitalCreditResultDetailDto c = collectionDetails.get(i); |
|||
Map<String, String> m = new HashMap<>(); |
|||
if (StringUtils.isBlank(c.getDearDept())) { |
|||
return rb.setMsg("承担部门不能为空"); |
|||
} |
|||
if (StringUtils.isBlank(c.getExTaxMoney())) { |
|||
return rb.setMsg("不含税金额不能为空"); |
|||
} |
|||
m.put("FCOSTDEPARTMENTID", c.getDearDept()); |
|||
m.put("FNOTAXAMOUNTFOR", c.getExTaxMoney()); |
|||
m.put("F_PAEZ_Assistant1", c.getUseTo()); |
|||
collectionDetailMap.add(m); |
|||
} |
|||
return rb.success().setData(collectionDetailMap); |
|||
} |
|||
} |
@ -0,0 +1,4 @@ |
|||
{ |
|||
"formId": "AR_OtherRecAble", |
|||
"data": "@KD_data" |
|||
} |
@ -0,0 +1,33 @@ |
|||
{ |
|||
"FEntryID": "0", |
|||
"FCOSTID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FCOSTDEPARTMENTID": { |
|||
"FNumber": "@KD_FCOSTDEPARTMENTID" |
|||
}, |
|||
"FINVOICETYPE": "", |
|||
"FNOTAXAMOUNTFOR": "@KD_FNOTAXAMOUNTFOR", |
|||
"FTAXAMOUNTFOR": "0", |
|||
"FAMOUNTFOR_D": "0", |
|||
"F_PAEZ_Assistant1": { |
|||
"FNumber": "@KD_F_PAEZ_Assistant1" |
|||
}, |
|||
"F_PAEZ_Amount": "0", |
|||
"FNOTAXAMOUNT_D": "0", |
|||
"FTAXAMOUNT_D": "0", |
|||
"F_PMZC_Assistant": { |
|||
"FNumber": "" |
|||
}, |
|||
"F_PMZC_Base": { |
|||
"FNUMBER": "" |
|||
}, |
|||
"F_PMZC_Assistant2": { |
|||
"FNumber": "" |
|||
}, |
|||
"FCOMMENT": "", |
|||
"FSourceBillNo": "", |
|||
"FCREATEINVOICE": "false", |
|||
"FIVAmountFor": "0", |
|||
"FEntryTaxRate": "0" |
|||
} |
@ -0,0 +1,13 @@ |
|||
{ |
|||
"Creator": "", |
|||
"NeedUpDateFields": [], |
|||
"NeedReturnFields": [], |
|||
"IsDeleteEntry": "True", |
|||
"SubSystemId": "", |
|||
"IsVerifyBaseDataField": "false", |
|||
"IsEntryBatchFill": "True", |
|||
"ValidateFlag": "True", |
|||
"NumberSearch": "True", |
|||
"InterationFlags": "", |
|||
"Model": {} |
|||
} |
@ -0,0 +1,67 @@ |
|||
{ |
|||
"FID": "0", |
|||
"FBillTypeID": { |
|||
"FNUMBER": "QTYSD01_SYS" |
|||
}, |
|||
"FBillNo": "", |
|||
"FDATE": "@KD_FDATE", |
|||
"FENDDATE_H": "@KD_FENDDATE_H", |
|||
"FISINIT": "false", |
|||
"FCONTACTUNITTYPE": "BD_Customer", |
|||
"FCONTACTUNIT": { |
|||
"FNumber": "@KD_FCONTACTUNIT" |
|||
}, |
|||
"FAMOUNTFOR": "0", |
|||
"FCURRENCYID": { |
|||
"FNumber": "PRE001" |
|||
}, |
|||
"FDEPARTMENTID": { |
|||
"FNumber": "@KD_FDEPARTMENTID" |
|||
}, |
|||
"FSETTLEORGID": { |
|||
"FNumber": "@KD_FSETTLEORGID" |
|||
}, |
|||
"FPAYORGID": { |
|||
"FNumber": "@KD_FPAYORGID" |
|||
}, |
|||
"FSALEDEPTID": { |
|||
"FNumber": "@KD_FSALEDEPTID" |
|||
}, |
|||
"FSALEORGID": { |
|||
"FNumber": "@KD_FSALEORGID" |
|||
}, |
|||
"FSALEGROUPID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSALEERID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FACCNTTIMEJUDGETIME": "1900-01-01", |
|||
"FSettleTypeID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FMAINBOOKSTDCURRID": { |
|||
"FNumber": "PRE001" |
|||
}, |
|||
"FEXCHANGETYPE": { |
|||
"FNumber": "HLTX01_SYS" |
|||
}, |
|||
"FExchangeRate": "1", |
|||
"FNOTAXAMOUNT": "0", |
|||
"FTAXAMOUNT": "0", |
|||
"FCancelStatus": "", |
|||
"FAR_OtherRemarks": "", |
|||
"FScanPoint": { |
|||
"FNUMBER": "" |
|||
}, |
|||
"F_PAEZ_Base": { |
|||
"FNUMBER": "" |
|||
}, |
|||
"F_PAEZ_Base1": { |
|||
"FNUMBER": "" |
|||
}, |
|||
"F_PMZC_Assistant1": { |
|||
"FNumber": "" |
|||
}, |
|||
"FEntity": [] |
|||
} |
@ -0,0 +1,87 @@ |
|||
请求参数说明: |
|||
formid:业务对象表单Id,字符串类型(必录) |
|||
data:Json格式数据(详情参考Json格式数据)(必录) |
|||
2.1.Creator:创建者内码(非必录) |
|||
2.2.NeedUpDateFields:需要更新的字段,数组类型,格式:[key1,key2,...](非必录),注(更新单据体字段得加上单据体key) |
|||
2.3.NeedReturnFields:需返回结果的字段集合,数组类型,格式:[key,entitykey.key,...](非必录),注(返回单据体字段格式:entitykey.key) |
|||
2.4.IsDeleteEntry:是否删除已存在的分录,布尔类型,默认true(非必录) |
|||
2.5.SubSystemId:表单所在的子系统内码,字符串类型(非必录) |
|||
2.6.IsVerifyBaseDataField:是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
|||
2.7.IsEntryBatchFill:是否批量填充分录,默认true(非必录) |
|||
2.8.ValidateFlag:是否验证标志,布尔类型,默认true(非必录) |
|||
2.9.NumberSearch:是否用编码搜索基础资料,布尔类型,默认true(非必录) |
|||
2.10.InterationFlags:交互标志集合,字符串类型,分号分隔,格式:"flag1;flag2;..."(非必录),例如(允许负库存标识:STK_InvCheckResult) |
|||
2.11.Model:表单数据包,Json类型(必录) |
|||
|
|||
字段说明: |
|||
银行:F_PAEZ_Base |
|||
银行帐号:F_PAEZ_Base1 |
|||
转出往来单位类型:FOUTCONTACTTYPE |
|||
转出往来单位:FOUTCONTACTID |
|||
项目类别:F_PMZC_Assistant1 |
|||
备注:FCOMMENT |
|||
费用项目名称:FCOSTNAME |
|||
费用项目编码:FCOSTID |
|||
总金额:FAMOUNTFOR_D |
|||
备注:FAR_OtherRemarks |
|||
扫描点:FScanPoint |
|||
表头-付款申请关联金额:FAPPLYAMOUNT_H |
|||
销售组织:FSALEORGID |
|||
转销:FIsWriteOff |
|||
销售组:FSALEGROUPID |
|||
销售部门:FSALEDEPTID |
|||
收(退)款单关联金额本位币:FWRITTENOFFAMOUNT |
|||
销售员:FSALEERID |
|||
税率(%):FEntryTaxRate |
|||
已开票金额:FIVAmountFor |
|||
发票类型:FINVOICETYPE (必填项) |
|||
已生成发票:FCREATEINVOICE |
|||
利息:F_PAEZ_Amount |
|||
物流车辆:F_PMZC_Base |
|||
油卡号码:F_PMZC_Assistant2 |
|||
用途:F_PAEZ_Assistant1 (必填项) |
|||
运输编号:F_PMZC_Assistant |
|||
税额:FTAXAMOUNTFOR |
|||
不含税金额本位币:FNOTAXAMOUNT_D |
|||
总金额本位币:FAMOUNT_D |
|||
不含税金额:FNOTAXAMOUNTFOR |
|||
税额本位币:FTAXAMOUNT_D |
|||
源单类型:FSOURCETYPE |
|||
源单编号:FSourceBillNo |
|||
费用承担部门:FCOSTDEPARTMENTID (必填项) |
|||
付款申请关联金额:FAPPLYAMOUNT |
|||
汇率类型:FEXCHANGETYPE (必填项) |
|||
汇率:FExchangeRate |
|||
收款条件:FPayConditon |
|||
本位币:FMAINBOOKSTDCURRID (必填项) |
|||
作废日期:FCancelDate |
|||
修改日期:FModifyDate |
|||
审核人:FAPPROVERID |
|||
创建日期:FCreateDate |
|||
作废状态:FCancelStatus (必填项) |
|||
单据类型:FBillTypeID (必填项) |
|||
业务日期:FDATE (必填项) |
|||
单据编号:FBillNo |
|||
单据状态:FDocumentStatus |
|||
到期日:FENDDATE_H |
|||
币别:FCURRENCYID (必填项) |
|||
结算组织:FSETTLEORGID (必填项) |
|||
往来单位:FCONTACTUNIT (必填项) |
|||
往来单位类型:FCONTACTUNITTYPE (必填项) |
|||
结算方式:FSettleTypeID |
|||
已收款核销金额:FWRITTENOFFAMOUNTFOR |
|||
来源系统:FSOURCESYSTEM |
|||
申请部门:FDEPARTMENTID |
|||
是否期初单据:FISINIT |
|||
税额本位币:FTAXAMOUNT |
|||
收款组织:FPAYORGID (必填项) |
|||
到期日计算日期:FACCNTTIMEJUDGETIME |
|||
不含税金额本位币:FNOTAXAMOUNT |
|||
修改人:FModifierId |
|||
创建人:FCreatorId |
|||
审核日期:FAPPROVEDATE |
|||
作废人:FCancellerId |
|||
总金额:FAMOUNTFOR |
|||
总金额本位币:FAMOUNT |
|||
表头基本 - 收款核销状态:FWRITTENOFFSTATUS |
|||
表头基本 - 收(退)款单的关联金额:FRelateHadPayAmount |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loanfileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineDto <br/> |
|||
* Description: 放款资料审核 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 数据传输对象", description = "放款资料审核 数据传输对象") |
|||
public class LoanFileDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages = new ArrayList<>(); |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages = new ArrayList<>(); |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrders; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/9/13 |
|||
**/ |
|||
@Data |
|||
public class LoanPreloansQuery implements Query { |
|||
private static final long serialVersionUID = 4677306476460284056L; |
|||
|
|||
@ApiModelProperty("姓名") |
|||
private String custName; |
|||
@ApiModelProperty("身份证号码") |
|||
private String idCard; |
|||
@ApiModelProperty("手机号码") |
|||
private String phone; |
|||
@ApiModelProperty("用户sid,即销售专员的用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("移动端:姓名、身份证、手机号") |
|||
private String name; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String orderSid; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrders; |
|||
|
|||
import com.yxt.anrui.terminal.api.base.common.CarModelVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/9/13 |
|||
**/ |
|||
@Data |
|||
public class LoanPreloansVo implements Vo { |
|||
private static final long serialVersionUID = -6577382635622047300L; |
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String custSid; |
|||
@ApiModelProperty("客户名称") |
|||
private String custName; |
|||
@ApiModelProperty("手机号码") |
|||
private String phone; |
|||
|
|||
@ApiModelProperty("公司风控结果") |
|||
private String gsfkjg; |
|||
@ApiModelProperty("资方名称") |
|||
private String capitalName; |
|||
@ApiModelProperty("资方风控结果") |
|||
private String zffkjg; |
|||
@ApiModelProperty("担保人") |
|||
private String peoName; |
|||
@ApiModelProperty("申请日期") |
|||
private String createTime; |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("页面地址") |
|||
private CarModelVo pluginPage; |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineVo <br/> |
|||
* Description: 放款资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 视图数据详情", description = "放款资料审核 视图数据详情") |
|||
public class FileexamineDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("消贷合同编号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("台数") |
|||
private Integer num; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("车架号拼接") |
|||
private String vinNo; |
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages; |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages; |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages; |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages; |
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineDto <br/> |
|||
* Description: 放款资料审核 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 数据传输对象", description = "放款资料审核 数据传输对象") |
|||
public class FileexamineDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("银行卡") |
|||
private List<String> yhkImages = new ArrayList<>(); |
|||
@ApiModelProperty("购置税发票") |
|||
private List<String> gzsfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保险发票") |
|||
private List<String> bxfpImages = new ArrayList<>(); |
|||
@ApiModelProperty("保单") |
|||
private List<String> bdImages = new ArrayList<>(); |
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeign.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeign <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "放款资料审核") |
|||
@FeignClient( |
|||
contextId = "terminal-Fileexamine", |
|||
name = "anrui-terminal", |
|||
path = "v1/loanfileexamine", |
|||
fallback = FileexamineFeignFallback.class) |
|||
public interface FileexamineFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(@RequestBody PagerQuery<FileexamineQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FileexamineDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeignFallback <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FileexamineFeignFallback implements FileexamineFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanfileexamine/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FileexamineDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanfileexamine/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanfileexamine/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loanfileexamine/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineQuery.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineQuery <br/> |
|||
* Description: 放款资料审核 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 查询条件", description = "放款资料审核 查询条件") |
|||
public class FileexamineQuery implements Query { |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; |
|||
private String menuSid; |
|||
private String type; |
|||
private String names; |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.fileexamine; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineVo <br/> |
|||
* Description: 放款资料审核 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "放款资料审核 视图数据对象", description = "放款资料审核 视图数据对象") |
|||
public class FileexamineVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("消贷合同编号") |
|||
private String loanContractNo; |
|||
@ApiModelProperty("贷款人名称") |
|||
private String borrowerName; |
|||
@ApiModelProperty("台数") |
|||
private String num; |
|||
@ApiModelProperty("销售专员名称") |
|||
private String staffName; |
|||
@ApiModelProperty("资料状态") |
|||
private String zlState; |
|||
@ApiModelProperty("是否上传") |
|||
private Boolean isUpload = false; |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.fileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanfileexamine.*; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.*; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(放款资料审核) <br/> |
|||
* File: LoanFileexamineFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loanfileexamine.LoanFileexamineRest <br/> |
|||
* Description: 放款资料审核. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-09-08 09:43:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "放款资料审核") |
|||
@RestController |
|||
@RequestMapping("v1/loanfileexamine") |
|||
public class FileexamineRest implements FileexamineFeign { |
|||
|
|||
@Autowired |
|||
private FileexamineService fileexamineService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pq) { |
|||
return fileexamineService.listPage(pq); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FileexamineDto dto) { |
|||
return fileexamineService.save(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String[] sids) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid) { |
|||
return fileexamineService.fetchDetailsBySid(sid); |
|||
} |
|||
} |
@ -0,0 +1,107 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.fileexamine; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanfileexamine.*; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanAttachTypeEnum; |
|||
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDto; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineDto; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineQuery; |
|||
import com.yxt.anrui.terminal.api.risk.fileexamine.FileexamineVo; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class FileexamineService { |
|||
|
|||
@Autowired |
|||
private LoanFileexamineFeign loanFileexamineFeign; |
|||
|
|||
public ResultBean<PagerVo<FileexamineVo>> listPage(PagerQuery<FileexamineQuery> pagerQuery) { |
|||
ResultBean<PagerVo<FileexamineVo>> rb = ResultBean.fireFail(); |
|||
PagerQuery<LoanFileexamineQuery> pq = new PagerQuery<>(); |
|||
FileexamineQuery params = pagerQuery.getParams(); |
|||
LoanFileexamineQuery params1 = new LoanFileexamineQuery(); |
|||
params1.setOrgSidPath(params.getOrgPath()); |
|||
params1.setUserSid(params.getUserSid()); |
|||
params1.setNames(params.getNames()); |
|||
params1.setType(params.getType()); |
|||
pq.setParams(params1); |
|||
ResultBean<PagerVo<LoanFileexamineVo>> resultBean = loanFileexamineFeign.listPage(pq); |
|||
List<FileexamineVo> fileexamineVos = new ArrayList<>(); |
|||
PagerVo<FileexamineVo> v = new PagerVo<>(); |
|||
List<LoanFileexamineVo> records = resultBean.getData().getRecords(); |
|||
for (LoanFileexamineVo record : records) { |
|||
FileexamineVo fileexamineVo = new FileexamineVo(); |
|||
fileexamineVo.setSid(record.getSid()); |
|||
fileexamineVo.setLoanContractNo(record.getLoanContractNo()); |
|||
fileexamineVo.setZlState(record.getZlState()); |
|||
fileexamineVo.setBorrowerName(record.getBorrowerName()); |
|||
fileexamineVo.setNum(record.getNum()); |
|||
fileexamineVo.setStaffName(record.getUseOrgName() + "-" + record.getOrgName() + "-" + record.getStaffName()); |
|||
if ("未齐全".equals(record.getZlState())) { |
|||
fileexamineVo.setIsUpload(true); |
|||
} |
|||
fileexamineVos.add(fileexamineVo); |
|||
} |
|||
v.setRecords(fileexamineVos); |
|||
return rb.success().setData(v); |
|||
} |
|||
|
|||
public ResultBean<FileexamineDetailsVo> fetchDetailsBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FileexamineDetailsVo fileexamineDetailsVo = new FileexamineDetailsVo(); |
|||
LoanFileexamineDetailsVo data = loanFileexamineFeign.fetchDetailsBySid(sid).getData(); |
|||
fileexamineDetailsVo.setLoanContractNo(data.getLoanContractNo()); |
|||
fileexamineDetailsVo.setNum(data.getNum()); |
|||
fileexamineDetailsVo.setStaffName(data.getStaffName()); |
|||
fileexamineDetailsVo.setVinNo(data.getVinNo()); |
|||
fileexamineDetailsVo.setYhkImages(data.getYhkImages()); |
|||
fileexamineDetailsVo.setGzsfpImages(data.getGzsfpImages()); |
|||
fileexamineDetailsVo.setBxfpImages(data.getBxfpImages()); |
|||
fileexamineDetailsVo.setBdImages(data.getBdImages()); |
|||
return rb.success().setData(fileexamineDetailsVo); |
|||
} |
|||
|
|||
public ResultBean save(FileexamineDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanFileDto loanFileDto = new LoanFileDto(); |
|||
loanFileDto.setSid(dto.getSid()); |
|||
loanFileDto.setYhkImages(dto.getYhkImages()); |
|||
loanFileDto.setGzsfpImages(dto.getGzsfpImages()); |
|||
loanFileDto.setBxfpImages(dto.getBxfpImages()); |
|||
loanFileDto.setBdImages(dto.getBdImages()); |
|||
loanFileexamineFeign.uploadFile(loanFileDto); |
|||
return rb.success(); |
|||
} |
|||
} |
Loading…
Reference in new issue