Commit cfe288ac authored by zhangyingbin's avatar zhangyingbin

新增获取当前登陆人所在单位信息(orgUsr表的)

parent 67b0888c
...@@ -50,9 +50,6 @@ public class InstallNoticeController extends BaseController { ...@@ -50,9 +50,6 @@ public class InstallNoticeController extends BaseController {
InstallNoticeServiceImpl installNoticeServiceImpl; InstallNoticeServiceImpl installNoticeServiceImpl;
@Autowired @Autowired
InstallNoticeMapper installNoticeMapper;
@Autowired
ProjectMapper projectMapper; ProjectMapper projectMapper;
@Autowired @Autowired
...@@ -61,6 +58,7 @@ public class InstallNoticeController extends BaseController { ...@@ -61,6 +58,7 @@ public class InstallNoticeController extends BaseController {
@Autowired @Autowired
ProjectServiceImpl projectServiceImpl; ProjectServiceImpl projectServiceImpl;
/** /**
* 新增安装告知表 * 新增安装告知表
* *
...@@ -225,6 +223,7 @@ public class InstallNoticeController extends BaseController { ...@@ -225,6 +223,7 @@ public class InstallNoticeController extends BaseController {
installNoticeDto.setContractAttch(JSON.toJSONString(contractAttch)); installNoticeDto.setContractAttch(JSON.toJSONString(contractAttch));
break; break;
} }
projectInitiationServiceImpl.execute(projectDto.getInstanceId(),installNoticeDto,"1");
return ResponseHelper.buildResponse(installNoticeServiceImpl.createWithModel(installNoticeDto)); return ResponseHelper.buildResponse(installNoticeServiceImpl.createWithModel(installNoticeDto));
} }
......
...@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.biz.common.constants.CommonConstant; ...@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.biz.common.constants.CommonConstant;
import com.yeejoin.amos.boot.biz.common.utils.RedisKey; import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import com.yeejoin.amos.boot.biz.common.utils.RedisUtils; import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto; import com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto;
import com.yeejoin.amos.boot.module.common.api.dto.OrgusrDataxDto;
import com.yeejoin.amos.boot.module.common.api.entity.DynamicFormColumn; import com.yeejoin.amos.boot.module.common.api.entity.DynamicFormColumn;
import com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance; import com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance;
import com.yeejoin.amos.boot.module.common.api.entity.OrgUsr; import com.yeejoin.amos.boot.module.common.api.entity.OrgUsr;
...@@ -237,12 +238,20 @@ public class OrgServiceImpl { ...@@ -237,12 +238,20 @@ public class OrgServiceImpl {
* @return * @return
*/ */
public Long getCompanyId(){ public Long getCompanyId(){
return getOrgUsr().getSequenceNbr();
}
/**
* 获取当前登陆人所在单位信息(orgUsr表的)
* @return
*/
public OrgUsr getOrgUsr(){
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(OrgUsr :: getAmosOrgId,String.valueOf(getReginParams().getCompany().getSequenceNbr())); wrapper.eq(OrgUsr :: getAmosOrgId,String.valueOf(getReginParams().getCompany().getSequenceNbr()));
OrgUsr orgUsr = orgUsrServiceImpl.getOne(wrapper); OrgUsr orgUsr = orgUsrServiceImpl.getOne(wrapper);
if(ValidationUtil.isEmpty(orgUsr)){ if(ValidationUtil.isEmpty(orgUsr)){
return null; return null;
} }
return orgUsr.getSequenceNbr(); return orgUsr;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment