add: 添加任务类型显示查询

This commit is contained in:
yanps
2024-05-11 20:27:02 +08:00
parent fb8cf98363
commit b6dd29b4b7
3 changed files with 44 additions and 2 deletions

View File

@@ -344,6 +344,7 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> impleme
String vehicle_code = (String) whereJson.get("vehicle_code");
String material_type = (String) whereJson.get("material_type");
String status = (String) whereJson.get("status");
String taskType = (String) whereJson.get("task_type");
String point_code = (String) whereJson.get("point_code");
String create_time = (String) whereJson.get("createTime");
String end_time = (String) whereJson.get("end_time");
@@ -353,6 +354,9 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> impleme
if (!StrUtil.isEmpty(task_code)) {
wrapper.eq(Task::getTask_code, task_code);
}
if (!StrUtil.isEmpty(taskType)) {
wrapper.eq(Task::getTask_type, taskType);
}
if (!StrUtil.isEmpty(vehicle_code)) {
wrapper.like(Task::getVehicle_code, vehicle_code);
}