Commit 00f58166 authored by sunyuhua's avatar sunyuhua

1增加经度纬度的更新和插入时间

2logo没有的情况下,可以下载二维码
parent f133f5f5
...@@ -23,14 +23,15 @@ select id as Id,cmpt_id as cmptId, road_id as roadId,checkpoint_id as checkpoint ...@@ -23,14 +23,15 @@ select id as Id,cmpt_id as cmptId, road_id as roadId,checkpoint_id as checkpoint
checkpoint_latitude = #{checkpointLatitude}, checkpoint_latitude = #{checkpointLatitude},
</if> </if>
<if test="checkpointLongitude != 0"> <if test="checkpointLongitude != 0">
checkpoint_longitude = #{checkpointLongitude} checkpoint_longitude = #{checkpointLongitude},
</if> </if>
inster_time=now(),update_time=now()
</set> </set>
where id = #{id} where id = #{id}
</update> </update>
<insert id="save" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> <insert id="save" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
insert into gk_roads_gps_checkpoint_map(cmpt_id,road_id ,checkpoint_id,checkpoint_name,checkpoint_distance,checkpoint_gps_name ,checkpoint_latitude,checkpoint_longitude,is_delete) insert into gk_roads_gps_checkpoint_map(cmpt_id,road_id ,checkpoint_id,checkpoint_name,checkpoint_distance,checkpoint_gps_name ,checkpoint_latitude,checkpoint_longitude,is_delete,inster_time,update_time)
values (#{cmptId},#{roadId},#{checkpointId},#{checkpointName},#{checkpointDistance},#{checkpointGpsName},#{checkpointLatitude},#{checkpointLongitude},0) values (#{cmptId},#{roadId},#{checkpointId},#{checkpointName},#{checkpointDistance},#{checkpointGpsName},#{checkpointLatitude},#{checkpointLongitude},0,now(),now())
</insert> </insert>
</mapper> </mapper>
\ No newline at end of file
...@@ -93,12 +93,15 @@ public class ScanController { ...@@ -93,12 +93,15 @@ public class ScanController {
Cmpt cmpt=cmptService.queryCmptBycmptId(cmptId); Cmpt cmpt=cmptService.queryCmptBycmptId(cmptId);
String logostr=cmpt.getLogo(); String logostr=cmpt.getLogo();
HttpURLConnection httpUrl = null; HttpURLConnection httpUrl = null;
BufferedImage logoimg=null;
try { try {
if(logostr!=null && logostr.isEmpty()) {
URL url = new URL(logostr); URL url = new URL(logostr);
httpUrl = (HttpURLConnection) url.openConnection(); httpUrl = (HttpURLConnection) url.openConnection();
httpUrl.connect(); httpUrl.connect();
InputStream in=httpUrl.getInputStream(); InputStream in = httpUrl.getInputStream();
BufferedImage logoimg=ImageIO.read(in); logoimg = ImageIO.read(in);
}
//导出zip文件的名字 //导出zip文件的名字
String zipName=new String(roadName.getBytes(),"ISO-8859-1") + ".zip"; String zipName=new String(roadName.getBytes(),"ISO-8859-1") + ".zip";
//定义返回zip文件的输出流格式 //定义返回zip文件的输出流格式
......
...@@ -51,7 +51,7 @@ server.url=http://testzs.geexek.com.cn/ ...@@ -51,7 +51,7 @@ server.url=http://testzs.geexek.com.cn/
server.url.https=https://testzs.geexek.com.cn/ server.url.https=https://testzs.geexek.com.cn/
spring.redis.cluster.max-redirects=3 spring.redis.cluster.max-redirects=3
spring.redis.cluster.nodes=172.16.214.235:7001,172.16.214.235:7002,172.16.214.235:7003 spring.redis.cluster.nodes=172.16.214.235:7001,172.16.214.235:7002,172.16.214.235:7003
spring.servlet.multipart.max-file-size=10Mb spring.servlet.multipart.max-file-size=1500Mb
spring.servlet.multipart.enabled=true spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-request-size=50Mb spring.servlet.multipart.max-request-size=50Mb
spring.application.name=micro-gksite spring.application.name=micro-gksite
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment