新购倒序、增加状态筛选
This commit is contained in:
parent
0692590215
commit
e0c900cad8
|
|
@ -35,6 +35,9 @@ public class PurchaseQueryDto {
|
|||
@ApiModelProperty(value = "任务阶段,对应新购阶段枚举")
|
||||
private Integer taskStage;
|
||||
|
||||
@ApiModelProperty(value = "是否完成")
|
||||
private Integer isFinish;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date startTime;
|
||||
|
|
|
|||
|
|
@ -229,6 +229,13 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService {
|
|||
// 设置外层任务状态:入库待开始、入库进行中、入库已完成
|
||||
TmTask tmTask = tmTaskMapper.selectTmTaskByTaskId(purchaseInfo.getTaskId());
|
||||
purchaseInfo.setTaskStatusName(isIncludeStage ? "未完成" : "已完成");
|
||||
if (purchaseQueryDto.getIsFinish() != null) {
|
||||
if (purchaseQueryDto.getIsFinish() == 1) {
|
||||
if (isIncludeStage) {continue;}
|
||||
} else {
|
||||
if (!isIncludeStage) {continue;}
|
||||
}
|
||||
}
|
||||
purchaseInfo.setTaskStatus(tmTask.getTaskStatus());
|
||||
|
||||
// 设置外层任务列表
|
||||
|
|
|
|||
|
|
@ -436,6 +436,7 @@
|
|||
and dai.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by dai.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="getDirectApplyInfoById" resultType="com.bonus.material.ma.domain.DirectApplyInfo">
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
)
|
||||
</if>
|
||||
</where>
|
||||
order by pci.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectPurchaseCheckFormVoByTaskId" resultMap="PurchaseCheckFormResult">
|
||||
|
|
|
|||
Loading…
Reference in New Issue