治理设备管理功能
This commit is contained in:
@@ -151,5 +151,17 @@ public class EleEpdPqdController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqds, methodDescribe);
|
||||
}
|
||||
|
||||
@PostMapping("/selectByIds")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据集合查询字典数据")
|
||||
@ApiImplicitParam(name = "ids", value = "id集合", required = true)
|
||||
public HttpResult<List<EleEpdPqd>> selectByIds(@RequestBody @Validated List<String> ids){
|
||||
String methodDescribe = getMethodDescribe("selectByIds");
|
||||
LogUtil.njcnDebug(log, "{},根据集合查询字典数据:", methodDescribe);
|
||||
List<EleEpdPqd> eleEpdPqds = eleEpdPqdService.selectByIds(ids);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqds, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ import com.njcn.system.pojo.param.EleEpdPqdParam;
|
||||
import com.njcn.system.pojo.po.EleEpdPqd;
|
||||
import com.njcn.system.pojo.vo.EleEpdPqdListVO;
|
||||
import com.njcn.system.pojo.vo.EleEpdPqdVO;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -76,4 +78,11 @@ public interface IEleEpdPqdService extends IService<EleEpdPqd> {
|
||||
* @Date: 2023/6/12
|
||||
*/
|
||||
List<EleEpdPqdListVO> selectAll();
|
||||
|
||||
/**
|
||||
* 根据集合查询字典数据
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
List<EleEpdPqd> selectByIds(List<String> ids);
|
||||
}
|
||||
|
||||
@@ -181,6 +181,11 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
|
||||
return vos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EleEpdPqd> selectByIds(List<String> ids) {
|
||||
return this.lambdaQuery().in(EleEpdPqd::getId,ids).orderByAsc(EleEpdPqd::getSort).list();
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验参数,
|
||||
* 1.检查是否存在相同名称的菜单
|
||||
|
||||
Reference in New Issue
Block a user