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
0f0b91df
Commit
0f0b91df
authored
Jun 18, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 瓜子接口提交
parent
1f512df4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
133 additions
and
16 deletions
+133
-16
TGzOfferInfoExportSearchVo.java
.../plus/v1/yifu/archives/vo/TGzOfferInfoExportSearchVo.java
+3
-0
TGzOfferInfoVo.java
...m/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoVo.java
+15
-6
TGzOfferInfoController.java
...s/v1/yifu/archives/controller/TGzOfferInfoController.java
+12
-0
TGzOfferInfoService.java
...ud/plus/v1/yifu/archives/service/TGzOfferInfoService.java
+7
-0
TGzOfferInfoServiceImpl.java
...1/yifu/archives/service/impl/TGzOfferInfoServiceImpl.java
+90
-4
TGzEmpInfoMapper.xml
...chives-biz/src/main/resources/mapper/TGzEmpInfoMapper.xml
+2
-2
TGzOfferInfoMapper.xml
...ives-biz/src/main/resources/mapper/TGzOfferInfoMapper.xml
+4
-4
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoExportSearchVo.java
View file @
0f0b91df
...
@@ -47,4 +47,7 @@ public class TGzOfferInfoExportSearchVo extends TGzOfferInfo {
...
@@ -47,4 +47,7 @@ public class TGzOfferInfoExportSearchVo extends TGzOfferInfo {
@Schema
(
description
=
"查询止"
)
@Schema
(
description
=
"查询止"
)
private
int
limitEnd
;
private
int
limitEnd
;
@Schema
(
description
=
"瓜子Offer状态查询数组"
)
private
String
[]
offerStatusArray
;
}
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoVo.java
View file @
0f0b91df
...
@@ -32,12 +32,6 @@ import java.util.List;
...
@@ -32,12 +32,6 @@ import java.util.List;
@Data
@Data
public
class
TGzOfferInfoVo
extends
TGzOfferInfo
{
public
class
TGzOfferInfoVo
extends
TGzOfferInfo
{
// @Schema(description = "人员类别展示值")
// private String empTypeLabel;
//
// @Schema(description = "外签类型展示值")
// private String outSginTypeLabel;
/**
/**
* 查询使用:接收时间开始
* 查询使用:接收时间开始
*/
*/
...
@@ -53,4 +47,19 @@ public class TGzOfferInfoVo extends TGzOfferInfo {
...
@@ -53,4 +47,19 @@ public class TGzOfferInfoVo extends TGzOfferInfo {
@Schema
(
description
=
"瓜子状态数组"
)
@Schema
(
description
=
"瓜子状态数组"
)
private
List
<
String
>
statusList
;
private
List
<
String
>
statusList
;
/**
* 批量更新失败的offer信息列表
*/
@Schema
(
description
=
"更新失败的offer信息列表"
)
private
List
<
TGzOfferInfo
>
updateFailOfferList
;
/**
* 批量更新的状态的offerId列表
*/
@Schema
(
description
=
"批量更新的状态的offerId列表"
)
private
List
<
Integer
>
offerIdList
;
@Schema
(
description
=
"瓜子Offer状态查询数组"
)
private
String
[]
offerStatusArray
;
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TGzOfferInfoController.java
View file @
0f0b91df
...
@@ -230,4 +230,16 @@ public class TGzOfferInfoController {
...
@@ -230,4 +230,16 @@ public class TGzOfferInfoController {
tGzOfferInfoService
.
exportDetail
(
response
,
searchVo
);
tGzOfferInfoService
.
exportDetail
(
response
,
searchVo
);
}
}
/**
* 瓜子批量更新offer状态
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R
*/
@Operation
(
summary
=
"瓜子批量更新offer状态"
)
@SysLog
(
"瓜子批量更新offer状态"
)
@PutMapping
(
"/batchUpdateStatus"
)
public
R
batchUpdateStatus
(
@RequestBody
TGzOfferInfoVo
tGzOfferInfo
)
{
return
tGzOfferInfoService
.
batchUpdateStatus
(
tGzOfferInfo
);
}
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TGzOfferInfoService.java
View file @
0f0b91df
...
@@ -118,5 +118,12 @@ public interface TGzOfferInfoService extends IService<TGzOfferInfo> {
...
@@ -118,5 +118,12 @@ public interface TGzOfferInfoService extends IService<TGzOfferInfo> {
**/
**/
void
exportDetail
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
);
void
exportDetail
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
);
/**
* 瓜子批量更新offer状态
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R
*/
R
batchUpdateStatus
(
TGzOfferInfoVo
tGzOfferInfo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TGzOfferInfoServiceImpl.java
View file @
0f0b91df
...
@@ -25,11 +25,13 @@ import com.alibaba.excel.read.listener.ReadListener;
...
@@ -25,11 +25,13 @@ import com.alibaba.excel.read.listener.ReadListener;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
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.archives.entity.TGzEmpContactInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TRegisteWarningEmployee
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TRegisteWarningEmployee
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.EmployeeRegistrationPreMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.EmployeeRegistrationPreMapper
;
...
@@ -80,6 +82,12 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
...
@@ -80,6 +82,12 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
private
final
EmployeeRegistrationPreMapper
registrationPreMapper
;
private
final
EmployeeRegistrationPreMapper
registrationPreMapper
;
// 禁止手动变更的状态:3:待发送Offer,9:候选人填写信息,12:候选人信息审核,13:待签署,8:合同审核通过,99:已归档,97:候选人审核通过
private
final
String
[]
forbidStatusArr
=
{
"3"
,
"9"
,
"12"
,
"13"
,
"8"
,
"99"
,
"97"
};
// 当前Offer更新状态,无法再发起更新:5:拒绝Offer、10:取消offer、8:合同审核通过、99:已归档
private
final
String
[]
failStatusArr
=
{
"5"
,
"10"
,
"8"
,
"99"
};
/**
/**
* 瓜子offer信息接收表简单分页查询
* 瓜子offer信息接收表简单分页查询
* @param tGzOfferInfo 瓜子offer信息接收表
* @param tGzOfferInfo 瓜子offer信息接收表
...
@@ -161,6 +169,11 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
...
@@ -161,6 +169,11 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
()))
{
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"更新状态不能为空"
);
return
R
.
failed
(
"更新状态不能为空"
);
}
}
// 禁止手动变更的状态
if
(
ArrayUtils
.
contains
(
forbidStatusArr
,
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"参数错误,禁止手动变更为该状态"
);
}
TGzOfferInfo
findInfo
=
this
.
getInfoCommon
(
tGzOfferInfo
.
getId
());
TGzOfferInfo
findInfo
=
this
.
getInfoCommon
(
tGzOfferInfo
.
getId
());
if
(
Common
.
isEmpty
(
findInfo
))
{
if
(
Common
.
isEmpty
(
findInfo
))
{
return
R
.
failed
(
CommonConstants
.
ERROR_NO_DOMAIN
);
return
R
.
failed
(
CommonConstants
.
ERROR_NO_DOMAIN
);
...
@@ -169,10 +182,9 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
...
@@ -169,10 +182,9 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
if
(
findInfo
.
getOfferStatus
().
equals
(
tGzOfferInfo
.
getOfferStatus
()))
{
if
(
findInfo
.
getOfferStatus
().
equals
(
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"当前Offer更新状态失败,请刷新页面后重试"
);
return
R
.
failed
(
"当前Offer更新状态失败,请刷新页面后重试"
);
}
}
// 当前Offer更新状态,无法再发起更新:5:拒绝Offer、10:取消offer、8:合同审核通过、99:已归档
// 当前Offer更新状态,无法再发起更新
String
[]
forbidStatusArr
=
{
"5"
,
"10"
,
"8"
,
"99"
};
if
(
ArrayUtils
.
contains
(
failStatusArr
,
findInfo
.
getOfferStatus
()))
{
if
(
ArrayUtils
.
contains
(
forbidStatusArr
,
findInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"当前Offer状态,无法再发起手动更新"
);
return
R
.
failed
(
"当前Offer更新状态,无法再发起更新"
);
}
}
// 获取当前状态下,允许更新的状态列表
// 获取当前状态下,允许更新的状态列表
List
<
String
>
allowUpdateStatusList
=
this
.
allowUpdateStatus
(
findInfo
.
getOfferStatus
());
List
<
String
>
allowUpdateStatusList
=
this
.
allowUpdateStatus
(
findInfo
.
getOfferStatus
());
...
@@ -685,4 +697,78 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
...
@@ -685,4 +697,78 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
}
}
}
}
/**
* 瓜子批量更新offer状态
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R
*/
@Override
public
R
batchUpdateStatus
(
TGzOfferInfoVo
tGzOfferInfo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
user
==
null
||
Common
.
isEmpty
(
user
.
getId
()))
{
return
R
.
failed
(
CommonConstants
.
PLEASE_LOG_IN
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferIdList
())){
return
R
.
failed
(
"需要更新的档案集合不能为空"
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
())){
return
R
.
failed
(
"需要更新的状态选项不能为空"
);
}
// 禁止手动变更的状态
if
(
ArrayUtils
.
contains
(
forbidStatusArr
,
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"参数错误,禁止手动变更为该状态"
);
}
LambdaQueryWrapper
<
TGzOfferInfo
>
queryOffer
=
Wrappers
.<
TGzOfferInfo
>
lambdaQuery
()
.
in
(
TGzOfferInfo:
:
getId
,
tGzOfferInfo
.
getOfferIdList
())
.
eq
(
TGzOfferInfo:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
);
List
<
TGzOfferInfo
>
findOfferList
=
this
.
list
(
queryOffer
);
if
(
Common
.
isEmpty
(
findOfferList
)){
return
R
.
failed
(
"没有任何符合更新条件的数据"
);
}
// 存更新失败的offer信息
List
<
TGzOfferInfo
>
updateFailOfferList
=
new
ArrayList
<>();
for
(
TGzOfferInfo
findInfo
:
findOfferList
){
// 当前Offer更新状态,无法再发起更新
if
(
ArrayUtils
.
contains
(
failStatusArr
,
findInfo
.
getOfferStatus
()))
{
updateFailOfferList
.
add
(
findInfo
);
continue
;
}
// 更新为同一状态的提示操作失败
if
(
findInfo
.
getOfferStatus
().
equals
(
tGzOfferInfo
.
getOfferStatus
()))
{
updateFailOfferList
.
add
(
findInfo
);
continue
;
}
// 获取当前状态下,允许更新的状态列表
List
<
String
>
allowUpdateStatusList
=
this
.
allowUpdateStatus
(
findInfo
.
getOfferStatus
());
if
(!
allowUpdateStatusList
.
contains
(
tGzOfferInfo
.
getOfferStatus
()))
{
updateFailOfferList
.
add
(
findInfo
);
continue
;
}
// 更新状态
LambdaUpdateWrapper
<
TGzOfferInfo
>
updateOfferWrapper
=
new
LambdaUpdateWrapper
<>();
updateOfferWrapper
.
eq
(
TGzOfferInfo:
:
getId
,
findInfo
.
getId
())
.
set
(
TGzOfferInfo:
:
getOfferStatus
,
tGzOfferInfo
.
getOfferStatus
())
.
set
(
TGzOfferInfo:
:
getUpdateTime
,
LocalDateTime
.
now
())
.
set
(
TGzOfferInfo:
:
getUpdateBy
,
user
.
getId
());
boolean
res
=
this
.
update
(
null
,
updateOfferWrapper
);
if
(!
res
){
updateFailOfferList
.
add
(
findInfo
);
continue
;
}
// todo 记录offer操作日志
}
if
(
Common
.
isEmpty
(
updateFailOfferList
)){
return
R
.
ok
(
"批量更新成功"
);
}
return
R
.
failed
(
updateFailOfferList
,
"存在更新失败的数据,未找到该状态下需要更新的人员信息"
);
}
}
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TGzEmpInfoMapper.xml
View file @
0f0b91df
...
@@ -209,10 +209,10 @@
...
@@ -209,10 +209,10 @@
</if>
</if>
<!--查询提交档案时间-->
<!--查询提交档案时间-->
<if
test=
"tGzEmpInfo.createTimeStart != null "
>
<if
test=
"tGzEmpInfo.createTimeStart != null "
>
AND a.create_time
>
=
concat(#{tGzEmpInfo.createTimeStart},' 00:00:00')
AND a.create_time
>
=
#{tGzEmpInfo.createTimeStart}
</if>
</if>
<if
test=
"tGzEmpInfo.createTimeEnd != null "
>
<if
test=
"tGzEmpInfo.createTimeEnd != null "
>
AND a.create_time
<
=
concat(#{tGzEmpInfo.createTimeEnd},' 23:59:59')
AND a.create_time
<
=
#{tGzEmpInfo.createTimeEnd}
</if>
</if>
<if
test=
"tGzEmpInfo.createBy != null and tGzEmpInfo.createBy.trim() != ''"
>
<if
test=
"tGzEmpInfo.createBy != null and tGzEmpInfo.createBy.trim() != ''"
>
AND a.create_by = #{tGzEmpInfo.createBy}
AND a.create_by = #{tGzEmpInfo.createBy}
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TGzOfferInfoMapper.xml
View file @
0f0b91df
...
@@ -126,10 +126,10 @@
...
@@ -126,10 +126,10 @@
</if>
</if>
<!--查询接收时间-->
<!--查询接收时间-->
<if
test=
"tGzOfferInfo.createTimeStart != null "
>
<if
test=
"tGzOfferInfo.createTimeStart != null "
>
AND a.create_time
>
=
concat(#{tGzOfferInfo.createTimeStart},' 00:00:00')
AND a.create_time
>
=
#{tGzOfferInfo.createTimeStart}
</if>
</if>
<if
test=
"tGzOfferInfo.createTimeEnd != null "
>
<if
test=
"tGzOfferInfo.createTimeEnd != null "
>
AND a.create_time
<
=
concat(#{tGzOfferInfo.createTimeEnd},' 23:59:59')
AND a.create_time
<
=
#{tGzOfferInfo.createTimeEnd}
</if>
</if>
<if
test=
"tGzOfferInfo.offerStatus != null and tGzOfferInfo.offerStatus.trim() != ''"
>
<if
test=
"tGzOfferInfo.offerStatus != null and tGzOfferInfo.offerStatus.trim() != ''"
>
AND a.offer_status = #{tGzOfferInfo.offerStatus}
AND a.offer_status = #{tGzOfferInfo.offerStatus}
...
@@ -137,9 +137,9 @@
...
@@ -137,9 +137,9 @@
<if
test=
"tGzOfferInfo.offerSendStatus != null and tGzOfferInfo.offerSendStatus.trim() != ''"
>
<if
test=
"tGzOfferInfo.offerSendStatus != null and tGzOfferInfo.offerSendStatus.trim() != ''"
>
AND a.offer_send_status = #{tGzOfferInfo.offerSendStatus}
AND a.offer_send_status = #{tGzOfferInfo.offerSendStatus}
</if>
</if>
<if
test=
"tGzOfferInfo.
statusList != null and tGzOfferInfo.statusList
.size() > 0"
>
<if
test=
"tGzOfferInfo.
offerStatusArray != null and tGzOfferInfo.offerStatusArray
.size() > 0"
>
AND a.offer_status in
AND a.offer_status in
<foreach
item=
"item"
index=
"index"
collection=
"tGzOfferInfo.
statusList
"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"tGzOfferInfo.
offerStatusArray
"
open=
"("
separator=
","
close=
")"
>
'${item}'
'${item}'
</foreach>
</foreach>
</if>
</if>
...
...
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