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
d6c11b44
You need to sign in or sign up before continuing.
Commit
d6c11b44
authored
Dec 06, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.3-shuiyou 测试提交
parent
570ba99d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2989 additions
and
3 deletions
+2989
-3
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+216
-0
TSocialFriendController.java
...us/v1/yifu/social/controller/TSocialFriendController.java
+136
-0
TSocialFriendMapper.java
...cloud/plus/v1/yifu/social/mapper/TSocialFriendMapper.java
+119
-0
TSocialFriendPushService.java
...plus/v1/yifu/social/service/TSocialFriendPushService.java
+63
-0
TSocialFriendService.java
...oud/plus/v1/yifu/social/service/TSocialFriendService.java
+50
-0
TSocialFriendPushServiceImpl.java
...ifu/social/service/impl/TSocialFriendPushServiceImpl.java
+707
-0
TSocialFriendServiceImpl.java
...v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
+1385
-0
application-dev.yml
...al/yifu-social-biz/src/main/resources/application-dev.yml
+9
-1
application-prd.yml
...al/yifu-social-biz/src/main/resources/application-prd.yml
+9
-1
application-test.yml
...l/yifu-social-biz/src/main/resources/application-test.yml
+8
-1
TSocialFriendMapper.xml
...ial-biz/src/main/resources/mapper/TSocialFriendMapper.xml
+287
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
0 → 100644
View file @
d6c11b44
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
config
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
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.R
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.http.*
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
/**
* @Author: hgw
* @Date: 2024-12-6 17:01:23
* @Description:
* @return: 税友配置
**/
@Configuration
@Data
@Slf4j
public
class
SocialFriendConfig
{
// appKey
@Value
(
"${socialFriend.appKey}"
)
private
String
appKey
;
// appSecret
@Value
(
"${socialFriend.appSecret}"
)
private
String
appSecret
;
// url前缀
@Value
(
"${socialFriend.urlPre}"
)
private
String
urlPre
;
// url推
@Value
(
"${socialFriend.urlPush}"
)
private
String
urlPush
;
// url拉结果数据
@Value
(
"${socialFriend.urlGetInfo}"
)
private
String
urlGetInfo
;
// 税友——1功能列表的KEY
private
final
String
APP_GET_MODULE_DETAIL
=
"APP_GET_MODULE_DETAIL"
;
// 税友——2可执行设备
private
final
String
TERMINALS_BY_FUNCTION
=
"TERMINALS_BY_FUNCTION"
;
// 税友——5查看结果
private
final
String
GET_FIVE_JOB
=
"GET_FIVE_JOB"
;
@Autowired
private
RedisTemplate
redisTemplate
;
/**
* @Description: 4:推送任务接口
* @Author: hgw
* @Date: 2024-5-8 15:07:45
* @return: java.lang.String
**/
public
String
getFourAppAdd
(
RestTemplate
restTemplate
,
String
jobFile
,
String
moduleDetailId
,
String
terminalId
)
{
String
addId
=
""
;
String
appAddUrl
=
urlPre
+
urlPush
;
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
headers
.
add
(
"accept"
,
MediaType
.
TEXT_PLAIN
.
toString
());
headers
.
add
(
"appKey"
,
appKey
);
headers
.
add
(
"appSecret"
,
appSecret
);
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"bizNo"
,
"e5150440add340158e6b258bf8c60e7c"
);
json
.
put
(
"qymc"
,
"安徽测试企业"
);
json
.
put
(
"nsrsbh"
,
"91340100634561365L"
);
json
.
put
(
"areaid"
,
"340100"
);
JSONArray
ywblzhlbArr
=
new
JSONArray
();
JSONObject
jsonYwblzhlbYgs
=
new
JSONObject
();
jsonYwblzhlbYgs
.
put
(
"mm"
,
"Aa123456"
);
jsonYwblzhlbYgs
.
put
(
"blxm"
,
"社保"
);
jsonYwblzhlbYgs
.
put
(
"dwbh"
,
"123456"
);
jsonYwblzhlbYgs
.
put
(
"zh"
,
"1234567"
);
jsonYwblzhlbYgs
.
put
(
"mmlx"
,
"4"
);
JSONObject
jsonYwblzhlbYsd
=
new
JSONObject
();
jsonYwblzhlbYsd
.
put
(
"mm"
,
"Aa123456"
);
jsonYwblzhlbYsd
.
put
(
"blxm"
,
"医保"
);
jsonYwblzhlbYsd
.
put
(
"dwbh"
,
"123456"
);
jsonYwblzhlbYsd
.
put
(
"zh"
,
"1234567"
);
jsonYwblzhlbYsd
.
put
(
"mmlx"
,
"4"
);
ywblzhlbArr
.
add
(
jsonYwblzhlbYgs
);
ywblzhlbArr
.
add
(
jsonYwblzhlbYsd
);
json
.
put
(
"ywblzhlb"
,
ywblzhlbArr
);
JSONArray
cbrymdArr
=
new
JSONArray
();
JSONObject
cbrymdOne
=
new
JSONObject
();
cbrymdOne
.
put
(
"csrq"
,
"2009-08-21"
);
cbrymdOne
.
put
(
"gj"
,
"中国"
);
cbrymdOne
.
put
(
"whcd"
,
"大学本科"
);
cbrymdOne
.
put
(
"sjhm"
,
"10000340997"
);
cbrymdOne
.
put
(
"xb"
,
"男"
);
cbrymdOne
.
put
(
"hkszdxzq"
,
"浙江省|杭州市|滨江区"
);
cbrymdOne
.
put
(
"mz"
,
"汉族"
);
cbrymdOne
.
put
(
"cjgzrq"
,
"2017-06-14"
);
JSONArray
blxmlbArr
=
new
JSONArray
();
JSONObject
blxmlbOne
=
new
JSONObject
();
String
[]
strArr
=
{
"企业职工养老"
};
blxmlbOne
.
put
(
"xzlb"
,
strArr
);
blxmlbOne
.
put
(
"blxm"
,
"社保"
);
blxmlbOne
.
put
(
"bccbrq"
,
"2024-05-30"
);
blxmlbOne
.
put
(
"sbgz"
,
"4000"
);
JSONObject
blxmlbTwo
=
new
JSONObject
();
String
[]
strArrTwo
=
{
"生育保险"
};
blxmlbTwo
.
put
(
"xzlb"
,
strArrTwo
);
blxmlbTwo
.
put
(
"blxm"
,
"医保"
);
blxmlbTwo
.
put
(
"bccbrq"
,
"2024-04-30"
);
blxmlbTwo
.
put
(
"sbgz"
,
"4000"
);
blxmlbArr
.
add
(
blxmlbOne
);
blxmlbArr
.
add
(
blxmlbTwo
);
cbrymdOne
.
put
(
"blxmlb"
,
blxmlbArr
);
cbrymdOne
.
put
(
"jzdz"
,
"滨江区南环路3738号"
);
cbrymdOne
.
put
(
"xm"
,
"测试金辰"
);
cbrymdOne
.
put
(
"zzlx"
,
"居民身份证"
);
cbrymdOne
.
put
(
"zzhm"
,
"828888200908213819"
);
cbrymdOne
.
put
(
"hkxz"
,
"外地居民户口"
);
JSONObject
tszdxx
=
new
JSONObject
();
tszdxx
.
put
(
"dwjyqssj"
,
"2028-08-07"
);
tszdxx
.
put
(
"ygxs"
,
"订立固定期限劳动合同"
);
tszdxx
.
put
(
"gzsjzd"
,
"标准工作时间制度"
);
tszdxx
.
put
(
"jydjsj"
,
"2023-08-01"
);
tszdxx
.
put
(
"zygz"
,
"专业技术人员"
);
tszdxx
.
put
(
"ldhtqsqk"
,
"初签"
);
tszdxx
.
put
(
"grsf"
,
"企业管理人员"
);
cbrymdOne
.
put
(
"tszdxx"
,
tszdxx
);
cbrymdOne
.
put
(
"jzdzxzq"
,
"浙江省|杭州市|滨江区"
);
cbrymdOne
.
put
(
"hkszddz"
,
"滨江区南环路3738号"
);
JSONObject
jyxx
=
new
JSONObject
();
jyxx
.
put
(
"ldhtqsrq"
,
"2023-08-20"
);
jyxx
.
put
(
"ldhtjzrq"
,
"2030-12-30"
);
jyxx
.
put
(
"ldhtlx"
,
"固定期限劳动合同"
);
cbrymdOne
.
put
(
"jyxx"
,
jyxx
);
cbrymdArr
.
add
(
cbrymdOne
);
json
.
put
(
"cbrymd"
,
cbrymdArr
);
HttpEntity
<
String
>
formEntity
=
new
HttpEntity
<>(
json
.
toString
(),
headers
);
String
dataResultList
=
restTemplate
.
postForObject
(
appAddUrl
,
formEntity
,
String
.
class
);
// {"head":{"code":"00000000","description":"成功","msg":"成功","time":"2024-12-06 17:10:26","status":"Y"}
// ,"body":{"requestId":"85440b327d71466abcd9c5c81d5bb172"}}
if
(
Common
.
isNotNull
(
dataResultList
))
{
JSONObject
dataObject
=
JSON
.
parseObject
(
dataResultList
);
String
head
=
dataObject
.
getString
(
"head"
);
if
(
Common
.
isNotNull
(
head
))
{
JSONObject
headObject
=
JSON
.
parseObject
(
head
);
String
status
=
headObject
.
getString
(
"status"
);
if
(
"Y"
.
equals
(
status
))
{
String
body
=
dataObject
.
getString
(
"body"
);
JSONObject
bodyObject
=
JSON
.
parseObject
(
body
);
addId
=
bodyObject
.
getString
(
"requestId"
);
System
.
out
.
println
(
addId
);
}
else
{
System
.
out
.
println
(
"失败"
);
}
}
}
return
addId
;
}
/**
* @param: fileKey : resultFile 查看文件; resultAnnex 查看附件
* @Description: 5:任务查询接口
* @Author: hgw
* @Date: 2024-5-8 15:07:45
* @return: java.lang.String
**/
public
R
<
String
>
getFiveJob
(
RestTemplate
restTemplate
,
String
addId
,
String
fileKey
)
{
if
(
Common
.
isEmpty
(
addId
))
{
return
null
;
}
String
resultFile
=
null
;
String
moduleDetailUrl
=
urlPre
+
urlGetInfo
;
HttpHeaders
headers
=
new
HttpHeaders
();
MediaType
type
=
MediaType
.
parseMediaType
(
"application/json; charset=UTF-8"
);
headers
.
setContentType
(
type
);
headers
.
add
(
"accept"
,
MediaType
.
TEXT_PLAIN
.
toString
());
headers
.
add
(
"appKey"
,
appKey
);
headers
.
add
(
"appSecret"
,
appSecret
);
HttpEntity
<
String
>
formEntity
=
new
HttpEntity
<>(
headers
);
ResponseEntity
response
=
restTemplate
.
exchange
(
moduleDetailUrl
,
HttpMethod
.
GET
,
formEntity
,
String
.
class
);
if
(
Common
.
isEmpty
(
response
)
||
Common
.
isEmpty
(
response
.
getBody
()))
{
throw
new
CheckedException
(
"获取税友【任务查询接口】失败"
);
}
int
status
=
response
.
getStatusCodeValue
();
if
(
status
!=
200
)
{
throw
new
CheckedException
(
"获取税友【任务查询接口】失败,status="
+
status
);
}
String
body
=
(
String
)
response
.
getBody
();
JSONObject
bodyObject
=
JSON
.
parseObject
(
body
);
JSONObject
dataObject
=
(
JSONObject
)
bodyObject
.
get
(
"data"
);
String
statusStr
=
dataObject
.
getString
(
"status"
);
if
(!
"完成"
.
equals
(
statusStr
))
{
return
R
.
failed
(
statusStr
);
}
resultFile
=
dataObject
.
getString
(
fileKey
);
if
(
Common
.
isEmpty
(
resultFile
))
{
return
R
.
failed
(
resultFile
);
}
return
R
.
ok
(
resultFile
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialFriendController.java
0 → 100644
View file @
d6c11b44
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
controller
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocialFriendPushService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocialFriendService
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 税友
*
* @author hgw
* @date 2024-12-6 15:46:04
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/tsocialfriend"
)
@Tag
(
name
=
"税友"
)
public
class
TSocialFriendController
{
private
final
TSocialFriendService
tSocialFriendService
;
private
final
TSocialFriendPushService
tSocialFriendPushService
;
@Operation
(
description
=
"推送税友Test"
)
@PostMapping
(
"/pushFriendTest"
)
public
R
<
String
>
pushFriendTest
(
@RequestBody
(
required
=
false
)
List
<
String
>
dispatchIdList
)
{
return
tSocialFriendPushService
.
pushFriendTest
(
dispatchIdList
);
}
/**
* @param addId 任务id,可为空
* @Description: 1获取税友状态
* @Author: hgw
* @Date: 2024/5/11 19:25
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"获取税友状态"
)
@GetMapping
(
"/getFiveJob"
)
public
R
<
String
>
getFiveJob
(
@RequestParam
(
required
=
false
)
String
addId
)
{
return
tSocialFriendService
.
getFiveJob
(
addId
);
}
/**
* @param dispatchIdList 派单id
* @Description: 推送税友
* @Author: hgw
* @Date: 2024/5/11 19:25
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"推送税友"
)
@PostMapping
(
"/pushSoldier"
)
public
R
<
String
>
pushSoldier
(
@RequestBody
(
required
=
false
)
List
<
String
>
dispatchIdList
)
{
return
tSocialFriendPushService
.
pushSoldier
(
dispatchIdList
);
}
/**
* @Description: 1定时任务获取税友状态
* @Author: hgw
* @Date: 2024/5/11 19:26
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"1定时任务获取税友状态"
)
@PostMapping
(
"/inner/doInnerGetFiveJob"
)
@SysLog
(
"1每日定时任务获取税友状态"
)
@Inner
public
R
<
String
>
doInnerGetFiveJob
()
{
return
tSocialFriendService
.
getFiveJob
(
null
);
}
/**
* @Description: 2定时任务推送税友
* @Author: hgw
* @Date: 2024/5/11 19:26
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"2定时任务推送税友"
)
@PostMapping
(
"/inner/doInnerPushSoldier"
)
@SysLog
(
"2每日定时任务推送税友"
)
@Inner
public
R
<
String
>
doInnerPushSoldier
()
{
return
tSocialFriendPushService
.
pushSoldier
(
null
);
}
/**
* @Description: 3每日定时任务推送税友审核结果查询
* @Author: hgw
* @Date: 2024-5-24 17:01:56
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"3每日定时任务推送税友审核结果查询"
)
@PostMapping
(
"/inner/doInnerPushSoldierByAudit"
)
@SysLog
(
"4每日定时任务推送税友审核结果查询"
)
@Inner
public
R
<
String
>
doInnerPushSoldierByAudit
()
{
return
tSocialFriendPushService
.
pushSoldierByAudit
();
}
/**
* @Description: 4每日定时任务获取税友审核结果查询
* @Author: hgw
* @Date: 2024-5-24 17:02:00
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"4每日定时任务获取税友审核结果查询"
)
@PostMapping
(
"/inner/doInnerGetSixJobByAudit"
)
@SysLog
(
"4每日定时任务获取税友审核结果查询"
)
@Inner
public
R
<
String
>
doInnerGetSixJobByAudit
()
{
return
tSocialFriendService
.
getSixJobByAudit
();
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocialFriendMapper.java
0 → 100644
View file @
d6c11b44
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYgsAddVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYgsAuditVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYsdAddVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYsdAuditVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 税友Mapper
*
* @author hgw
* @date 2024-5-13 11:54:57
*/
@Mapper
public
interface
TSocialFriendMapper
extends
BaseMapper
<
TSocialInfo
>
{
/**
* 社保士兵养工失增加模板
*
* @Author hgw
* @Date 2024-5-10 21:16:41
**/
List
<
SocialSoldierYgsAddVo
>
getSocialSoldierYgsAddVoList
(
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
* 社保士兵养工失减少模板
*
* @Author hgw
* @Date 2024-5-10 21:16:41
**/
List
<
SocialSoldierYgsAddVo
>
getSocialSoldierYgsReduceVoList
(
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
* 社保士兵医生大增加模板
*
* @Author hgw
* @Date 2024-5-10 21:16:41
**/
List
<
SocialSoldierYsdAddVo
>
getSocialSoldierYsdAddVoList
(
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
* 社保士兵医生大减少模板
*
* @Author hgw
* @Date 2024-5-10 21:16:41
**/
List
<
SocialSoldierYsdAddVo
>
getSocialSoldierYsdReduceVoList
(
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
* 社保士兵养工失审核模板
*
* @Author hgw
* @Date 2024-5-24 16:39:43
**/
List
<
SocialSoldierYgsAuditVo
>
getSocialSoldierYgsAuditVoList
();
/**
* 社保士兵医生大审核续保模板
*
* @Author hgw
* @Date 2024-5-24 16:39:43
**/
List
<
SocialSoldierYsdAuditVo
>
getSocialSoldierYsdAuditVoList
();
/**
* 社保士兵养工失审核模板——推送给社保士兵的归总模板
*
* @Author hgw
* @Date 2024-9-2 18:03:04
**/
List
<
SocialSoldierYgsAuditVo
>
getSocialSoldierYgsAuditVoListByGroupBy
();
/**
* 社保士兵医生大审核续保模板——推送给社保士兵的归总模板
*
* @Author hgw
* @Date 2024-9-2 18:03:07
**/
List
<
SocialSoldierYsdAuditVo
>
getSocialSoldierYsdAuditVoListByGroupBy
();
/**
* 社保士兵医生大审核新增模板
*
* @Author hgw
* @Date 2024-5-24 16:39:43
**/
List
<
SocialSoldierYsdAuditVo
>
getSocialSoldierYsdAddAuditVoList
();
/**
* 社保士兵医生大审核新增模板
*
* @Author hgw
* @Date 2024-5-24 16:39:43
**/
List
<
SocialSoldierYsdAuditVo
>
getSocialSoldierYsdAddAuditVoListByGroupBy
();
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialFriendPushService.java
0 → 100644
View file @
d6c11b44
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.List
;
/**
* 税友-推送
*
* @author hgw
* @date 2024-12-6 15:43:28
*/
public
interface
TSocialFriendPushService
extends
IService
<
TSocialInfo
>
{
/**
* @Description: 根据文件,推送到社保士兵。注意社保id别搞错了,否则塞值到社保里就塞错了
* @Author: hgw
* @Date: 2024/5/11 14:46
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
getOneAppGetModuleDetail
(
List
<
TSocialInfo
>
socialIdList
,
MultipartFile
file
,
String
type
);
/**
* @param dispatchIdList
* @Description: 根据派单id,获取要派增派减的社保、医保数据,生成文件,推送到社保士兵
* @Author: hgw
* @Date: 2024/5/10 17:52
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
pushSoldier
(
List
<
String
>
dispatchIdList
);
R
<
String
>
pushFriendTest
(
List
<
String
>
dispatchIdList
);
/**
* @param
* @Description: 推送当月所有提交社保局后,待社保局审核的查询任务
* @Author: hgw
* @Date: 2024/5/23 18:14
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
pushSoldierByAudit
();
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialFriendService.java
0 → 100644
View file @
d6c11b44
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo
;
/**
* 社保士兵
*
* @author hgw
* @date 2024-5-8 14:55:24
*/
public
interface
TSocialFriendService
extends
IService
<
TSocialInfo
>
{
/**
* @param addId
* @Description: 查看社保士兵反馈情况
* @Author: hgw
* @Date: 2024/5/11 14:45
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
getFiveJob
(
String
addId
);
/**
* @Description: 查看社保士兵审核结果查询的反馈情况
* @Author: hgw
* @Date: 2024-5-24 17:02:34
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
getSixJobByAudit
();
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendPushServiceImpl.java
0 → 100644
View file @
d6c11b44
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
0 → 100644
View file @
d6c11b44
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/resources/application-dev.yml
View file @
d6c11b44
...
...
@@ -59,3 +59,11 @@ soldier:
#原先的老的 : authorizations: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2MzcwYWIyZDRhZTI0NjQ2YTg0MTE0Mzk1Y2M2MTkzMiIsInN1YiI6IjQiLCJ1c2VyX3Bob25lIjoiIiwidXNlcl90eXBlIjoiMTAiLCJ1c2VyX25hbWUiOiLlkIjogqXnpL7kv53lo6vlhbVBUEkiLCJpc19hcHAiOiIxIiwiVXNlcklkIjoiNCIsIm5iZiI6MTcxNjE3OTIxOSwiZXhwIjoxNzI2NTQ3MjE5LCJpYXQiOjE3MTYxNzkyMTl9.Ei-52hRlfMLXLzpzmbP2xCVFZKE5sHHexzfX5PtmZ_M
#authorizations: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3ZmRjOGJmYWM0Yjg0NTkzYmMzNjllYzAwN2ExODgzZCIsInN1YiI6IjQiLCJ1c2VyX3Bob25lIjoiIiwidXNlcl90eXBlIjoiMTAiLCJ1c2VyX25hbWUiOiLlkIjogqXnpL7kv53lo6vlhbVBUEkiLCJpc19hcHAiOiIxIiwiVXNlcklkIjoiNCIsIm5iZiI6MTcyNjcxMjQzOSwiZXhwIjo1NTExMDMyNDM5LCJpYXQiOjE3MjY3MTI0Mzl9.o91Ay4hRJofg76WCColUaixuyOyWvsuMDTWZMKSThc0
#urlPre: http://60.168.131.18:55555
#税友相关属性配置
socialFriend
:
urlPre
:
https://test-openapi.17win.com
urlPush
:
/gateway/socins/hrss/employee/v2/register
urlGetInfo
:
/gateway/socins/hrss/employee/v2/getRegisterFeedback
appKey
:
89357285571962202409230949030
appSecret
:
V52dkvxtFUgIvzlfNE9G8g==
\ No newline at end of file
yifu-social/yifu-social-biz/src/main/resources/application-prd.yml
View file @
d6c11b44
...
...
@@ -55,3 +55,11 @@ spring:
soldier
:
authorizations
:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3ZmRjOGJmYWM0Yjg0NTkzYmMzNjllYzAwN2ExODgzZCIsInN1YiI6IjQiLCJ1c2VyX3Bob25lIjoiIiwidXNlcl90eXBlIjoiMTAiLCJ1c2VyX25hbWUiOiLlkIjogqXnpL7kv53lo6vlhbVBUEkiLCJpc19hcHAiOiIxIiwiVXNlcklkIjoiNCIsIm5iZiI6MTcyNjcxMjQzOSwiZXhwIjo1NTExMDMyNDM5LCJpYXQiOjE3MjY3MTI0Mzl9.o91Ay4hRJofg76WCColUaixuyOyWvsuMDTWZMKSThc0
urlPre
:
http://60.168.131.18:55555
#税友相关属性配置
socialFriend
:
urlPre
:
https://test-openapi.17win.com
urlPush
:
/gateway/socins/hrss/employee/v2/register
urlGetInfo
:
/gateway/socins/hrss/employee/v2/getRegisterFeedback
appKey
:
89357285571962202409230949030
appSecret
:
V52dkvxtFUgIvzlfNE9G8g==
\ No newline at end of file
yifu-social/yifu-social-biz/src/main/resources/application-test.yml
View file @
d6c11b44
...
...
@@ -55,3 +55,10 @@ spring:
soldier
:
authorizations
:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJmODA2ZjRlYzYzZjY0NjVlOGFlZjRmZmVlOTYwMzcxNiIsInN1YiI6IjIiLCJ1c2VyX3Bob25lIjoiIiwidXNlcl90eXBlIjoiMTAiLCJ1c2VyX25hbWUiOiLmtYvor5UiLCJpc19hcHAiOiIxIiwiVXNlcklkIjoiMiIsIm5iZiI6MTcxMjg5Mjk1OCwiZXhwIjoxNzIzMjYwOTU4LCJpYXQiOjE3MTI4OTI5NTh9.oTmhLfv1tLq8aPOfO3LeqM1IDYT76YGXkqpz3dwBX4M
urlPre
:
http://36.7.147.29:55555
#税友相关属性配置
socialFriend
:
urlPre
:
https://test-openapi.17win.com
urlPush
:
/gateway/socins/hrss/employee/v2/register
urlGetInfo
:
/gateway/socins/hrss/employee/v2/getRegisterFeedback
appKey
:
89357285571962202409230949030
appSecret
:
V52dkvxtFUgIvzlfNE9G8g==
\ No newline at end of file
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialFriendMapper.xml
0 → 100644
View file @
d6c11b44
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