|
|
@@ -744,7 +744,7 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
}
|
|
|
|
|
|
JSONArray res = new JSONArray();
|
|
|
- res.addAll(JSON.parseArray(devRoomVO.getFurniture()));
|
|
|
+ res.addAll(JSON.parseArray(devRoomVO.getFurnitures()));
|
|
|
res.addAll(JSON.parseArray(devRoomVO.getSub_regions()));
|
|
|
// 向前端发送数据
|
|
|
r.data.put("data", res);
|
|
|
@@ -791,7 +791,7 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
// 子区域插入sql
|
|
|
StringBuffer subBuffer = new StringBuffer("sub_regions= JSON_ARRAY(");
|
|
|
// 家具插入sql
|
|
|
- StringBuffer furBuffer = new StringBuffer("furniture= JSON_ARRAY(");
|
|
|
+ StringBuffer furBuffer = new StringBuffer("furnitures= JSON_ARRAY(");
|
|
|
if (roomParams.size() > 0) {
|
|
|
|
|
|
boolean hasSub = false;
|
|
|
@@ -865,7 +865,7 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
furBuffer.setLength(furBuffer.length() - 1);
|
|
|
sql.append(furBuffer).append(")");
|
|
|
} else {
|
|
|
- sql.append(" furniture=null ");
|
|
|
+ sql.append(" furnitures=null ");
|
|
|
}
|
|
|
|
|
|
sql.append(" where dev_id ='" + dev_id + "' ");
|
|
|
@@ -947,7 +947,7 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
- sql.append(" sub_regions=null , furniture=null ");
|
|
|
+ sql.append(" sub_regions=null , furnitures=null ");
|
|
|
sql.append(" where dev_id ='" + dev_id + "' ");
|
|
|
baseDAO.updateSQL(sql.toString());
|
|
|
|