| | |
| | | CodeService service = SpringUtils.getBean(CodeService.class); |
| | | Code code = service.getById(this.code); |
| | | if (!Cools.isEmpty(code)){ |
| | | return String.valueOf(code.getUuid()); |
| | | return String.valueOf(code.getData()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDeleted$(){ |
| | | if (null == this.deleted){ return null; } |
| | | switch (this.deleted){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.deleted); |
| | | } |
| | | } |
| | | |
| | | |
| | | public String getCompDirect$(){ |
| | | if (null == this.compDirect){ return null; } |
| | |
| | | } |
| | | } |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | case 1: |
| | | return true; |
| | | case 0: |
| | | return false; |
| | | default: |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |