@ -75,4 +75,11 @@ public class ParamBindController extends BasicController {
return Response.success("OK");
}
@PostMapping("clearAll")
@ApiOperation("清空所有绑定")
public Response<String> clearAll() throws Exception {
bindService.clearAll();
@ -14,4 +14,6 @@ public interface DataService {
List<ColumnModel> getDataTableColumns(String tableName) throws Exception;
OnePage<Map<String, Object>> getDate(NiecSensor sensor, List<NiecPoint> points, ConditionModel model);
void clearAllBind();
@ -23,4 +23,6 @@ public interface ParamBindService {
BindDetail getBind(Integer eqmid) throws Exception;
void generateParamindex() throws Exception;
void clearAll();
@ -121,4 +121,10 @@ public class DataServiceImpl implements DataService {
result.setContent(content);
return result;
@Override
public void clearAllBind() {
String sql = "UPDATE modev SET icdid=null";
jdbcTemplate.execute(sql);
@ -276,4 +276,10 @@ public class ParamBindServiceImpl implements ParamBindService {
public void clearAll() {
dataService.clearAllBind();