opt:优化点位、区域功能

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-07-18 13:50:36 +08:00
parent 99e078bc96
commit 7eed869848
6 changed files with 59 additions and 79 deletions

View File

@@ -103,7 +103,7 @@ public class SchBasePoint implements Serializable {
private String remark;
private Boolean is_used;
private String is_used;
private String create_id;

View File

@@ -19,7 +19,7 @@ public interface SchBasePointMapper extends BaseMapper<SchBasePoint> {
* @param pointCodes 参数
* @param used 参数
*/
void batchChangeUsed(List<String> pointCodes, Boolean used);
void batchChangeUsed(List<String> pointCodes, String used);
/**
* 获得所有解锁异常点

View File

@@ -155,7 +155,7 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
public void changeUsed(JSONObject jsonObject) {
// 不可能为空
JSONArray data = jsonObject.getJSONArray("data");
Boolean used = jsonObject.getBoolean("used");
String used = jsonObject.getString("used");
Assert.notNull(data, "数据为空!");
Assert.notNull(used, "数据为空!");
List<SchBasePoint> schBasePoints = JSONArray.parseArray(JSONArray.toJSONString(data), SchBasePoint.class);