37 lines
1.0 KiB
Java
37 lines
1.0 KiB
Java
package com.hivekion.baseData.service.impl;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.hivekion.baseData.entity.Fightpowerstaff;
|
|
import com.hivekion.baseData.mapper.FightpowerstaffMapper;
|
|
import com.hivekion.baseData.service.FightpowerstaffService;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
/**
|
|
* <p>
|
|
* 服务实现类
|
|
* </p>
|
|
*
|
|
* @author liDongYu
|
|
* @since 2025-08-07
|
|
*/
|
|
@Service
|
|
public class FightpowerstaffServiceImpl extends
|
|
ServiceImpl<FightpowerstaffMapper, Fightpowerstaff> implements
|
|
FightpowerstaffService {
|
|
|
|
@Override
|
|
public List<Fightpowerstaff> queryListByOrgId(Integer orgId) {
|
|
QueryWrapper<Fightpowerstaff> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.eq("parent_id", orgId);
|
|
return this.list(queryWrapper);
|
|
}
|
|
|
|
@Override
|
|
public List<Fightpowerstaff> queryByOrgIds(List<Integer> ids) {
|
|
return this.baseMapper.queryByOrgIds(ids);
|
|
}
|
|
}
|