|
@@ -1,6 +1,8 @@
|
|
|
package com.energy.manage.service.service.company.impl;
|
|
package com.energy.manage.service.service.company.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
+
|
|
|
|
|
+import com.alibaba.druid.util.StringUtils;
|
|
|
import com.energy.manage.common.base.BaseServiceImpl;
|
|
import com.energy.manage.common.base.BaseServiceImpl;
|
|
|
import com.energy.manage.common.constant.Constants;
|
|
import com.energy.manage.common.constant.Constants;
|
|
|
import com.energy.manage.common.constant.redis.ManagerRedisKeyConstant;
|
|
import com.energy.manage.common.constant.redis.ManagerRedisKeyConstant;
|
|
@@ -55,7 +57,7 @@ public class CompanyServiceImpl extends BaseServiceImpl<CompanyPO> implements Co
|
|
|
public List<CompanyPO> getAllCompany(WindCompanyDelDto windCompanyDelDto) {
|
|
public List<CompanyPO> getAllCompany(WindCompanyDelDto windCompanyDelDto) {
|
|
|
List<CompanyPO> result = null;
|
|
List<CompanyPO> result = null;
|
|
|
|
|
|
|
|
- if (windCompanyDelDto != null && windCompanyDelDto.getCompanyCode()!=null && windCompanyDelDto.getCompanyCode().isEmpty()) {
|
|
|
|
|
|
|
+ if (windCompanyDelDto != null && windCompanyDelDto.getCompanyCode()!=null && !StringUtils.isEmpty(windCompanyDelDto.getCompanyCode())) {
|
|
|
CompanyPO po = new CompanyPO();
|
|
CompanyPO po = new CompanyPO();
|
|
|
po.setCompanyCode(windCompanyDelDto.getCompanyCode());
|
|
po.setCompanyCode(windCompanyDelDto.getCompanyCode());
|
|
|
CompanyPO tpo = companyMapper.selectOne(po);
|
|
CompanyPO tpo = companyMapper.selectOne(po);
|