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
1ba90a99
Commit
1ba90a99
authored
Jul 26, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预派单 代码修改
parent
024f5578
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
163 additions
and
21 deletions
+163
-21
TSettleDomainListVo.java
...u/cloud/plus/v1/yifu/archives/vo/TSettleDomainListVo.java
+15
-0
TSettleDomainController.java
.../v1/yifu/archives/controller/TSettleDomainController.java
+7
-4
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+22
-0
ExcelAttributeConstants.java
...v1/yifu/common/core/constant/ExcelAttributeConstants.java
+6
-0
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+4
-0
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+40
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
ArchivesDaprUtil.java
...cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
+2
-2
TPreDispatchInfo.java
...fu/cloud/plus/v1/yifu/social/entity/TPreDispatchInfo.java
+2
-2
TPreDispatchExportVo.java
...fu/cloud/plus/v1/yifu/social/vo/TPreDispatchExportVo.java
+1
-1
TPreDispatchInfoController.java
...v1/yifu/social/controller/TPreDispatchInfoController.java
+2
-2
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+22
-10
ServiceUtil.java
.../com/yifu/cloud/plus/v1/yifu/social/util/ServiceUtil.java
+38
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TSettleDomainListVo.java
0 → 100644
View file @
1ba90a99
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
TSettleDomainListVo
{
/**
* 合同主体对应的单位名称
*/
private
List
<
TSettleDomainSelectVo
>
listSelectVO
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TSettleDomainController.java
View file @
1ba90a99
...
@@ -149,8 +149,8 @@ public class TSettleDomainController {
...
@@ -149,8 +149,8 @@ public class TSettleDomainController {
**/
**/
@Inner
@Inner
@PostMapping
(
"/getSettleDomainSelectVoById"
)
@PostMapping
(
"/getSettleDomainSelectVoById"
)
public
R
<
TSettleDomainSelectVo
>
getInnerSettleDomainSelectVoByUserId
(
@RequestParam
String
id
)
{
public
TSettleDomainSelectVo
getInnerSettleDomainSelectVoByUserId
(
@RequestParam
String
id
)
{
return
new
R
<>(
tSettleDomainService
.
selectSettleDomainSelectVosById
(
id
)
);
return
tSettleDomainService
.
selectSettleDomainSelectVosById
(
id
);
}
}
/**
/**
...
@@ -161,8 +161,11 @@ public class TSettleDomainController {
...
@@ -161,8 +161,11 @@ public class TSettleDomainController {
**/
**/
@Inner
@Inner
@PostMapping
(
"/selectAllSettleDomainSelectVos"
)
@PostMapping
(
"/selectAllSettleDomainSelectVos"
)
public
R
<
List
<
TSettleDomainSelectVo
>>
selectAllSettleDomainSelectVos
()
{
public
TSettleDomainListVo
selectAllSettleDomainSelectVos
()
{
return
new
R
<>(
tSettleDomainService
.
selectAllSettleDomainSelectVos
());
List
<
TSettleDomainSelectVo
>
list
=
tSettleDomainService
.
selectAllSettleDomainSelectVos
();
TSettleDomainListVo
listVo
=
new
TSettleDomainListVo
();
listVo
.
setListSelectVO
(
list
);
return
listVo
;
}
}
/**
/**
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
1ba90a99
...
@@ -358,6 +358,20 @@ public interface CommonConstants {
...
@@ -358,6 +358,20 @@ public interface CommonConstants {
// 是否
// 是否
String
IS_CHANGE
=
"划转"
;
String
IS_CHANGE
=
"划转"
;
/**
* 省市
* @Author fxj
* @Date 2020-08-25
**/
public
static
final
String
HEFEISTRING
=
"安徽省-合肥市"
;
/**
* 省
* @Author fxj
* @Date 2020-08-25
**/
public
static
final
String
ANHUISTRING
=
"安徽省"
;
/**
/**
*是所有者
*是所有者
**/
**/
...
@@ -378,6 +392,10 @@ public interface CommonConstants {
...
@@ -378,6 +392,10 @@ public interface CommonConstants {
public
static
final
String
NINE_STRING
=
"9"
;
public
static
final
String
NINE_STRING
=
"9"
;
String
EIGHT_STRING
=
"8"
;
String
EIGHT_STRING
=
"8"
;
public
static
final
String
PAYMENT_SOCIAL_IMPORT
=
"payment_social_import"
;
public
static
final
String
PAYMENT_SOCIAL_WAIT_EXPORT
=
"payment_social_wait_export"
;
//百分之一 1/100
//百分之一 1/100
public
static
final
BigDecimal
ONE_OF_PERCENT
=
new
BigDecimal
(
"0.01"
);
public
static
final
BigDecimal
ONE_OF_PERCENT
=
new
BigDecimal
(
"0.01"
);
...
@@ -389,4 +407,8 @@ public interface CommonConstants {
...
@@ -389,4 +407,8 @@ public interface CommonConstants {
String
SEVEN_STRING
=
"7"
;
String
SEVEN_STRING
=
"7"
;
public
static
final
BigDecimal
MONEY_MAX
=
new
BigDecimal
(
"999999.99"
);
public
static
final
BigDecimal
MONEY_MAX
=
new
BigDecimal
(
"999999.99"
);
public
static
final
String
ERROR_MSG_PRFIX
=
"error="
;
public
static
final
String
SUCCESS_MSG_PREFIX
=
"success="
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/ExcelAttributeConstants.java
View file @
1ba90a99
...
@@ -126,4 +126,10 @@ public class ExcelAttributeConstants {
...
@@ -126,4 +126,10 @@ public class ExcelAttributeConstants {
public
static
final
String
DEPARTID_PROVINCE_CITY_TOWN
=
"departId_province_city_town"
;
public
static
final
String
DEPARTID_PROVINCE_CITY_TOWN
=
"departId_province_city_town"
;
//派减离职原因
//派减离职原因
public
static
final
String
REDUCE_PROJECT_REASON
=
"reduce_project_reason"
;
public
static
final
String
REDUCE_PROJECT_REASON
=
"reduce_project_reason"
;
//社保缴纳月份
public
static
final
String
SOCIAL_PAY_MONTH
=
"socialPayMonth"
;
//身份证
public
static
final
String
EMPIDCARD
=
"empIdcard"
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
1ba90a99
...
@@ -416,4 +416,8 @@ public interface ErrorCodes {
...
@@ -416,4 +416,8 @@ public interface ErrorCodes {
* 派减异常: 本次派增已存在对应身份证号的派减记录
* 派减异常: 本次派增已存在对应身份证号的派减记录
*/
*/
String
EMP_DISPATCH_REDUCE_EXISTS
=
"emp.dispatch.reduce.exists"
;
String
EMP_DISPATCH_REDUCE_EXISTS
=
"emp.dispatch.reduce.exists"
;
/**
* 当前社保导入队列不足或者数据量过大,请稍后重试!
*/
String
SOCIALINFO_LIST_NUM_LARGE
=
"socialinfo.list.num.large"
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
1ba90a99
...
@@ -399,4 +399,44 @@ public class Common {
...
@@ -399,4 +399,44 @@ public class Common {
map
.
clear
();
map
.
clear
();
}
}
}
}
/**
* 按字段返回字符串
*
* @param list
* @param filedName
* @param <T>
* @return
*/
public
static
<
T
>
List
<
String
>
listObjectToStrList
(
List
<
T
>
list
,
String
filedName
)
{
List
<
String
>
idsStr
=
new
ArrayList
<
String
>();
Object
temp
=
null
;
if
(
null
!=
list
&&
list
.
size
()
>
0
)
{
for
(
T
t
:
list
)
{
temp
=
getFieldValueByName
(
filedName
,
t
);
if
(
null
!=
temp
)
{
idsStr
.
add
(
temp
.
toString
());
}
}
}
return
idsStr
;
}
/**
* 默认空 置为零
* @param obj
* @return
*/
public
static
BigDecimal
isBlankToBigDecimalZero
(
BigDecimal
obj
)
{
if
(
obj
==
null
)
{
return
BigDecimal
.
ZERO
;
}
if
(
String
.
valueOf
(
obj
).
trim
().
length
()
==
0
)
{
return
BigDecimal
.
ZERO
;
}
if
(
String
.
valueOf
(
obj
).
trim
().
equals
(
"null"
))
{
return
BigDecimal
.
ZERO
;
}
return
obj
;
}
}
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
1ba90a99
...
@@ -151,6 +151,8 @@ emp.dispatch.reduce.fund.status.error=\u6D3E\u51CF\u5F02\u5E38\uFF1A \u672A\u627
...
@@ -151,6 +151,8 @@ emp.dispatch.reduce.fund.status.error=\u6D3E\u51CF\u5F02\u5E38\uFF1A \u672A\u627
emp.dispatch.reduce.exists
=
\u
6D3E
\u
51CF
\u
5F02
\u
5E38
\u
FF1A
\u
672C
\u
6B21
\u
6D3E
\u
589E
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
8EAB
\u
4EFD
\u
8BC1
\u
53F7
\u7684\u
6D3E
\u
51CF
\u
8BB0
\u
5F55
emp.dispatch.reduce.exists
=
\u
6D3E
\u
51CF
\u
5F02
\u
5E38
\u
FF1A
\u
672C
\u
6B21
\u
6D3E
\u
589E
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
8EAB
\u
4EFD
\u
8BC1
\u
53F7
\u7684\u
6D3E
\u
51CF
\u
8BB0
\u
5F55
socialinfo.list.num.large
=
\u
5F53
\u
524D
\u
793E
\u
4FDD
\u
5BFC
\u5165\u
961F
\u5217\u
4E0D
\u
8DB3
\u6216\u8005\u6570\u
636E
\u
91CF
\u
8FC7
\u5927\u
FF0C
\u
8BF7
\u
7A0D
\u
540E
\u
91CD
\u
8BD5
\u
FF01
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
View file @
1ba90a99
...
@@ -96,8 +96,8 @@ public class ArchivesDaprUtil {
...
@@ -96,8 +96,8 @@ public class ArchivesDaprUtil {
* @Param
* @Param
* @return
* @return
**/
**/
public
R
<
List
<
TSettleDomainSelectVo
>
>
selectAllSettleDomainSelectVos
(){
public
R
<
TSettleDomainListVo
>
selectAllSettleDomainSelectVos
(){
R
<
List
<
TSettleDomainSelectVo
>>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/tsettledomain/getSettleDomainSelectVoById
"
,
""
,
Map
.
class
,
SecurityConstants
.
FROM_IN
);
R
<
TSettleDomainListVo
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/tsettledomain/selectAllSettleDomainSelectVos
"
,
""
,
Map
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"获取所有客户单位的结算主体信息失败!"
);
return
R
.
failed
(
"获取所有客户单位的结算主体信息失败!"
);
}
}
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TPreDispatchInfo.java
View file @
1ba90a99
...
@@ -636,9 +636,9 @@ public class TPreDispatchInfo extends BaseEntity {
...
@@ -636,9 +636,9 @@ public class TPreDispatchInfo extends BaseEntity {
private
String
remark
;
private
String
remark
;
/**
/**
* 是否派单:0 是
2 否
* 是否派单:0 是
1 否
*/
*/
@Schema
(
description
=
"是否派单:0 是
2
否 "
)
@Schema
(
description
=
"是否派单:0 是
1
否 "
)
private
String
dispatchFlag
;
private
String
dispatchFlag
;
/**
/**
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TPreDispatchExportVo.java
View file @
1ba90a99
...
@@ -494,7 +494,7 @@ public class TPreDispatchExportVo implements Serializable {
...
@@ -494,7 +494,7 @@ public class TPreDispatchExportVo implements Serializable {
private
String
remark
;
private
String
remark
;
/**
/**
* 是否派单:0 是
2
否
* 是否派单:0 是
1
否
*/
*/
@ExcelProperty
(
value
=
"是否派单"
)
@ExcelProperty
(
value
=
"是否派单"
)
@ExcelAttribute
(
name
=
"是否派单"
,
maxLength
=
2
,
needExport
=
true
,
readConverterExp
=
"0=是,1=否"
)
@ExcelAttribute
(
name
=
"是否派单"
,
maxLength
=
2
,
needExport
=
true
,
readConverterExp
=
"0=是,1=否"
)
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TPreDispatchInfoController.java
View file @
1ba90a99
...
@@ -225,7 +225,7 @@ public class TPreDispatchInfoController {
...
@@ -225,7 +225,7 @@ public class TPreDispatchInfoController {
@Operation
(
summary
=
"预派单批量新增派增"
,
description
=
"预派单批量新增派增"
)
@Operation
(
summary
=
"预派单批量新增派增"
,
description
=
"预派单批量新增派增"
)
@SysLog
(
"预派单批量新增派增"
)
@SysLog
(
"预派单批量新增派增"
)
@PostMapping
(
"/analysisJsonStringImportAdd"
)
@PostMapping
(
"/analysisJsonStringImportAdd"
)
@PreAuthorize
(
"@pms.hasPermission('social
:
tpredispatchinfo_importAddList')"
)
@PreAuthorize
(
"@pms.hasPermission('social
_
tpredispatchinfo_importAddList')"
)
public
R
analysisJsonStringImportAdd
(
@RequestBody
String
jsonString
,
@RequestParam
(
value
=
"socialHouse"
,
required
=
false
)
String
socialHouse
,
public
R
analysisJsonStringImportAdd
(
@RequestBody
String
jsonString
,
@RequestParam
(
value
=
"socialHouse"
,
required
=
false
)
String
socialHouse
,
@RequestParam
(
value
=
"fundHouse"
,
required
=
false
)
String
fundHouse
,
@RequestParam
String
departId
)
{
@RequestParam
(
value
=
"fundHouse"
,
required
=
false
)
String
fundHouse
,
@RequestParam
String
departId
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
...
@@ -265,7 +265,7 @@ public class TPreDispatchInfoController {
...
@@ -265,7 +265,7 @@ public class TPreDispatchInfoController {
@Operation
(
summary
=
"预派单批量新增派减"
,
description
=
"预派单批量新增派减"
)
@Operation
(
summary
=
"预派单批量新增派减"
,
description
=
"预派单批量新增派减"
)
@SysLog
(
"预派单批量新增派减"
)
@SysLog
(
"预派单批量新增派减"
)
@PostMapping
(
"/analysisJsonStringImportReduce"
)
@PostMapping
(
"/analysisJsonStringImportReduce"
)
@PreAuthorize
(
"@pms.hasPermission('social
:tpredispatchinfo_importReduce
List')"
)
@PreAuthorize
(
"@pms.hasPermission('social
_tpredispatchinfo_importAdd
List')"
)
public
R
analysisJsonStringImportReduce
(
@RequestBody
String
jsonString
)
{
public
R
analysisJsonStringImportReduce
(
@RequestBody
String
jsonString
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
null
==
user
||
null
==
user
.
getId
())
{
if
(
null
==
user
||
null
==
user
.
getId
())
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
1ba90a99
...
@@ -24,6 +24,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -24,6 +24,7 @@ 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.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.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
...
@@ -323,14 +324,21 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -323,14 +324,21 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
if
(
Common
.
isEmpty
(
id
))
{
if
(
Common
.
isEmpty
(
id
))
{
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
}
}
R
<
List
<
TSettleDomainSelectVo
>>
settleDomainR
=
null
;
List
<
TSettleDomainSelectVo
>
settleDomainR
=
null
;
R
<
TSettleDomainListVo
>
listVo
=
null
;
//结算主体名称map key:结算主体id value:结算主体名称
//结算主体名称map key:结算主体id value:结算主体名称
Map
<
String
,
String
>
settleDomainNameMap
=
new
HashMap
<>();
Map
<
String
,
String
>
settleDomainNameMap
=
new
HashMap
<>();
//客户名称map key:客户id value:客户名称
//客户名称map key:客户id value:客户名称
Map
<
String
,
String
>
customerNameMap
=
new
HashMap
<>();
Map
<
String
,
String
>
customerNameMap
=
new
HashMap
<>();
//结算主体客户关系map key:结算主体id value:客户id
//结算主体客户关系map key:结算主体id value:客户id
Map
<
String
,
String
>
settleIdAndCustomerIdMap
=
new
HashMap
<>();
Map
<
String
,
String
>
settleIdAndCustomerIdMap
=
new
HashMap
<>();
settleDomainR
=
archivesDaprUtil
.
selectAllSettleDomainSelectVos
();
listVo
=
archivesDaprUtil
.
selectAllSettleDomainSelectVos
();
if
(
Common
.
isNotNull
(
listVo
))
{
TSettleDomainListVo
tSettleDomainListVo
=
listVo
.
getData
();
if
(
Common
.
isNotNull
(
tSettleDomainListVo
)
&&
Common
.
isNotEmpty
(
tSettleDomainListVo
.
getListSelectVO
()))
{
settleDomainR
=
tSettleDomainListVo
.
getListSelectVO
();
}
}
//map数据封装
//map数据封装
initSettleDomainMaps
(
settleDomainR
,
settleDomainNameMap
,
customerNameMap
,
settleIdAndCustomerIdMap
);
initSettleDomainMaps
(
settleDomainR
,
settleDomainNameMap
,
customerNameMap
,
settleIdAndCustomerIdMap
);
TPreDispatchInfo
preInfo
=
baseMapper
.
selectById
(
id
);
TPreDispatchInfo
preInfo
=
baseMapper
.
selectById
(
id
);
...
@@ -388,14 +396,21 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -388,14 +396,21 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
if
(
null
==
user
||
null
==
user
.
getId
())
{
if
(
null
==
user
||
null
==
user
.
getId
())
{
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
}
}
R
<
List
<
TSettleDomainSelectVo
>>
settleDomainR
=
null
;
List
<
TSettleDomainSelectVo
>
settleDomainR
=
null
;
R
<
TSettleDomainListVo
>
listVo
=
null
;
//结算主体名称map key:结算主体id value:结算主体名称
//结算主体名称map key:结算主体id value:结算主体名称
Map
<
String
,
String
>
settleDomainNameMap
=
new
HashMap
<>();
Map
<
String
,
String
>
settleDomainNameMap
=
new
HashMap
<>();
//客户名称map key:客户id value:客户名称
//客户名称map key:客户id value:客户名称
Map
<
String
,
String
>
customerNameMap
=
new
HashMap
<>();
Map
<
String
,
String
>
customerNameMap
=
new
HashMap
<>();
//结算主体客户关系map key:结算主体id value:客户id
//结算主体客户关系map key:结算主体id value:客户id
Map
<
String
,
String
>
settleIdAndCustomerIdMap
=
new
HashMap
<>();
Map
<
String
,
String
>
settleIdAndCustomerIdMap
=
new
HashMap
<>();
settleDomainR
=
archivesDaprUtil
.
selectAllSettleDomainSelectVos
();
listVo
=
archivesDaprUtil
.
selectAllSettleDomainSelectVos
();
if
(
Common
.
isNotNull
(
listVo
))
{
TSettleDomainListVo
tSettleDomainListVo
=
listVo
.
getData
();
if
(
Common
.
isNotNull
(
tSettleDomainListVo
)
&&
Common
.
isNotEmpty
(
tSettleDomainListVo
.
getListSelectVO
()))
{
settleDomainR
=
tSettleDomainListVo
.
getListSelectVO
();
}
}
//map数据封装
//map数据封装
initSettleDomainMaps
(
settleDomainR
,
settleDomainNameMap
,
customerNameMap
,
settleIdAndCustomerIdMap
);
initSettleDomainMaps
(
settleDomainR
,
settleDomainNameMap
,
customerNameMap
,
settleIdAndCustomerIdMap
);
// 获取当前创建人 截止到当前时间的 正常未派单 未删除的预派单数据
// 获取当前创建人 截止到当前时间的 正常未派单 未删除的预派单数据
...
@@ -480,6 +495,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -480,6 +495,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
@Override
@Override
public
R
update
(
TPreDispatchInfo
tPreDispatchInfo
)
{
public
R
update
(
TPreDispatchInfo
tPreDispatchInfo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
null
==
user
||
null
==
user
.
getId
())
{
if
(
null
==
user
||
null
==
user
.
getId
())
{
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
...
@@ -1847,7 +1863,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -1847,7 +1863,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
/**
/**
* map数据封装
* map数据封装
*
*
* @param settleDomain
R
* @param settleDomain
List
* @param settleDomainNameMap
* @param settleDomainNameMap
* @param customerNameMap
* @param customerNameMap
* @param settleIdAndCustomerIdMap
* @param settleIdAndCustomerIdMap
...
@@ -1855,13 +1871,10 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -1855,13 +1871,10 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
* @Author huyc
* @Author huyc
* @Date 2022-07-18
* @Date 2022-07-18
**/
**/
private
void
initSettleDomainMaps
(
R
<
List
<
TSettleDomainSelectVo
>>
settleDomainR
,
private
void
initSettleDomainMaps
(
List
<
TSettleDomainSelectVo
>
settleDomainList
,
Map
<
String
,
String
>
settleDomainNameMap
,
Map
<
String
,
String
>
settleDomainNameMap
,
Map
<
String
,
String
>
customerNameMap
,
Map
<
String
,
String
>
customerNameMap
,
Map
<
String
,
String
>
settleIdAndCustomerIdMap
)
{
Map
<
String
,
String
>
settleIdAndCustomerIdMap
)
{
List
<
TSettleDomainSelectVo
>
settleDomainList
;
if
(
null
!=
settleDomainR
)
{
settleDomainList
=
settleDomainR
.
getData
();
//map数据封装
//map数据封装
if
(
Common
.
isNotNull
(
settleDomainList
))
{
if
(
Common
.
isNotNull
(
settleDomainList
))
{
for
(
TSettleDomainSelectVo
settleDomainSelectVo
:
settleDomainList
)
{
for
(
TSettleDomainSelectVo
settleDomainSelectVo
:
settleDomainList
)
{
...
@@ -1873,7 +1886,6 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
...
@@ -1873,7 +1886,6 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
}
}
}
}
}
}
}
/**
/**
* 初始化派减的相关状态及数据
* 初始化派减的相关状态及数据
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/util/ServiceUtil.java
View file @
1ba90a99
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
util
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
util
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.CheckedException
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
/**
/**
* 公用方法提取
* 公用方法提取
...
@@ -56,4 +58,40 @@ public class ServiceUtil {
...
@@ -56,4 +58,40 @@ public class ServiceUtil {
}
}
return
null
;
return
null
;
}
}
/**
* 抛个异常先
* @Author fxj
* @Date 2020-09-09
* @param errorInfo
* @return
**/
public
static
void
runTimeExceptionDiy
(
String
errorInfo
)
{
throw
new
CheckedException
(
errorInfo
);
}
/**
* 参数2的是否大于等于参数1的
* @Author fxj
* @Date 20200403
* @param socialStartDate
* @param socialPayMonth
* @param reduceDate
* @return
**/
public
static
boolean
checkMothForPaymentImport
(
Date
socialStartDate
,
String
socialPayMonth
,
Date
reduceDate
)
{
if
(
socialStartDate
!=
null
)
{
if
(
null
==
reduceDate
){
if
(
Integer
.
parseInt
(
socialPayMonth
)
>=
Integer
.
parseInt
(
DateUtil
.
dateToString
(
socialStartDate
))){
return
true
;
}
}
else
{
if
(
Integer
.
parseInt
(
socialPayMonth
)
>=
Integer
.
parseInt
(
DateUtil
.
dateToString
(
socialStartDate
))
&&
Integer
.
parseInt
(
socialPayMonth
)
<
Integer
.
parseInt
(
DateUtil
.
dateToString
(
reduceDate
))){
return
true
;
}
}
}
return
false
;
}
}
}
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