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
2f0f63f5
Commit
2f0f63f5
authored
Jul 28, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预派单 代码修改
parent
cc6dab0f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
128 additions
and
94 deletions
+128
-94
TPreDispatchInfo.java
...fu/cloud/plus/v1/yifu/social/entity/TPreDispatchInfo.java
+5
-1
TPreDispatchUpdateVo.java
...fu/cloud/plus/v1/yifu/social/vo/TPreDispatchUpdateVo.java
+1
-1
PreDispatchConstants.java
...d/plus/v1/yifu/social/constants/PreDispatchConstants.java
+1
-0
TAgentConfigController.java
...lus/v1/yifu/social/controller/TAgentConfigController.java
+2
-2
TAgentConfigService.java
...loud/plus/v1/yifu/social/service/TAgentConfigService.java
+7
-0
TAgentConfigServiceImpl.java
.../v1/yifu/social/service/impl/TAgentConfigServiceImpl.java
+21
-0
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+4
-4
TAgentConfigMapper.xml
...cial-biz/src/main/resources/mapper/TAgentConfigMapper.xml
+1
-0
TPreDispatchInfoMapper.xml
...-biz/src/main/resources/mapper/TPreDispatchInfoMapper.xml
+86
-86
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TPreDispatchInfo.java
View file @
2f0f63f5
...
...
@@ -121,7 +121,8 @@ public class TPreDispatchInfo extends BaseEntity {
* 入职日期
*/
@Schema
(
description
=
"入职日期"
)
private
Date
entryDate
;
@Size
(
max
=
20
,
message
=
"入职日期不可超过20位"
)
private
String
entryDate
;
/**
* 正式工资
...
...
@@ -345,6 +346,7 @@ public class TPreDispatchInfo extends BaseEntity {
* 派单客服
*/
@Schema
(
description
=
"派单客服"
)
@Size
(
max
=
20
,
message
=
"派单客服不可超过20位"
)
private
String
customerService
;
/**
...
...
@@ -357,6 +359,7 @@ public class TPreDispatchInfo extends BaseEntity {
* 唯一号
*/
@Schema
(
description
=
"唯一号"
)
@Size
(
max
=
20
,
message
=
"唯一号不可超过20位"
)
private
String
uniqueNumber
;
/**
...
...
@@ -369,6 +372,7 @@ public class TPreDispatchInfo extends BaseEntity {
* 服务类别
*/
@Schema
(
description
=
"服务类别"
)
@Size
(
max
=
20
,
message
=
"服务类别不可超过20位"
)
private
String
serviceType
;
/**
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TPreDispatchUpdateVo.java
View file @
2f0f63f5
...
...
@@ -75,7 +75,7 @@ public class TPreDispatchUpdateVo extends TPreDispatchInfo {
* 入职日期
*/
@ExcelAttribute
(
name
=
"入职日期"
)
private
Date
entryDate
;
private
String
entryDate
;
/**
* 正式工资
*/
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/constants/PreDispatchConstants.java
View file @
2f0f63f5
...
...
@@ -45,5 +45,6 @@ public class PreDispatchConstants {
public
static
final
String
NO_SOCIAL_FUND_ADDRESS_REDUCE
=
"派减:养老城市和公积金城市不可同时为空,请确认表中有‘养老城市’和‘公积金城市’数据列及数据!"
;
public
static
final
String
TEL_NOT_EMPTY
=
"联系电话1不可为空!"
;
public
static
final
String
TEL_INVALID
=
"联系电话1无效!"
;
public
static
final
String
TEL_INVALID2
=
"联系电话2无效!"
;
public
static
final
String
GET_AREA_INFO
=
"获取区域数据失败!"
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TAgentConfigController.java
View file @
2f0f63f5
...
...
@@ -91,8 +91,8 @@ public class TAgentConfigController {
@SysLog
(
"新增预估临时政策配置表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('social_tagentconfig_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TAgentConfig
tAgentConfig
)
{
return
R
.
ok
(
tAgentConfigService
.
save
(
tAgentConfig
)
);
public
R
save
(
@RequestBody
TAgentConfig
tAgentConfig
)
{
return
tAgentConfigService
.
saveInfo
(
tAgentConfig
);
}
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TAgentConfigService.java
View file @
2f0f63f5
...
...
@@ -44,4 +44,11 @@ public interface TAgentConfigService extends IService<TAgentConfig> {
* @return
*/
R
updateFlagById
(
String
id
);
/**
* 修改开启关闭状态
* @param tAgentConfig 预估临时政策配置表id
* @return
*/
R
saveInfo
(
TAgentConfig
tAgentConfig
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TAgentConfigServiceImpl.java
View file @
2f0f63f5
...
...
@@ -16,7 +16,10 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
...
...
@@ -69,4 +72,22 @@ public class TAgentConfigServiceImpl extends ServiceImpl<TAgentConfigMapper, TAg
return
R
.
failed
(
"更新失败!"
);
}
}
@Override
public
R
saveInfo
(
TAgentConfig
tAgentConfig
)
{
LambdaQueryWrapper
<
TAgentConfig
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
TAgentConfig:
:
getYear
,
tAgentConfig
.
getYear
());
wrapper
.
eq
(
TAgentConfig:
:
getTarget
,
tAgentConfig
.
getTarget
());
if
(
Common
.
isNotNull
(
tAgentConfig
.
getCity
())){
wrapper
.
eq
(
TAgentConfig:
:
getCity
,
tAgentConfig
.
getCity
());
}
else
{
wrapper
.
eq
(
TAgentConfig:
:
getProvince
,
tAgentConfig
.
getProvince
());
}
wrapper
.
last
(
CommonConstants
.
LAST_ONE_SQL
);
TAgentConfig
count
=
baseMapper
.
selectOne
(
wrapper
);
if
(
Common
.
isNotNull
(
count
))
{
return
R
.
failed
(
"同一城市,年度的政策不能重复新增"
);
}
return
R
.
ok
();
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
2f0f63f5
...
...
@@ -558,6 +558,10 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
if
(
ValidityUtil
.
checkInvalidEmpPhone
(
tPreDispatchInfo
.
getTelOne
()))
{
return
R
.
failed
(
PreDispatchConstants
.
TEL_INVALID
);
}
if
(
ValidityUtil
.
checkInvalidEmpPhone
(
tPreDispatchInfo
.
getTelTwo
()))
{
return
R
.
failed
(
PreDispatchConstants
.
TEL_INVALID2
);
}
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
tPreDispatchInfo
.
getType
()))
{
initLeaveReason
(
tPreDispatchInfo
);
...
...
@@ -1145,10 +1149,6 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
private
String
checkAddPreDispatch
(
TPreDispatchInfo
tPreDispatchInfo
)
{
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
tPreDispatchInfo
.
getType
()))
{
// 拍增的合同开始和结束时间必填 2021-08-13
if
(
Common
.
isEmpty
(
tPreDispatchInfo
.
getContractStart
())
||
Common
.
isEmpty
(
tPreDispatchInfo
.
getContractEnd
()))
{
return
"派增的合同开始日期和合同终止日期不可为空!"
;
}
if
(
Common
.
isEmpty
(
tPreDispatchInfo
.
getTelOne
()))
{
return
PreDispatchConstants
.
TEL_NOT_EMPTY
;
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TAgentConfigMapper.xml
View file @
2f0f63f5
...
...
@@ -130,5 +130,6 @@
1=1
<include
refid=
"tAgentConfig_where"
/>
</where>
ORDER BY a.CREATE_TIME desc
</select>
</mapper>
yifu-social/yifu-social-biz/src/main/resources/mapper/TPreDispatchInfoMapper.xml
View file @
2f0f63f5
This diff is collapsed.
Click to expand it.
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