Commit 5aa544a9 authored by 查济's avatar 查济

Merge branch 'feature-zhaji' into 'develop'

Feature zhaji

See merge request fangxinjiang/yifu!145
parents 55cb66c2 c09f9213
package com.yifu.cloud.plus.v1.yifu.insurances.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.TInsuranceSettlePushParam;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.*;
import org.springframework.util.LinkedMultiValueMap;
......@@ -22,6 +24,8 @@ public class EKPUtil {
*/
public static void testAddNewsInRestTemplate() throws Exception{
RestTemplate yourRestTemplate = new RestTemplate();
TInsuranceSettlePushParam formValues = new TInsuranceSettlePushParam();
String jsonObject = new ObjectMapper().writeValueAsString(formValues);
//指向EKP的接口url
String url = "http://119.96.227.251:8080/api/sys-modeling/appModelRestService/addModel";
//把ModelingAppModelParameterAddForm转换成MultiValueMap
......@@ -32,6 +36,7 @@ public class EKPUtil {
wholeForm.add("fdModelId", "181d73279372e5a55438a47d7436ab7e");
wholeForm.add("fdFlowId", "18267f206233f29cbd3c5ee425c9408a");
wholeForm.add("formValues", new String("{\"fd_3adfe6af71a1cc\":\"王五\", \"fd_3adfe658c6229e\":\"2019-03-26\", \"fd_3adfe6592b4158\":\"这里内容\"}".getBytes("UTF-8"),"ISO-8859-1") );
//wholeForm.add("formValues", new String("{\"fd_3adfe6af71a1cc\":\"王五\", \"fd_3adfe658c6229e\":\"2019-03-26\", \"fd_3adfe6592b4158\":\"这里内容\"}".getBytes("UTF-8"),"ISO-8859-1") );
HttpHeaders headers = new HttpHeaders();
//如果EKP对该接口启用了Basic认证,那么客户端需要加入
......
package com.yifu.cloud.plus.v1.yifu.insurances.vo;
import lombok.Data;
import org.springframework.cglib.core.Local;
import java.time.LocalDate;
/**
* @author zhaji
......@@ -9,6 +12,159 @@ import lombok.Data;
*/
@Data
public class TInsuranceSettlePushParam {
/**
* ID主键 36位
*/
private String fd_id ;
/**
* 单据类型 200 单选(预估单,实缴单,差异单)
*/
private String fd_3adfe6af71a1cc;
/**
* 项目编码 200
*/
private String fd_3adfe658c6229e;
/**
* 项目名称 200
*/
private String fd_3adfe6592b4158;
/**
* 单号 200
*/
private String fd_3adfe67a9f6364;
/**
* 客户编码 200
*/
private String fd_3adfe6598281e8;
/**
* 客户名称 200
*/
private String fd_3adfe7a2688902;
/**
* 发生日期 "xxxx--xx--xx"
*/
private LocalDate fd_3adfe67c24dace;
/**
* 姓名 200
*/
private String fd_3adfe65d759650;
/**
* 身份证号 200
*/
private String fd_3adfe65dbd9f68;
/**
* 发票号 200
*/
private String fd_3adfe65e0cd094;
/**
* 险种 200
*/
private String fd_3adfe65f6599e4;
/**
* 保险公司 200
*/
private String fd_3adfe65ea04728;
/**
* 保单号 200
*/
private String fd_3adfe65e60e110;
/**
* 保险开始日期 "xxxx--xx--xx"
*/
private LocalDate fd_3adfe6b7e0ede8;
/**
* 保险结束日期 "xxxx--xx--xx"
*/
private LocalDate fd_3adfe6b847bfe6;
/**
* 购买标准 精确到小数点后两位
*/
private Double fd_3adfe6d55384c6;
/**
* 实际保费 精确到小数点后两位
*/
private Double fd_3adfe6610c0d2c;
/**
* 医保 精确到小数点后两位
*/
private Double fd_3adfe66041a996;
/**
* 事故或残疾 200
*/
private String fd_3adfe6609aa810;
/**
* 应收 精确到小数点后两位
*/
private Double fd_3adfe6e30f2a3c;
/**
* 应收 200 单选(已结算,结算中,未结算)
*/
private String fd_3adfe6ec6a8cbe;
/**
* 收款状态 200 单选(已收,未收)
*/
private String fd_3adfe6ef5dfaac;
/**
* 收入结算单号 200
*/
private String fd_3adfe79fd04606;
/**
* 收款认领单号 200
*/
private String fd_3adfe7a117f086;
/**
* 应支出 精确到小数点后两位
*/
private Double fd_3adfe6e3911ffe;
/**
* 支出结算状态 200 单选(已结算,结算中,未结算)
*/
private String fd_3adfe6eda67236;
/**
* 付款状态 200 单选(已收,未收)
*/
private String fd_3adfe6f05531ec;
/**
* 支出结算单号 200
*/
private String fd_3adfe7a035849c;
/**
* 付款单号 200
*/
private String fd_3adfe7a08eba96;
/**
* 结算月份 200
*/
private String fd_3aea2f0180eccc;
}
......@@ -141,12 +141,6 @@
<if test="param.deptNo != null and param.deptNo.trim() != ''">
and detail.DEPT_NO = #{param.deptNo}
</if>
<if test="param.deptNo == null or param.deptNo.trim() == ''">
and detail.DEPT_NO in
<foreach collection="param.deptNoList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="param.buyHandleStatus != null">
and detail.BUY_HANDLE_STATUS = #{param.buyHandleStatus}
</if>
......
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