Commit dcc9ce68 authored by zhengjiangtao's avatar zhengjiangtao

预案记录查询sql优化

parent 5dd83d20
...@@ -24,6 +24,8 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -24,6 +24,8 @@ import org.springframework.web.multipart.MultipartFile;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.*; import java.util.*;
@Service("fireStationService") @Service("fireStationService")
...@@ -196,7 +198,15 @@ public class FireStationServiceImpl implements IFireStationService { ...@@ -196,7 +198,15 @@ public class FireStationServiceImpl implements IFireStationService {
} catch (IOException e) { } catch (IOException e) {
throw new YeeException("上传图片失败"); throw new YeeException("上传图片失败");
} }
String photoFile = path + fileName;
String photoFile = "";
try{
photoFile = FasConstant.UPLOAD_ROOT_PATH + File.separator + FasConstant.UPLOAD_FIRESTATION_PATH +
File.separator + URLEncoder.encode(fireStation.getName(), "utf-8") + fileName;
} catch (UnsupportedEncodingException e){
throw new YeeException("字符转义失败 ");
}
if ( picture != null && picture != "") { if ( picture != null && picture != "") {
picture += "," + photoFile; picture += "," + photoFile;
} else { } else {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<dependency> <dependency>
<groupId>com.yeejoin</groupId> <groupId>com.yeejoin</groupId>
<artifactId>amos-component-rule</artifactId> <artifactId>amos-component-rule</artifactId>
<version>1.1.0-SNAPSHOT</version> <version>1.2.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
......
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