Merge branch 'open_bohai' into 'master'
上传照片添加时间 See merge request !468
This commit is contained in:
@@ -1845,7 +1845,7 @@ public class DataUtil {
|
||||
//
|
||||
// System.out.println(FourUpSixInto("258.393", 2));
|
||||
|
||||
String href = encodePicUrl("63628191303c3f2682f4fbe6", "o", "upload");
|
||||
String href = encodePicUrl("635240149c21300bba5184e1", "o", "upload");
|
||||
String link = "http://static.fangjia.com/stc/fs/"+href;
|
||||
System.out.println(link);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.fangjia.dal.sql.model;
|
||||
import com.fangjia.dal.SqlEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@Entity
|
||||
@Table(name = "report_file_attach")
|
||||
@@ -14,6 +15,7 @@ public class ReportFileAttach implements SqlEntity {
|
||||
private Integer fileClass;//1:询价单 2:产证 3:房屋照片 4:其它附件 5:产调报告或权籍
|
||||
private String fileName;
|
||||
private String fileId;
|
||||
private Date dateCreated;
|
||||
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
@@ -79,4 +81,13 @@ public class ReportFileAttach implements SqlEntity {
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
@Column(name = "c_date")
|
||||
public Date getDateCreated() {
|
||||
return dateCreated;
|
||||
}
|
||||
|
||||
public void setDateCreated(Date dateCreated) {
|
||||
this.dateCreated = dateCreated;
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -1401,6 +1401,7 @@ public class WeiXinEvaluationController {
|
||||
reportFileAttach.setFileClass(model.getFileClass());
|
||||
reportFileAttach.setFileName(file.getOriginalFilename());
|
||||
reportFileAttach.setFileId(id);
|
||||
reportFileAttach.setDateCreated(new Date());
|
||||
reportFileAttachService.save(reportFileAttach);
|
||||
|
||||
fileDao.save(id,"upload","o", file.getBytes(), contentType);
|
||||
|
||||
Reference in New Issue
Block a user