Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
dc279d18
Commit
dc279d18
authored
Apr 15, 2025
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
7351f520
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
11 deletions
+58
-11
TestController.java
.../amos/boot/module/hygf/biz/controller/TestController.java
+47
-0
application-kingbase8.properties
...f-biz/src/main/resources/application-kingbase8.properties
+9
-5
application.properties
...module-hygf-biz/src/main/resources/application.properties
+2
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TestController.java
View file @
dc279d18
...
...
@@ -14,12 +14,15 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.util.AesUtil
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
...
@@ -27,6 +30,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
...
...
@@ -64,6 +68,12 @@ public class TestController extends BaseController {
AcceptanceCheckMapper
acceptanceCheckMapper
;
@Autowired
FinancingInfoMapper
financingInfoMapper
;
@Value
(
"${hygf.sms.repaymentCode}"
)
private
String
repaymentCode
;
@Value
(
"${hygf.sms.maintenanceCode}"
)
private
String
maintenanceCode
;
@Value
(
"${hygf.sms.tempCode}"
)
private
String
smsTempCode
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -297,4 +307,40 @@ public class TestController extends BaseController {
}
return
CommonResponseNewUtil
.
success
();
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/sms"
)
public
void
sms
(
@RequestParam
String
mobile
)
{
HashMap
<
String
,
String
>
params1
=
new
HashMap
<>(
6
);
params1
.
put
(
"code"
,
"1"
);
params1
.
put
(
"mobile"
,
mobile
);
params1
.
put
(
"smsCode"
,
smsTempCode
);
try
{
Systemctl
.
smsClient
.
sendCommonSms
(
params1
).
getResult
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
HashMap
<
String
,
String
>
params
=
new
HashMap
<>(
6
);
params
.
put
(
"1"
,
"1"
);
params
.
put
(
"2"
,
"2"
);
params
.
put
(
"3"
,
"3"
);
params
.
put
(
"4"
,
"4"
);
params
.
put
(
"mobile"
,
mobile
);
params
.
put
(
"smsCode"
,
repaymentCode
);
try
{
Systemctl
.
smsClient
.
sendCommonSms
(
params
).
getResult
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
params
.
put
(
"smsCode"
,
maintenanceCode
);
try
{
Systemctl
.
smsClient
.
sendCommonSms
(
params
).
getResult
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-kingbase8.properties
View file @
dc279d18
...
...
@@ -135,7 +135,7 @@ regulator.unit.code=86*258
# ������Ӧ��code
dealer.appcode
=
studio_normalapp_5133538
hygf.sms.tempCode
=
SMS_HYGF_0001
# �������������
sms.huawei.url
=
https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1
...
...
@@ -272,8 +272,7 @@ hygf.icbc.camsPublicKey=655CE8706E6ED9A30B92E57D8D645ADDE8C541C27C5C5AFD529C610C
hygf.icbc.apigwPublicKey
=
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB
hygf.icbc.outVendorId
=
gxjr
hygf.icbc.projectId
=
PJ140014023565102203
hygf.sms.maintenanceCode
=
SMS_HYGF_0005
hygf.sms.repaymentCode
=
SMS_HYGF_0006
icbc.Withhold.projectId
=
PJ140014023565102203
icbc.Withhold.corpCis
=
211590000183323
icbc.Withhold.partner.identification
=
JO004
...
...
@@ -282,4 +281,9 @@ icbc.Withhold.sftpUserName=jrgf
icbc.Withhold.sftpPort
=
8001
icbc.Withhold.sftpIp
=
gw.open.icbc.com.cn
withholdStatusCron
=
0,30 8-23 * * * ?
withholdReceiptFileCron
=
0 0 23 * * ?
\ No newline at end of file
withholdReceiptFileCron
=
0 0 23 * * ?
hygf.sms.tempCode
=
SMS_HYGF_0001
hygf.sms.maintenanceCode
=
SMS_HYGF_0005
hygf.sms.repaymentCode
=
SMS_HYGF_0006
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application.properties
View file @
dc279d18
...
...
@@ -88,8 +88,4 @@ feign.okhttp.enabled= true
workflow.feign.name
=
AMOS-API-WORKFLOW
repaymentCron
=
0 0 1 * * ?
urlHttp
=
http://47.92.234.253:9000
hygf.sms.tempCode
=
SMS_HYGF_0007
hygf.sms.maintenanceCode
=
SMS_HYGF_0008
hygf.sms.repaymentCode
=
SMS_HYGF_0009
\ No newline at end of file
urlHttp
=
http://47.92.234.253:9000
\ No newline at end of file
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