出具正式报告
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package com.fangjia.service.sql;
|
||||
|
||||
import com.fangjia.dal.sql.model.FormalReport;
|
||||
|
||||
public interface FormalReportService {
|
||||
|
||||
FormalReport findFormalReportById(long evaluationId);
|
||||
|
||||
void save(FormalReport formalReport);
|
||||
|
||||
void update(FormalReport formalReport);
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.fangjia.service.sql;
|
||||
|
||||
import com.fangjia.dal.QueryParam;
|
||||
import com.fangjia.dal.sql.fangjia.dao.FormalReportDao;
|
||||
import com.fangjia.dal.sql.model.FormalReport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class FormalReportServiceImpl implements FormalReportService {
|
||||
private FormalReportDao formalReportDao;
|
||||
|
||||
public FormalReportDao getFormalReportDao() {
|
||||
return formalReportDao;
|
||||
}
|
||||
|
||||
public void setFormalReportDao(FormalReportDao formalReportDao) {
|
||||
this.formalReportDao = formalReportDao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FormalReport findFormalReportById(long evaluationId) {
|
||||
List<QueryParam> params = new ArrayList<QueryParam>(1);
|
||||
params.add(new QueryParam("evaluationId", evaluationId));
|
||||
return formalReportDao.findFirstByParams(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(FormalReport formalReport) {
|
||||
formalReportDao.save(formalReport);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(FormalReport formalReport) {
|
||||
formalReportDao.update(formalReport);
|
||||
}
|
||||
}
|
||||
+2
@@ -10,4 +10,6 @@ public interface ReportFileAttachService {
|
||||
ReportFileAttach findFirstByParams(Integer evaluationId, String queryId, Integer userId, Integer fileClass, String fileName);
|
||||
|
||||
List<ReportFileAttach> findAllByParams(Integer evaluationId, String queryId, Integer userId);
|
||||
|
||||
List<ReportFileAttach> findHouseImage(Integer evaluationId, Integer fileClass);
|
||||
}
|
||||
|
||||
+8
@@ -42,4 +42,12 @@ public class ReportFileAttachServiceImpl implements ReportFileAttachService{
|
||||
params.add(new QueryParam("queryId", queryId));
|
||||
return reportFileAttachDao.findAllByParams(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ReportFileAttach> findHouseImage(Integer evaluationId, Integer fileClass) {
|
||||
List<QueryParam> params = new ArrayList<QueryParam>();
|
||||
params.add(new QueryParam("evaluationId", evaluationId));
|
||||
params.add(new QueryParam("fileClass", fileClass));
|
||||
return reportFileAttachDao.findAllByParams(params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user