feat(bpm): 工单查询增加按级别筛选功能
- 在 BpmOAWorkOrderPageReqVO 中添加 level 字段,用于工单级别筛选 - 在 BpmOAWorkOrderMapper.xml 中增加对 level 的条件判断 - 优化 createTime 的判断逻辑,提高代码可读性
This commit is contained in:
parent
d79f7128f0
commit
2eeb98a360
@ -26,6 +26,9 @@ public class BpmOAWorkOrderPageReqVO extends PageParam {
|
|||||||
@Schema(description = "工单状态", example = "1")
|
@Schema(description = "工单状态", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "工单级别", example = "1")
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
@Schema(description = "责任人ID", example = "1")
|
@Schema(description = "责任人ID", example = "1")
|
||||||
private Long assigneeUserId;
|
private Long assigneeUserId;
|
||||||
|
|
||||||
|
@ -78,7 +78,10 @@
|
|||||||
<if test="req.fromUserId != null">
|
<if test="req.fromUserId != null">
|
||||||
AND w.from_user_id = #{req.fromUserId}
|
AND w.from_user_id = #{req.fromUserId}
|
||||||
</if>
|
</if>
|
||||||
<if test="req.createTime != null and req.createTime.size() == 2">
|
<if test="req.level != null">
|
||||||
|
AND w.level = #{req.level}
|
||||||
|
</if>
|
||||||
|
<if test="req.createTime != null and req.createTime.length() > 0">
|
||||||
AND w.create_time BETWEEN #{req.createTime[0]} AND #{req.createTime[1]}
|
AND w.create_time BETWEEN #{req.createTime[0]} AND #{req.createTime[1]}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
Loading…
Reference in New Issue
Block a user