diff --git a/AutoSprout-watering/src/main/java/com/ruoyi/device/app/AppController.java b/AutoSprout-watering/src/main/java/com/ruoyi/device/app/AppController.java
index af649ff..032b1c2 100644
--- a/AutoSprout-watering/src/main/java/com/ruoyi/device/app/AppController.java
+++ b/AutoSprout-watering/src/main/java/com/ruoyi/device/app/AppController.java
@@ -209,6 +209,7 @@ public class AppController extends BaseController
@PostMapping(value = "/bandDevice")
public AjaxResult bandDevice(@RequestBody AsDevice asDevice)
{
+ logger.info("接收到绑定设备请求:【{}】",JSON.toJSON(asDevice));
return success(asDeviceService.bandDevice(asDevice));
}
//
diff --git a/AutoSprout-watering/src/main/resources/mapper/device/AsDeviceMapper.xml b/AutoSprout-watering/src/main/resources/mapper/device/AsDeviceMapper.xml
index 497e276..e34ddf6 100644
--- a/AutoSprout-watering/src/main/resources/mapper/device/AsDeviceMapper.xml
+++ b/AutoSprout-watering/src/main/resources/mapper/device/AsDeviceMapper.xml
@@ -40,12 +40,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
select device_id, picture, device_name, classify_id, classify_name, model_id, model, mac, activation_time, online_status,
user_id, user_name, nick_name, regular_watering, soil_moisture_open, soil_moisture_close, water_intensity, pulse_mode,
- pulse_mode_param, screen_rest_time, version, version_id, create_by, create_time, update_by, update_time, remark, regular_watering_json, soil_moisture, water_intensity_switch,is_network,is_default,mode_str,bluetooth_id,bluetooth_name from as_device
+ pulse_mode_param, screen_rest_time, version, version_id, create_by, create_time, update_by, update_time, remark,
+ regular_watering_json, soil_moisture, water_intensity_switch,is_network,is_default,mode_str,bluetooth_id,bluetooth_name, pre
+ from as_device