新购倒序、增加状态筛选

This commit is contained in:
syruan 2024-12-23 17:57:47 +08:00
parent 0692590215
commit e0c900cad8
4 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,9 @@ public class PurchaseQueryDto {
@ApiModelProperty(value = "任务阶段,对应新购阶段枚举") @ApiModelProperty(value = "任务阶段,对应新购阶段枚举")
private Integer taskStage; private Integer taskStage;
@ApiModelProperty(value = "是否完成")
private Integer isFinish;
@ApiModelProperty(value = "开始时间") @ApiModelProperty(value = "开始时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date startTime; private Date startTime;

View File

@ -229,6 +229,13 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService {
// 设置外层任务状态入库待开始入库进行中入库已完成 // 设置外层任务状态入库待开始入库进行中入库已完成
TmTask tmTask = tmTaskMapper.selectTmTaskByTaskId(purchaseInfo.getTaskId()); TmTask tmTask = tmTaskMapper.selectTmTaskByTaskId(purchaseInfo.getTaskId());
purchaseInfo.setTaskStatusName(isIncludeStage ? "未完成" : "已完成"); purchaseInfo.setTaskStatusName(isIncludeStage ? "未完成" : "已完成");
if (purchaseQueryDto.getIsFinish() != null) {
if (purchaseQueryDto.getIsFinish() == 1) {
if (isIncludeStage) {continue;}
} else {
if (!isIncludeStage) {continue;}
}
}
purchaseInfo.setTaskStatus(tmTask.getTaskStatus()); purchaseInfo.setTaskStatus(tmTask.getTaskStatus());
// 设置外层任务列表 // 设置外层任务列表

View File

@ -436,6 +436,7 @@
and dai.status = #{status} and dai.status = #{status}
</if> </if>
</where> </where>
order by dai.create_time desc
</select> </select>
<select id="getDirectApplyInfoById" resultType="com.bonus.material.ma.domain.DirectApplyInfo"> <select id="getDirectApplyInfoById" resultType="com.bonus.material.ma.domain.DirectApplyInfo">

View File

@ -150,6 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) )
</if> </if>
</where> </where>
order by pci.create_time desc
</select> </select>
<select id="selectPurchaseCheckFormVoByTaskId" resultMap="PurchaseCheckFormResult"> <select id="selectPurchaseCheckFormVoByTaskId" resultMap="PurchaseCheckFormResult">