代码更新
This commit is contained in:
@@ -12,7 +12,6 @@ import org.nl.modules.logging.annotation.Log;
|
||||
import org.nl.wms.sch.manage.FinishTypeEnum;
|
||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||
import org.nl.wms.sch.service.TaskService;
|
||||
import org.nl.wms.sch.tasks.TaskTypeEnum;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@@ -61,20 +60,6 @@ public class TaskController {
|
||||
return new ResponseEntity<>(arr, HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/taskType")
|
||||
@Log("获取任务类型列表")
|
||||
@ApiOperation("获取任务类型列表")
|
||||
public ResponseEntity<Object> getTaskType() {
|
||||
TaskTypeEnum[] values = TaskTypeEnum.values();
|
||||
JSONArray arr = new JSONArray();
|
||||
for (TaskTypeEnum value : values) {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", value.getCode());
|
||||
json.put("name", value.getName());
|
||||
arr.add(json);
|
||||
}
|
||||
return new ResponseEntity<>(arr, HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/finishType")
|
||||
@Log("获取任务类型列表")
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
package org.nl.wms.sch.tasks;
|
||||
|
||||
/**
|
||||
* 任务状态枚举
|
||||
*/
|
||||
public enum TaskTypeEnum {
|
||||
IN_TASK(1, "01", "入库"),
|
||||
Out_TASK(2, "02", "出库"),
|
||||
IN_EMPTY_VEHICLE_TASK(3, "03", "入空载具"),
|
||||
OUT_EMPTY_VEHICLE_TASK(4, "04", "出空载具"),
|
||||
DUMPINV_TASK(5, "05", "转储"),
|
||||
QUALITY_TASK(6, "06", "质检"),
|
||||
MATERIAL_BACK_TASK(7, "07", "余料回库");
|
||||
|
||||
private int index;
|
||||
private String code;
|
||||
private String name;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
TaskTypeEnum(int index, String code, String name) {
|
||||
this.index = index;
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user