1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| package com.zy.acs.manager.manager.enums;
|
| import com.zy.acs.framework.common.SpringUtils;
| import com.zy.acs.manager.common.exception.BusinessException;
| import com.zy.acs.manager.manager.entity.BusSts;
| import com.zy.acs.manager.manager.service.BusStsService;
|
| public enum BusStsType {
|
| RECEIVE,
| PROGRESS,
| FINISH,
| CANCEL,
| ;
|
| BusStsType() {
| }
|
| public long val() {
| BusStsService service = SpringUtils.getBean(BusStsService.class);
| BusSts busSts = service.selectByUuid(this.toString());
| if (busSts == null) {
| throw new BusinessException("BusStsType Error!");
| }
| return busSts.getId();
| }
|
| }
|
|