Commit 57157a55 by 李辅翼

v14

parent 81334198
...@@ -224,7 +224,7 @@ public class VehicleImpl implements Vehicle { ...@@ -224,7 +224,7 @@ public class VehicleImpl implements Vehicle {
put.addColumn("info".getBytes(), "hpzl".getBytes(), (hpzl == null ? "null" : hpzl).getBytes()); put.addColumn("info".getBytes(), "hpzl".getBytes(), (hpzl == null ? "null" : hpzl).getBytes());
put.addColumn("info".getBytes(), "gxsj".getBytes(), (gxsj == null ? "null" : gxsj).getBytes()); put.addColumn("info".getBytes(), "gxsj".getBytes(), (gxsj == null ? "null" : gxsj).getBytes());
byte[] bytes = SqlHelp.blobToByteZp(zp); byte[] bytes = SqlHelp.blobToByteZp(zp);
String picUrl = uploadFile(bytes, xh + ".jpeg"); String picUrl = uploadFile(bytes, xh + ".jpeg",xh);
put.addColumn("info".getBytes(), "picUrl".getBytes(), picUrl.getBytes()); put.addColumn("info".getBytes(), "picUrl".getBytes(), picUrl.getBytes());
vehPicTable.put(put); vehPicTable.put(put);
} }
...@@ -235,13 +235,14 @@ public class VehicleImpl implements Vehicle { ...@@ -235,13 +235,14 @@ public class VehicleImpl implements Vehicle {
} }
private String uploadFile(byte[] file, String fileName) { private String uploadFile(byte[] file, String fileName,String xh) {
String url; String url;
try { try {
url = fileService.uploadFile(file, fileName); url = fileService.uploadFile(file, fileName);
} catch (Exception e) { } catch (Exception e) {
logger.info("---------------"+xh);
e.printStackTrace(); e.printStackTrace();
url = uploadFile(file, fileName); url = uploadFile(file, fileName,xh);
} }
return url; return url;
} }
......
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