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
7f9e4301
Commit
7f9e4301
authored
May 24, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
39b3d982
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
18 deletions
+24
-18
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+1
-1
SocialImportHandleVo.java
...fu/cloud/plus/v1/yifu/social/vo/SocialImportHandleVo.java
+1
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+22
-16
No files found.
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
7f9e4301
...
...
@@ -218,7 +218,7 @@ fund.import.handle.not.exits=\u65E0\u529E\u7406\u6743\u9650\u6216\u65E0\u53EF\u9
fund_import_handle_reason_not_empty
=
\u
516C
\u
79EF
\u
91D1
\u
529E
\u7406\u
FF1A
\u
529E
\u7406\u5931\u
8D25
\u
FF0C
\u5931\u
8D25
\u
7C7B
\u
578B
\u
5FC5
\u
586B
social_import_handle_reason_not_empty
=
\u
793E
\u
4FDD
\u
529E
\u7406\u
FF1A
\u
4EFB
\u
4E00
\u9669\u
79CD
\u
529E
\u7406\u5931\u
8D25
\u
FF0C
\u5931\u
8D25
\u
539F
\u
56E0
\u
5FC5
\u
586B
social_import_handle_reason_not_empty
=
\u
793E
\u
4FDD
\u
529E
\u7406\u
FF1A
\u
4EFB
\u
4E00
\u9669\u
79CD
\u
529E
\u7406\u5931\u
8D25
\u
FF0C
\u5931\u
8D25
\u
7C7B
\u
578B
\u
5FC5
\u
586B
social_import_handle_not_empty
=
\u
793E
\u
4FDD
\u
529E
\u7406\u5931\u
8D25
\u
FF0C
\u
5FC5
\u
987B
\u
529E
\u7406\u5176\u
4E2D
\u
4E00
\u
4E2A
\u9669\u
79CD
social.import.handle.not.exits
=
\u
65E0
\u
529E
\u7406\u6743\u9650\u6216\u
65E0
\u
53EF
\u9700\u8981\u
529E
\u7406\u7684\u
793E
\u
4FDD
\u6570\u
636E
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialImportHandleVo.java
View file @
7f9e4301
...
...
@@ -100,7 +100,7 @@ public class SocialImportHandleVo extends RowIndex implements Serializable {
/**
* 办理意见
*/
@ExcelAttribute
(
name
=
"办理意见"
)
@ExcelAttribute
(
name
=
"办理意见"
,
maxLength
=
150
)
@Schema
(
description
=
"办理意见"
)
@ExcelProperty
(
"办理意见"
)
private
String
remark
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
7f9e4301
...
...
@@ -3650,13 +3650,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
temp
.
append
(
DispatchConstants
.
DISPATCH_SOCIAL_ADD
);
temp
.
append
(
Common
.
isNullToString
(
socialTypeRemark
));
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_SUCCESS
);
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
THREE_STRING
,
user
,
temp
.
toString
().
concat
(
handleRemark
),
remark
);
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
THREE_STRING
,
user
,
temp
.
toString
().
concat
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)
),
remark
);
}
else
{
temp
.
setLength
(
CommonConstants
.
ZERO_INT
);
temp
.
append
(
DispatchConstants
.
DISPATCH_SOCIAL_ADD
);
temp
.
append
(
Common
.
isNullToString
(
socialTypeRemark
));
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_FAIL
);
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
().
concat
(
handleRemark
),
remark
);
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
().
concat
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)
),
remark
);
}
auditInfo
.
setSocialId
(
dis
.
getId
());
}
...
...
@@ -5260,11 +5260,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
TDispatchInfo
dispatch
;
ErrorMessage
errorMessage
;
List
<
ErrorMessage
>
messageList
=
new
ArrayList
<>()
;
List
<
ErrorMessage
>
messageList
;
StringBuilder
socialSucessType
=
new
StringBuilder
();
StringBuilder
socialFailureType
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
StringBuilder
socialSucessType
=
new
StringBuilder
();
StringBuilder
socialFailureType
=
new
StringBuilder
();
excel
=
excelVOList
.
get
(
i
);
//身份证加任一险种必填
if
(
Common
.
isEmpty
(
excel
.
getDbHandleStatus
())
&&
Common
.
isEmpty
(
excel
.
getGsHandleStatus
())
...
...
@@ -5284,7 +5284,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
=
dispatchMap
.
get
(
excel
.
getEmpIdcard
());
if
(
Common
.
isEmpty
(
dispatch
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
SOCIAL_IMPORT_HANDLE_NOT_E
MPY
),
excel
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
SOCIAL_IMPORT_HANDLE_NOT_E
XITS
),
excel
));
continue
;
}
...
...
@@ -5324,22 +5324,28 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
socialSucessType
.
length
()
>
1
)
{
// 执行数据插入操作 组装
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
,
0
,
CommonConstants
.
ONE_STRING
,
""
,
socialSucessType
.
substring
(
0
,
socialSucessType
.
length
()
-
1
),
excel
.
getRemark
());
,
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
()));
if
(
Common
.
isNotNull
(
messageList
))
{
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
.
setData
(
excel
);
}
else
{
errorMessage
=
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
,
CommonConstants
.
GREEN
,
excel
);
}
errorMessageList
.
add
(
errorMessage
);
}
//办理失败处理
if
(
socialFailureType
.
length
()
>
1
)
{
// 执行数据插入操作 组装
messageList
=
addBatchApplyHandle
(
Collections
.
singletonList
(
dispatch
.
getId
()),
CommonConstants
.
ZERO_STRING
,
user
,
1
,
CommonConstants
.
TWO_STRING
,
excel
.
getReasonType
()
,
socialFailureType
.
substring
(
0
,
socialFailureType
.
length
()
-
1
),
excel
.
getReasonType
()
+
CommonConstants
.
COLON_STRING
+
excel
.
getRemark
(
));
}
if
(
Common
.
isNotNull
(
messageList
))
{
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
.
setData
(
excel
);
}
else
{
errorMessage
=
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
,
CommonConstants
.
GREEN
,
excel
);
,
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
()
));
if
(
Common
.
isNotNull
(
messageList
))
{
errorMessage
=
messageList
.
get
(
CommonConstants
.
ZERO_INT
);
errorMessage
.
setData
(
excel
);
}
else
{
errorMessage
=
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
,
CommonConstants
.
GREEN
,
excel
);
}
errorMessage
List
.
add
(
errorMessage
);
}
errorMessageList
.
add
(
errorMessage
);
}
catch
(
Exception
e
)
{
log
.
error
(
"批量导入办理异常:"
,
e
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_FAILED
,
excel
));
...
...
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