Compare commits
2 Commits
5b4fa38dbd
...
62af38cbf0
| Author | SHA1 | Date | |
|---|---|---|---|
| 62af38cbf0 | |||
| 04a21567aa |
@ -17,10 +17,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import java.time.Duration;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
import static com.fuyuanshen.common.core.constant.GlobalConstants.FUNCTION_ACCESS_KEY;
|
||||
import static com.fuyuanshen.common.core.constant.GlobalConstants.GLOBAL_REDIS_KEY;
|
||||
@ -42,6 +39,12 @@ public class XinghanSendMsgRule implements MqttMessageRule {
|
||||
|
||||
@Override
|
||||
public String getCommandType() {
|
||||
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
|
||||
|
||||
// 三种等价的写法
|
||||
Integer[] array1 = list.toArray(new Integer[0]);
|
||||
Integer[] array2 = list.toArray(size -> new Integer[size]);
|
||||
|
||||
return XingHanCommandTypeConstants.XingHan_ESEND_MSG;
|
||||
}
|
||||
|
||||
|
||||
@ -105,6 +105,7 @@ public class DeviceQueryCriteria extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 设备所属分组
|
||||
* group_id
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
|
||||
@ -140,6 +140,9 @@
|
||||
<if test="criteria.deviceStatus != null">
|
||||
and d.device_status = #{criteria.deviceStatus}
|
||||
</if>
|
||||
<if test="criteria.groupId != null">
|
||||
and d.group_id = #{criteria.groupId}
|
||||
</if>
|
||||
<if test="criteria.currentOwnerId != null">
|
||||
and d.current_owner_id = #{criteria.currentOwnerId}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user