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
6e343046
Commit
6e343046
authored
Jul 20, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商险批增接口
parent
58dc8f00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
425 additions
and
0 deletions
+425
-0
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+5
-0
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+8
-0
InsuranceBatchParam.java
...cloud/plus/v1/yifu/insurances/vo/InsuranceBatchParam.java
+162
-0
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+13
-0
TInsuranceDetailService.java
...s/v1/yifu/insurances/service/TInsuranceDetailService.java
+10
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+227
-0
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
6e343046
...
...
@@ -146,6 +146,11 @@ public interface CommonConstants {
*/
String
THREE_STRING
=
"3"
;
/**
* 数字int 3
*/
int
THREE_INT
=
3
;
/**
* 下划线
* hgw 2022-6-9 17:36:35
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
6e343046
...
...
@@ -111,5 +111,13 @@ public class InsurancesConstants {
* 岗位不能为空
*/
public
static
final
String
POST_NOT_EMPTY
=
"岗位不能为空"
;
/**
* 保单号不能为空
*/
public
static
final
String
POLICY_NO_EMPTY
=
"保单号不能为空"
;
/**
* 保单号不存在
*/
public
static
final
String
POLICY_NO_EXIST
=
"保单号不存在"
;
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceBatchParam.java
0 → 100644
View file @
6e343046
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
/**
* @author licancan
* @description 商险办理批增入参
* @date 2022-07-20 08:43:31
*/
@Data
@Tag
(
name
=
"商险办理批增入参"
)
public
class
InsuranceBatchParam
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
2689686777914935788L
;
/**
* 订单编号
*/
@Schema
(
description
=
"订单编号"
)
private
String
orderNo
;
/**
* 项目编码
*/
@Schema
(
description
=
"项目编码"
)
private
String
deptNo
;
/**
* 员工姓名
*/
@Schema
(
description
=
"员工姓名"
)
private
String
empName
;
/**
* 员工身份证号
*/
@Schema
(
description
=
"员工身份证号"
)
private
String
empIdcardNo
;
/**
* 岗位
*/
@Schema
(
description
=
"岗位"
)
private
String
post
;
/**
* 保单号
*/
@Schema
(
description
=
"保单号"
)
private
String
policyNo
;
/**
* 保险公司名称
*/
@Schema
(
description
=
"保险公司名称"
)
private
String
insuranceCompanyName
;
/**
* 险种名称
*/
@Schema
(
description
=
"险种名称"
)
private
String
insuranceTypeName
;
/**
* 购买标准
*/
@Schema
(
description
=
"购买标准"
)
private
String
buyStandard
;
/**
* 商险购买地省名称
*/
@Schema
(
description
=
"商险购买地省名称"
)
private
String
insuranceProvinceName
;
/**
* 商险购买地市名称
*/
@Schema
(
description
=
"商险购买地市名称"
)
private
String
insuranceCityName
;
/**
* 商险办理省名称
*/
@Schema
(
description
=
"商险办理省名称"
)
private
String
insuranceHandleProvinceName
;
/**
* 商险办理城市名称
*/
@Schema
(
description
=
"商险办理城市名称"
)
private
String
insuranceHandleCityName
;
/**
* 结算月
*/
@Schema
(
description
=
"结算月"
)
private
String
settleMonth
;
/**
* 备注
*/
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 错误信息
*/
private
String
errorMessage
;
/***********************************以下字段由系统算出,前端不用传,是为了方便入库***********************************/
/**
* 结算类型 (1、单独结算 2、合并结算-和工资一起结算)
*/
private
Integer
settleType
;
/**
* 医疗额度
*/
private
String
medicalQuota
;
/**
* 身故或残疾额度
*/
private
String
dieDisableQuota
;
/**
* 险种主键
*/
private
Long
insuranceTypeId
;
/**
* 商险购买地省code
*/
private
Integer
insuranceProvince
;
/**
* 商险购买地市code
*/
private
Integer
insuranceCity
;
/**
* 商险办理省code
*/
private
Integer
insuranceHandleProvince
;
/**
* 商险办理城市code
*/
private
Integer
insuranceHandleCity
;
/**
* 保单开始时间
*/
private
LocalDate
policyStart
;
/**
* 保单结束时间
*/
private
LocalDate
policyEnd
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
6e343046
...
...
@@ -5,6 +5,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.InsuranceRefundCheck
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceDetailService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAddParam
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceBatchParam
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -51,6 +52,18 @@ public class TInsuranceDetailController {
return
tInsuranceDetailService
.
addInsurance
(
paramList
);
}
/**
* 商险批增
*
* @author licancan
* @param paramList
* @return {@link R<List<InsuranceBatchParam>>}
*/
@PostMapping
(
"/batchInsurance"
)
public
R
<
List
<
InsuranceBatchParam
>>
batchInsurance
(
@RequestBody
@Valid
@Size
(
min
=
1
,
message
=
"集合不能为空"
)
List
<
InsuranceBatchParam
>
paramList
){
return
tInsuranceDetailService
.
batchInsurance
(
paramList
);
}
/***********************减员办理********************************/
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/TInsuranceDetailService.java
View file @
6e343046
...
...
@@ -7,6 +7,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.InsuranceRefundCheck
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceDetail
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAddParam
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceBatchParam
;
import
java.util.List
;
...
...
@@ -29,6 +30,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
*/
R
<
List
<
InsuranceAddParam
>>
addInsurance
(
List
<
InsuranceAddParam
>
paramList
);
/**
* 商险批增
*
* @author licancan
* @param paramList
* @return {@link R<List<InsuranceBatchParam>>}
*/
R
<
List
<
InsuranceBatchParam
>>
batchInsurance
(
List
<
InsuranceBatchParam
>
paramList
);
/***********************减员办理********************************/
/**
* 减员导入校验
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
6e343046
This diff is collapsed.
Click to expand it.
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