This commit is contained in:
parent
43e291dd52
commit
326bbe8296
|
@ -72,7 +72,7 @@ public class OilMonitorController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@Log(title = "密封点", businessType = BusinessType.DELETE)
|
@Log(title = "密封点", businessType = BusinessType.DELETE)
|
||||||
@GetMapping("/delete/{ids}")
|
@GetMapping("/delete/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
public AjaxResult remove(@PathVariable Long ids) {
|
||||||
return toAjax(oilMonitorService.deleteOilMonitorByIds(ids));
|
return toAjax(oilMonitorService.deleteOilMonitorByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ public interface OilMonitorMapper {
|
||||||
* 删除
|
* 删除
|
||||||
* @param ids
|
* @param ids
|
||||||
*/
|
*/
|
||||||
void deleteOilMonitorByIds(@Param("ids") Long[] ids);
|
void deleteOilMonitorByIds(@Param("ids") Long ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取检测地图
|
* 获取检测地图
|
||||||
|
|
|
@ -18,7 +18,7 @@ public interface IOilMonitorService {
|
||||||
|
|
||||||
int updateOilMonitor(OilMonitor oilMonitor);
|
int updateOilMonitor(OilMonitor oilMonitor);
|
||||||
|
|
||||||
int deleteOilMonitorByIds(Long[] ids);
|
int deleteOilMonitorByIds(Long ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询检测设备地图列表
|
* 查询检测设备地图列表
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class OilMonitorServiceImpl implements IOilMonitorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int deleteOilMonitorByIds(Long[] ids) {
|
public int deleteOilMonitorByIds(Long ids) {
|
||||||
oilMonitorMapper.deleteOilMonitorByIds(ids);
|
oilMonitorMapper.deleteOilMonitorByIds(ids);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class OutSideServiceImpl implements OutSideService {
|
||||||
if (rootNode.isArray()) {
|
if (rootNode.isArray()) {
|
||||||
for (JsonNode node : rootNode) {
|
for (JsonNode node : rootNode) {
|
||||||
SensorData sd = insertOldData(node);
|
SensorData sd = insertOldData(node);
|
||||||
|
|
||||||
outSideMapper.insertDevice(sd);
|
outSideMapper.insertDevice(sd);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -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>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteOilMonitorByIds">
|
<delete id="deleteOilMonitorByIds">
|
||||||
delete from th_device where id in
|
delete from th_device where id = #{id}
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="getMonitorMap" resultMap="ThDeviceList">
|
<select id="getMonitorMap" resultMap="ThDeviceList">
|
||||||
|
|
Loading…
Reference in New Issue