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
6fd00f23
Commit
6fd00f23
authored
Dec 04, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配人大金仓
parent
112f157a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
13 deletions
+27
-13
TestController.java
.../amos/boot/module/hygf/biz/controller/TestController.java
+24
-13
application-kingbase8.properties
...f-biz/src/main/resources/application-kingbase8.properties
+3
-0
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 @
6fd00f23
...
...
@@ -17,7 +17,6 @@ import com.yeejoin.amos.feign.privilege.util.AesUtil;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -26,8 +25,8 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.util.*
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
...
...
@@ -66,6 +65,11 @@ public class TestController extends BaseController {
@Autowired
FinancingInfoMapper
financingInfoMapper
;
public
static
void
main
(
String
[]
args
)
{
String
aa
=
"2024-11-27 18:35:35.0"
;
LocalDateTime
localDateTime
=
LocalDateTime
.
parse
(
aa
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/initTime"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"初始时间"
,
notes
=
"初始时间"
)
...
...
@@ -199,21 +203,28 @@ public class TestController extends BaseController {
log
.
info
(
"================电子合同时间更新完成========================="
);
}
private
Date
dealHour
(
Object
dateString
)
{
if
(
Objects
.
isNull
(
dateString
))
{
if
(
Objects
.
isNull
(
dateString
))
{
return
null
;
}
// 转换为 LocalDateTime
LocalDateTime
localDateTime
=
LocalDateTime
.
parse
(
String
.
valueOf
(
dateString
)
);
// 转换为 Dat
e
Date
date
=
Date
.
from
(
localDateTime
.
atZone
(
ZoneId
.
systemDefault
()).
toInstant
(
));
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
date
)
;
try
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss.S"
);
// 转换为 LocalDateTim
e
// LocalDateTime localDateTime = LocalDateTime.parse(String.valueOf(dateString
));
// 转换为 Date
Date
date
=
null
;
// 加8小时
calendar
.
add
(
Calendar
.
HOUR_OF_DAY
,
8
);
return
calendar
.
getTime
();
date
=
format
.
parse
(
String
.
valueOf
(
dateString
));
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
date
);
// 加8小时
calendar
.
add
(
Calendar
.
HOUR_OF_DAY
,
8
);
return
calendar
.
getTime
();
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
}
private
void
dealKcTime
()
{
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-kingbase8.properties
View file @
6fd00f23
...
...
@@ -272,3 +272,5 @@ 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
\ 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