This commit is contained in:
gongjiale 2024-12-02 14:15:39 +08:00
parent 43e291dd52
commit 326bbe8296
6 changed files with 7 additions and 8 deletions

View File

@ -72,7 +72,7 @@ public class OilMonitorController extends BaseController {
*/
@Log(title = "密封点", businessType = BusinessType.DELETE)
@GetMapping("/delete/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long ids) {
return toAjax(oilMonitorService.deleteOilMonitorByIds(ids));
}

View File

@ -38,7 +38,7 @@ public interface OilMonitorMapper {
* 删除
* @param ids
*/
void deleteOilMonitorByIds(@Param("ids") Long[] ids);
void deleteOilMonitorByIds(@Param("ids") Long ids);
/**
* 获取检测地图

View File

@ -18,7 +18,7 @@ public interface IOilMonitorService {
int updateOilMonitor(OilMonitor oilMonitor);
int deleteOilMonitorByIds(Long[] ids);
int deleteOilMonitorByIds(Long ids);
/**
* 查询检测设备地图列表

View File

@ -49,7 +49,7 @@ public class OilMonitorServiceImpl implements IOilMonitorService {
}
@Override
public int deleteOilMonitorByIds(Long[] ids) {
public int deleteOilMonitorByIds(Long ids) {
oilMonitorMapper.deleteOilMonitorByIds(ids);
return 1;
}

View File

@ -83,6 +83,7 @@ public class OutSideServiceImpl implements OutSideService {
if (rootNode.isArray()) {
for (JsonNode node : rootNode) {
SensorData sd = insertOldData(node);
outSideMapper.insertDevice(sd);
}
} else {

View File

@ -153,10 +153,8 @@ select t.id,t. name,t.unit_no,t.system_no,t.status,t.sn,t.file_url,t.note,t.crea
</update>
<delete id="deleteOilMonitorByIds">
delete from th_device where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
delete from th_device where id = #{id}
</delete>
<select id="getMonitorMap" resultMap="ThDeviceList">