|
@@ -14,6 +14,7 @@ import com.keao.edu.user.dao.TenantInfoDao;
|
|
|
import com.keao.edu.user.entity.Employee;
|
|
|
import com.keao.edu.user.entity.Organization;
|
|
|
import com.keao.edu.user.entity.TenantInfo;
|
|
|
+import com.keao.edu.user.enums.YesOrNoEnum;
|
|
|
import com.keao.edu.user.service.TenantInfoService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -69,6 +70,10 @@ public class TenantInfoServiceImpl extends BaseServiceImpl<Integer, TenantInfo>
|
|
|
organ.setLevel(0);
|
|
|
organ.setParentOrganIdTag(sysUser.getId().toString());
|
|
|
organ.setId(sysUser.getId());
|
|
|
+ organ.setName(sysUser.getRealName());
|
|
|
+ organ.setContactName(tenantInfo.getContactName());
|
|
|
+ organ.setContactPhone(tenantInfo.getContactPhone());
|
|
|
+ organ.setIsAllowArrangeExam(YesOrNoEnum.YES);
|
|
|
organizationDao.insert(organ);
|
|
|
|
|
|
Employee employee = new Employee();
|