多状态查询人员岗位管理

liweidong
qinyulong 3 months ago
parent f157b3659f
commit ff86d4cc44
  1. 4
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/jobTransfer/pojo/request/PostHandleQuery.java
  2. 2
      blade-service/blade-desk/src/main/java/org/springblade/desk/jobTransfer/controller/PostHandleController.java
  3. 8
      blade-service/blade-desk/src/main/java/org/springblade/desk/jobTransfer/mapper/PostHandleMapper.xml

@ -44,8 +44,8 @@ public class PostHandleQuery {
/** /**
* 状态 * 状态
*/ */
@Schema(description = "状态") @Schema(description = "多个状态(1,2,3,4)")
private Integer phStatus; private String phStatus;
/** /**
* 入职时间 * 入职时间
*/ */

@ -82,7 +82,7 @@ public class PostHandleController extends BladeController {
@Parameter(name = "station", description = "所属岗位", in = ParameterIn.QUERY, schema = @Schema(type = "string")), @Parameter(name = "station", description = "所属岗位", in = ParameterIn.QUERY, schema = @Schema(type = "string")),
@Parameter(name = "inJobDate", description = "入职时间", in = ParameterIn.QUERY, schema = @Schema(type = "string", format = "date")), @Parameter(name = "inJobDate", description = "入职时间", in = ParameterIn.QUERY, schema = @Schema(type = "string", format = "date")),
@Parameter(name = "skill", description = "技能等级", in = ParameterIn.QUERY, schema = @Schema(type = "integer")), @Parameter(name = "skill", description = "技能等级", in = ParameterIn.QUERY, schema = @Schema(type = "integer")),
@Parameter(name = "phStatus", description = "状态", in = ParameterIn.QUERY, schema = @Schema(type = "integer")), @Parameter(name = "phStatus", description = "状态", in = ParameterIn.QUERY, schema = @Schema(type = "string")),
@Parameter(name = "conExpDate", description = "合同到期日期", in = ParameterIn.QUERY, schema = @Schema(type = "string", format = "date")), @Parameter(name = "conExpDate", description = "合同到期日期", in = ParameterIn.QUERY, schema = @Schema(type = "string", format = "date")),
}) })
public R<IPage<PostHandleVO>> page(@Parameter(hidden = true) PostHandleQuery postHandleQuery, Query query) { public R<IPage<PostHandleVO>> page(@Parameter(hidden = true) PostHandleQuery postHandleQuery, Query query) {

@ -122,8 +122,12 @@
<if test="postHandle.skill != null"> <if test="postHandle.skill != null">
AND mph.SKILL = #{postHandle.skill} AND mph.SKILL = #{postHandle.skill}
</if> </if>
<if test="postHandle.phStatus != null"> <if test="postHandle.phStatus != null and postHandle.phStatus != ''">
AND mph.PH_STATUS = #{postHandle.phStatus} AND mph.PH_STATUS IN
<foreach collection="postHandle.phStatus.split(',')" item="status"
open="(" separator="," close=")" index="index">
#{status}
</foreach>
</if> </if>
<if test="postHandle.inJobDate != null"> <if test="postHandle.inJobDate != null">
AND mph.IN_JOB_DATE = #{postHandle.inJobDate} AND mph.IN_JOB_DATE = #{postHandle.inJobDate}

Loading…
Cancel
Save