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
a07e7bb3
Commit
a07e7bb3
authored
Jun 06, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社保士兵自动化实缴 复核表及详情实现
parent
36d6fcac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
6 deletions
+48
-6
TAutoPaymentDetail.java
.../cloud/plus/v1/yifu/social/entity/TAutoPaymentDetail.java
+1
-1
TAutoPaymentInfoSearchVo.java
...loud/plus/v1/yifu/social/vo/TAutoPaymentInfoSearchVo.java
+29
-0
TAutoPaymentDetailServiceImpl.java
...fu/social/service/impl/TAutoPaymentDetailServiceImpl.java
+6
-5
TAutoPaymentInfoMapper.xml
...-biz/src/main/resources/mapper/TAutoPaymentInfoMapper.xml
+12
-0
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TAutoPaymentDetail.java
View file @
a07e7bb3
...
@@ -56,7 +56,7 @@ public class TAutoPaymentDetail extends BaseEntity {
...
@@ -56,7 +56,7 @@ public class TAutoPaymentDetail extends BaseEntity {
*/
*/
@ExcelAttribute
(
name
=
"是否重新办理 0 是 1 否"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"是否重新办理 0 是 1 否"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"是否重新办理 0 是 1 否不能超过1个字符"
)
@Length
(
max
=
1
,
message
=
"是否重新办理 0 是 1 否不能超过1个字符"
)
@ExcelProperty
(
"是否重新办理
0 是 1 否
"
)
@ExcelProperty
(
"是否重新办理"
)
@Schema
(
description
=
"是否重新办理 0 是 1 否"
)
@Schema
(
description
=
"是否重新办理 0 是 1 否"
)
private
String
repeatHandleFlag
;
private
String
repeatHandleFlag
;
/**
/**
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TAutoPaymentInfoSearchVo.java
View file @
a07e7bb3
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentInfo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -26,6 +27,7 @@ public class TAutoPaymentInfoSearchVo extends TAutoPaymentInfo {
...
@@ -26,6 +27,7 @@ public class TAutoPaymentInfoSearchVo extends TAutoPaymentInfo {
*/
*/
@Schema
(
description
=
"创建时间区间"
)
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
private
LocalDateTime
[]
createTimes
;
/**
/**
* @Author fxj
* @Author fxj
* 查询数据起
* 查询数据起
...
@@ -39,4 +41,31 @@ public class TAutoPaymentInfoSearchVo extends TAutoPaymentInfo {
...
@@ -39,4 +41,31 @@ public class TAutoPaymentInfoSearchVo extends TAutoPaymentInfo {
@Schema
(
description
=
"查询limit 数据条数"
)
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
private
int
limitEnd
;
/**
* 创建时间起
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"创建时间起"
)
private
LocalDateTime
createTimeStart
;
/**
* 创建时间止
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"创建时间止"
)
private
LocalDateTime
createTimeEnd
;
/**
* 更新时间起
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"更新时间起"
)
private
LocalDateTime
updateTimeStart
;
/**
* 更新时间止
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"更新时间止"
)
private
LocalDateTime
updateTimeEnd
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TAutoPaymentDetailServiceImpl.java
View file @
a07e7bb3
...
@@ -224,6 +224,7 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
...
@@ -224,6 +224,7 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
data
.
setRowIndex
(
rowIndex
+
1
);
data
.
setRowIndex
(
rowIndex
+
1
);
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
if
(
Common
.
isNotNull
(
errorMessage
))
{
if
(
Common
.
isNotNull
(
errorMessage
))
{
errorMessage
.
setData
(
data
);
errorMessageList
.
add
(
errorMessage
);
errorMessageList
.
add
(
errorMessage
);
}
else
{
}
else
{
cachedDataList
.
add
(
data
);
cachedDataList
.
add
(
data
);
...
@@ -264,16 +265,16 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
...
@@ -264,16 +265,16 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
excel
=
excelVOList
.
get
(
i
);
excel
=
excelVOList
.
get
(
i
);
if
(
Common
.
isEmpty
(
paymentInfo
)){
if
(
Common
.
isEmpty
(
paymentInfo
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
PARAM_IS_NOT_ERROR
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
PARAM_IS_NOT_ERROR
,
excel
));
continue
;
continue
;
}
}
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
paymentInfo
.
getRepeatReviewFlag
())){
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
paymentInfo
.
getRepeatReviewFlag
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"重新复核中,禁止更新!"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"重新复核中,禁止更新!"
,
excel
));
continue
;
continue
;
}
}
// 数据合法情况
// 数据合法情况
if
(!
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getRepeatHandleFlag
())){
if
(!
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getRepeatHandleFlag
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"'是否重新办理'填写不正确!"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"'是否重新办理'填写不正确!"
,
excel
));
continue
;
continue
;
}
}
detail
=
baseMapper
.
selectOne
(
Wrappers
.<
TAutoPaymentDetail
>
query
().
lambda
()
detail
=
baseMapper
.
selectOne
(
Wrappers
.<
TAutoPaymentDetail
>
query
().
lambda
()
...
@@ -283,13 +284,13 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
...
@@ -283,13 +284,13 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
.
eq
(
TAutoPaymentDetail:
:
getSocialSecurityAccount
,
excel
.
getSocialSecurityAccount
())
.
eq
(
TAutoPaymentDetail:
:
getSocialSecurityAccount
,
excel
.
getSocialSecurityAccount
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isEmpty
(
detail
)){
if
(
Common
.
isEmpty
(
detail
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"对应姓名+证件号码+社保户的数据不存在!"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"对应姓名+证件号码+社保户的数据不存在!"
,
excel
));
continue
;
continue
;
}
}
detail
.
setRepeatHandleFlag
(
"0"
);
detail
.
setRepeatHandleFlag
(
"0"
);
// 插入
// 插入
baseMapper
.
updateById
(
detail
);
baseMapper
.
updateById
(
detail
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
,
excel
));
}
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TAutoPaymentInfoMapper.xml
View file @
a07e7bb3
...
@@ -74,6 +74,18 @@
...
@@ -74,6 +74,18 @@
<if
test=
"tAutoPaymentInfo.updateTime != null"
>
<if
test=
"tAutoPaymentInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{tAutoPaymentInfo.updateTime}
AND a.UPDATE_TIME = #{tAutoPaymentInfo.updateTime}
</if>
</if>
<if
test=
"tAutoPaymentInfo.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{tAutoPaymentInfo.createTimeStart}
</if>
<if
test=
"tAutoPaymentInfo.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{tAutoPaymentInfo.createTimeEnd}
</if>
<if
test=
"tAutoPaymentInfo.updateTimeStart != null"
>
AND a.UPDATE_TIME
<![CDATA[ >= ]]>
#{tAutoPaymentInfo.updateTimeStart}
</if>
<if
test=
"tAutoPaymentInfo.updateTimeEnd != null"
>
AND a.UPDATE_TIME
<![CDATA[ <= ]]>
#{tAutoPaymentInfo.updateTimeEnd}
</if>
</if>
</if>
</sql>
</sql>
<!--tAutoPaymentInfo简单分页查询-->
<!--tAutoPaymentInfo简单分页查询-->
...
...
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