50debe9a 张雷

运营考核分析接口修改

1 个父辈 7d67ab66
......@@ -4,6 +4,7 @@ import com.skua.modules.dataAnalysis.vo.ArchivesWarnVO;
import com.skua.modules.dataAnalysis.vo.EquipAlarmVO;
import com.skua.modules.dataAnalysis.vo.EquipRunTimeVO;
import com.skua.modules.dataAnalysis.vo.EquipWarnVO;
import com.skua.tool.annotation.Anonymous;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -27,6 +28,7 @@ public interface FactoryOperateCenterMapper {
List<Map<String, String>> getReportCount(@Param("departId") String departId, @Param("month") String month,
@Param("reportName") String reportName);
@Anonymous
Map<String, Object> getSdyData(@Param("view2119") String view2119, @Param("view3a24") String view3a24,
@Param("departId") String departId, @Param("dateTime") String dateTime);
}
......
......@@ -158,6 +158,11 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
nclslMap.put("nmbTb", df.format((yearClslMb-yearTbClslMb)/yearClslMb));
nclslMap.put("nwcd", df.format(100*yearClsl/yearClslMb));
nclslMap.put("nwcdTb", "1");
if(yearClslMb == 0.00){
nclslMap.put("wcbfb", "0");
nclslMap.put("nmbTb", "0");
nclslMap.put("nwcd", "0");
}
map.put("yclsl",new HashMap<>());
Map<String, Object> yclslMap = new HashMap<>();
......@@ -167,6 +172,11 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
yclslMap.put("ymbTb", "0");
yclslMap.put("ywcd", df.format(100*monthClsl/(yearClslMb/12)));
yclslMap.put("ywcdTb", "0");
if(yearClslMb == 0.00){
yclslMap.put("wcbfb", "0");
yclslMap.put("ymb", "0");
yclslMap.put("ywcd", "0");
}
map.put("ndsdh",new HashMap<>());
Map<String, Object> ndsdhMap = new HashMap<>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!