|
@@ -10,6 +10,7 @@ import com.xy.utils.MybatisPlusQuery;
|
|
|
import com.xy.utils.R;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -26,6 +27,7 @@ import static com.xy.utils.Beans.copy;
|
|
|
* @author lijin
|
|
|
* @since 2022-12-23
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
@Api(tags = "设备-系统信息")
|
|
|
public class DeviceSysinfoServiceImpl extends ServiceImpl<DeviceSysinfoMapper, DeviceSysinfo> implements DeviceSysinfoService {
|
|
@@ -55,6 +57,7 @@ public class DeviceSysinfoServiceImpl extends ServiceImpl<DeviceSysinfoMapper, D
|
|
|
@PostMapping("up")
|
|
|
@ApiOperation("上报信息")
|
|
|
public R up(@RequestBody DeviceSysinfoDto.Up up) {
|
|
|
+ log.info("设备系统信息上报:{}", up.toString());
|
|
|
DeviceSysinfo deviceSysinfo = getById(up.getDeviceId());
|
|
|
if (deviceSysinfo == null) {
|
|
|
return R.ok();
|