Commit 57157a55 by 李辅翼

v14

parent 81334198
......@@ -224,7 +224,7 @@ public class VehicleImpl implements Vehicle {
put.addColumn("info".getBytes(), "hpzl".getBytes(), (hpzl == null ? "null" : hpzl).getBytes());
put.addColumn("info".getBytes(), "gxsj".getBytes(), (gxsj == null ? "null" : gxsj).getBytes());
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());
vehPicTable.put(put);
}
......@@ -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;
try {
url = fileService.uploadFile(file, fileName);
} catch (Exception e) {
logger.info("---------------"+xh);
e.printStackTrace();
url = uploadFile(file, fileName);
url = uploadFile(file, fileName,xh);
}
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