Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
5aa544a9
Commit
5aa544a9
authored
Aug 08, 2022
by
查济
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zhaji' into 'develop'
Feature zhaji See merge request fangxinjiang/yifu!145
parents
55cb66c2
c09f9213
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
161 additions
and
6 deletions
+161
-6
EKPUtil.java
.../com/yifu/cloud/plus/v1/yifu/insurances/util/EKPUtil.java
+5
-0
TInsuranceSettlePushParam.java
...plus/v1/yifu/insurances/vo/TInsuranceSettlePushParam.java
+156
-0
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+0
-6
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/EKPUtil.java
View file @
5aa544a9
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认证,那么客户端需要加入
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/TInsuranceSettlePushParam.java
View file @
5aa544a9
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
;
}
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
5aa544a9
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment