|
|
|
@ -5,6 +5,7 @@ import com.zdxt.code.domain.Zfztjdm111915; |
|
|
|
import com.zdxt.code.mapper.Zfztjdm111915Mapper; |
|
|
|
import com.zdxt.code.service.IZfryjdm2405301Service; |
|
|
|
import com.zdxt.code.service.IZfztjdm111915Service; |
|
|
|
import com.zdxt.common.annotation.DataScope; |
|
|
|
import com.zdxt.common.util.IdCardCryptoUtil; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -30,13 +31,21 @@ public class Zfztjdm111915ServiceImpl implements IZfztjdm111915Service { |
|
|
|
return zfztjdm111915Mapper.selectZfztjdmListAndDept(subName); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@DataScope(deptAlias = "d") |
|
|
|
public List<Zfztjdm111915> selectZfztjdmListAndDeptQX(Zfztjdm111915 zfztjdm111915) { |
|
|
|
return zfztjdm111915Mapper.selectZfztjdmListAndDeptQX(zfztjdm111915); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<Zfztjdm111915> getDeptStaticList(Zfryjdm2405301 zfryjdm2405301) { |
|
|
|
// int totalNumber=0;
|
|
|
|
List<Zfztjdm111915> zfztjdm111915List = this.selectZfztjdmListAndDept(zfryjdm2405301.getZfdw()); |
|
|
|
Zfztjdm111915 zfztjdm111915=new Zfztjdm111915(); |
|
|
|
zfztjdm111915.setSubName(zfryjdm2405301.getZfdw()); |
|
|
|
List<Zfztjdm111915> zfztjdm111915List = this.selectZfztjdmListAndDeptQX(zfztjdm111915); |
|
|
|
// Map<String,Zfztjdm111915> zfztjdm111915Map=zfztjdm111915List.stream().collect(Collectors.toMap(Zfztjdm111915::getCode, Function.identity()));
|
|
|
|
List<Zfztjdm111915> hasList=new ArrayList<>(); |
|
|
|
List<Zfryjdm2405301> zfryjdm2405301List = iZfryjdm2405301Service.selectZfryjdmAndUserListGroupBy(zfryjdm2405301); |
|
|
|
List<Zfryjdm2405301> zfryjdm2405301List = iZfryjdm2405301Service.selectZfryjdmAndUserListGroupByQX(zfryjdm2405301); |
|
|
|
for (int i = 0; i < zfztjdm111915List.size(); i++) { |
|
|
|
int j=i; |
|
|
|
List<Zfryjdm2405301> ancestorList=zfryjdm2405301List.stream().filter(item->ancestorHasIt(item.getAncestors(),zfztjdm111915List.get(j).getDeptId(),item.getDeptId())).collect(Collectors.toList()); |
|
|
|
|