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
1af2f137
Commit
1af2f137
authored
Aug 30, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地市优化 & 社保派单兼容订单编码
parent
fd5b7b0c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
14 deletions
+29
-14
TMinSalaryServiceImpl.java
...us/v1/yifu/salary/service/impl/TMinSalaryServiceImpl.java
+1
-1
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+7
-0
TDispatchImportVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
+5
-0
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+2
-2
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+2
-2
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+5
-3
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+2
-4
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+5
-2
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TMinSalaryServiceImpl.java
View file @
1af2f137
...
@@ -91,7 +91,7 @@ public class TMinSalaryServiceImpl extends ServiceImpl<TMinSalaryMapper, TMinSal
...
@@ -91,7 +91,7 @@ public class TMinSalaryServiceImpl extends ServiceImpl<TMinSalaryMapper, TMinSal
if
(
res
>
CommonConstants
.
ZERO_INT
){
if
(
res
>
CommonConstants
.
ZERO_INT
){
return
R
.
failed
(
"已存在对应区域在用的配置信息"
);
return
R
.
failed
(
"已存在对应区域在用的配置信息"
);
}
}
baseMapper
.
updateById
(
entit
y
);
baseMapper
.
updateById
(
tMinSalar
y
);
return
R
.
ok
(
true
,
CommonConstants
.
UPDATE_SUCCESS
);
return
R
.
ok
(
true
,
CommonConstants
.
UPDATE_SUCCESS
);
}
else
{
}
else
{
return
R
.
failed
(
false
,
CommonConstants
.
SAVE_FAILED
);
return
R
.
failed
(
false
,
CommonConstants
.
SAVE_FAILED
);
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
1af2f137
...
@@ -582,5 +582,12 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -582,5 +582,12 @@ public class TDispatchInfo extends BaseEntity {
@ExcelProperty
(
"首次购买时间(第一派单月份)"
)
@ExcelProperty
(
"首次购买时间(第一派单月份)"
)
private
Date
firstBuyMonthSocial
;
private
Date
firstBuyMonthSocial
;
/**
* 订单ID
*/
@ExcelAttribute
(
name
=
"订单ID"
)
@Schema
(
description
=
"订单ID"
)
@ExcelProperty
(
"订单ID"
)
private
String
orderId
;
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
View file @
1af2f137
...
@@ -445,4 +445,9 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -445,4 +445,9 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
@ExcelProperty
(
"派单ID"
)
@ExcelProperty
(
"派单ID"
)
private
String
dispatchId
;
private
String
dispatchId
;
/**
* 订单ID
*/
private
String
orderId
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
1af2f137
...
@@ -224,8 +224,8 @@ public class TDispatchInfoController {
...
@@ -224,8 +224,8 @@ public class TDispatchInfoController {
@SysLog
(
"批量新增派单信息记录表"
)
@SysLog
(
"批量新增派单信息记录表"
)
@PostMapping
(
"/importListAdd"
)
@PostMapping
(
"/importListAdd"
)
//@PreAuthorize("@pms.hasPermission('demo_tdispatchinfo-batch-import')")
//@PreAuthorize("@pms.hasPermission('demo_tdispatchinfo-batch-import')")
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
){
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
,
String
orderId
){
return
tDispatchInfoService
.
importDiy
(
file
.
getInputStream
());
return
tDispatchInfoService
.
importDiy
(
file
.
getInputStream
()
,
orderId
);
}
}
/**
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
1af2f137
...
@@ -46,7 +46,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
...
@@ -46,7 +46,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
*/
*/
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPage
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
);
IPage
<
TDispatchInfoPageVo
>
getTDispatchInfoPage
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
);
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
);
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
,
String
orderId
);
void
listExport
(
HttpServletResponse
response
,
TDispatchInfoSearchVo
searchVo
);
void
listExport
(
HttpServletResponse
response
,
TDispatchInfoSearchVo
searchVo
);
...
@@ -56,7 +56,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
...
@@ -56,7 +56,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
@ShardingTransactionType
(
TransactionType
.
BASE
)
@ShardingTransactionType
(
TransactionType
.
BASE
)
void
importTDispatchInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
void
importTDispatchInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
,
List
<
ErrorMessage
>
errorMessageList
,
YifuUser
user
);
YifuUser
user
,
String
orderId
);
R
<
List
<
ErrorMessage
>>
importReduceDiy
(
InputStream
inputStream
);
R
<
List
<
ErrorMessage
>>
importReduceDiy
(
InputStream
inputStream
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
1af2f137
...
@@ -236,7 +236,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -236,7 +236,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
@Override
@Override
public
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
)
{
public
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
,
String
orderId
)
{
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
);
...
@@ -284,7 +284,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -284,7 +284,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
*/
*/
private
void
saveData
()
{
private
void
saveData
()
{
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
importTDispatchInfo
(
cachedDataList
,
errorMessageList
,
user
);
importTDispatchInfo
(
cachedDataList
,
errorMessageList
,
user
,
orderId
);
log
.
info
(
"存储数据库成功!"
);
log
.
info
(
"存储数据库成功!"
);
}
}
}).
sheet
().
doRead
();
}).
sheet
().
doRead
();
...
@@ -299,7 +299,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -299,7 +299,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
@ShardingTransactionType
(
TransactionType
.
BASE
)
@ShardingTransactionType
(
TransactionType
.
BASE
)
public
void
importTDispatchInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
public
void
importTDispatchInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
,
List
<
ErrorMessage
>
errorMessageList
,
YifuUser
user
)
{
YifuUser
user
,
String
orderId
)
{
if
(!
Common
.
isNotNull
(
excelVOList
)){
if
(!
Common
.
isNotNull
(
excelVOList
)){
return
;
return
;
}
}
...
@@ -432,6 +432,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -432,6 +432,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
continue
;
continue
;
}
}
// 新增派单信息
// 新增派单信息
excel
.
setOrderId
(
orderId
);
initDispatchAddInfo
(
user
,
dispatchMap
,
empVo
,
socialSet
,
fundSet
,
excel
,
socialFund
,
injury
);
initDispatchAddInfo
(
user
,
dispatchMap
,
empVo
,
socialSet
,
fundSet
,
excel
,
socialFund
,
injury
);
// 变更社保公积金查询
// 变更社保公积金查询
initSocialFundAddInfo
(
socialFundAddMap
,
empVo
,
socialSet
,
fundSet
,
setInfoVo
,
socialFund
,
excel
);
initSocialFundAddInfo
(
socialFundAddMap
,
empVo
,
socialSet
,
fundSet
,
setInfoVo
,
socialFund
,
excel
);
...
@@ -1002,6 +1003,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1002,6 +1003,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
TSocialFundInfo
socialFund
,
boolean
injury
)
{
TSocialFundInfo
socialFund
,
boolean
injury
)
{
TDispatchInfo
dispatch
=
new
TDispatchInfo
();
TDispatchInfo
dispatch
=
new
TDispatchInfo
();
// 初始化派单项
// 初始化派单项
dispatch
.
setOrderId
(
excel
.
getOrderId
());
initAddHandleItem
(
excel
,
socialFund
,
dispatch
,
socialSet
,
injury
);
initAddHandleItem
(
excel
,
socialFund
,
dispatch
,
socialSet
,
injury
);
dispatch
.
setOrganName
(
user
.
getDeptName
());
dispatch
.
setOrganName
(
user
.
getDeptName
());
dispatch
.
setCreateBy
(
user
.
getId
());
dispatch
.
setCreateBy
(
user
.
getId
());
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
1af2f137
...
@@ -24,7 +24,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -24,7 +24,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysArea
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysArea
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.AreaVo
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.AreaVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainListVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainListVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.*
;
...
@@ -41,7 +40,6 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TPreDispatchInfoService;
...
@@ -41,7 +40,6 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TPreDispatchInfoService;
import
com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil
;
import
com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.checkerframework.checker.units.qual.C
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -383,7 +381,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -383,7 +381,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
}
}
// 档案地市没问题 开始派单处理
// 档案地市没问题 开始派单处理
if
(
errorMessageList
.
size
()
==
CommonConstants
.
ZERO_INT
)
{
if
(
errorMessageList
.
size
()
==
CommonConstants
.
ZERO_INT
)
{
dispatchInfoService
.
importTDispatchInfo
(
importVoList
,
errorMessageList
,
user
);
dispatchInfoService
.
importTDispatchInfo
(
importVoList
,
errorMessageList
,
user
,
null
);
}
}
// 处理派增结果
// 处理派增结果
errorMessage
=
handleDispatchAddRes
(
preInfo
,
errorMessageList
);
errorMessage
=
handleDispatchAddRes
(
preInfo
,
errorMessageList
);
...
@@ -2453,7 +2451,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -2453,7 +2451,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
}
}
// 档案地市没问题 开始派单处理
// 档案地市没问题 开始派单处理
if
(!
Common
.
isNotNull
(
errorMessageList
)){
if
(!
Common
.
isNotNull
(
errorMessageList
)){
dispatchInfoService
.
importTDispatchInfo
(
importVoList
,
errorMessageList
,
user
);
dispatchInfoService
.
importTDispatchInfo
(
importVoList
,
errorMessageList
,
user
,
null
);
}
}
// 处理派增结果
// 处理派增结果
handleDispatchAddRes
(
pre
,
errorMessageList
);
handleDispatchAddRes
(
pre
,
errorMessageList
);
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
1af2f137
...
@@ -94,7 +94,9 @@
...
@@ -94,7 +94,9 @@
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
<result
property=
"applyNo"
column=
"APPLY_NO"
/>
<result
property=
"applyNo"
column=
"APPLY_NO"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"orderId"
column=
"ORDER_ID"
/>
</resultMap>
</resultMap>
<resultMap
id=
"dispatchPageMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo"
extends=
"tDispatchInfoMap"
>
<resultMap
id=
"dispatchPageMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo"
extends=
"tDispatchInfoMap"
>
<result
property=
"providentHouseholdName"
column=
"PROVIDENT_HOUSEHOLD_NAME"
/>
<result
property=
"providentHouseholdName"
column=
"PROVIDENT_HOUSEHOLD_NAME"
/>
...
@@ -213,7 +215,8 @@
...
@@ -213,7 +215,8 @@
a.ID_CARD_CITY,
a.ID_CARD_CITY,
a.ID_CARD_TOWN,
a.ID_CARD_TOWN,
a.ID_CARD_ADDRESS,
a.ID_CARD_ADDRESS,
a.APPLY_NO
a.APPLY_NO,
a.ORDER_ID
</sql>
</sql>
<sql
id=
"tDispatchInfo_where"
>
<sql
id=
"tDispatchInfo_where"
>
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo != null"
>
...
...
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