出具正式报告

This commit is contained in:
2021-11-20 18:23:48 +08:00
parent 59fc0b0fee
commit be5497a579
14 changed files with 354 additions and 17 deletions
@@ -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);
}
@@ -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);
}
}
@@ -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);
}
@@ -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);
}
}