/**
  * 添加电话号码 1、更新组织表中的电话和传真 2、删除电话表中原有的电话 3、插入组织表中的电话
  *
  * @param list 要插入的电话集合
  */
 @Transactional
 public void addPhoneList(List<OrganizationPhone> list, Organization organization) {
   organization2Service.updateContactInfo(organization);
   deleteByOrgId(organization.getId());
   if (list != null && list.size() > 0) {
     for (OrganizationPhone orgPhone : list) {
       if (orgPhone.getPhone() != null) {
         orgPhone.setOrgId(organization.getId());
         insert(orgPhone);
       }
     }
   }
 }
  @Before
  public void init() {
    organization = new Organization();
    organization.setOrgName("特别部门");
    organization.setOrgCode("" + Math.random());
    organization.setParentId(22);
    organization.setOrgType("分行");
    organization.setStatus(1);
    organization.setOpenDate(new Date());

    orgOperateHistory = new OrganizationOperateHistory();
    orgOperateHistory.setOrgId(20513);
    orgOperateHistory.setCreateName("宋东风");
    orgOperateHistory.setCreator(81820);
  }
 @Test
 public void testSaveOperateHistory() {
   organization.setId(20646);
   System.out.println(orgOpeHisService.saveOperateHistory(organization, orgOperateHistory));
 }