Browse Source

Merge remote-tracking branch 'origin/dev'

master
yinzuomei 4 years ago
parent
commit
7384e16917
  1. 2
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/dao/evaluationindex/screen/ScreenProjectCategoryOrgDailyDao.java
  2. 2
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/ScreenProjectServiceImpl.java
  3. 8
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenProjectCategoryOrgDailyDao.xml

2
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/dao/evaluationindex/screen/ScreenProjectCategoryOrgDailyDao.java

@ -38,5 +38,5 @@ public interface ScreenProjectCategoryOrgDailyDao {
* @param agencyId * @param agencyId
* @return java.util.List<com.epmet.dto.result.screen.CategoryAnalysisResultDTO> * @return java.util.List<com.epmet.dto.result.screen.CategoryAnalysisResultDTO>
*/ */
List<CategoryAnalysisResultDTO> selectCategoryAnalysis(@Param("agencyId") String agencyId); List<CategoryAnalysisResultDTO> selectCategoryAnalysis(@Param("agencyId") String agencyId,@Param("customerId")String customerId);
} }

2
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/ScreenProjectServiceImpl.java

@ -112,6 +112,6 @@ public class ScreenProjectServiceImpl implements ScreenProjectService {
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true) @DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override @Override
public List<CategoryAnalysisResultDTO> categoryAnalysis(String customerId, CategoryAnalysisFormDTO formDTO) { public List<CategoryAnalysisResultDTO> categoryAnalysis(String customerId, CategoryAnalysisFormDTO formDTO) {
return screenProjectCategoryOrgDailyDao.selectCategoryAnalysis(formDTO.getAgencyId()); return screenProjectCategoryOrgDailyDao.selectCategoryAnalysis(formDTO.getAgencyId(),customerId);
} }
} }

8
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenProjectCategoryOrgDailyDao.xml

@ -9,7 +9,9 @@
M.PROJECT_TOTAL AS projectTotal M.PROJECT_TOTAL AS projectTotal
FROM screen_project_category_org_daily m FROM screen_project_category_org_daily m
left join customer_project_category_dict d left join customer_project_category_dict d
on(m.CATEGORY_CODE=D.CATEGORY_CODE AND D.DEL_FLAG='0') on(m.CATEGORY_CODE=D.CATEGORY_CODE
AND D.DEL_FLAG='0'
and d.CUSTOMER_ID=#{customerId})
WHERE M.DEL_FLAG = '0' WHERE M.DEL_FLAG = '0'
AND M.ORG_ID = #{agencyId} AND M.ORG_ID = #{agencyId}
AND M.DATE_ID = ( AND M.DATE_ID = (
@ -20,11 +22,13 @@
where where
del_flag = '0' del_flag = '0'
and ORG_ID = #{agencyId} and ORG_ID = #{agencyId}
and CUSTOMER_ID=#{customerId}
order by order by
date_id desc, date_id desc,
created_time desc created_time desc
limit 1 limit 1
) )
ORDER BY M.CATEGORY_CODE ASC ORDER BY M.PROJECT_TOTAL desc,D.CATEGORY_NAME asc
limit 20
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save