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
checkpoint_latitude = #{checkpointLatitude},
</if>
<if test="checkpointLongitude != 0">
checkpoint_longitude = #{checkpointLongitude}
checkpoint_longitude = #{checkpointLongitude},
</if>
inster_time=now(),update_time=now()
</set>
where id = #{id}
</update>
<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)
values (#{cmptId},#{roadId},#{checkpointId},#{checkpointName},#{checkpointDistance},#{checkpointGpsName},#{checkpointLatitude},#{checkpointLongitude},0)
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,now(),now())
</insert>
</mapper>
\ No newline at end of file
......@@ -93,12 +93,15 @@ public class ScanController {
Cmpt cmpt=cmptService.queryCmptBycmptId(cmptId);
String logostr=cmpt.getLogo();
HttpURLConnection httpUrl = null;
BufferedImage logoimg=null;
try {
URL url = new URL(logostr);
httpUrl = (HttpURLConnection) url.openConnection();
httpUrl.connect();
InputStream in=httpUrl.getInputStream();
BufferedImage logoimg=ImageIO.read(in);
if(logostr!=null && logostr.isEmpty()) {
URL url = new URL(logostr);
httpUrl = (HttpURLConnection) url.openConnection();
httpUrl.connect();
InputStream in = httpUrl.getInputStream();
logoimg = ImageIO.read(in);
}
//导出zip文件的名字
String zipName=new String(roadName.getBytes(),"ISO-8859-1") + ".zip";
//定义返回zip文件的输出流格式
......
......@@ -51,7 +51,7 @@ server.url=http://testzs.geexek.com.cn/
server.url.https=https://testzs.geexek.com.cn/
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.servlet.multipart.max-file-size=10Mb
spring.servlet.multipart.max-file-size=1500Mb
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-request-size=50Mb
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