国际化新增default_request 默认来函
优化首页统计,避免空情况出现。 部分业务来函为默认来函,展示默认来函
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.nis.web.dao.configuration.statistics;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@@ -14,9 +15,9 @@ import com.nis.web.dao.MyBatisDao;
|
||||
|
||||
@MyBatisDao
|
||||
public interface ConfigureStatisticsDao {
|
||||
public List<Object[]> getConfigStateStatistics( );
|
||||
public List<Object[]> getConfigStatisticTime();
|
||||
public List<Object[]> getRequestStatisticTime();
|
||||
public List<Object[]> getRequestStateStatistics(@Param("requestList")List<RequestInfo> requestList,@Param("serviceList")List<FunctionServiceDict> serviceList) ;
|
||||
public List<Object[]> getConfigStateStatistics(@Param("statisticTime")String statisticTime);
|
||||
public Date getConfigStatisticTime();
|
||||
public Date getRequestStatisticTime();
|
||||
public List<Object[]> getRequestStateStatistics(@Param("requestList")List<RequestInfo> requestList,@Param("serviceList")List<FunctionServiceDict> serviceList,@Param("statisticTime")String statisticTime) ;
|
||||
public Integer getEffectiveCfgNum(@Param("serviceId")Integer serviceId);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,10 @@
|
||||
sum(case when c.cfg_state =3 then 1 else 0 end) as cancle_approved,
|
||||
sum(case when c.cfg_state =0 then 1 else 0 end) as created,
|
||||
sum(case when c.cfg_state =-1 then 1 else 0 end) as deleted
|
||||
from (select distinct cfg_state,service_id,compile_id from cfg_num_statistics) c
|
||||
from (
|
||||
select distinct cfg_state,service_id,compile_id from cfg_num_statistics
|
||||
where statistic_time = #{statisticTime}
|
||||
) c
|
||||
group by service_id;
|
||||
</select>
|
||||
|
||||
@@ -18,22 +21,18 @@
|
||||
<foreach item="serivice" collection="serviceList" separator=",">
|
||||
sum(case when c.service_id =${serivice.serviceId} then 1 else 0 end) as ${serivice.serviceName}
|
||||
</foreach>
|
||||
from (select distinct service_id,request_id,compile_id from request_num_statistics) c
|
||||
where request_id in
|
||||
<foreach item="requestInfo" collection="requestList" separator="," open="(" close=")">
|
||||
${requestInfo.id}
|
||||
</foreach>
|
||||
from (select distinct service_id,request_id,compile_id from request_num_statistics
|
||||
where statistic_time =#{statisticTime}
|
||||
) c
|
||||
group by request_id
|
||||
</select>
|
||||
<select id="getConfigStatisticTime" resultType="java.util.LinkedHashMap">
|
||||
select statistic_time
|
||||
<select id="getConfigStatisticTime" resultType="java.util.Date">
|
||||
select min(statistic_time) statistic_time
|
||||
from cfg_num_statistics c
|
||||
order by statistic_time asc
|
||||
</select>
|
||||
<select id="getRequestStatisticTime" resultType="java.util.LinkedHashMap">
|
||||
select statistic_time
|
||||
<select id="getRequestStatisticTime" resultType="java.util.Date">
|
||||
select min(statistic_time)
|
||||
from request_num_statistics c
|
||||
order by statistic_time asc
|
||||
</select>
|
||||
<!-- <select id="getRequestStateCount" resultType="long">
|
||||
select count(request_id) count
|
||||
|
||||
Reference in New Issue
Block a user