OrganizationDto.java 25.9 KB
Newer Older
1
package pwc.taxtech.atms.dpo;
eddie.woo's avatar
eddie.woo committed
2

3 4
import com.fasterxml.jackson.annotation.JsonProperty;

eddie.woo's avatar
eddie.woo committed
5 6 7 8
import java.util.Date;
import java.util.List;

public class OrganizationDto {
frank.xa.zhang's avatar
frank.xa.zhang committed
9
    //@JsonProperty("ID")
10
    private String id;
eddie.woo's avatar
eddie.woo committed
11 12 13 14 15 16
    private String clientCode;
    private String name;
    private String englishName;
    private String abbreviation;
    private String code;
    private String invoiceType;
17
    @JsonProperty("parentID")
18
    private String parentId;
eddie.woo's avatar
eddie.woo committed
19
    private String taxPayerNumber;
20
    @JsonProperty("regionID")
21
    private String regionId; // City
22
    @JsonProperty("parentRegionID")
23
    private String parentRegionId; // Province
24
    @JsonProperty("structureID")
25
    private String structureId;
26
    @JsonProperty("industryID")
27
    private String industryId;
eddie.woo's avatar
eddie.woo committed
28 29 30 31 32
    public Boolean isActive;
    public Date createTime;
    public Date updateTime;
    private String parentName;
    private String areaName;
33
    @JsonProperty("areaID")
34
    private String areaId;
35
    @JsonProperty("businessUnitID")
36
    private String businessUnitId;
eddie.woo's avatar
eddie.woo committed
37 38 39 40 41 42 43 44 45 46 47 48 49
    public List<OrganizationDto> subOrgs;
    // for cargill
    private String legalPersonName;
    private String manufactureAddress;
    private String registerAddress;
    private String bankAccountName;
    private String bankAccountNumber;
    private String phoneNumber;
    private String registrationType;
    private String structureName;
    private String regionName;
    private String industryName;
    private String businessUnitName;
50
    @JsonProperty("dimensionID")
51
    private String dimensionId;
eddie.woo's avatar
eddie.woo committed
52 53
    private String dimensionName;
    private String dimensionValueName;
54
    @JsonProperty("dimensionValueID")
55
    private String dimensionValueId;
56
    @JsonProperty("attributeID")
57
    private String attributeId;
eddie.woo's avatar
eddie.woo committed
58 59
    private String attributeName;
    public Boolean isSystemDimension;
60
    // 用于UI GRId Tree Level
eddie.woo's avatar
eddie.woo committed
61 62 63 64 65 66 67 68 69 70 71 72
    public Integer level;
    // 用于机构层级本身的上下级
    public Integer pLevel;
    private String remark;
    private String vehicleroutinglocation;
    public List<EnterpriseAccountSetOrgDto> enterpriseAccountSetOrgList;
    public List<OrganizationServiceTemplateGroupDto> organizationServiceTemplateGroupList;
    public List<DimensionValueOrgDto> dimensionValueOrgList;
    public List<UserRoleInfo> userRoleList;
    public List<OrganizationDto> sameVehicleroutinglocationList;
    public List<TaxControlDiskDto> taxControlDiskList;

73
    public String getId() {
frank.xa.zhang's avatar
frank.xa.zhang committed
74
        return this.id;
eddie.woo's avatar
eddie.woo committed
75 76
    }

77
    public void setId(String id) {
frank.xa.zhang's avatar
frank.xa.zhang committed
78
        this.id = id;
eddie.woo's avatar
eddie.woo committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
    }

    public String getClientCode() {
        return clientCode;
    }

    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

129 130
    public String getParentId() {
        return parentId;
eddie.woo's avatar
eddie.woo committed
131 132
    }

133 134
    public void setParentId(String parentId) {
        this.parentId = parentId;
eddie.woo's avatar
eddie.woo committed
135 136 137 138 139 140 141 142 143 144
    }

    public String getTaxPayerNumber() {
        return taxPayerNumber;
    }

