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
42fa4c4a
Commit
42fa4c4a
authored
Aug 08, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
20ccef88
3a83e50f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
196 additions
and
13 deletions
+196
-13
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+4
-0
EKPUtil.java
.../com/yifu/cloud/plus/v1/yifu/insurances/util/EKPUtil.java
+5
-0
InsuranceExportListVO.java
...oud/plus/v1/yifu/insurances/vo/InsuranceExportListVO.java
+13
-0
TInsuranceSettlePushParam.java
...plus/v1/yifu/insurances/vo/TInsuranceSettlePushParam.java
+156
-0
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+1
-1
TInsuranceDetailService.java
...s/v1/yifu/insurances/service/TInsuranceDetailService.java
+2
-2
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+11
-3
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+4
-7
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
42fa4c4a
...
@@ -31,6 +31,10 @@ public class InsurancesConstants {
...
@@ -31,6 +31,10 @@ public class InsurancesConstants {
* 编辑
* 编辑
*/
*/
public
static
final
String
EDIT
=
"编辑"
;
public
static
final
String
EDIT
=
"编辑"
;
/**
* 数据发生变动,请刷新数据后重新办理
*/
public
static
final
String
CHANGE_ERROR
=
"数据发生变动,请刷新数据后重新办理"
;
/**
/**
* 导出办理
* 导出办理
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/EKPUtil.java
View file @
42fa4c4a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
util
;
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.core.io.FileSystemResource
;
import
org.springframework.http.*
;
import
org.springframework.http.*
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.LinkedMultiValueMap
;
...
@@ -22,6 +24,8 @@ public class EKPUtil {
...
@@ -22,6 +24,8 @@ public class EKPUtil {
*/
*/
public
static
void
testAddNewsInRestTemplate
()
throws
Exception
{
public
static
void
testAddNewsInRestTemplate
()
throws
Exception
{
RestTemplate
yourRestTemplate
=
new
RestTemplate
();
RestTemplate
yourRestTemplate
=
new
RestTemplate
();
TInsuranceSettlePushParam
formValues
=
new
TInsuranceSettlePushParam
();
String
jsonObject
=
new
ObjectMapper
().
writeValueAsString
(
formValues
);
//指向EKP的接口url
//指向EKP的接口url
String
url
=
"http://119.96.227.251:8080/api/sys-modeling/appModelRestService/addModel"
;
String
url
=
"http://119.96.227.251:8080/api/sys-modeling/appModelRestService/addModel"
;
//把ModelingAppModelParameterAddForm转换成MultiValueMap
//把ModelingAppModelParameterAddForm转换成MultiValueMap
...
@@ -32,6 +36,7 @@ public class EKPUtil {
...
@@ -32,6 +36,7 @@ public class EKPUtil {
wholeForm
.
add
(
"fdModelId"
,
"181d73279372e5a55438a47d7436ab7e"
);
wholeForm
.
add
(
"fdModelId"
,
"181d73279372e5a55438a47d7436ab7e"
);
wholeForm
.
add
(
"fdFlowId"
,
"18267f206233f29cbd3c5ee425c9408a"
);
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"
)
);
//wholeForm.add("formValues", new String("{\"fd_3adfe6af71a1cc\":\"王五\", \"fd_3adfe658c6229e\":\"2019-03-26\", \"fd_3adfe6592b4158\":\"这里内容\"}".getBytes("UTF-8"),"ISO-8859-1") );
HttpHeaders
headers
=
new
HttpHeaders
();
HttpHeaders
headers
=
new
HttpHeaders
();
//如果EKP对该接口启用了Basic认证,那么客户端需要加入
//如果EKP对该接口启用了Basic认证,那么客户端需要加入
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceExportListVO.java
View file @
42fa4c4a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -52,6 +53,12 @@ public class InsuranceExportListVO implements Serializable {
...
@@ -52,6 +53,12 @@ public class InsuranceExportListVO implements Serializable {
@Schema
(
description
=
" 投保类型, 1新增、3批增、4替换"
)
@Schema
(
description
=
" 投保类型, 1新增、3批增、4替换"
)
private
Integer
buyType
;
private
Integer
buyType
;
/**
* 投保办理状态 1待投保 2投保中 3已投保 4投保退回 5 已减员
*/
@JsonIgnore
private
Integer
buyHandleStatus
;
/**
/**
* 购买月数
* 购买月数
*/
*/
...
@@ -150,6 +157,12 @@ public class InsuranceExportListVO implements Serializable {
...
@@ -150,6 +157,12 @@ public class InsuranceExportListVO implements Serializable {
@Schema
(
description
=
"结算类型 (0、预估 1、实缴)"
)
@Schema
(
description
=
"结算类型 (0、预估 1、实缴)"
)
private
Integer
settleType
;
private
Integer
settleType
;
/**
* 保单编号
*/
@Schema
(
description
=
"保单编号"
)
private
String
policyNo
;
/**
/**
* 创建人姓名
* 创建人姓名
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/TInsuranceSettlePushParam.java
View file @
42fa4c4a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.cglib.core.Local
;
import
java.time.LocalDate
;
/**
/**
* @author zhaji
* @author zhaji
...
@@ -9,6 +12,159 @@ import lombok.Data;
...
@@ -9,6 +12,159 @@ import lombok.Data;
*/
*/
@Data
@Data
public
class
TInsuranceSettlePushParam
{
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/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
42fa4c4a
...
@@ -208,7 +208,7 @@ public class TInsuranceDetailController {
...
@@ -208,7 +208,7 @@ public class TInsuranceDetailController {
@Operation
(
summary
=
"导出办理"
,
description
=
"导出办理"
)
@Operation
(
summary
=
"导出办理"
,
description
=
"导出办理"
)
@PostMapping
(
"/getInsuranceExportList"
)
@PostMapping
(
"/getInsuranceExportList"
)
public
R
<
List
<
InsuranceExportListVO
>>
getInsuranceExportList
(
@RequestBody
InsuranceExportListParam
param
)
{
public
R
<
List
<
InsuranceExportListVO
>>
getInsuranceExportList
(
@RequestBody
InsuranceExportListParam
param
)
{
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceExportList
(
param
)
);
return
tInsuranceDetailService
.
getInsuranceExportList
(
param
);
}
}
/**
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/TInsuranceDetailService.java
View file @
42fa4c4a
...
@@ -134,9 +134,9 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -134,9 +134,9 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
*
*
* @author licancan
* @author licancan
* @param param
* @param param
* @return {@link
List<InsuranceExportListVO
>}
* @return {@link
R<List<InsuranceExportListVO>
>}
*/
*/
List
<
InsuranceExportListVO
>
getInsuranceExportList
(
InsuranceExportListParam
param
);
R
<
List
<
InsuranceExportListVO
>
>
getInsuranceExportList
(
InsuranceExportListParam
param
);
/**
/**
* 投保退回
* 投保退回
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
42fa4c4a
...
@@ -781,18 +781,26 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -781,18 +781,26 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
* @author licancan
* @author licancan
*/
*/
@Override
@Override
public
List
<
InsuranceExportListVO
>
getInsuranceExportList
(
InsuranceExportListParam
param
)
{
public
R
<
List
<
InsuranceExportListVO
>
>
getInsuranceExportList
(
InsuranceExportListParam
param
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
List
<
InsuranceExportListVO
>
insuranceExportList
=
new
ArrayList
<>();
List
<
InsuranceExportListVO
>
insuranceExportList
=
new
ArrayList
<>();
//todo 根据登录人获取数据权限
//todo 根据登录人获取数据权限
String
regionSQL
=
getRegionSQL
(
user
);
String
regionSQL
=
getRegionSQL
(
user
);
param
.
setRegionSql
(
regionSQL
);
param
.
setRegionSql
(
regionSQL
);
if
(
StringUtils
.
isBlank
(
regionSQL
)){
if
(
StringUtils
.
isBlank
(
regionSQL
)){
return
insuranceExportList
;
return
R
.
ok
(
insuranceExportList
)
;
}
}
//如勾选项不为空,则导出勾选记录;否则导出当前筛选条件下 && 「待投保」的结果集
//如勾选项不为空,则导出勾选记录;否则导出当前筛选条件下 && 「待投保」的结果集
if
(
CollectionUtils
.
isNotEmpty
(
param
.
getIdList
())){
if
(
CollectionUtils
.
isNotEmpty
(
param
.
getIdList
())){
insuranceExportList
=
baseMapper
.
getInsuranceExportListBySelect
(
param
.
getIdList
());
insuranceExportList
=
baseMapper
.
getInsuranceExportListBySelect
(
param
.
getIdList
());
if
(
CollectionUtils
.
isNotEmpty
(
insuranceExportList
)){
for
(
InsuranceExportListVO
exportListVO
:
insuranceExportList
)
{
if
(
exportListVO
.
getBuyHandleStatus
()
!=
CommonConstants
.
ONE_INT
){
return
R
.
failed
(
InsurancesConstants
.
CHANGE_ERROR
);
}
}
}
}
else
{
}
else
{
insuranceExportList
=
baseMapper
.
getInsuranceExportList
(
param
);
insuranceExportList
=
baseMapper
.
getInsuranceExportList
(
param
);
}
}
...
@@ -875,7 +883,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -875,7 +883,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
}
}
return
insuranceExportList
;
return
R
.
ok
(
insuranceExportList
)
;
}
}
/**
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
42fa4c4a
...
@@ -141,12 +141,6 @@
...
@@ -141,12 +141,6 @@
<if
test=
"param.deptNo != null and param.deptNo.trim() != ''"
>
<if
test=
"param.deptNo != null and param.deptNo.trim() != ''"
>
and detail.DEPT_NO = #{param.deptNo}
and detail.DEPT_NO = #{param.deptNo}
</if>
</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"
>
<if
test=
"param.buyHandleStatus != null"
>
and detail.BUY_HANDLE_STATUS = #{param.buyHandleStatus}
and detail.BUY_HANDLE_STATUS = #{param.buyHandleStatus}
</if>
</if>
...
@@ -332,6 +326,7 @@
...
@@ -332,6 +326,7 @@
detail.EMP_NAME as empName,
detail.EMP_NAME as empName,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.BUY_TYPE as buyType,
detail.BUY_TYPE as buyType,
detail.BUY_HANDLE_STATUS as buyHandleStatus,
detail.POST as post,
detail.POST as post,
detail.INSURANCE_PROVINCE_NAME as insuranceProvinceName,
detail.INSURANCE_PROVINCE_NAME as insuranceProvinceName,
detail.INSURANCE_CITY_NAME as insuranceCityName,
detail.INSURANCE_CITY_NAME as insuranceCityName,
...
@@ -347,9 +342,10 @@
...
@@ -347,9 +342,10 @@
detail.SETTLE_MONTH as settleMonth,
detail.SETTLE_MONTH as settleMonth,
detail.SETTLE_TYPE as settleType,
detail.SETTLE_TYPE as settleType,
detail.CREATE_NAME as createName,
detail.CREATE_NAME as createName,
detail.POLICY_NO as policyNo,
detail.REMARK as remark
detail.REMARK as remark
from t_insurance_detail detail
from t_insurance_detail detail
where detail.DELETE_FLAG = 0 and detail.
BUY_HANDLE_STATUS = 1 and detail.
id in
where detail.DELETE_FLAG = 0 and detail.id in
<foreach
collection=
"idList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"idList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
...
@@ -377,6 +373,7 @@
...
@@ -377,6 +373,7 @@
detail.SETTLE_MONTH as settleMonth,
detail.SETTLE_MONTH as settleMonth,
detail.SETTLE_TYPE as settleType,
detail.SETTLE_TYPE as settleType,
detail.CREATE_NAME as createName,
detail.CREATE_NAME as createName,
detail.POLICY_NO as policyNo,
detail.REMARK as remark
detail.REMARK as remark
from t_insurance_detail detail
from t_insurance_detail detail
where detail.DELETE_FLAG = 0 and detail.BUY_HANDLE_STATUS = 1
where detail.DELETE_FLAG = 0 and detail.BUY_HANDLE_STATUS = 1
...
...
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