|
|
@@ -50,6 +50,8 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoMap
|
|
|
private final CgZlMapper zlMapper;
|
|
|
private final CgKylwMapper kylwMapper;
|
|
|
private final CgJsbzMapper jsbzMapper;
|
|
|
+ private final CgRjzzqMapper rjzzqMapper;
|
|
|
+ private final CgQtMapper qtMapper;
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
@@ -106,6 +108,12 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoMap
|
|
|
|
|
|
@Override
|
|
|
public List<A107_1VO> qyyjkfxmqk(String year) {
|
|
|
+ if(Func.isNull(year)){
|
|
|
+ throw new ServiceException("参数year不能为空");
|
|
|
+ }
|
|
|
+ if(year.length() != 4){
|
|
|
+ throw new ServiceException("参数year为年份,如2025");
|
|
|
+ }
|
|
|
List<A107_1VO> list = a107_1Mapper.qyyjkfxmqk(year, SecureUtil.getTenantId());
|
|
|
return list;
|
|
|
}
|
|
|
@@ -126,6 +134,13 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoMap
|
|
|
|
|
|
@Override
|
|
|
public A107_2VO qyyjkfhdjxgfy(String year) {
|
|
|
+ if(Func.isNull(year)){
|
|
|
+ throw new ServiceException("参数year不能为空");
|
|
|
+ }
|
|
|
+ if(year.length() != 4){
|
|
|
+ throw new ServiceException("参数year为年份,如2025");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
A107_2VO vo = new A107_2VO();
|
|
|
A107_2 db = a107_2Mapper.selectOne(Wrappers.<A107_2>lambdaQuery().eq(A107_2::getYearAndMonth, year).eq(A107_2::getTenantId, SecureUtil.getTenantId()));
|
|
|
@@ -278,7 +293,16 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoMap
|
|
|
|
|
|
@Override
|
|
|
public A107012VO yffyjjkcyhmxb(String year) {
|
|
|
- return new A107012VO();
|
|
|
+ if(Func.isNull(year)){
|
|
|
+ throw new ServiceException("参数year不能为空");
|
|
|
+ }
|
|
|
+ if(year.length() != 4){
|
|
|
+ throw new ServiceException("参数year为年份,如2025");
|
|
|
+ }
|
|
|
+ A107012VO vo = new A107012VO();
|
|
|
+
|
|
|
+
|
|
|
+ return vo;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -314,7 +338,72 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoMap
|
|
|
|
|
|
@Override
|
|
|
public HighTechYBVO gqnb(String year) {
|
|
|
- return new HighTechYBVO();
|
|
|
+
|
|
|
+ if(Func.isNull(year)){
|
|
|
+ throw new ServiceException("参数year不能为空");
|
|
|
+ }
|
|
|
+ if(year.length() != 4){
|
|
|
+ throw new ServiceException("参数year为年份,如2025");
|
|
|
+ }
|
|
|
+ HighTechYBVO vo = new HighTechYBVO();
|
|
|
+
|
|
|
+ HighTechYB db = highTechYbMapper.selectOne(Wrappers.<HighTechYB>lambdaQuery().eq(HighTechYB::getYearAndMonth, year));
|
|
|
+ if(Func.notNull(db)){
|
|
|
+ vo.setD13(db.getD13());
|
|
|
+ vo.setD15(db.getD15());
|
|
|
+ vo.setD16(db.getD16());
|
|
|
+ }
|
|
|
+ Date dateMin = DateUtil.parse(year+"-01-01", DateUtil.PATTERN_DATE);
|
|
|
+ Date dateMax = DateUtil.parse(year+"-12-31", DateUtil.PATTERN_DATE);
|
|
|
+ List<CgZlEntity> zlList = zlMapper.selectList(Wrappers.<CgZlEntity>lambdaQuery().between(CgZlEntity::getShouquanRq, dateMin, dateMax));
|
|
|
+ int d2=0,d3=0,d9=0,d10=0;
|
|
|
+ if(Func.isNotEmpty(zlList)){
|
|
|
+ d2 = (int) zlList.stream().filter(item -> Func.equals(item.getZllx(), "发明专利")).count();
|
|
|
+ d3 = (int) zlList.stream().filter(item -> Func.equals(item.getZllx(), "发明专利") && Func.equals(item.getSfgfzl(), "是")).count();
|
|
|
+ d9 = (int) zlList.stream().filter(item -> Func.equals(item.getZllx(), "实用新型专利")).count();
|
|
|
+ d10 = (int) zlList.stream().filter(item -> Func.equals(item.getZllx(), "外观专利")).count();
|
|
|
+ }
|
|
|
+ vo.setD2(d2);
|
|
|
+ vo.setD3(d3);
|
|
|
+ vo.setD9(d9);
|
|
|
+ vo.setD10(d10);
|
|
|
+
|
|
|
+ int d4=0,d5=0,d6=0,d7=0,d8=0;
|
|
|
+ List<CgQtEntity> qtList = qtMapper.selectList(Wrappers.<CgQtEntity>lambdaQuery().between(CgQtEntity::getShouquanRq, dateMin, dateMax));
|
|
|
+ if(Func.isNotEmpty(qtList)){
|
|
|
+ d4 = (int) qtList.stream().filter(item-> Func.equals(item.getCmlx(), "植物新品种")).count();
|
|
|
+ d5 = (int) qtList.stream().filter(item-> Func.equals(item.getCmlx(), "国家级农作物品种")).count();
|
|
|
+ d6 = (int) qtList.stream().filter(item-> Func.equals(item.getCmlx(), "国家新药")).count();
|
|
|
+ d7 = (int) qtList.stream().filter(item-> Func.equals(item.getCmlx(), "国家一级中药保护品种")).count();
|
|
|
+ d8 = (int) qtList.stream().filter(item-> Func.equals(item.getCmlx(), "集成电路布图设计专有权")).count();
|
|
|
+ }
|
|
|
+ vo.setD4(d4);
|
|
|
+ vo.setD5(d5);
|
|
|
+ vo.setD6(d6);
|
|
|
+ vo.setD7(d7);
|
|
|
+ vo.setD8(d8);
|
|
|
+
|
|
|
+ Query query = new Query();
|
|
|
+ query.setCurrent(1);
|
|
|
+ query.setSize(Integer.MAX_VALUE);
|
|
|
+ IPage<TechnicianVO> page = Condition.getPage(query);
|
|
|
+ TechnicianDTO dto = new TechnicianDTO();
|
|
|
+ dto.setYearAndMonth(year);
|
|
|
+ dto.setTenantId(SecureUtil.getTenantId());
|
|
|
+ List<TechnicianVO> technicianVOList = technicianMapper.niandugaokejirenyuanhuizongbiao(page, dto);
|
|
|
+
|
|
|
+ int d14=0 ;
|
|
|
+ if(Func.isNotEmpty(technicianVOList)){
|
|
|
+ d14 = technicianVOList.size();
|
|
|
+ }
|
|
|
+ //科技人员数
|
|
|
+ vo.setD14(d14);
|
|
|
+
|
|
|
+ //当年获得软件著作权
|
|
|
+ Long count = rjzzqMapper.countByYear(year, SecureUtil.getTenantId());
|
|
|
+ vo.setD11(count.intValue());
|
|
|
+
|
|
|
+ return vo;
|
|
|
}
|
|
|
|
|
|
@Override
|