YSP样例配置增加有效配置规则量限制验证,如果达到规则量限制,则不允许提交。

Signed-off-by: zhangwei <zhangwei2@iie.ac.cn>
This commit is contained in:
zhangwei
2018-10-27 14:48:08 +08:00
parent c865ca5eae
commit 3a93fb30ad
9 changed files with 2239 additions and 2164 deletions

View File

@@ -18,4 +18,5 @@ public interface ConfigureStatisticsDao {
public List<Object[]> getConfigStatisticTime();
public List<Object[]> getRequestStatisticTime();
public List<Object[]> getRequestStateStatistics(@Param("requestList")List<RequestInfo> requestList,@Param("serviceList")List<FunctionServiceDict> serviceList) ;
public Integer getEffectiveCfgNum(@Param("serviceId")Integer serviceId);
}

View File

@@ -45,4 +45,7 @@
from request_num_statistics c
group by request_id)
</select> -->
<select id="getEffectiveCfgNum" resultType="Integer">
select count(distinct c.compile_id) from cfg_num_statistics c where c.service_id=#{serviceId} and c.cfg_state=1;
</select>
</mapper>