Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zczlService
Overview
Overview
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
曹崟
zczlService
Commits
e7afc26a
Commit
e7afc26a
authored
Oct 28, 2021
by
dupengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
侦查指令导入 车辆布控
parent
9d1ec673
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
199 additions
and
40 deletions
+199
-40
src/main/java/com/founder/config/FilterConfig.java
+1
-1
src/main/java/com/founder/config/SchedulingConfig.java
+32
-0
src/main/java/com/founder/model/AppNotificationVO.java
+9
-0
src/main/java/com/founder/seq/service/AnjianSeqService.java
+2
-0
src/main/java/com/founder/seq/service/AutoSeqService.java
+11
-0
src/main/java/com/founder/zczl/controller/ZczlController.java
+0
-0
src/main/java/com/founder/zczl/dao/ZczlDao.java
+5
-2
src/main/java/com/founder/zczl/service/IZczlService.java
+15
-0
src/main/java/com/founder/zczl/service/impl/ZczlService.java
+50
-0
src/main/resources/application-pro.properties
+15
-14
src/main/resources/mapper/ZczlMapper.xml
+25
-17
src/main/resources/static/word/export.docx
+0
-0
src/test/java/com/founder/ZczlServiceApplicationTests.java
+34
-6
No files found.
src/main/java/com/founder/config/FilterConfig.java
View file @
e7afc26a
...
@@ -16,7 +16,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
...
@@ -16,7 +16,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
excludePathPatterns
(
"/relogin"
,
"/reloginto"
,
"/css/**"
,
"/js/**"
,
"/img/**"
excludePathPatterns
(
"/relogin"
,
"/reloginto"
,
"/css/**"
,
"/js/**"
,
"/img/**"
,
"/refreshCodeCache"
,
"/loginFail"
,
"/login"
,
"/toGetZczlListYth"
,
,
"/refreshCodeCache"
,
"/loginFail"
,
"/login"
,
"/toGetZczlListYth"
,
"/queryAllzTreeData"
,
"/queryUnitCode"
,
"/queryTypeCode"
,
"/queryAllzTreeData"
,
"/queryUnitCode"
,
"/queryTypeCode"
,
"/queryZTreeDataByName"
"/queryZTreeDataByName"
,
"/receivedNewData"
);
);
}
}
...
...
src/main/java/com/founder/config/SchedulingConfig.java
0 → 100644
View file @
e7afc26a
package
com
.
founder
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.SchedulingConfigurer
;
import
org.springframework.scheduling.config.ScheduledTaskRegistrar
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
/*
* @Description TODO
* @Author du_pengfei
* @Date 2021/10/12
* @Version 1.0
*/
@Configuration
@EnableScheduling
public
class
SchedulingConfig
implements
SchedulingConfigurer
{
@Bean
public
ExecutorService
executor
(){
return
Executors
.
newScheduledThreadPool
(
5
);
}
@Override
public
void
configureTasks
(
ScheduledTaskRegistrar
registrar
)
{
registrar
.
setScheduler
(
executor
());
}
}
src/main/java/com/founder/model/AppNotificationVO.java
View file @
e7afc26a
...
@@ -42,6 +42,7 @@ public class AppNotificationVO {
...
@@ -42,6 +42,7 @@ public class AppNotificationVO {
public
String
vehicleheight
;
public
String
vehicleheight
;
public
String
vehiclelength
;
public
String
vehiclelength
;
public
String
wheelprintedpattern
;
public
String
wheelprintedpattern
;
public
String
deviceid
;
public
String
getNotificationId
()
{
public
String
getNotificationId
()
{
return
notificationId
;
return
notificationId
;
...
@@ -322,4 +323,12 @@ public class AppNotificationVO {
...
@@ -322,4 +323,12 @@ public class AppNotificationVO {
public
void
setWheelprintedpattern
(
String
wheelprintedpattern
)
{
public
void
setWheelprintedpattern
(
String
wheelprintedpattern
)
{
this
.
wheelprintedpattern
=
wheelprintedpattern
;
this
.
wheelprintedpattern
=
wheelprintedpattern
;
}
}
public
String
getDeviceid
()
{
return
deviceid
;
}
public
void
setDeviceid
(
String
deviceid
)
{
this
.
deviceid
=
deviceid
;
}
}
}
src/main/java/com/founder/seq/service/AnjianSeqService.java
View file @
e7afc26a
...
@@ -22,4 +22,6 @@ public interface AnjianSeqService {
...
@@ -22,4 +22,6 @@ public interface AnjianSeqService {
String
ngzbhzhFnVal
(
String
tablename
);
String
ngzbhzhFnVal
(
String
tablename
);
String
importZlbhFnVal
(
String
tableName
,
String
unitCode
);
}
}
src/main/java/com/founder/seq/service/AutoSeqService.java
View file @
e7afc26a
...
@@ -39,6 +39,17 @@ public class AutoSeqService implements AnjianSeqService {
...
@@ -39,6 +39,17 @@ public class AutoSeqService implements AnjianSeqService {
return
autoSeqDao
.
ngzbhzhFnVal
(
statMap
);
return
autoSeqDao
.
ngzbhzhFnVal
(
statMap
);
}
}
@Override
public
String
importZlbhFnVal
(
String
tableName
,
String
unitCode
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
HashMap
statMap
=
new
HashMap
();
statMap
.
put
(
"unitcode"
,
unitCode
);
statMap
.
put
(
"tblname"
,
tableName
);
statMap
.
put
(
"headstr"
,
getheadstr
(
tableName
));
statMap
.
put
(
"lrsj"
,
formatter
.
format
(
new
Date
()));
return
autoSeqDao
.
ngzbhzhFnVal
(
statMap
);
}
private
String
getheadstr
(
String
tblname
){
private
String
getheadstr
(
String
tblname
){
Sequence
sequenceconf
=
(
Sequence
)
SequenceConfig
.
loadSequenceConfig
().
get
(
tblname
);
Sequence
sequenceconf
=
(
Sequence
)
SequenceConfig
.
loadSequenceConfig
().
get
(
tblname
);
if
(
sequenceconf
==
null
){
if
(
sequenceconf
==
null
){
...
...
src/main/java/com/founder/zczl/controller/ZczlController.java
View file @
e7afc26a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/java/com/founder/zczl/dao/ZczlDao.java
View file @
e7afc26a
...
@@ -2,6 +2,7 @@ package com.founder.zczl.dao;
...
@@ -2,6 +2,7 @@ package com.founder.zczl.dao;
import
com.founder.model.*
;
import
com.founder.model.*
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -161,11 +162,13 @@ public interface ZczlDao {
...
@@ -161,11 +162,13 @@ public interface ZczlDao {
List
<
String
>
queryAllUserIdByYwlx
(
String
startId
);
List
<
String
>
queryAllUserIdByYwlx
(
String
startId
);
List
<
AppNotificationVO
>
queryNotification
(
String
id
);
AppNotificationVO
queryNotification
(
@Param
(
"id"
)
String
id
);
List
<
TbAppSubimageinfoobject
>
queryImageInfo
(
String
id
);
List
<
TbAppSubimageinfoobject
>
queryImageInfo
(
String
id
);
int
updateNotification
(
String
id
);
int
updateNotification
(
@Param
(
"id"
)
String
id
);
List
<
String
>
queryNotSeedNotification
();
String
queryUnitCode
(
@Param
(
"subCode"
)
String
subCode
);
}
}
src/main/java/com/founder/zczl/service/IZczlService.java
View file @
e7afc26a
...
@@ -149,4 +149,19 @@ public interface IZczlService {
...
@@ -149,4 +149,19 @@ public interface IZczlService {
String
doQxfp
(
TbYwZczlSpqx
tbYwZczlSpqx
);
String
doQxfp
(
TbYwZczlSpqx
tbYwZczlSpqx
);
AppNotificationVO
queryNotification
(
String
str
);
List
<
TbAppSubimageinfoobject
>
queryImageInfo
(
String
notificationId
);
int
updateNotification
(
String
id
);
void
importZczl
(
TbYwZczl
tbYwZczl
);
String
getXxzjbhFnVal
(
String
unitCode
);
void
saveImportZczlfj
(
TbYwZczlFj
fjxx
);
List
<
String
>
queryNotSeedNotification
();
String
queryUnitCode
(
String
subCode
);
}
}
src/main/java/com/founder/zczl/service/impl/ZczlService.java
View file @
e7afc26a
...
@@ -883,6 +883,14 @@ public class ZczlService implements IZczlService {
...
@@ -883,6 +883,14 @@ public class ZczlService implements IZczlService {
return
autoSeqDao
.
xxzjbhFnVal
(
statMap
);
return
autoSeqDao
.
xxzjbhFnVal
(
statMap
);
}
}
public
String
xxzjbhFnVal
(
String
unitCode
){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
HashMap
statMap
=
new
HashMap
();
statMap
.
put
(
"unitcode"
,
unitCode
);
statMap
.
put
(
"lrsj"
,
formatter
.
format
(
new
Date
()));
return
autoSeqDao
.
xxzjbhFnVal
(
statMap
);
}
public
String
ngzbhzhFnVal
(
String
tblname
){
public
String
ngzbhzhFnVal
(
String
tblname
){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
HashMap
statMap
=
new
HashMap
();
HashMap
statMap
=
new
HashMap
();
...
@@ -1917,4 +1925,46 @@ public class ZczlService implements IZczlService {
...
@@ -1917,4 +1925,46 @@ public class ZczlService implements IZczlService {
}
}
//审批权限查询与设置--end
//审批权限查询与设置--end
@Override
public
AppNotificationVO
queryNotification
(
String
str
)
{
return
zczlDao
.
queryNotification
(
str
);
}
@Override
public
List
<
TbAppSubimageinfoobject
>
queryImageInfo
(
String
notificationId
)
{
return
zczlDao
.
queryImageInfo
(
notificationId
);
}
@Override
public
int
updateNotification
(
String
id
)
{
return
zczlDao
.
updateNotification
(
id
);
}
@Override
public
void
importZczl
(
TbYwZczl
tbYwZczl
)
{
zczlDao
.
doAddZczlxx
(
tbYwZczl
);
}
@Override
public
String
getXxzjbhFnVal
(
String
unitCode
)
{
return
xxzjbhFnVal
(
unitCode
);
}
@Override
public
void
saveImportZczlfj
(
TbYwZczlFj
fjxx
)
{
zczlDao
.
saveZczlfj
(
fjxx
);
}
@Override
public
List
<
String
>
queryNotSeedNotification
()
{
return
zczlDao
.
queryNotSeedNotification
();
}
@Override
public
String
queryUnitCode
(
String
subCode
)
{
return
zczlDao
.
queryUnitCode
(
subCode
);
}
}
}
src/main/resources/application-pro.properties
View file @
e7afc26a
spring.datasource.url
=
jdbc:oracle:thin:@
47.92.129.99:1600:ORCL
spring.datasource.url
=
jdbc:oracle:thin:@
10.86.64.17:1521:btxz
spring.datasource.username
=
XZXT
spring.datasource.username
=
XZXT
spring.datasource.password
=
XZXT
spring.datasource.password
=
XZXT
spring.datasource.driver-class-name
=
oracle.jdbc.driver.OracleDriver
spring.datasource.driver-class-name
=
oracle.jdbc.driver.OracleDriver
...
@@ -9,27 +9,27 @@ logging.level.org.spring.springboot.dao=debug
...
@@ -9,27 +9,27 @@ logging.level.org.spring.springboot.dao=debug
#redis config
#redis config
#\u65B0\u7586
#\u65B0\u7586
spring.redis.host
=
1
27.0.0.1
spring.redis.host
=
1
0.20.47.137
#\u5185\u8499
#\u5185\u8499
#redis.host=10.100.17.124
#redis.host=10.100.17.124
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
spring.redis.password
=
xzxt#65
spring.jmx.enabled
=
false
spring.jmx.enabled
=
false
#权
限
#Ȩ
��
qxUrl
=
http://qx.xzxt.
nm
:9044
qxUrl
=
http://qx.xzxt.
bt
:9044
domain
=
.xzxt.
nm
domain
=
.xzxt.
bt
#
综合应用
#
�ۺ�Ӧ��
zhyyPath
=
http://zhyy.xzxt.
nm
:7001
zhyyPath
=
http://zhyy.xzxt.
bt
:7001
ssdw
=
6
5
ssdw
=
6
6
#
侦查指令
#
���ָ��
zczlUrl
=
http://localhost:9022
zczlUrl
=
http://localhost:9022
#
案件侦办
#
�������
asjZbUrl
=
http://192.168.0.100:9100
asjZbUrl
=
http://192.168.0.100:9100
#
案件串并
#
��������
asjCbUrl
=
http://localhost:9013
asjCbUrl
=
http://localhost:9013
#
侦查平台
#
���ƽ̨
zcptUrl
=
http://192.168.0.108:9100
zcptUrl
=
http://192.168.0.108:9100
#
在逃
平台
#
����ƽ̨
ztptUrl
=
http://192.168.0.108:9100
ztptUrl
=
http://192.168.0.108:9100
\ No newline at end of file
src/main/resources/mapper/ZczlMapper.xml
View file @
e7afc26a
...
@@ -1857,18 +1857,18 @@
...
@@ -1857,18 +1857,18 @@
select n.TITLE title,
select n.TITLE title,
n.NOTIFICATIONID notificationId,
n.NOTIFICATIONID notificationId,
m.BRANDRELIABILITY brandreliability,
m.BRANDRELIABILITY brandreliability,
m.CALLING
calling,
case when m.CALLING = 0 then '未打电话' when m.calling = 1 then '打电话中' end
calling,
m.CAROFVEHICLE carofvehicle,
m.CAROFVEHICLE carofvehicle,
m.NUMOFPASSENGER numofpassenger,
m.NUMOFPASSENGER numofpassenger,
m.DIRECTION direction,
m.DIRECTION direction,
m.SAFETYBELT
safetybelt,
case when m.SAFETYBELT = 0 then '未系' when m.SAFETYBELT = 1 then '有系' end
safetybelt,
m.HASPLATE
hasplate,
case when m.HASPLATE = '0' then '无' when m.HASPLATE = 1 then '有' end
hasplate,
m.HITMARKINFO hitmarkinfo,
m.HITMARKINFO hitmarkinfo,
m.ISALTERED
isaltered,
case when m.ISALTERED = '0' then '否' when m.ISALTERED = '1' then '是' end
isaltered,
m.ISCOVERED
iscovered,
case when m.ISCOVERED = '0' then '否' when m.ISCOVERED = '1' then '是' end
iscovered,
m.ISDECKED
isdecked,
case when m.ISDECKED = '0' then '否' when m.ISDECKED = '1' then '是' end
isdecked,
m.ISMODIFIED
ismodified,
case when m.ISMODIFIED = '0' then '否' when m.ISMODIFIED = '1' then '是' end
ismodified,
m.ISSUSPICIOUS
issuspicious,
case when m.ISSUSPICIOUS = '0' then '否' when m.ISSUSPICIOUS = '1' then '是'
issuspicious,
m.MOTORVEHICLEID motorvehicleid,
m.MOTORVEHICLEID motorvehicleid,
m.NAMEOFPASSEDROAD nameofpassedroad,
m.NAMEOFPASSEDROAD nameofpassedroad,
to_char(to_date(m.PASSDAY, 'yyyyMMdd hh24miss'), 'yyyy-MM-dd hh24:mi:ss') passday,
to_char(to_date(m.PASSDAY, 'yyyyMMdd hh24miss'), 'yyyy-MM-dd hh24:mi:ss') passday,
...
@@ -1888,13 +1888,13 @@
...
@@ -1888,13 +1888,13 @@
m.VEHICLECOLOR vehiclecolor,
m.VEHICLECOLOR vehiclecolor,
m.VEHICLEHEIGHT vehicleheight,
m.VEHICLEHEIGHT vehicleheight,
m.VEHICLELENGTH vehiclelength,
m.VEHICLELENGTH vehiclelength,
m.WHEELPRINTEDPATTERN wheelprintedpattern
m.WHEELPRINTEDPATTERN wheelprintedpattern,
m.DEVICEID deviceid
from TB_APP_NOTIFICATION n left join TB_APP_MOTORVEHICLEOBJECT m on n.NOTIFICATIONID = m.NOTIFICATIONID
from TB_APP_NOTIFICATION n left join TB_APP_MOTORVEHICLEOBJECT m on n.NOTIFICATIONID = m.NOTIFICATIONID
where n.flag = '0'
where 1=1 and send_zczl_flag = 0
<if
test=
"id != null and id != '' "
>
and n.NOTIFICATIONID = #{id, jdbcType=VARCHAR}
and n.NOTIFICATIONID = #{id, jdbcType=VARCHAR}
</if>
</select>
</select>
<select
id=
"queryImageInfo"
resultType=
"com.founder.model.TbAppSubimageinfoobject"
>
<select
id=
"queryImageInfo"
resultType=
"com.founder.model.TbAppSubimageinfoobject"
>
...
@@ -1902,16 +1902,24 @@
...
@@ -1902,16 +1902,24 @@
WIDTH width,
WIDTH width,
STORAGEPATH storagepath
STORAGEPATH storagepath
from TB_APP_SUBIMAGEINFOOBJECT
from TB_APP_SUBIMAGEINFOOBJECT
<if
test=
"id != null and id != '' "
>
where 1=1
and
n.
NOTIFICATIONID = #{id, jdbcType=VARCHAR}
and NOTIFICATIONID = #{id, jdbcType=VARCHAR}
</if>
</select>
</select>
<update
id=
"updateNotification"
>
<update
id=
"updateNotification"
>
update TB_APP_NOTIFICATION set
flag = '1'
update TB_APP_NOTIFICATION set
send_zczl_flag = 1
where NOTIFICATIONID = #{id, jdbcType=VARCHAR}
where NOTIFICATIONID = #{id, jdbcType=VARCHAR}
</update>
</update>
<select
id=
"queryNotSeedNotification"
resultType=
"java.lang.String"
>
select NOTIFICATIONID from TB_APP_NOTIFICATION where send_zczl_flag = 0
</select>
<select
id=
"queryUnitCode"
resultType=
"java.lang.String"
>
select code from sys_dictitem where groupid = 'CODE_XZUNIT' and (code like '66__00050000' or code like '66__00040000') and code like #{subCode, jdbcType=VARCHAR} || '%'
</select>
...
...
src/main/resources/word/export.docx
→
src/main/resources/
static/
word/export.docx
View file @
e7afc26a
No preview for this file type
src/test/java/com/founder/ZczlServiceApplicationTests.java
View file @
e7afc26a
...
@@ -3,17 +3,20 @@ package com.founder;
...
@@ -3,17 +3,20 @@ package com.founder;
import
cn.afterturn.easypoi.entity.ImageEntity
;
import
cn.afterturn.easypoi.entity.ImageEntity
;
import
com.founder.model.AppNotificationVO
;
import
com.founder.model.AppNotificationVO
;
import
com.founder.util.WordUtil
;
import
com.founder.util.WordUtil
;
import
com.founder.zczl.controller.ZczlController
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
@RunWith
(
SpringRunner
.
class
)
//
@RunWith(SpringRunner.class)
@SpringBootTest
//
@SpringBootTest
public
class
ZczlServiceApplicationTests
{
public
class
ZczlServiceApplicationTests
{
@Test
@Test
...
@@ -25,14 +28,20 @@ public class ZczlServiceApplicationTests {
...
@@ -25,14 +28,20 @@ public class ZczlServiceApplicationTests {
ArrayList
<
ImageEntity
>
imageEntities
=
new
ArrayList
<>();
ArrayList
<
ImageEntity
>
imageEntities
=
new
ArrayList
<>();
map
.
put
(
"title"
,
"蒙A12345"
);
map
.
put
(
"title"
,
"蒙A12345"
);
map
.
put
(
"brandreliability"
,
"100"
);
map
.
put
(
"brandreliability"
,
"100"
);
//map.put("calling", null);
imageEntities
.
add
(
new
ImageEntity
(
WordUtil
.
image2byte
(
"https://t7.baidu.com/it/u=2531125946,3055766435&fm=193&f=GIF"
),
200
,
100
));
//ArrayList<ImageEntity> imageEntities1 = new ArrayList<>();
imageEntities
.
add
(
new
ImageEntity
(
WordUtil
.
image2byte
(
"https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"
),
200
,
100
));
//imageEntities1.add(new ImageEntity(WordUtil.image2byte("https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"), 200, 100));
imageEntities
.
add
(
new
ImageEntity
(
WordUtil
.
image2byte
(
"https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"
),
200
,
100
));
map
.
put
(
"storageurl5"
,
new
ImageEntity
(
WordUtil
.
image2byte
(
"https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"
),
200
,
100
));
imageEntities
.
add
(
new
ImageEntity
(
WordUtil
.
image2byte
(
"https://192.168.3.1/ts"
),
200
,
100
));
//imageEntities.add(new ImageEntity(WordUtil.image2byte("https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"), 200, 100));
//imageEntities.add(new ImageEntity(WordUtil.image2byte("https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF"), 200, 100));
map
.
put
(
"pictures"
,
imageEntities
);
map
.
put
(
"pictures"
,
imageEntities
);
WordUtil
.
exportWord
(
"src/main/resources/word/export.docx"
,
"src/main/resources/temp
"
,
"aaa
.docx"
,
map
);
WordUtil
.
exportWord
(
"src/main/resources/word/export.docx"
,
"src/main/resources/temp
/"
,
"aab
.docx"
,
map
);
...
@@ -44,5 +53,24 @@ public class ZczlServiceApplicationTests {
...
@@ -44,5 +53,24 @@ public class ZczlServiceApplicationTests {
}
}
@Test
public
void
getPath
(){
//System.out.println(ZczlController.getRootPath());
///Users/mac/zczlService/src/test/java/com/founder/ZczlServiceApplicationTests.java
String
classPath
=
Thread
.
currentThread
().
getContextClassLoader
()
.
getResource
(
""
).
getPath
();
System
.
out
.
println
(
classPath
);
}
@Test
public
void
dateTime
(){
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy/MM/dd/hh:mm:ss"
);
System
.
out
.
println
(
LocalDateTime
.
now
().
format
(
formatter
));
String
s
=
"slfsdkfj12345"
.
substring
(-
5
);
System
.
out
.
println
(
s
);
}
}
}
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