1.灿能云部分远程接口调整
This commit is contained in:
@@ -108,8 +108,9 @@ public class HistoryResultController extends BaseController {
|
||||
String methodDescribe = getMethodDescribe("getLinesTarget");
|
||||
List<RStatLimitRateDPO> list = limitRateDService.list(new LambdaQueryWrapper<RStatLimitRateDPO>()
|
||||
.in(RStatLimitRateDPO::getLineId, param.getIds())
|
||||
.in(RStatLimitRateDPO::getTime, param.getStartTime())
|
||||
.in(RStatLimitRateDPO::getTime, param.getEndTime())
|
||||
.eq(RStatLimitRateDPO::getPhasicType, "T")
|
||||
.ge(RStatLimitRateDPO::getTime, param.getStartTime())
|
||||
.le(RStatLimitRateDPO::getTime, param.getEndTime())
|
||||
|
||||
);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
|
||||
@@ -232,27 +232,31 @@
|
||||
</where>
|
||||
</select>
|
||||
<select id="getLinesTarget" resultType="java.lang.String">
|
||||
SELECT
|
||||
select
|
||||
my_index
|
||||
FROM
|
||||
r_stat_limit_target_d
|
||||
<where>
|
||||
<if test=" ids != null and ids.size > 0">
|
||||
AND my_index IN
|
||||
<foreach collection='ids' item='item' index="index" open='(' separator=',' close=')'>
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test=" startTime != null and startTime !=''">
|
||||
AND time_id >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND time_id <= #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY
|
||||
my_index
|
||||
HAVING
|
||||
allCount >0
|
||||
from (
|
||||
SELECT
|
||||
my_index,
|
||||
sum( all_time ) AS allCount
|
||||
FROM
|
||||
r_stat_limit_target_d
|
||||
<where>
|
||||
<if test=" ids != null and ids.size > 0">
|
||||
AND my_index IN
|
||||
<foreach collection='ids' item='item' index="index" open='(' separator=',' close=')'>
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test=" startTime != null and startTime !=''">
|
||||
AND time_id >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND time_id <= #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY
|
||||
my_index
|
||||
HAVING
|
||||
allCount >0) a
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user