Commit bdab12a5 authored by tangwei's avatar tangwei

修改bug

parent b00ca0d4
......@@ -45,5 +45,5 @@ public interface IFireTeamService {
List<FireTeamZhDto> getFireTeamCountList();
public List<FireTeam> getFirstAidForTypeCodeAndCompanyId(String dicCode,String typeCode,Long companyId);
List<FireTeam> getFireTeamList();
}
......@@ -10,6 +10,8 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.module.common.api.entity.Firefighters;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -443,6 +445,14 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
return this.baseMapper.selectList(queryWrapper);
}
@Override
public List<FireTeam> getFireTeamList() {
QueryWrapper<FireTeam> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", false);
return fireTeamMapper.selectList(queryWrapper);
}
public List<Menu> getFirstTeamToDesignatedDepartment() throws Exception {
LambdaQueryWrapper<FireTeam> queryWrapper = new LambdaQueryWrapper<FireTeam>();
queryWrapper.eq(FireTeam::getTypeCode, "116");
......
......@@ -9,6 +9,7 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.yeejoin.amos.boot.module.common.api.entity.FireTeam;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
......@@ -180,10 +181,14 @@ public class DataSourcesImpl implements DataSources {
}
private String[] getFireTeam() {
Page<FireTeamCardDto> pageBean = new Page<>(1, Integer.MAX_VALUE);
IPage<FireTeamCardDto> fireTeamCardDtoIPage = fireTeamService.listFireTeamByPage(pageBean,
new FireTeamListDto());
List<FireTeamCardDto> records = fireTeamCardDtoIPage.getRecords();
// Page<FireTeamCardDto> pageBean = new Page<>(0, Integer.MAX_VALUE);
// IPage<FireTeamCardDto> fireTeamCardDtoIPage = fireTeamService.listFireTeamByPage(pageBean,
// new FireTeamListDto());
// List<FireTeamCardDto> records = fireTeamCardDtoIPage.getRecords();
List<FireTeam> records= fireTeamService.getFireTeamList();
List<String> names = records.stream().map(item -> {
return item.getName() + "@" + item.getSequenceNbr();
}).collect(Collectors.toList());
......@@ -343,9 +348,11 @@ public class DataSourcesImpl implements DataSources {
* @return
*/
private String[] getCompany() {
List<OrgMenuDto> menus = OrgUsrServiceImpl.buildTreeParallel(iOrgUsrService.selectCompanyDepartmentMsg());
//List<OrgMenuDto> menus = OrgUsrServiceImpl.buildTreeParallel(iOrgUsrService.selectCompanyDepartmentMsg());
List<OrgUsr> menus = iOrgUsrService.selectCompanyDepartmentMsg();
List<String> names = menus.stream().map(item -> {
return item.getName() + "@" + item.getKey();
return item.getBizOrgName() + "@" + item.getSequenceNbr()+ "@" + item.getBizOrgCode();
}).collect(Collectors.toList());
String[] str = names.toArray(new String[names.size()]);
return str;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment