Commit d9d1b620785d252e4bc85833f6f261234f83bfbc
Merge branch '20221129' into 'master'
20221129 See merge request huang/thingsboard3.3.2!143
Showing
3 changed files
with
7 additions
and
5 deletions
... | ... | @@ -117,7 +117,7 @@ public class ScheduleUtils { |
117 | 117 | try{ |
118 | 118 | obj = SpringBeanUtils.getBean(StringUtils.split(invokeTarget, ".")[0]); |
119 | 119 | }catch (Exception e){ |
120 | - throw new YtDataValidationException(e.getMessage()); | |
120 | + throw new YtDataValidationException("调用方法【"+invokeTarget+"】不存在"); | |
121 | 121 | } |
122 | 122 | return containsAnyIgnoreCase( |
123 | 123 | obj.getClass().getPackage().getName(), | ... | ... |
... | ... | @@ -43,7 +43,9 @@ public class TkAlarmInfoServiceImpl implements TkAlarmInfoService { |
43 | 43 | |
44 | 44 | @Override |
45 | 45 | public YtPageData<TkAlarmEntity> alarmPage(Map<String, Object> pageMap, TenantId tenantId, UUID customerId, AlarmSeverity severity, String alarmType, Long startTime, Long endTime, List<AlarmStatus> status, String deviceId, DeviceTypeEnum deviceType, EntityType originatorType, String organizationId) { |
46 | - IPage<TkAlarmEntity> page = getPage(pageMap, ModelConstants.STATUS_PROPERTY+","+ModelConstants.CREATED_TIME_PROPERTY+" DESC, "+ModelConstants.STATUS_PROPERTY, OrderTypeEnum.ASC); | |
46 | + StringBuilder defaultOrderFields = new StringBuilder("ack_ts asc,clear_ts asc,"); | |
47 | + defaultOrderFields.append(ModelConstants.CREATED_TIME_PROPERTY); | |
48 | + IPage<TkAlarmEntity> page = getPage(pageMap, defaultOrderFields.toString(), OrderTypeEnum.DESC); | |
47 | 49 | List<String> ids = new ArrayList<>(); |
48 | 50 | if (StringUtils.isNotBlank(organizationId)) { |
49 | 51 | List<String> filter = new ArrayList<>(); | ... | ... |
... | ... | @@ -10,8 +10,8 @@ |
10 | 10 | <result property="outTarget" column="out_target" typeHandler="org.apache.ibatis.type.EnumTypeHandler"/> |
11 | 11 | <result property="callType" column="call_type" typeHandler="org.apache.ibatis.type.EnumTypeHandler"/> |
12 | 12 | <result property="commandType" column="command_type"/> |
13 | - <result property="thingsModelId" column="scene_linkage_id"/> | |
14 | - <result property="sceneLinkageId" column="things_model_id"/> | |
13 | + <result property="thingsModelId" column="things_model_id"/> | |
14 | + <result property="sceneLinkageId" column="scene_linkage_id"/> | |
15 | 15 | <result property="deviceProfileId" column="device_profile_id"/> |
16 | 16 | <result property="alarmProfileId" column="alarm_profile_id"/> |
17 | 17 | <result property="tenantId" column="tenant_id"/> |
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | <result property="updateTime" column="update_time"/> |
20 | 20 | <result property="createTime" column="create_time"/> |
21 | 21 | <result property="creator" column="creator"/> |
22 | - | |
22 | + | |
23 | 23 | </resultMap> |
24 | 24 | <sql id="columns"> |
25 | 25 | id,device_id,entity_type,do_context,out_target,call_type,scene_linkage_id,alarm_profile_id, | ... | ... |