| | |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.admin.request.UpdateCompanySortDTO; |
| | | import com.doumee.dao.admin.response.CompanyDTO; |
| | | import com.doumee.dao.business.CompanyMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.join.CompanyJoinMapper; |
| | | import com.doumee.dao.business.model.Category; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.dao.join.CompanyJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.vo.CompanyTree; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.CompanyService; |
| | | import com.doumee.dao.business.vo.CompanyTree; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | user = company.getLoginUserInfo(); |
| | | } |
| | | String rootOrgId = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_ROOTORG_CODE).getCode(); |
| | | company.setCompanyPath(company.getName());//名称路径 |
| | | company.setCompanyPath(company.getId()+"/");//名称路径 |
| | | company.setCompanyNamePath(company.getName());//名称路径 |
| | | company.setHkParentId(rootOrgId); |
| | | if(company.getParentId() !=null){ |
| | | Company parent = findById(company.getParentId()); |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,父级组织信息尚未同步下发成功~"); |
| | | } |
| | | company.setHkParentId(parent.getHkId()); |
| | | company.setCompanyPath(parent.getCompanyPath()+"/"+company.getName()); |
| | | company.setCompanyPath(parent.getCompanyPath()+company.getId()+"/"); |
| | | company.setCompanyNamePath(parent.getCompanyNamePath()+"/"+company.getName()); |
| | | } |
| | | company.setHkCompanyPath(company.getCompanyPath()); |
| | | company.setCreateDate(new Date()); |