opt:优化点位、区域功能
This commit is contained in:
@@ -103,7 +103,7 @@ public class SchBasePoint implements Serializable {
|
||||
private String remark;
|
||||
|
||||
|
||||
private Boolean is_used;
|
||||
private String is_used;
|
||||
|
||||
|
||||
private String create_id;
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
* 获得所有解锁异常点
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user