获取就职单位去掉强校验

main
zhaokai 2025-12-12 10:02:14 +08:00
parent db6e68d7d2
commit e10a8734d8
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.zcloud.basic.info.command.query;
import com.alibaba.cola.dto.PageResponse;
import com.jjb.saas.framework.auth.utils.AuthContext;
import com.zcloud.basic.info.command.convertor.UserCorpRecordCoConvertor;
import com.zcloud.basic.info.dto.UserCorpRecordPageQry;
import com.zcloud.basic.info.dto.clientobject.UserCO;
@ -38,6 +39,9 @@ public class UserCorpRecordQueryExe {
* @return
*/
public PageResponse<UserCorpRecordCO> execute(UserCorpRecordPageQry userCorpRecordPageQry) {
if(userCorpRecordPageQry.getEqUserId() == null){
userCorpRecordPageQry.setEqUserId(AuthContext.getUserId());
}
Map<String, Object> params = PageQueryHelper.toHashMap(userCorpRecordPageQry);
PageResponse<UserCorpRecordDO> pageResponse = userCorpRecordRepository.listPage(params);
List<UserCorpRecordCO> examCenterCOS = userCorpRecordCoConvertor.converDOsToCOs(pageResponse.getData());

View File

@ -28,7 +28,8 @@ public class UserCorpRecordPageQry extends PageQuery {
*/
@ApiModelProperty("不等于的入职状态,(就职企业传0)1-在职 0-离职, 11-入职待审核, 10-离职待审核")
@NotNull(message = "状态不能为空")
private Integer neEmploymentFlag;
@ApiModelProperty("用户id")
private Long eqUserId;
}