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
9b1849bb
Commit
9b1849bb
authored
May 25, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
be556ac9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
15 deletions
+34
-15
SocialHandleSearchVo.java
...fu/cloud/plus/v1/yifu/social/vo/SocialHandleSearchVo.java
+8
-0
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+2
-2
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+1
-1
TForecastLibraryService.java
.../plus/v1/yifu/social/service/TForecastLibraryService.java
+4
-4
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+15
-6
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+4
-2
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialHandleSearchVo.java
View file @
9b1849bb
...
@@ -83,4 +83,12 @@ public class SocialHandleSearchVo extends TDispatchInfo {
...
@@ -83,4 +83,12 @@ public class SocialHandleSearchVo extends TDispatchInfo {
@ExcelAttribute
(
name
=
"派单项查询"
)
@ExcelAttribute
(
name
=
"派单项查询"
)
@Schema
(
description
=
"派单项查询"
)
@Schema
(
description
=
"派单项查询"
)
private
List
<
String
>
dispatchItems
;
private
List
<
String
>
dispatchItems
;
/**
* 菜单id
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"mid"
)
@ExcelIgnore
private
String
mId
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
9b1849bb
...
@@ -512,7 +512,7 @@ public class TDispatchInfoController {
...
@@ -512,7 +512,7 @@ public class TDispatchInfoController {
@Operation
(
description
=
"社保批量办理导入"
)
@Operation
(
description
=
"社保批量办理导入"
)
@SysLog
(
"社保批量办理导入"
)
@SysLog
(
"社保批量办理导入"
)
@PostMapping
(
"/importSocialHandler"
)
@PostMapping
(
"/importSocialHandler"
)
public
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
@RequestBody
MultipartFile
file
){
public
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
@RequestBody
MultipartFile
file
,
@RequestParam
String
mId
){
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
Common
.
isEmpty
(
user
)){
if
(
Common
.
isEmpty
(
user
)){
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
...
@@ -528,7 +528,7 @@ public class TDispatchInfoController {
...
@@ -528,7 +528,7 @@ public class TDispatchInfoController {
try
{
try
{
if
(
Common
.
isNotNull
(
requestId
))
{
if
(
Common
.
isNotNull
(
requestId
))
{
//主动释放锁
//主动释放锁
return
tDispatchInfoService
.
importSocialHandler
(
file
.
getInputStream
());
return
tDispatchInfoService
.
importSocialHandler
(
file
.
getInputStream
()
,
mId
);
}
else
{
}
else
{
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
9b1849bb
...
@@ -53,7 +53,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
...
@@ -53,7 +53,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
,
String
orderId
);
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
,
String
orderId
);
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
InputStream
inputStream
);
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
InputStream
inputStream
,
String
mId
);
void
listExport
(
HttpServletResponse
response
,
TDispatchInfoSearchVo
searchVo
);
void
listExport
(
HttpServletResponse
response
,
TDispatchInfoSearchVo
searchVo
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TForecastLibraryService.java
View file @
9b1849bb
...
@@ -78,21 +78,21 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> {
...
@@ -78,21 +78,21 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> {
/**
/**
* @param socialFundInfo
* @param socialFundInfo
* @Description: 派单
变更预估库
* @Description: 派单
减少变更预估库-派减
* @Author: hgw
* @Author: hgw
* @Date: 2022/7/26 19:02
* @Date: 2022/7/26 19:02
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
**/
R
<
String
>
updateForecastLibaryByDispatch
(
TSocialFundInfo
socialFundInfo
);
R
<
String
>
updateForecastLibaryByDispatch
Reduce
(
TSocialFundInfo
socialFundInfo
,
int
forecastFlag
);
/**
/**
* @param socialFundInfo
* @param socialFundInfo
* @Description: 派单
减少变更预估库-派减
* @Description: 派单
变更预估库
* @Author: hgw
* @Author: hgw
* @Date: 2022/7/26 19:02
* @Date: 2022/7/26 19:02
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
**/
R
<
String
>
updateForecastLibaryByDispatch
Reduce
(
TSocialFundInfo
socialFundInfo
,
int
forecastFlag
);
R
<
String
>
updateForecastLibaryByDispatch
(
TSocialFundInfo
socialFundInfo
);
/**
/**
* @Description: 户调基-基数变更,同步社保公积金查询、预估库
* @Description: 户调基-基数变更,同步社保公积金查询、预估库
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
9b1849bb
...
@@ -3885,7 +3885,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3885,7 +3885,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
partSuccess
){
if
(
partSuccess
){
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
}
else
{
}
else
{
socialTask
.
asynchronousDisPatchHandle
(
sf
,
0
,
null
,
null
,
CommonConstants
.
ONE_INT
);
synchronized
(
this
)
{
socialTask
.
asynchronousDisPatchHandle
(
sf
,
0
,
null
,
null
,
CommonConstants
.
ONE_INT
);
}
}
}
}
}
}
}
...
@@ -5169,7 +5171,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5169,7 +5171,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@ShardingTransactionType
(
TransactionType
.
BASE
)
@ShardingTransactionType
(
TransactionType
.
BASE
)
@Override
@Override
public
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
InputStream
inputStream
)
{
public
R
<
List
<
ErrorMessage
>>
importSocialHandler
(
InputStream
inputStream
,
String
mId
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
Common
.
isEmpty
(
user
)){
if
(
Common
.
isEmpty
(
user
)){
R
.
failed
(
CommonConstants
.
USER_FAIL
);
R
.
failed
(
CommonConstants
.
USER_FAIL
);
...
@@ -5220,7 +5222,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5220,7 +5222,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
*/
*/
private
void
saveData
()
{
private
void
saveData
()
{
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
socialImportHandle
(
cachedDataList
,
errorMessageList
,
user
);
socialImportHandle
(
cachedDataList
,
errorMessageList
,
user
,
mId
);
log
.
info
(
"存储数据库成功!"
);
log
.
info
(
"存储数据库成功!"
);
}
}
}).
sheet
().
doRead
();
}).
sheet
().
doRead
();
...
@@ -5238,7 +5240,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5238,7 +5240,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
* @Param
* @Param
* @return
* @return
**/
**/
public
void
socialImportHandle
(
List
<
SocialImportHandleVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
,
YifuUser
user
)
{
public
void
socialImportHandle
(
List
<
SocialImportHandleVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
,
YifuUser
user
,
String
mId
)
{
if
(!
Common
.
isNotNull
(
excelVOList
))
{
if
(!
Common
.
isNotNull
(
excelVOList
))
{
return
;
return
;
}
}
...
@@ -5246,6 +5248,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5246,6 +5248,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
SocialImportHandleVo
excel
;
SocialImportHandleVo
excel
;
SocialHandleSearchVo
tDispatchInfo
=
new
SocialHandleSearchVo
();
SocialHandleSearchVo
tDispatchInfo
=
new
SocialHandleSearchVo
();
tDispatchInfo
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
tDispatchInfo
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
tDispatchInfo
.
setMId
(
mId
);
menuUtil
.
setAuthSql
(
user
,
tDispatchInfo
);
menuUtil
.
setAuthSql
(
user
,
tDispatchInfo
);
if
(
Common
.
isNotNull
(
tDispatchInfo
.
getAuthSql
())
&&
tDispatchInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
if
(
Common
.
isNotNull
(
tDispatchInfo
.
getAuthSql
())
&&
tDispatchInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
tDispatchInfo
.
setAuthSql
(
tDispatchInfo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
...
@@ -5262,6 +5265,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5262,6 +5265,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
ErrorMessage
errorMessage
;
ErrorMessage
errorMessage
;
List
<
ErrorMessage
>
messageList
;
List
<
ErrorMessage
>
messageList
;
String
handlerRemaek
;
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
StringBuilder
socialSucessType
=
new
StringBuilder
();
StringBuilder
socialSucessType
=
new
StringBuilder
();
StringBuilder
socialFailureType
=
new
StringBuilder
();
StringBuilder
socialFailureType
=
new
StringBuilder
();
...
@@ -5320,11 +5324,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5320,11 +5324,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFailureType
.
append
(
"6,"
);
socialFailureType
.
append
(
"6,"
);
}
}
try
{
try
{
if
(
Common
.
isNotNull
(
excel
.
getReasonType
()))
{
handlerRemaek
=
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
;
}
else
{
handlerRemaek
=
""
;
}
//办理成功处理
//办理成功处理
if
(
socialSucessType
.
length
()
>
1
)
{
if
(
socialSucessType
.
length
()
>
1
)
{
// 执行数据插入操作 组装
// 执行数据插入操作 组装
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
,
0
,
CommonConstants
.
ONE_STRING
,
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()),
socialSucessType
.
substring
(
0
,
socialSucessType
.
length
()
-
1
),
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()));
,
0
,
CommonConstants
.
ONE_STRING
,
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()),
socialSucessType
.
substring
(
0
,
socialSucessType
.
length
()
-
1
),
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()));
if
(
Common
.
isNotNull
(
messageList
))
{
if
(
Common
.
isNotNull
(
messageList
))
{
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
.
setData
(
excel
);
errorMessage
.
setData
(
excel
);
...
@@ -5337,7 +5346,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5337,7 +5346,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
socialFailureType
.
length
()
>
1
)
{
if
(
socialFailureType
.
length
()
>
1
)
{
// 执行数据插入操作 组装
// 执行数据插入操作 组装
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
,
1
,
CommonConstants
.
TWO_STRING
,
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()),
socialFailureType
.
substring
(
0
,
socialFailureType
.
length
()
-
1
),
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()));
,
1
,
CommonConstants
.
TWO_STRING
,
handlerRemaek
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()),
socialFailureType
.
substring
(
0
,
socialFailureType
.
length
()
-
1
),
handlerRemaek
+
ServiceUtil
.
ifNullToEmpty
(
excel
.
getRemark
()));
if
(
Common
.
isNotNull
(
messageList
))
{
if
(
Common
.
isNotNull
(
messageList
))
{
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
.
setData
(
excel
);
errorMessage
.
setData
(
excel
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TForecastLibraryServiceImpl.java
View file @
9b1849bb
...
@@ -1862,9 +1862,11 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -1862,9 +1862,11 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
return
R
.
failed
(
"无需要重新生成的数据(无数据或数据已结算不可重新生成!)"
);
return
R
.
failed
(
"无需要重新生成的数据(无数据或数据已结算不可重新生成!)"
);
}
}
//先删除然后重新生成
//先删除然后重新生成
synchronized
(
this
)
{
if
(
Common
.
isNotNull
(
librarySocialList
))
{
if
(
Common
.
isNotNull
(
librarySocialList
))
{
baseMapper
.
deleteBatchIds
(
librarySocialList
);
baseMapper
.
deleteBatchIds
(
librarySocialList
);
}
}
}
if
(
Common
.
isNotNull
(
libraryFundList
))
{
if
(
Common
.
isNotNull
(
libraryFundList
))
{
baseMapper
.
deleteBatchIds
(
libraryFundList
);
baseMapper
.
deleteBatchIds
(
libraryFundList
);
}
}
...
...
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