|
@@ -103,7 +103,7 @@ public class MqttServiceImpl extends ServiceImpl<MqttCommandMapper, MqttCommand>
|
|
|
public void sysnAtoms() {
|
|
|
String sn = LambdaUtils.getProperty(MqttCommand::getSn);
|
|
|
QueryWrapper<MqttCommand> wrapper = new QueryWrapper<MqttCommand>()
|
|
|
- .select("max(%s) as %s", sn, sn);
|
|
|
+ .select(String.format("max(%s) as %s", sn, sn));
|
|
|
MqttCommand mqttCommand = getOne(wrapper);
|
|
|
if (mqttCommand == null) {
|
|
|
return;
|