    public void setTaxPayerNumber(String taxPayerNumber) {
        this.taxPayerNumber = taxPayerNumber;
    }

145 146
    public String getRegionId() {
        return regionId;
eddie.woo's avatar
eddie.woo committed
147 148
    }

149 150
    public void setRegionId(String regionId) {
        this.regionId = regionId;
eddie.woo's avatar
eddie.woo committed
151 152
    }

153 154
    public String getParentRegionId() {
        return parentRegionId;
eddie.woo's avatar
eddie.woo committed
155 156
    }

157 158
    public void setParentRegionId(String parentRegionId) {
        this.parentRegionId = parentRegionId;
eddie.woo's avatar
eddie.woo committed
159 160
    }

161 162
    public String getStructureId() {
        return structureId;
eddie.woo's avatar
eddie.woo committed
163 164
    }

165 166
    public void setStructureId(String structureId) {
        this.structureId = structureId;
eddie.woo's avatar
eddie.woo committed
167 168
    }

169 170
    public String getIndustryId() {
        return industryId;
eddie.woo's avatar
eddie.woo committed
171 172
    }

173 174
    public void setIndustryId(String industryId) {
        this.industryId = industryId;
eddie.woo's avatar
eddie.woo committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

217 218
    public String getAreaId() {
        return areaId;
eddie.woo's avatar
eddie.woo committed
219 220
    }

221 222
    public void setAreaId(String areaId) {
        this.areaId = areaId;
eddie.woo's avatar
eddie.woo committed
223 224
    }

225 226
    public String getBusinessUnitId() {
        return businessUnitId;
eddie.woo's avatar
eddie.woo committed
227 228
    }

229 230
    public void setBusinessUnitId(String businessUnitId) {
        this.businessUnitId = businessUnitId;
eddie.woo's avatar
eddie.woo committed
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
    }

    public List<OrganizationDto> getSubOrgs() {
        return subOrgs;
    }

    public void setSubOrgs(List<OrganizationDto> subOrgs) {
        this.subOrgs = subOrgs;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getManufactureAddress() {
        return manufactureAddress;
    }

    public void setManufactureAddress(String manufactureAddress) {
        this.manufactureAddress = manufactureAddress;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public String getBankAccountNumber() {
        return bankAccountNumber;
    }

    public void setBankAccountNumber(String bankAccountNumber) {
        this.bankAccountNumber = bankAccountNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getRegistrationType() {
        return registrationType;
    }

    public void setRegistrationType(String registrationType) {
        this.registrationType = registrationType;
    }

    public String getStructureName() {
        return structureName;
    }

    public void setStructureName(String structureName) {
        this.structureName = structureName;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getBusinessUnitName() {
        return businessUnitName;
    }

    public void setBusinessUnitName(String businessUnitName) {
        this.businessUnitName = businessUnitName;
    }

329 330
    public String getDimensionId() {
        return dimensionId;
eddie.woo's avatar
eddie.woo committed
331 332
    }

333 334
    public void setDimensionId(String dimensionId) {
        this.dimensionId = dimensionId;
eddie.woo's avatar
eddie.woo committed
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
    }

    public String getDimensionName() {
        return dimensionName;
    }

    public void setDimensionName(String dimensionName) {
        this.dimensionName = dimensionName;
    }

    public String getDimensionValueName() {
        return dimensionValueName;
    }

    public void setDimensionValueName(String dimensionValueName) {
        this.dimensionValueName = dimensionValueName;
    }

353 354
    public String getDimensionValueId() {
        return dimensionValueId;
eddie.woo's avatar
eddie.woo committed
355 356
    }

357 358
    public void setDimensionValueId(String dimensionValueId) {
        this.dimensionValueId = dimensionValueId;
eddie.woo's avatar
eddie.woo committed
359 360
    }

361 362
    public String getAttributeId() {
        return attributeId;
eddie.woo's avatar
eddie.woo committed
363 364
    }

365 366
    public void setAttributeId(String attributeId) {
        this.attributeId = attributeId;
eddie.woo's avatar
eddie.woo committed
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
    }

    public String getAttributeName() {
        return attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.attributeName = attributeName;
    }

    public Boolean getIsSystemDimension() {
        return isSystemDimension;
    }

    public void setIsSystemDimension(Boolean isSystemDimension) {
        this.isSystemDimension = isSystemDimension;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

frank.xa.zhang's avatar
frank.xa.zhang committed
393
    public Integer getPLevel() {
eddie.woo's avatar
eddie.woo committed
394 395 396
        return pLevel;
    }

frank.xa.zhang's avatar
frank.xa.zhang committed
397
    public void setPLevel(Integer pLevel) {
eddie.woo's avatar
eddie.woo committed
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469
        this.pLevel = pLevel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVehicleroutinglocation() {
        return vehicleroutinglocation;
    }

    public void setVehicleroutinglocation(String vehicleroutinglocation) {
        this.vehicleroutinglocation = vehicleroutinglocation;
    }

    public List<EnterpriseAccountSetOrgDto> getEnterpriseAccountSetOrgList() {
        return enterpriseAccountSetOrgList;
    }

    public void setEnterpriseAccountSetOrgList(List<EnterpriseAccountSetOrgDto> enterpriseAccountSetOrgList) {
        this.enterpriseAccountSetOrgList = enterpriseAccountSetOrgList;
    }

    public List<OrganizationServiceTemplateGroupDto> getOrganizationServiceTemplateGroupList() {
        return organizationServiceTemplateGroupList;
    }

    public void setOrganizationServiceTemplateGroupList(
            List<OrganizationServiceTemplateGroupDto> organizationServiceTemplateGroupList) {
        this.organizationServiceTemplateGroupList = organizationServiceTemplateGroupList;
    }

    public List<DimensionValueOrgDto> getDimensionValueOrgList() {
        return dimensionValueOrgList;
    }

    public void setDimensionValueOrgList(List<DimensionValueOrgDto> dimensionValueOrgList) {
        this.dimensionValueOrgList = dimensionValueOrgList;
    }

    public List<UserRoleInfo> getUserRoleList() {
        return userRoleList;
    }

    public void setUserRoleList(List<UserRoleInfo> userRoleList) {
        this.userRoleList = userRoleList;
    }

    public List<OrganizationDto> getSameVehicleroutinglocationList() {
        return sameVehicleroutinglocationList;
    }

    public void setSameVehicleroutinglocationList(List<OrganizationDto> sameVehicleroutinglocationList) {
        this.sameVehicleroutinglocationList = sameVehicleroutinglocationList;
    }

    public List<TaxControlDiskDto> getTaxControlDiskList() {
        return taxControlDiskList;
    }

    public void setTaxControlDiskList(List<TaxControlDiskDto> taxControlDiskList) {
        this.taxControlDiskList = taxControlDiskList;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
470
        result = prime * result + ((id == null) ? 0 : id.hashCode());
eddie.woo's avatar
eddie.woo committed
471
        result = prime * result + ((abbreviation == null) ? 0 : abbreviation.hashCode());
472
        result = prime * result + ((areaId == null) ? 0 : areaId.hashCode());
eddie.woo's avatar
eddie.woo committed
473
        result = prime * result + ((areaName == null) ? 0 : areaName.hashCode());
474
        result = prime * result + ((attributeId == null) ? 0 : attributeId.hashCode());
eddie.woo's avatar
eddie.woo committed
475 476 477
        result = prime * result + ((attributeName == null) ? 0 : attributeName.hashCode());
        result = prime * result + ((bankAccountName == null) ? 0 : bankAccountName.hashCode());
        result = prime * result + ((bankAccountNumber == null) ? 0 : bankAccountNumber.hashCode());
478
        result = prime * result + ((businessUnitId == null) ? 0 : businessUnitId.hashCode());
eddie.woo's avatar
eddie.woo committed
479 480 481 482
        result = prime * result + ((businessUnitName == null) ? 0 : businessUnitName.hashCode());
        result = prime * result + ((clientCode == null) ? 0 : clientCode.hashCode());
        result = prime * result + ((code == null) ? 0 : code.hashCode());
        result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
483
        result = prime * result + ((dimensionId == null) ? 0 : dimensionId.hashCode());
eddie.woo's avatar
eddie.woo committed
484
        result = prime * result + ((dimensionName == null) ? 0 : dimensionName.hashCode());
485
        result = prime * result + ((dimensionValueId == null) ? 0 : dimensionValueId.hashCode());
eddie.woo's avatar
eddie.woo committed
486 487 488 489
        result = prime * result + ((dimensionValueName == null) ? 0 : dimensionValueName.hashCode());
        result = prime * result + ((dimensionValueOrgList == null) ? 0 : dimensionValueOrgList.hashCode());
        result = prime * result + ((englishName == null) ? 0 : englishName.hashCode());
        result = prime * result + ((enterpriseAccountSetOrgList == null) ? 0 : enterpriseAccountSetOrgList.hashCode());
490
        result = prime * result + ((industryId == null) ? 0 : industryId.hashCode());
eddie.woo's avatar
eddie.woo committed
491 492 493 494 495 496 497 498 499 500 501
        result = prime * result + ((industryName == null) ? 0 : industryName.hashCode());
        result = prime * result + ((invoiceType == null) ? 0 : invoiceType.hashCode());
        result = prime * result + ((isActive == null) ? 0 : isActive.hashCode());
        result = prime * result + ((isSystemDimension == null) ? 0 : isSystemDimension.hashCode());
        result = prime * result + ((legalPersonName == null) ? 0 : legalPersonName.hashCode());
        result = prime * result + ((level == null) ? 0 : level.hashCode());
        result = prime * result + ((manufactureAddress == null) ? 0 : manufactureAddress.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((organizationServiceTemplateGroupList == null) ? 0
                : organizationServiceTemplateGroupList.hashCode());
        result = prime * result + ((pLevel == null) ? 0 : pLevel.hashCode());
502
        result = prime * result + ((parentId == null) ? 0 : parentId.hashCode());
eddie.woo's avatar
eddie.woo committed
503
        result = prime * result + ((parentName == null) ? 0 : parentName.hashCode());
504
        result = prime * result + ((parentRegionId == null) ? 0 : parentRegionId.hashCode());
eddie.woo's avatar
eddie.woo committed
505
        result = prime * result + ((phoneNumber == null) ? 0 : phoneNumber.hashCode());
506
        result = prime * result + ((regionId == null) ? 0 : regionId.hashCode());
eddie.woo's avatar
eddie.woo committed
507 508 509 510 511 512
        result = prime * result + ((regionName == null) ? 0 : regionName.hashCode());
        result = prime * result + ((registerAddress == null) ? 0 : registerAddress.hashCode());
        result = prime * result + ((registrationType == null) ? 0 : registrationType.hashCode());
        result = prime * result + ((remark == null) ? 0 : remark.hashCode());
        result = prime * result
                + ((sameVehicleroutinglocationList == null) ? 0 : sameVehicleroutinglocationList.hashCode());
513
        result = prime * result + ((structureId == null) ? 0 : structureId.hashCode());
eddie.woo's avatar
eddie.woo committed
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
        result = prime * result + ((structureName == null) ? 0 : structureName.hashCode());
        result = prime * result + ((subOrgs == null) ? 0 : subOrgs.hashCode());
        result = prime * result + ((taxControlDiskList == null) ? 0 : taxControlDiskList.hashCode());
        result = prime * result + ((taxPayerNumber == null) ? 0 : taxPayerNumber.hashCode());
        result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
        result = prime * result + ((userRoleList == null) ? 0 : userRoleList.hashCode());
        result = prime * result + ((vehicleroutinglocation == null) ? 0 : vehicleroutinglocation.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        OrganizationDto other = (OrganizationDto) obj;
533 534
        if (id == null) {
            if (other.id != null)
eddie.woo's avatar
eddie.woo committed
535
                return false;
536
        } else if (!id.equals(other.id))
eddie.woo's avatar
eddie.woo committed
537 538 539 540 541 542
            return false;
        if (abbreviation == null) {
            if (other.abbreviation != null)
                return false;
        } else if (!abbreviation.equals(other.abbreviation))
            return false;
543 544
        if (areaId == null) {
            if (other.areaId != null)
eddie.woo's avatar
eddie.woo committed
545
                return false;
546
        } else if (!areaId.equals(other.areaId))
eddie.woo's avatar
eddie.woo committed
547 548 549 550 551 552
            return false;
        if (areaName == null) {
            if (other.areaName != null)
                return false;
        } else if (!areaName.equals(other.areaName))
            return false;
553 554
        if (attributeId == null) {
            if (other.attributeId != null)
eddie.woo's avatar
eddie.woo committed
555
                return false;
556
        } else if (!attributeId.equals(other.attributeId))
eddie.woo's avatar
eddie.woo committed
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572
            return false;
        if (attributeName == null) {
            if (other.attributeName != null)
                return false;
        } else if (!attributeName.equals(other.attributeName))
            return false;
        if (bankAccountName == null) {
            if (other.bankAccountName != null)
                return false;
        } else if (!bankAccountName.equals(other.bankAccountName))
            return false;
        if (bankAccountNumber == null) {
            if (other.bankAccountNumber != null)
                return false;
        } else if (!bankAccountNumber.equals(other.bankAccountNumber))
            return false;
573 574
        if (businessUnitId == null) {
            if (other.businessUnitId != null)
eddie.woo's avatar
eddie.woo committed
575
                return false;
576
        } else if (!businessUnitId.equals(other.businessUnitId))
eddie.woo's avatar
eddie.woo committed
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
            return false;
        if (businessUnitName == null) {
            if (other.businessUnitName != null)
                return false;
        } else if (!businessUnitName.equals(other.businessUnitName))
            return false;
        if (clientCode == null) {
            if (other.clientCode != null)
                return false;
        } else if (!clientCode.equals(other.clientCode))
            return false;
        if (code == null) {
            if (other.code != null)
                return false;
        } else if (!code.equals(other.code))
            return false;
        if (createTime == null) {
            if (other.createTime != null)
                return false;
        } else if (!createTime.equals(other.createTime))
            return false;
598 599
        if (dimensionId == null) {
            if (other.dimensionId != null)
eddie.woo's avatar
eddie.woo committed
600
                return false;
601
        } else if (!dimensionId.equals(other.dimensionId))
eddie.woo's avatar
eddie.woo committed
602 603 604 605 606 607
            return false;
        if (dimensionName == null) {
            if (other.dimensionName != null)
                return false;
        } else if (!dimensionName.equals(other.dimensionName))
            return false;
608 609
        if (dimensionValueId == null) {
            if (other.dimensionValueId != null)
eddie.woo's avatar
eddie.woo committed
610
                return false;
611
        } else if (!dimensionValueId.equals(other.dimensionValueId))
eddie.woo's avatar
eddie.woo committed
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632
            return false;
        if (dimensionValueName == null) {
            if (other.dimensionValueName != null)
                return false;
        } else if (!dimensionValueName.equals(other.dimensionValueName))
            return false;
        if (dimensionValueOrgList == null) {
            if (other.dimensionValueOrgList != null)
                return false;
        } else if (!dimensionValueOrgList.equals(other.dimensionValueOrgList))
            return false;
        if (englishName == null) {
            if (other.englishName != null)
                return false;
        } else if (!englishName.equals(other.englishName))
            return false;
        if (enterpriseAccountSetOrgList == null) {
            if (other.enterpriseAccountSetOrgList != null)
                return false;
        } else if (!enterpriseAccountSetOrgList.equals(other.enterpriseAccountSetOrgList))
            return false;
633 634
        if (industryId == null) {
            if (other.industryId != null)
eddie.woo's avatar
eddie.woo committed
635
                return false;
636
        } else if (!industryId.equals(other.industryId))
eddie.woo's avatar
eddie.woo committed
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
            return false;
        if (industryName == null) {
            if (other.industryName != null)
                return false;
        } else if (!industryName.equals(other.industryName))
            return false;
        if (invoiceType == null) {
            if (other.invoiceType != null)
                return false;
        } else if (!invoiceType.equals(other.invoiceType))
            return false;
        if (isActive == null) {
            if (other.isActive != null)
                return false;
        } else if (!isActive.equals(other.isActive))
            return false;
        if (isSystemDimension == null) {
            if (other.isSystemDimension != null)
                return false;
        } else if (!isSystemDimension.equals(other.isSystemDimension))
            return false;
        if (legalPersonName == null) {
            if (other.legalPersonName != null)
                return false;
        } else if (!legalPersonName.equals(other.legalPersonName))
            return false;
        if (level == null) {
            if (other.level != null)
                return false;
        } else if (!level.equals(other.level))
            return false;
        if (manufactureAddress == null) {
            if (other.manufactureAddress != null)
                return false;
        } else if (!manufactureAddress.equals(other.manufactureAddress))
            return false;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        if (organizationServiceTemplateGroupList == null) {
            if (other.organizationServiceTemplateGroupList != null)
                return false;
        } else if (!organizationServiceTemplateGroupList.equals(other.organizationServiceTemplateGroupList))
            return false;
        if (pLevel == null) {
            if (other.pLevel != null)
                return false;
        } else if (!pLevel.equals(other.pLevel))
            return false;
688 689
        if (parentId == null) {
            if (other.parentId != null)
eddie.woo's avatar
eddie.woo committed
690
                return false;
691
        } else if (!parentId.equals(other.parentId))
eddie.woo's avatar
eddie.woo committed
692 693 694 695 696 697
            return false;
        if (parentName == null) {
            if (other.parentName != null)
                return false;
        } else if (!parentName.equals(other.parentName))
            return false;
698 699
        if (parentRegionId == null) {
            if (other.parentRegionId != null)
eddie.woo's avatar
eddie.woo committed
700
                return false;
701
        } else if (!parentRegionId.equals(other.parentRegionId))
eddie.woo's avatar
eddie.woo committed
702 703 704 705 706 707
            return false;
        if (phoneNumber == null) {
            if (other.phoneNumber != null)
                return false;
        } else if (!phoneNumber.equals(other.phoneNumber))
            return false;
708 709
        if (regionId == null) {
            if (other.regionId != null)
eddie.woo's avatar
eddie.woo committed
710
                return false;
711
        } else if (!regionId.equals(other.regionId))
eddie.woo's avatar
eddie.woo committed
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737
            return false;
        if (regionName == null) {
            if (other.regionName != null)
                return false;
        } else if (!regionName.equals(other.regionName))
            return false;
        if (registerAddress == null) {
            if (other.registerAddress != null)
                return false;
        } else if (!registerAddress.equals(other.registerAddress))
            return false;
        if (registrationType == null) {
            if (other.registrationType != null)
                return false;
        } else if (!registrationType.equals(other.registrationType))
            return false;
        if (remark == null) {
            if (other.remark != null)
                return false;
        } else if (!remark.equals(other.remark))
            return false;
        if (sameVehicleroutinglocationList == null) {
            if (other.sameVehicleroutinglocationList != null)
                return false;
        } else if (!sameVehicleroutinglocationList.equals(other.sameVehicleroutinglocationList))
            return false;
738 739
        if (structureId == null) {
            if (other.structureId != null)
eddie.woo's avatar
eddie.woo committed
740
                return false;
741
        } else if (!structureId.equals(other.structureId))
eddie.woo's avatar
eddie.woo committed
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
            return false;
        if (structureName == null) {
            if (other.structureName != null)
                return false;
        } else if (!structureName.equals(other.structureName))
            return false;
        if (subOrgs == null) {
            if (other.subOrgs != null)
                return false;
        } else if (!subOrgs.equals(other.subOrgs))
            return false;
        if (taxControlDiskList == null) {
            if (other.taxControlDiskList != null)
                return false;
        } else if (!taxControlDiskList.equals(other.taxControlDiskList))
            return false;
        if (taxPayerNumber == null) {
            if (other.taxPayerNumber != null)
                return false;
        } else if (!taxPayerNumber.equals(other.taxPayerNumber))
            return false;
        if (updateTime == null) {
            if (other.updateTime != null)
                return false;
        } else if (!updateTime.equals(other.updateTime))
            return false;
        if (userRoleList == null) {
            if (other.userRoleList != null)
                return false;
        } else if (!userRoleList.equals(other.userRoleList))
            return false;
        if (vehicleroutinglocation == null) {
            if (other.vehicleroutinglocation != null)
                return false;
        } else if (!vehicleroutinglocation.equals(other.vehicleroutinglocation))
            return false;
        return true;
    }
}