涉密网络删除bug

pg_adapter
20918 8 months ago
parent bc25237365
commit d2ab48e75c

@ -2,7 +2,9 @@ package com.ruoyi.web.controller.system.property;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.utils.uuid.Seq; import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import com.ruoyi.web.controller.manager.SysAreaManager; import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -39,6 +41,9 @@ public class TdPropertyNetController extends BaseController
@Autowired @Autowired
private ITdPropertyNetService tdPropertyNetService; private ITdPropertyNetService tdPropertyNetService;
@Autowired
private ITdPropertyNetinfoService tdPropertyNetinfoService;
@Resource @Resource
private SysAreaManager sysAreaManager; private SysAreaManager sysAreaManager;
@ -136,6 +141,9 @@ public class TdPropertyNetController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult remove(String ids) public AjaxResult remove(String ids)
{ {
QueryWrapper queryWrapper= new QueryWrapper();
queryWrapper.in("net_id",ids.split(","));
tdPropertyNetinfoService.remove(queryWrapper);
return toAjax(tdPropertyNetService.deleteTdPropertyNetByNetIds(ids)); return toAjax(tdPropertyNetService.deleteTdPropertyNetByNetIds(ids));
} }

@ -1,6 +1,8 @@
package com.ruoyi.system.mapper; package com.ruoyi.system.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.TdPropertyNetinfo; import com.ruoyi.system.domain.TdPropertyNetinfo;
/** /**
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.TdPropertyNetinfo;
* @author ruoyi * @author ruoyi
* @date 2024-05-09 * @date 2024-05-09
*/ */
public interface TdPropertyNetinfoMapper public interface TdPropertyNetinfoMapper extends BaseMapper<TdPropertyNetinfo>
{ {
/** /**
* *

@ -1,6 +1,9 @@
package com.ruoyi.system.service; package com.ruoyi.system.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyNetinfo; import com.ruoyi.system.domain.TdPropertyNetinfo;
/** /**
@ -9,7 +12,7 @@ import com.ruoyi.system.domain.TdPropertyNetinfo;
* @author ruoyi * @author ruoyi
* @date 2024-05-09 * @date 2024-05-09
*/ */
public interface ITdPropertyNetinfoService public interface ITdPropertyNetinfoService extends IService<TdPropertyNetinfo>
{ {
/** /**
* *

@ -1,6 +1,10 @@
package com.ruoyi.system.service.impl; package com.ruoyi.system.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.mapper.TdPropertyInfoMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TdPropertyNetinfoMapper; import com.ruoyi.system.mapper.TdPropertyNetinfoMapper;
@ -15,7 +19,7 @@ import com.ruoyi.common.core.text.Convert;
* @date 2024-05-09 * @date 2024-05-09
*/ */
@Service @Service
public class TdPropertyNetinfoServiceImpl implements ITdPropertyNetinfoService public class TdPropertyNetinfoServiceImpl extends ServiceImpl<TdPropertyNetinfoMapper, TdPropertyNetinfo> implements ITdPropertyNetinfoService
{ {
@Autowired @Autowired
private TdPropertyNetinfoMapper tdPropertyNetinfoMapper; private TdPropertyNetinfoMapper tdPropertyNetinfoMapper;

Loading…
Cancel
Save