| | |
| | | package com.zy.asrs.wms.asrs.entity.enums; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.framework.common.SpringUtils; |
| | | import com.zy.asrs.framework.exception.CoolException; |
| | | import com.zy.asrs.wms.asrs.entity.LocSts; |
| | | import com.zy.asrs.wms.asrs.entity.OrderSettle; |
| | | import com.zy.asrs.wms.asrs.service.LocStsService; |
| | | import com.zy.asrs.wms.asrs.service.OrderSettleService; |
| | | |
| | | public enum OrderSettleType { |
| | | |
| | | INIT(0, "初始化"), |
| | | WAIT(1, "待处理"), |
| | | WAVE(2, "波次生成"), |
| | | WORKING(3, "作业中"), |
| | | CANCEL(4, "已取消"), |
| | | COMPLETE(5, "已完成"), |
| | | WAIT_CANCEL(6, "准备取消"), |
| | | REPORT_COMPLETE(7, "上报完成"), |
| | | ; |
| | | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | OrderSettleType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public long val() { |
| | | OrderSettleService service = SpringUtils.getBean(OrderSettleService.class); |
| | | OrderSettle orderSettle = service.getOne(new LambdaQueryWrapper<OrderSettle>().eq(OrderSettle::getSettle, id)); |
| | | if (orderSettle == null) { |
| | | throw new CoolException("LocStsType Error!"); |
| | | } |
| | | return orderSettle.getId(); |
| | | } |
| | | |
| | | |
| | | } |
| | | package com.zy.asrs.wms.asrs.entity.enums;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.zy.asrs.framework.common.SpringUtils;
|
| | | import com.zy.asrs.framework.exception.CoolException;
|
| | | import com.zy.asrs.wms.asrs.entity.LocSts;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderSettle;
|
| | | import com.zy.asrs.wms.asrs.service.LocStsService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderSettleService;
|
| | |
|
| | | public enum OrderSettleType {
|
| | |
|
| | | INIT(0, "初始化"),
|
| | | WAIT(1, "待处理"),
|
| | | WAVE(2, "波次生成"),
|
| | | WORKING(3, "作业中"),
|
| | | CANCEL(4, "已取消"),
|
| | | COMPLETE(5, "已完成"),
|
| | | WAIT_CANCEL(6, "准备取消"),
|
| | | REPORT_COMPLETE(7, "上报完成"),
|
| | | ;
|
| | |
|
| | |
|
| | | public Integer id;
|
| | | public String desc;
|
| | |
|
| | | OrderSettleType(Integer id, String desc) {
|
| | | this.id = id;
|
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | public long val() {
|
| | | OrderSettleService service = SpringUtils.getBean(OrderSettleService.class);
|
| | | OrderSettle orderSettle = service.getOne(new LambdaQueryWrapper<OrderSettle>().eq(OrderSettle::getSettle, id));
|
| | | if (orderSettle == null) {
|
| | | throw new CoolException("LocStsType Error!");
|
| | | }
|
| | | return orderSettle.getId();
|
| | | }
|
| | |
|
| | |
|
| | | }
|