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
8c476625
Commit
8c476625
authored
Aug 27, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-商险到期提醒修改
parent
97b3c9fb
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
70 additions
and
56 deletions
+70
-56
EKPEntryPushParam.java
...java/com/yifu/cloud/plus/v1/ekp/vo/EKPEntryPushParam.java
+11
-16
EkpEntryProperties.java
...com/yifu/cloud/plus/v1/ekp/config/EkpEntryProperties.java
+3
-0
IcbcTransactionFlowIssueServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
+3
-3
IcbcTransactionFlowQueryServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowQueryServiceImpl.java
+28
-34
ahwx.y.1302.cer
yifu-ekp/yifu-ekp-biz/src/main/resources/ahwx.y.1302.cer
+0
-0
application-test.yml
...-ekp/yifu-ekp-biz/src/main/resources/application-test.yml
+3
-1
API_GATEWAY_ICBC_SM_REAL.cer
...-biz/src/main/resources/file/API_GATEWAY_ICBC_SM_REAL.cer
+0
-0
ahwx_y_1302.cer
...-ekp/yifu-ekp-biz/src/main/resources/file/ahwx_y_1302.cer
+3
-0
TInsurancesWarnController.java
...yifu/insurances/controller/TInsurancesWarnController.java
+7
-1
TInsuranceDetailService.java
...insurances/service/insurance/TInsuranceDetailService.java
+2
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+8
-0
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+1
-1
TInsuranceWarnMapper.xml
...main/resources/mapper/insurances/TInsuranceWarnMapper.xml
+1
-0
No files found.
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/ekp/vo/EKPEntryPushParam.java
View file @
8c476625
...
...
@@ -13,61 +13,56 @@ public class EKPEntryPushParam {
/**
* 来款单位
*/
private
String
fd_
3aa453180cc7f0
;
private
String
fd_
recipName
;
/**
* 来款银行账号
*/
private
String
fd_3aa4531865bada
;
/**
* 是否银企直连读取
*/
private
String
fd_3b57f8de9df354
;
private
String
fd_recipAccountNo
;
/**
* 来款单位开户行名
*/
private
String
fd_
3b88c420e5ca80
;
private
String
fd_
recipBkName
;
/**
* 入账日期
*/
private
String
fd_
3aa4531d3b86e0
;
private
String
fd_
date
;
/**
* 到款单位
*/
private
String
fd_
3aa45319a4cde4
;
private
String
fd_
receiveBkName
;
/**
* 到款银行账号
*/
private
String
fd_
3b62f3470beb30
;
private
String
fd_
receiveBkNo
;
/**
* 财务备注
*/
private
String
fd_
3b1b88110cb39e
;
private
String
fd_
remark
;
/**
* 入账金额
*/
private
String
fd_
3b208d364c2b70
;
private
String
fd_
receiveMoney
;
/**
* 入账日期(精确)
*/
private
String
fd_
3cddecabdd3dc0
;
private
String
fd_
daReal
;
/**
* 数据同步时间
*/
private
String
fd_
3aa4531c687958
;
private
String
fd_
daTime
;
/**
* 系统交易流水号
*/
private
String
fd_
3b573843db30
ce
;
private
String
fd_
onlySequen
ce
;
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/config/EkpEntryProperties.java
View file @
8c476625
...
...
@@ -24,4 +24,7 @@ public class EkpEntryProperties {
String
entryDocSubject
;
String
entryFdFlowId
;
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
View file @
8c476625
...
...
@@ -79,10 +79,10 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
bizContent
.
setOprType
(
"1"
);
bizContent
.
setTotalAmt
(
"1"
);
bizContent
.
setTotalCount
(
"1"
);
bizContent
.
setAppSerialno
(
"WX0
6
"
);
bizContent
.
setAppSerialno
(
"WX0
03
"
);
bizContent
.
setFileCheckSign
(
"1"
);
bizContent
.
setLocalFilepath
(
"D:/icbcFile/020101190_WX0
6_0_20240819
.xls"
);
bizContent
.
setFileMdcode
(
getMdCode
(
"D:/icbcFile/020101190_WX0
6_0_20240819
.xls"
));
bizContent
.
setLocalFilepath
(
"D:/icbcFile/020101190_WX0
03_0_20240827
.xls"
);
bizContent
.
setFileMdcode
(
getMdCode
(
"D:/icbcFile/020101190_WX0
03_0_20240827
.xls"
));
bizContent
.
setFileType
(
"1"
);
bizContent
.
setNotifyUrl
(
null
);
bizContent
.
setAppRemark
(
"备注"
);
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowQueryServiceImpl.java
View file @
8c476625
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
...
...
@@ -118,26 +117,20 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
}
public
R
getIcbcTransactionFlowNew
()
throws
IcbcApiException
{
//1、网关公钥
// String APIGW_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwFgHD4kzEVPdOj03ctKM7KV+16bWZ5BMNgvEeuEQwfQYkRVwI9HFOGkwNTMn5hiJXHnlXYCX+zp5r6R52MY0O7BsTCLT7aHaxsANsvI9ABGx3OaTVlPB59M6GPbJh0uXvio0m1r/lTW3Z60RU6Q3oid/rNhP3CiNgg0W6O3AGqwIDAQAB";
// //2、appid
// String APP_ID = "10000000000000223600";
// //3、密钥对认证方式,公钥在API平台登记,此处为私钥
// String MY_PRIVATE_KEY = "73382de53fcbf8aa3b00d07f9808b18e89d1b6b33c9759829eee5cbf1947dbdb";
// DefaultIcbcClient client = new DefaultIcbcClient("10000000000000223600", IcbcConstants.SIGN_TYPE_CA_SM_ICBC, MY_PRIVATE_KEY,
// IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON, null,
// null, null, "1.2.156.10197.1.301", null);
// String ca_sm_path = "D:/icbcFile/ahwx
.y.
1302.cer";
// String ca_sm_path = "D:/icbcFile/ahwx
_y_
1302.cer";
// String ca_sm_icbc_path = "D:/icbcFile/API_GATEWAY_ICBC_SM_REAL.cer";
URL
resource
=
IcbcTransactionFlowQueryServiceImpl
.
class
.
getClassLoader
().
getResource
(
"ahwx.y.1302.cer"
);
URL
resource1
=
IcbcTransactionFlowQueryServiceImpl
.
class
.
getClassLoader
().
getResource
(
"API_GATEWAY_ICBC_SM_REAL.cer"
);
// String ca_sm_path = "/file/ahwx.y.1302.cer";
// String ca_sm_icbc_path = "/file/API_GATEWAY_ICBC_SM_REAL.cer";
// 获取当前类加载器
ClassLoader
classLoader
=
Thread
.
currentThread
().
getContextClassLoader
();
// 获取资源的URL
URL
resourceUrl
=
classLoader
.
getResource
(
"file/ahwx_y_1302.cer"
);
URL
resourceUrl1
=
classLoader
.
getResource
(
"file/API_GATEWAY_ICBC_SM_REAL.cer"
);
String
ca_sm
=
IcbcSignature
.
getCAInfoStr
(
resourceUrl
.
getPath
());
String
ca_sm_icbc
=
IcbcSignature
.
getCAInfoStr
(
resourceUrl1
.
getPath
());
String
ca_sm
=
IcbcSignature
.
getCAInfoStr
(
resource
.
getPath
()
);
String
ca_sm_icbc
=
IcbcSignature
.
getCAInfoStr
(
resource1
.
getPath
()
);
log
.
error
(
"文件地址:"
+
resource
.
getPath
()
+
"转化后的编码"
+
ca_sm
);
// String ca_sm = IcbcSignature.getCAInfoStr(ca_sm_path
);
// String ca_sm_icbc = IcbcSignature.getCAInfoStr(ca_sm_icbc_path
);
// log.error("文件地址:" + resourceUrl
.getPath() + "转化后的编码" + ca_sm);
// DefaultIcbcClient(appid, 签名类型, SM2企业私钥, 编码格式, 数据格式, null, null, null, SM2 cer公钥串, null)
DefaultIcbcClient
client
=
new
DefaultIcbcClient
(
icbcConfigProperties
.
getAppId
(),
IcbcConstants
.
SIGN_TYPE_CA_SM_ICBC
,
icbcConfigProperties
.
getAppPrivateKey
(),
IcbcConstants
.
CHARSET_UTF8
,
IcbcConstants
.
FORMAT_JSON
,
null
,
...
...
@@ -165,8 +158,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
request
.
setServiceUrl
(
icbcConfigProperties
.
getServerUrl
());
request
.
setBizContent
(
bizContent
);
MybankEnterpriseTradeQhisdResponseV1
response
=
client
.
execute
(
request
);
log
.
error
(
"response:"
+
JSON
.
toJSONString
(
response
));
if
(!
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
//查询当天的所有入账记录数据
List
<
String
>
serioList
=
baseMapper
.
getAllserioNo
();
List
<
MybankEnterpriseTradeQhisdResponseV1
.
MybankEnterpriseTradeQhisdResponseRdV1
>
list
=
response
.
getRd
();
...
...
@@ -177,7 +169,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
List
<
MybankEnterpriseTradeQhisdResponseV1
.
MybankEnterpriseTradeQhisdResponseRdV1
>
insertList
=
list
.
stream
().
filter
(
e
->
e
.
getDrcrf
().
equals
(
"2"
)
&&
!
serioList
.
contains
(
e
)).
collect
(
Collectors
.
toList
());
//封装数据
if
(
insertList
.
isEmpty
())
{
if
(
!
insertList
.
isEmpty
())
{
for
(
MybankEnterpriseTradeQhisdResponseV1
.
MybankEnterpriseTradeQhisdResponseRdV1
entry
:
insertList
)
{
EKPEntryPushParam
pushParam
=
new
EKPEntryPushParam
();
initValue
(
entry
,
pushParam
,
bankName
,
bankNo
);
...
...
@@ -186,6 +178,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
if
(
StringUtils
.
isBlank
(
body
)){
sendToEkp
(
pushParam
);
}
break
;
}
}
}
...
...
@@ -203,7 +196,9 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
wholeForm
.
add
(
"docSubject"
,
ekpEntryProperties
.
getEntryDocSubject
());
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"admin\"}"
);
wholeForm
.
add
(
"docStatus"
,
ekpEntryProperties
.
getEntryDocStatus
());
wholeForm
.
add
(
"fdModelId"
,
ekpEntryProperties
.
getEntryFdModelId
());
wholeForm
.
add
(
"fdFlowId"
,
ekpEntryProperties
.
getEntryFdFlowId
());
wholeForm
.
add
(
"formValues"
,
formValues
);
HttpHeaders
headers
=
new
HttpHeaders
();
//如果EKP对该接口启用了Basic认证,那么客户端需要加入
...
...
@@ -229,7 +224,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
}
public
R
querybankinfo
()
{
String
ca_sm_path
=
"D:/icbcFile/ahwx
.y.
1302.cer"
;
String
ca_sm_path
=
"D:/icbcFile/ahwx
_y_
1302.cer"
;
String
ca_sm_icbc_path
=
"D:/icbcFile/API_GATEWAY_ICBC_SM_REAL.cer"
;
String
ca_sm
=
IcbcSignature
.
getCAInfoStr
(
ca_sm_path
);
...
...
@@ -386,17 +381,16 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
public
void
initValue
(
MybankEnterpriseTradeQhisdResponseV1
.
MybankEnterpriseTradeQhisdResponseRdV1
entry
,
EKPEntryPushParam
pushParam
,
String
bankName
,
String
bankNo
)
{
pushParam
.
setFd_3aa453180cc7f0
(
entry
.
getRecipName
());
pushParam
.
setFd_3aa4531865bada
(
entry
.
getRecipAccountNo
());
pushParam
.
setFd_3b57f8de9df354
(
"是"
);
pushParam
.
setFd_3b88c420e5ca80
(
entry
.
getRecipBkName1
());
pushParam
.
setFd_3aa4531d3b86e0
(
entry
.
getDate
());
pushParam
.
setFd_3aa45319a4cde4
(
bankName
);
pushParam
.
setFd_3b62f3470beb30
(
bankNo
);
pushParam
.
setFd_3b1b88110cb39e
(
entry
.
getSummary
());
pushParam
.
setFd_3b208d364c2b70
(
entry
.
getCreditAmount
().
toString
());
pushParam
.
setFd_3cddecabdd3dc0
(
entry
.
getBusiTime
());
pushParam
.
setFd_3aa4531c687958
(
DateUtil
.
getThisTime
());
pushParam
.
setFd_3b573843db30ce
(
entry
.
getOnlySequence
());
pushParam
.
setFd_recipName
(
entry
.
getRecipName
());
pushParam
.
setFd_recipAccountNo
(
entry
.
getRecipAccountNo
());
pushParam
.
setFd_recipBkName
(
entry
.
getRecipBkName
());
pushParam
.
setFd_date
(
entry
.
getBusiDate
()
+
" "
+
entry
.
getBusiTime
());
pushParam
.
setFd_receiveBkName
(
bankName
);
pushParam
.
setFd_receiveBkNo
(
bankNo
);
pushParam
.
setFd_remark
(
entry
.
getSummary
());
pushParam
.
setFd_receiveMoney
(
String
.
valueOf
(
entry
.
getCreditAmount
()/
100.0
));
pushParam
.
setFd_daReal
(
entry
.
getBusiDate
()
+
" "
+
entry
.
getBusiTime
());
pushParam
.
setFd_daTime
(
entry
.
getBusiDate
()
+
" "
+
entry
.
getBusiTime
());
pushParam
.
setFd_onlySequence
(
entry
.
getOnlySequence
());
}
}
yifu-ekp/yifu-ekp-biz/src/main/resources/ahwx.y.1302.cer
deleted
100644 → 0
View file @
97b3c9fb
File deleted
yifu-ekp/yifu-ekp-biz/src/main/resources/application-test.yml
View file @
8c476625
...
...
@@ -107,6 +107,8 @@ security:
entry
:
entryUrl
:
http://36.7.147.29:27007/api/sys-modeling/appModelRestService/addModel
entryFdModelId
:
18050b5cee8b79c234bf64d412294f23
entryFdModelId
:
18050b5cee8b7f8e56879448e4f23aad
entryFdFlowId
:
191919ae533d080b60e6e784c55a3c8b
entryDocStatus
:
20
entryLoginName
:
admin
entryDocSubject
:
入账明细推送ekp接口
\ No newline at end of file
yifu-ekp/yifu-ekp-biz/src/main/resources/API_GATEWAY_ICBC_SM_REAL.cer
→
yifu-ekp/yifu-ekp-biz/src/main/resources/
file/
API_GATEWAY_ICBC_SM_REAL.cer
View file @
8c476625
File moved
yifu-ekp/yifu-ekp-biz/src/main/resources/file/ahwx_y_1302.cer
0 → 100644
View file @
8c476625
-----BEGIN CERTIFICATE-----
MIICSTCCAeygAwIBAgIGAJuAEtYAMAwGCCqBHM9VAYN1BQAwQTELMAkGA1UEBhMCY24xGzAZBgNVBAoMEnNtMmNvci5pY2JjLmNvbS5jbjEVMBMGA1UEAwwMc20ycm9vdGNhY29yMB4XDTIzMTIyMTA5NTAxNloXDTI4MTIyMTE1NTk1OVowVDELMAkGA1UEBhMCY24xGzAZBgNVBAoMEnNtMmNvci5pY2JjLmNvbS5jbjENMAsGA1UECwwEMTMwMjEZMBcGA1UEAwwQYWh3eC55LjEzMDIuMDIwMTBZMBMGByqGSM49AgEGCCqBHM9VAYItA0IABGEC1fF2rHTWfipQhOr+8SfvXDBiazIrImcsPH5aGaYMFK2RIXv0AF2xe2ZgAzcWRbgop0cAjaBHXpzSfIlnfl6jgbowgbcwHwYDVR0jBBgwFoAUDD6RRlIIkxjZ0/0x6S8mKdW3D2YwCQYDVR0TBAIwADBdBgNVHR8EVjBUMFKgUKBOpEwwSjEQMA4GA1UEAwwHY3JsNDE3MDEMMAoGA1UECwwDY3JsMRswGQYDVQQKDBJzbTJjb3IuaWNiYy5jb20uY24xCzAJBgNVBAYTAmNuMAsGA1UdDwQEAwIHgDAdBgNVHQ4EFgQUd0LHEI6l7Faq6/9GObNld3SH7xswDAYIKoEcz1UBg3UFAANJADBGAiEA68uRM5zYzMhaheAG+fw3AtkRFE5146+Qw6GVP93WojwCIQDzsIL3duLRtTot8ciVuKUQkI+GrXAg7nWnd2M2o9oRBw==
-----END CERTIFICATE-----
\ No newline at end of file
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsurancesWarnController.java
View file @
8c476625
...
...
@@ -127,9 +127,15 @@ public class TInsurancesWarnController {
return
insuranceDetailService
.
getExpireInsuranceWarn
();
}
@Operation
(
description
=
"商险到期个人总数提醒"
)
@PostMapping
(
"/getUserInsuranceMessageWarnCount"
)
public
R
<
Integer
>
getUserInsuranceMessageWarnCount
(
@RequestParam
String
userName
)
{
return
insuranceDetailService
.
getUserInsuranceMessageWarnCount
(
userName
);
}
@Operation
(
description
=
"每天刷新商险到期提醒信息"
)
@PostMapping
(
"/innner/createInsuranceAlert"
)
@Inner
@PostMapping
(
"/inner/createInsuranceAlert"
)
public
void
createInsuranceAlert
()
{
insuranceWarnService
.
createInsuranceAlert
();
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TInsuranceDetailService.java
View file @
8c476625
...
...
@@ -525,6 +525,8 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
R
<
Integer
>
getExpireInsuranceWarn
();
R
<
Integer
>
getUserInsuranceMessageWarnCount
(
String
userName
);
R
<
Object
>
batchexpireIgnore
(
List
<
String
>
ids
);
R
<
Object
>
expireIgnore
(
TBusinessInsuranceVo
vo
);
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
8c476625
...
...
@@ -8036,4 +8036,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
// List<String> domainIds = getExportCondition(searchVo);
return
R
.
ok
(
baseMapper
.
noPageCountDiy
(
searchVo
));
}
@Override
public
R
<
Integer
>
getUserInsuranceMessageWarnCount
(
String
userName
)
{
InsuranceSearchVo
searchVo
=
new
InsuranceSearchVo
();
searchVo
.
setCreateName
(
userName
);
searchVo
.
setExpireIgnoreFlag
(
CommonConstants
.
ONE_STRING
);
return
R
.
ok
(
baseMapper
.
noPageCountDiy
(
searchVo
));
}
}
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
8c476625
...
...
@@ -1939,10 +1939,10 @@
,a.INSURANCE_HANDLE_CITY_NAME
from
t_insurance_alert a
<include
refid=
"expire_sql_where"
/>
LEFT JOIN view_insurance_replace r on a.id=r.TO_INSURANCE_DETAIL_ID
LEFT JOIN view_insurance_replace r2 on a.id=r2.FROM_INSURANCE_DETAIL_ID
LEFT JOIN t_insurance_refund rf on rf.INS_DETAIL_ID=a.id
<include
refid=
"expire_sql_where"
/>
group by a.id
order by a.CREATE_TIME desc
<if
test=
"param != null and param.limitStart != null"
>
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceWarnMapper.xml
View file @
8c476625
...
...
@@ -52,6 +52,7 @@
a.EMP_NAME,
a.EMP_IDCARD_NO,
a.DEPT_NO,
a.DEPT_NAME,
a.POST,
a.INSURANCE_COMPANY_NAME,
a.INSURANCE_TYPE_NAME,
...
...
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