This commit is contained in:
parent
43e291dd52
commit
326bbe8296
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public interface OilMonitorMapper {
|
|||
* 删除
|
||||
* @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 deleteOilMonitorByIds(Long[] ids);
|
||||
int deleteOilMonitorByIds(Long ids);
|
||||
|
||||
/**
|
||||
* 查询检测设备地图列表
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -83,6 +83,7 @@ public class OutSideServiceImpl implements OutSideService {
|
|||
if (rootNode.isArray()) {
|
||||
for (JsonNode node : rootNode) {
|
||||
SensorData sd = insertOldData(node);
|
||||
|
||||
outSideMapper.insertDevice(sd);
|
||||
}
|
||||
} 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>
|
||||
|
||||
<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">
|
||||
|
|
Loading…
Reference in New Issue