Merge branch 'liweidong'

liweidong
liweidong-hj 2 days ago
commit 4b0880717b
  1. 3
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/logistics/pojo/dto/TaskDto.java
  2. 3
      blade-service/blade-desk/src/main/java/org/springblade/desk/logistics/controller/OrderBoxController.java
  3. 3
      blade-service/blade-desk/src/main/java/org/springblade/desk/logistics/mapper/TaskMapper.xml

@ -65,4 +65,7 @@ public class TaskDto extends BaseEntity {
@Schema(description = "终点站点") @Schema(description = "终点站点")
private String endStationCode; private String endStationCode;
@Schema(description = "状态")
private String status;
} }

@ -118,7 +118,8 @@ public class OrderBoxController extends BladeController {
@Parameter(name = "wcId", description = "作业中心ID", in = ParameterIn.QUERY, schema = @Schema(type = "Long")), @Parameter(name = "wcId", description = "作业中心ID", in = ParameterIn.QUERY, schema = @Schema(type = "Long")),
@Parameter(name = "taskStatus", description = "当前状态 0:退回(超重) 1:站点 2:库位 3:等待 4:回库 5:结束", in = ParameterIn.QUERY, schema = @Schema(type = "Integer")), @Parameter(name = "taskStatus", description = "当前状态 0:退回(超重) 1:站点 2:库位 3:等待 4:回库 5:结束", in = ParameterIn.QUERY, schema = @Schema(type = "Integer")),
@Parameter(name = "startTime", description = "开始时间", in = ParameterIn.QUERY, schema = @Schema(type = "Date")), @Parameter(name = "startTime", description = "开始时间", in = ParameterIn.QUERY, schema = @Schema(type = "Date")),
@Parameter(name = "endTime", description = "结束时间", in = ParameterIn.QUERY, schema = @Schema(type = "Date")) @Parameter(name = "endTime", description = "结束时间", in = ParameterIn.QUERY, schema = @Schema(type = "Date")),
@Parameter(name = "status", description = "任务状态", in = ParameterIn.QUERY, schema = @Schema(type = "String"))
}) })
public R<IPage<TaskVO>> page(@Parameter(hidden = true) TaskDto taskDto, Query query) { public R<IPage<TaskVO>> page(@Parameter(hidden = true) TaskDto taskDto, Query query) {

@ -70,6 +70,9 @@
<if test="taskDto.endStationCode != null and taskDto.endStationCode != ''"> <if test="taskDto.endStationCode != null and taskDto.endStationCode != ''">
AND ls.STATION_CODE LIKE '%' || #{taskDto.endStationCode} || '%' AND ls.STATION_CODE LIKE '%' || #{taskDto.endStationCode} || '%'
</if> </if>
<if test="taskDto.status != null and taskDto.status != ''">
AND l.STATUS = #{taskDto.status}
</if>
ORDER BY l.UPDATE_TIME DESC ORDER BY l.UPDATE_TIME DESC
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save