|
@@ -130,12 +130,9 @@ public class WindCompanyServiceImpl extends BaseServiceImpl<WindCompanyPO> imple
|
|
|
Example queryExample = new Example(WindCompanyPO.class);
|
|
|
Example.Criteria criteria = queryExample.createCriteria();
|
|
|
criteria.andEqualTo("companyCode", dto.getCompanyCode());
|
|
|
-
|
|
|
-
|
|
|
if (windCompanyMapper.updateByExampleSelective(po, queryExample) <= 0) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
WindRelationDto windRelationDto = new WindRelationDto();
|
|
|
windRelationDto.setCodeName(dto.getCompanyName());
|
|
|
windRelationDto.setCodeNumber(dto.getCompanyCode());
|
|
@@ -167,4 +164,12 @@ public class WindCompanyServiceImpl extends BaseServiceImpl<WindCompanyPO> imple
|
|
|
BeanUtil.copyProperties(windCompanyPO,windCompanyVo);
|
|
|
return windCompanyVo;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public WindCompanyPO getWindCompanyPO(WindCompanyDto dto) {
|
|
|
+ Example queryExample = new Example(WindCompanyPO.class);
|
|
|
+ Example.Criteria criteria = queryExample.createCriteria();
|
|
|
+ criteria.andEqualTo("companyName", dto.getCompanyName());
|
|
|
+ return windCompanyMapper.selectOneByExample(queryExample);
|
|
|
+ }
|
|
|
}
|