|
|
|
@ -16,6 +16,7 @@ import com.engine.organization.entity.company.bo.CompBO;
|
|
|
|
|
import com.engine.organization.entity.company.dto.CompListDTO;
|
|
|
|
|
import com.engine.organization.entity.company.param.CompSearchParam;
|
|
|
|
|
import com.engine.organization.entity.company.po.CompPO;
|
|
|
|
|
import com.engine.organization.entity.department.param.DepartmentMoveParam;
|
|
|
|
|
import com.engine.organization.entity.extend.po.ExtendTitlePO;
|
|
|
|
|
import com.engine.organization.mapper.codesetting.CodeRuleMapper;
|
|
|
|
|
import com.engine.organization.mapper.comp.CompMapper;
|
|
|
|
@ -293,6 +294,16 @@ public class CompServiceImpl extends Service implements CompService {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int moveCompany(DepartmentMoveParam moveParam) {
|
|
|
|
|
Long targetCompanyId = moveParam.getCompany();
|
|
|
|
|
OrganizationAssert.notNull(targetCompanyId, "请选择要转移到的分部");
|
|
|
|
|
Long companyId = moveParam.getId();
|
|
|
|
|
CompPO compPO = getCompMapper().listById(companyId);
|
|
|
|
|
compPO.setParentCompany(targetCompanyId);
|
|
|
|
|
return getCompMapper().updateBaseComp(compPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否为搜索查询
|
|
|
|
|