Browse Source

大屏接口修改

feature/dangjian
wanggongfeng 3 years ago
parent
commit
4ac3cfa857
  1. 1
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java
  2. 6
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

1
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java

@ -3968,6 +3968,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
Integer elseValue = 0; Integer elseValue = 0;
for(CategoryAnalysisPieResultDTO dto : list){ for(CategoryAnalysisPieResultDTO dto : list){
if(cityCompre.contains(dto.getName())){ if(cityCompre.contains(dto.getName())){
dto.setName(dto.getName().replace("城市综合-",""));
resultList.add(dto); resultList.add(dto);
}else{ }else{
elseValue += Integer.parseInt(dto.getValue()); elseValue += Integer.parseInt(dto.getValue());

6
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

@ -2432,9 +2432,9 @@
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO">
select select
DATE_FORMAT(item.CREATED_TIME,'%Y-%m') as time, DATE_FORMAT(item.CREATED_TIME,'%Y-%m') as time,
count(item.EVALUATION_SCORE = 0 or null) as bmy, ROUND(count(item.EVALUATION_SCORE = 0 or null) / count(item.ID) * 100,1) as bmy,
count(item.EVALUATION_SCORE = 1 or null) as jbmy, ROUND(count(item.EVALUATION_SCORE = 1 or null) / count(item.ID) * 100,1) as jbmy,
count(item.EVALUATION_SCORE = 2 or null) as fcmy ROUND(count(item.EVALUATION_SCORE = 2 or null) / count(item.ID) * 100,1) as fcmy
from epdc_item item from epdc_item item
where item.DEL_FLAG = '0' where item.DEL_FLAG = '0'
and item.IS_PEOPLE = '1' and item.IS_PEOPLE = '1'

Loading…
Cancel
Save