Commit 3fb8a59ff413e93f552f88133ff3df501b5320fa
1 parent
32645fc6
模板上传获取总公司名称
Showing
1 changed file
with
1 additions
and
1 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/costfee/CostFeeServiceImpl.java
| @@ -241,7 +241,7 @@ public class CostFeeServiceImpl implements CostFeeService { | @@ -241,7 +241,7 @@ public class CostFeeServiceImpl implements CostFeeService { | ||
| 241 | WaterFeeDO fee = new WaterFeeDO(); | 241 | WaterFeeDO fee = new WaterFeeDO(); |
| 242 | BeanUtils.copyProperties(importObj, fee); | 242 | BeanUtils.copyProperties(importObj, fee); |
| 243 | fee.setCompanyId(String.valueOf(getCompanyId())); | 243 | fee.setCompanyId(String.valueOf(getCompanyId())); |
| 244 | - if (getCompanyId() == 100) { | 244 | + if (deptRespDTO.getParentId() == 0) { |
| 245 | fee.setCompanyName(Objects.toString(deptRespDTO.getName(), "")); | 245 | fee.setCompanyName(Objects.toString(deptRespDTO.getName(), "")); |
| 246 | } else { | 246 | } else { |
| 247 | // 设置单位id | 247 | // 设置单位id |