|
|
@@ -56,7 +56,9 @@ public class ResourceSupplyAndDemandService {
|
|
|
} else {
|
|
|
record.getResSnD().setStatus(AuditStatus.PENDING);
|
|
|
record.getResSnD().setPublishersId(SecurityUtils.getAuthenticatedUser().getId());
|
|
|
- if(SecurityUtils.getAuthenticatedUser().getOrgInfo().getId()==null){
|
|
|
+ if (SecurityUtils.getAuthenticatedUser() == null ||
|
|
|
+ SecurityUtils.getAuthenticatedUser().getOrgInfo() == null ||
|
|
|
+ SecurityUtils.getAuthenticatedUser().getOrgInfo().getId() == null) {
|
|
|
return R.error("请先完成企业认证");
|
|
|
}
|
|
|
record.getResSnD().setOrgId(SecurityUtils.getAuthenticatedUser().getOrgInfo().getId());
|