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
2562cd3c
Commit
2562cd3c
authored
Jul 07, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.12-导出
parent
2f92aa44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
8 deletions
+56
-8
TGzEmpInfo.java
...m/yifu/cloud/plus/v1/yifu/archives/entity/TGzEmpInfo.java
+5
-4
TGzEmpInfoExportMain.java
.../cloud/plus/v1/yifu/archives/vo/TGzEmpInfoExportMain.java
+2
-2
GzConfig.java
...com/yifu/cloud/plus/v1/yifu/archives/config/GzConfig.java
+27
-2
TGzController.java
...cloud/plus/v1/yifu/archives/controller/TGzController.java
+22
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TGzEmpInfo.java
View file @
2562cd3c
...
...
@@ -211,11 +211,12 @@ public class TGzEmpInfo extends BaseEntity {
@Schema
(
description
=
"驾照类型"
)
private
String
driverType
;
/**
* 驾照失效日期
* 驾照到期日
* // “驾照失效日期”改成“驾照到期日”
*/
@ExcelAttribute
(
name
=
"驾照
失效日期
"
,
isDate
=
true
)
@ExcelProperty
(
"驾照
失效日期
"
)
@Schema
(
description
=
"驾照
失效日期
"
)
@ExcelAttribute
(
name
=
"驾照
到期日
"
,
isDate
=
true
)
@ExcelProperty
(
"驾照
到期日
"
)
@Schema
(
description
=
"驾照
到期日
"
)
private
Date
driverLicenExp
;
/**
* 证件类型
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzEmpInfoExportMain.java
View file @
2562cd3c
...
...
@@ -113,8 +113,8 @@ public class TGzEmpInfoExportMain implements Serializable {
private
String
driverType
;
// 日期格式化
@ExcelProperty
(
"驾照
失效日期
"
)
// 日期格式化
“驾照失效日期”改成“驾照到期日” 2025-7-7 09:49:34
@ExcelProperty
(
"驾照
到期日
"
)
private
String
driverLicenExp
;
@ExcelAttribute
(
name
=
"是否新参社保"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
GZ_INSURANCE_STA
)
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/config/GzConfig.java
View file @
2562cd3c
...
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.config;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.gson.Gson
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -16,6 +17,7 @@ import org.springframework.http.HttpMethod;
import
org.springframework.web.client.RestTemplate
;
import
java.util.Date
;
import
java.util.Map
;
/**
* @Author: hgw
...
...
@@ -65,8 +67,8 @@ public class GzConfig {
bankCd
=
dataObject
.
getString
(
"bankCd"
);
cnapsId
=
dataObject
.
getString
(
"cnapsId"
);
// TODO - 继续解析参数并存储 —— 根据 cnapsId 字段,选择新增还是修改
System
.
out
.
println
(
"bankCd="
+
bankCd
);
System
.
out
.
println
(
"cnapsId="
+
cnapsId
);
// System.out.println("bankCd=" + bankCd)
// System.out.println("cnapsId=" + cnapsId)
}
return
true
;
}
...
...
@@ -74,4 +76,27 @@ public class GzConfig {
return
false
;
}
public
boolean
updateGzOfferStatus
(
RestTemplate
restTemplate
,
Map
<
String
,
Object
>
params
)
{
String
gzBankUrl
=
appUrl
+
"/eim-hr-induction/api/hr/induction/open/offer/update-status"
;
// 创建请求头并添加Authorization
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Authorization"
,
"00000000"
);
// 设置Authorization头
Gson
gson
=
new
Gson
();
// 创建HttpEntity,包含headers(GET请求没有body,所以为null)
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
gson
.
toJson
(
params
),
headers
);
// 发送GET请求
String
result
=
restTemplate
.
exchange
(
gzBankUrl
,
HttpMethod
.
POST
,
entity
,
String
.
class
).
getBody
();
System
.
out
.
println
(
result
);
if
(
result
!=
null
&&
result
.
contains
(
"code"
)
&&
result
.
contains
(
"data"
))
{
JSONObject
resultObject
=
JSON
.
parseObject
(
result
);
String
code
=
resultObject
.
getString
(
"code"
);
if
(
Common
.
isNotNull
(
code
)
&&
"S00000"
.
equals
(
code
))
{
System
.
out
.
println
(
"成功"
);
return
true
;
}
}
return
false
;
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TGzController.java
View file @
2562cd3c
...
...
@@ -118,5 +118,27 @@ public class TGzController {
return
gzConfig
.
getGzBankInfo
(
restTemplate
,
sortedParams
);
}
/**
* @Description: offer状态更新
* @Author: hgw
* @Date: 2025-7-4 17:18:27
* @return: boolean
**/
@GetMapping
(
"/updateGzOfferStatus"
)
public
boolean
updateGzOfferStatus
(
@RequestParam
String
bizId
,
@RequestParam
Integer
status
,
@RequestParam
(
required
=
false
)
String
phone
,
@RequestParam
(
required
=
false
)
String
email
,
@RequestParam
(
required
=
false
)
String
entryDate
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"bizId"
,
bizId
);
params
.
put
(
"status"
,
status
);
params
.
put
(
"phone"
,
phone
);
params
.
put
(
"email"
,
email
);
params
.
put
(
"entryDate"
,
entryDate
);
GZSign
.
addSignature
(
params
,
gzConfig
.
getAppkey
(),
gzConfig
.
getAppsecret
());
return
gzConfig
.
updateGzOfferStatus
(
restTemplate
,
params
);
}
}
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