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
aa787b57
Commit
aa787b57
authored
Nov 11, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
5b8be6f2
e9a8f694
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
61 deletions
+150
-61
yifu-insurances-deployment.yaml
k8s-bash-test/yifu-insurances-deployment.yaml
+1
-1
TInsuranceDetailMapper.java
.../insurances/mapper/insurances/TInsuranceDetailMapper.java
+9
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+47
-48
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+71
-0
TDispatchAuditExportVo.java
.../cloud/plus/v1/yifu/social/vo/TDispatchAuditExportVo.java
+1
-1
TDispatchInfoExportVo.java
...u/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
+1
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+1
-1
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+19
-9
No files found.
k8s-bash-test/yifu-insurances-deployment.yaml
View file @
aa787b57
...
...
@@ -63,7 +63,7 @@ spec: # 资源规范字段
#cpu: 300m # CPU,1核心 = 1000m
requests
:
# 容器运行时,最低资源需求,也就是说最少需要多少资源容器才能正常运行
#cpu: 100m
memory
:
"
1024
Mi"
memory
:
"
500
Mi"
#livenessProbe: # pod 内部健康检查的设置
# httpGet: # 通过httpget检查健康,返回200-399之间,则认为容器正常
# path: /healthCheck # URI地址
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/insurances/TInsuranceDetailMapper.java
View file @
aa787b57
...
...
@@ -113,6 +113,15 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
*/
List
<
InsuredListVo
>
getInsuredList
(
@Param
(
"param"
)
InsuredParam
param
);
/**
* 已投保列表不分页查询统计(excel导出统计)
*
* @author licancan
* @param param
* @return {@link long}
*/
long
getInsuredListCount
(
@Param
(
"param"
)
InsuredParam
param
);
/**
* 已减员列表分页查询
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
aa787b57
...
...
@@ -583,7 +583,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
return
R
.
failed
(
InsurancesConstants
.
EMP_IDCARD_NO_NOT_LEGITIMATE
);
}
//校验身份合法
/*
TCheckIdCard checkIdCard = new TCheckIdCard();
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getEmpName
());
checkIdCard
.
setIdCard
(
param
.
getEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
...
...
@@ -592,7 +592,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CommonConstants
.
ONE_INT
!=
data
.
getIsTrue
()){
return
R
.
failed
(
InsurancesConstants
.
EMP_ID_CARD_NO_NOT_FIT
);
}
}
*/
}
if
(!
LocalDateUtil
.
isDate
(
param
.
getPolicyStart
(),
LocalDateUtil
.
NORM_DATE_PATTERN
)){
return
R
.
failed
(
InsurancesConstants
.
POLICY_START_PARSE_ERROR
);
...
...
@@ -722,7 +722,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
return
R
.
failed
(
InsurancesConstants
.
EMP_IDCARD_NO_NOT_LEGITIMATE
);
}
//校验身份合法
/*
TCheckIdCard checkIdCard = new TCheckIdCard();
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getEmpName
());
checkIdCard
.
setIdCard
(
param
.
getEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
...
...
@@ -731,7 +731,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CommonConstants
.
ONE_INT
!=
data
.
getIsTrue
()){
return
R
.
failed
(
InsurancesConstants
.
EMP_ID_CARD_NO_NOT_FIT
);
}
}
*/
}
TInsuranceReplace
one
=
tInsuranceReplaceService
.
getOne
(
Wrappers
.<
TInsuranceReplace
>
query
().
lambda
()
.
eq
(
TInsuranceReplace:
:
getToInsuranceDetailId
,
byId
.
getId
())
...
...
@@ -1985,7 +1985,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
//校验身份合法
/*
TCheckIdCard checkIdCard = new TCheckIdCard();
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getEmpName
());
checkIdCard
.
setIdCard
(
param
.
getEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
...
...
@@ -1996,7 +1996,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
listResult
.
add
(
param
);
continue
;
}
}
*/
}
//根据项目编码查询项目是否存在
try
{
...
...
@@ -2305,7 +2305,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
//校验身份合法
/*
TCheckIdCard checkIdCard = new TCheckIdCard();
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getEmpName
());
checkIdCard
.
setIdCard
(
param
.
getEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
...
...
@@ -2316,7 +2316,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
listResult
.
add
(
param
);
continue
;
}
}
*/
}
//根据项目编码查询项目是否存在
try
{
...
...
@@ -2687,7 +2687,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
//校验身份合法
/*
TCheckIdCard checkIdCard = new TCheckIdCard();
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getReplaceEmpName
());
checkIdCard
.
setIdCard
(
param
.
getReplaceEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
...
...
@@ -2698,7 +2698,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
listResult
.
add
(
param
);
continue
;
}
}
*/
}
if
(
param
.
getEmpName
().
equals
(
param
.
getReplaceEmpName
())
&&
param
.
getEmpIdcardNo
().
equals
(
param
.
getReplaceEmpIdcardNo
())){
param
.
setErrorMessage
(
InsurancesConstants
.
REPLACE_EMP_INFO_SAME
);
...
...
@@ -3375,35 +3375,11 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Common
.
isNotNull
(
param
.
getAuthSql
())
&&
param
.
getAuthSql
().
contains
(
"1=2 CONCAT"
))
{
param
.
setAuthSql
(
param
.
getAuthSql
().
replace
(
"1=2 CONCAT"
,
"CONCAT"
));
}
List
<
InsuredListVo
>
insuredList
;
insuredList
=
this
.
baseMapper
.
getInsuredList
(
param
);
if
(
CollectionUtils
.
isNotEmpty
(
insuredList
)){
//根据项目编码获取项目名称
List
<
String
>
collect
=
insuredList
.
stream
().
map
(
InsuredListVo:
:
getDeptNo
).
distinct
().
collect
(
Collectors
.
toList
());
try
{
R
<
SetInfoVo
>
setInfoByCodes
=
archivesDaprUtil
.
getSetInfoByCodes
(
collect
);
if
(
null
!=
setInfoByCodes
&&
setInfoByCodes
.
getCode
()
==
CommonConstants
.
SUCCESS
&&
Common
.
isNotNull
(
setInfoByCodes
.
getData
()))
{
Map
<
String
,
ProjectSetInfoVo
>
data
=
setInfoByCodes
.
getData
().
getProjectSetInfoVoMap
();
for
(
InsuredListVo
record
:
insuredList
)
{
//购买月数
record
.
setBuyMonth
(
LocalDateUtil
.
betweenMonth
(
record
.
getPolicyStart
().
toString
(),
record
.
getPolicyEnd
().
toString
()));
if
(
data
!=
null
)
{
ProjectSetInfoVo
jsonObject
=
data
.
get
(
record
.
getDeptNo
());
if
(
null
!=
jsonObject
)
{
record
.
setInvoiceTitle
(
Optional
.
ofNullable
(
jsonObject
.
getInvoiceTitleInsurance
()).
orElse
(
""
));
}
}
}
}
}
catch
(
Exception
e
){
for
(
InsuredListVo
record
:
insuredList
)
{
record
.
setProjectName
(
CommonConstants
.
EMPTY_STRING
);
}
}
}
List
<
InsuredListVo
>
list
=
new
ArrayList
<>();
//处理导出
String
fileName
=
"商险已投保人员名册"
+
DateUtil
.
getThisTime
()
+
CommonConstants
.
XLSX
;
long
count
=
insuredList
.
size
(
);
long
count
=
this
.
baseMapper
.
getInsuredListCount
(
param
);
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
...
...
@@ -3422,28 +3398,51 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
// 获取实际记录
param
.
setLimitStart
(
i
);
param
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
if
(
Common
.
isNotNull
(
insuredList
)){
list
=
this
.
baseMapper
.
getInsuredList
(
param
);
if
(
Common
.
isNotNull
(
list
)){
//处理封面抬头
//根据项目编码获取项目名称
Map
<
String
,
ProjectSetInfoVo
>
data
=
null
;
try
{
List
<
String
>
collect
=
list
.
stream
().
map
(
InsuredListVo:
:
getDeptNo
).
distinct
().
collect
(
Collectors
.
toList
());
R
<
SetInfoVo
>
setInfoByCodes
=
archivesDaprUtil
.
getSetInfoByCodes
(
collect
);
if
(
null
!=
setInfoByCodes
&&
setInfoByCodes
.
getCode
()
==
CommonConstants
.
SUCCESS
&&
Common
.
isNotNull
(
setInfoByCodes
.
getData
()))
{
data
=
setInfoByCodes
.
getData
().
getProjectSetInfoVoMap
();
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
data
=
null
;
}
util
=
new
ExcelUtil
<>(
InsuredListVo
.
class
);
for
(
InsuredListVo
vo:
insuredList
){
for
(
InsuredListVo
vo:
list
){
//购买月数
vo
.
setBuyMonth
(
LocalDateUtil
.
betweenMonth
(
vo
.
getPolicyStart
().
toString
(),
vo
.
getPolicyEnd
().
toString
()));
if
(
Objects
.
nonNull
(
data
))
{
ProjectSetInfoVo
jsonObject
=
data
.
get
(
vo
.
getDeptNo
());
if
(
null
!=
jsonObject
)
{
vo
.
setInvoiceTitle
(
Optional
.
ofNullable
(
jsonObject
.
getInvoiceTitleInsurance
()).
orElse
(
""
));
}
}
util
.
convertEntityAsso
(
vo
,
null
,
null
,
null
,
allFields
);
}
}
if
(
Common
.
isNotNull
(
insuredL
ist
)){
writeSheet
=
EasyExcel
.
writerSheet
(
"sheet"
).
build
();
excelWriter
.
write
(
insuredL
ist
,
writeSheet
);
if
(
Common
.
isNotNull
(
l
ist
)){
writeSheet
=
EasyExcel
.
writerSheet
(
"sheet"
+
index
).
build
();
excelWriter
.
write
(
l
ist
,
writeSheet
);
index
++;
}
i
=
i
+
CommonConstants
.
EXCEL_EXPORT_LIMIT
;
if
(
Common
.
isNotNull
(
insuredL
ist
)){
insuredL
ist
.
clear
();
if
(
Common
.
isNotNull
(
l
ist
)){
l
ist
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcel
.
writerSheet
(
"sheet"
).
build
();
excelWriter
.
write
(
insuredL
ist
,
writeSheet
);
WriteSheet
writeSheet
=
EasyExcel
.
writerSheet
(
"sheet"
+
index
).
build
();
excelWriter
.
write
(
l
ist
,
writeSheet
);
}
if
(
Common
.
isNotNull
(
insuredL
ist
)){
insuredL
ist
.
clear
();
if
(
Common
.
isNotNull
(
l
ist
)){
l
ist
.
clear
();
}
out
.
flush
();
excelWriter
.
finish
();
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
aa787b57
...
...
@@ -608,6 +608,77 @@
${param.authSql}
</if>
ORDER BY a.CREATE_TIME DESC
<if
test=
"param != null"
>
<if
test=
"param.limitStart != null"
>
limit #{param.limitStart},#{param.limitEnd}
</if>
</if>
</select>
<select
id=
"getInsuredListCount"
resultType=
"java.lang.Long"
>
select
count(1)
from
t_insurance_detail a
where
a.DELETE_FLAG = 0
and
a.BUY_HANDLE_STATUS = 3
<if
test=
"param.createName != null and param.createName.trim() != ''"
>
and a.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
<if
test=
"param.buyType != null"
>
and a.BUY_TYPE = #{param.buyType}
</if>
<if
test=
"param.reduceHandleStatus != null"
>
and a.REDUCE_HANDLE_STATUS = #{param.reduceHandleStatus}
</if>
<if
test=
"param.empName != null and param.empName.trim() != ''"
>
and a.EMP_NAME like concat('%',replace(replace(#{param.empName},'_','\_'),'%','\%'),'%')
</if>
<if
test=
"param.empIdcardNo != null and param.empIdcardNo.trim() != ''"
>
and a.EMP_IDCARD_NO like concat('%',replace(replace(#{param.empIdcardNo},'_','\_'),'%','\%'),'%')
</if>
<if
test=
"param.deptNo != null and param.deptNo.trim() != ''"
>
and a.DEPT_NO = #{param.deptNo}
</if>
<if
test=
"param.insuranceCompanyName != null and param.insuranceCompanyName.trim() != ''"
>
and a.INSURANCE_COMPANY_NAME = #{param.insuranceCompanyName}
</if>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
and (
(a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, ' 00:00:00') and a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, ' 23:59:59')) OR
(a.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00') and a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')) OR
(a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00') and a.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59'))
)
</if>
<if
test=
"param.createStartTime != null and param.createStartTime.trim() != ''"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.createStartTime}, ' 00:00:00')
</if>
<if
test=
"param.createEndTime != null and param.createEndTime.trim() != ''"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.createEndTime}, ' 23:59:59')
</if>
<if
test=
"param.invoiceNo != null and param.invoiceNo.trim() != ''"
>
and a.INVOICE_NO like concat('%',replace(replace(#{param.invoiceNo},'_','\_'),'%','\%'),'%')
</if>
<if
test=
"param.isUse != null"
>
and a.IS_USE = #{param.isUse}
</if>
<if
test=
"param.isOverdue != null "
>
and a.IS_OVERDUE = #{param.isOverdue}
</if>
<if
test=
"param.authSql != null and param.authSql.trim() != ''"
>
${param.authSql}
</if>
ORDER BY a.CREATE_TIME DESC
</select>
<!-- 已减员列表分页查询-->
<select
id=
"getInsuranceRefundPageList"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceRefundListVo"
>
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchAuditExportVo.java
View file @
aa787b57
...
...
@@ -40,7 +40,7 @@ import java.util.Date;
@Schema
(
description
=
"派单审核导出Vo"
)
public
class
TDispatchAuditExportVo
{
@ExcelAttribute
(
name
=
"派单类型"
,
readConverterExp
=
"0=
增加派单,1=减少派单
"
)
@ExcelAttribute
(
name
=
"派单类型"
,
readConverterExp
=
"0=
派增,1=派减
"
)
@Schema
(
description
=
"派单类型:0派增1派减"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"派单类型"
)
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
View file @
aa787b57
...
...
@@ -94,7 +94,7 @@ public class TDispatchInfoExportVo {
@ExcelProperty
(
"项目编码"
)
private
String
settleDomainCode
;
@ExcelAttribute
(
name
=
"派单类型"
,
readConverterExp
=
"0=
增加派单,1=减少派单
"
)
@ExcelAttribute
(
name
=
"派单类型"
,
readConverterExp
=
"0=
派增,1=派减
"
)
@Schema
(
description
=
"派单类型:0派增1派减"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"派单类型"
)
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
aa787b57
...
...
@@ -4074,7 +4074,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
**/
@Override
public
void
doexportFundRecordChange
(
HttpServletResponse
response
,
String
idStr
,
SocialHandleSearchVo
searchVo
)
{
String
fileName
=
DispatchConstants
.
SOCIAL_RECORD_EXPORT
+
LocalDateTime
.
now
()
+
CommonConstants
.
XLSX
;
String
fileName
=
DispatchConstants
.
SOCIAL_RECORD_EXPORT
+
DateUtil
.
getThisTime
()
+
CommonConstants
.
XLSX
;
//获取要导出的列表
List
<
FundHandleExportVo
>
list
=
new
ArrayList
<>();
long
count
=
getFundRecordCount
(
searchVo
,
idStr
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
aa787b57
...
...
@@ -653,7 +653,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
HashMap
<
String
,
List
<
SysBaseSetInfo
>>
baseFundSetMap
=
new
HashMap
<>();
HashMap
<
String
,
TPreDispatchInfo
>
baseSocialTimeMap
=
new
HashMap
<>();
HashMap
<
String
,
TPreDispatchInfo
>
baseFundTimeMap
=
new
HashMap
<>();
initSocialAndFundBaseSet
(
listInfo
,
baseSocialSetMap
,
baseFundSetMap
,
baseSocialTimeMap
,
baseFundTimeMap
);
initSocialAndFundBaseSet
(
listInfo
,
baseSocialSetMap
,
baseFundSetMap
,
baseSocialTimeMap
,
baseFundTimeMap
,
null
);
// 查询当月对应身份证是否已经派增或派减了 后面做判重处理
HashMap
<
String
,
TPreDispatchInfo
>
existsMap
=
new
HashMap
<>();
initExistsMapByIdCards
(
listInfo
,
existsMap
,
CommonConstants
.
ZERO_STRING
);
...
...
@@ -807,14 +807,14 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
HashMap
<
String
,
TPreDispatchInfo
>
baseFundTimeMap
=
new
HashMap
<>();
HashMap
<
String
,
TPreDispatchInfo
>
existsMap
=
new
HashMap
<>();
HashMap
<
String
,
TPreDispatchInfo
>
repeatMap
=
new
HashMap
<>();
initSocialAndFundBaseSet
(
listInfo
,
baseSocialSetMap
,
baseFundSetMap
,
baseSocialTimeMap
,
baseFundTimeMap
);
initExistsMapByIds
(
listInfo
,
existsMap
,
repeatMap
);
initSocialAndFundBaseSet
(
listInfo
,
baseSocialSetMap
,
baseFundSetMap
,
baseSocialTimeMap
,
baseFundTimeMap
,
existsMap
);
// 获取所有地市的最迟派单日限制
HashMap
<
String
,
Integer
>
dayConfMap
=
new
HashMap
<>();
initDayConfMap
(
dayConfMap
);
TPreDispatchInfo
temp
=
null
;
TPreDispatchInfo
repeat
=
null
;
int
i
=
1
;
int
i
=
0
;
String
str
=
null
;
for
(
TPreDispatchInfo
info:
listInfo
)
{
i
++;
...
...
@@ -1056,6 +1056,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
errorList
.
add
(
new
ErrorMessage
(
i
,
CommonConstants
.
DATA_CAN_NOT_EMPTY
));
return
true
;
}
info
.
setCompany
(
temp
.
getCompany
());
info
.
setType
(
temp
.
getType
());
if
(
null
!=
repeat
&&
!
repeat
.
getId
().
equals
(
info
.
getId
())){
errorList
.
add
(
new
ErrorMessage
(
i
,
"已存在身份证对应缴费地的数据!"
));
...
...
@@ -1866,7 +1867,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
!
info
.
getPensionStart
().
equals
(
temp
.
getPensionStart
()));
}
if
(
flag
)
{
dateTime
=
DateUtil
.
stringToDate
(
info
.
getPensionStart
(
)+
"01"
,
DateUtil
.
ISO_DATE_FORMAT
);
dateTime
=
DateUtil
.
stringToDate
(
DateUtil
.
getYearAndMonth
(
info
.
getPensionStart
(),
CommonConstants
.
ONE_INT
)+
"01"
,
DateUtil
.
ISO_DATE_FORMAT
);
if
(
null
!=
dateTime
)
{
socialBases
=
baseSocialSetMap
.
get
(
info
.
getCompany
());
if
(
Common
.
isNotNull
(
socialBases
)){
...
...
@@ -1917,7 +1918,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
!
info
.
getFundStart
().
equals
(
temp
.
getFundStart
()));
}
if
(
flag
)
{
dateTime
=
DateUtil
.
stringToDate
(
info
.
getFundStart
(
)+
"01"
,
DateUtil
.
ISO_DATE_FORMAT
);
dateTime
=
DateUtil
.
stringToDate
(
DateUtil
.
getYearAndMonth
(
info
.
getFundStart
(),
CommonConstants
.
ONE_INT
)+
"01"
,
DateUtil
.
ISO_DATE_FORMAT
);
if
(
null
!=
dateTime
)
{
baseSetInfos
=
baseFundSetMap
.
get
(
info
.
getCompany
());
if
(
Common
.
isNotNull
(
baseSetInfos
)){
...
...
@@ -2029,6 +2030,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
* @param baseFundSetMap
* @param baseSocialTimeMap
* @param baseFundTimeMap
* @param existsMap
* @return
* @Author huyc
* @Date 2022-07-18
...
...
@@ -2037,12 +2039,20 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
Map
<
String
,
List
<
SysBaseSetInfo
>>
baseSocialSetMap
,
Map
<
String
,
List
<
SysBaseSetInfo
>>
baseFundSetMap
,
Map
<
String
,
TPreDispatchInfo
>
baseSocialTimeMap
,
Map
<
String
,
TPreDispatchInfo
>
baseFundTimeMap
)
{
Map
<
String
,
TPreDispatchInfo
>
baseFundTimeMap
,
HashMap
<
String
,
TPreDispatchInfo
>
existsMap
)
{
List
<
String
>
idList
=
new
ArrayList
<>();
Map
<
String
,
String
>
houseMap
=
new
HashMap
<>();
if
(
Common
.
isNotNull
(
listInfo
))
{
TPreDispatchInfo
temp
;
for
(
TPreDispatchInfo
info
:
listInfo
)
{
houseMap
.
put
(
info
.
getCompany
(),
info
.
getCompany
());
if
(
Common
.
isNotNull
(
existsMap
)){
temp
=
existsMap
.
get
(
info
.
getId
());
if
(
Common
.
isNotNull
(
temp
)){
houseMap
.
put
(
temp
.
getCompany
(),
temp
.
getCompany
());
}
}
else
{
houseMap
.
put
(
info
.
getCompany
(),
info
.
getCompany
());
}
if
(
Common
.
isNotNull
(
info
.
getPensionStart
()))
{
baseSocialTimeMap
.
put
(
info
.
getPensionStart
(),
info
);
}
...
...
@@ -2053,13 +2063,13 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
}
}
// 获取所有户对应的社保户和公积金户对应的在用基数配置
if
(
Common
.
isNotNull
(
houseMap
)){
if
(
Common
.
isNotNull
(
houseMap
)
&&
houseMap
.
size
()
>
0
){
List
<
SysBaseSetInfo
>
baseSetInfoList
=
sysBaseSetInfoMapper
.
selectList
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
SysBaseSetInfo:
:
getStatus
,
CommonConstants
.
ZERO_INT
)
.
in
(
SysBaseSetInfo:
:
getDepartName
,
houseMap
.
values
()));
List
<
SysBaseSetInfo
>
baseList
;
if
(
Common
.
isNotNull
(
baseSetInfoList
)){
if
(
Common
.
isNotNull
(
baseSetInfoList
)
&&
baseSetInfoList
.
size
()
>
0
){
for
(
SysBaseSetInfo
base:
baseSetInfoList
){
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
base
.
getBaseType
())){
baseList
=
baseSocialSetMap
.
get
(
base
.
getDepartName
());
...
...
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