| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.zy.acs.manager.manager.service.CodeService; |
| | | import com.zy.acs.manager.manager.service.StaStsService; |
| | | import com.zy.acs.manager.manager.service.StaTypeService; |
| | | import com.zy.acs.manager.manager.service.ZoneService; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.framework.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | public String getZoneId$(){ |
| | | ZoneService service = SpringUtils.getBean(ZoneService.class); |
| | | Zone zone = service.getById(this.zoneId); |
| | | if (!Cools.isEmpty(zone)){ |
| | | return String.valueOf(zone.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | // public String getZoneId$(){ |
| | | // ZoneService service = SpringUtils.getBean(ZoneService.class); |
| | | // Zone zone = service.getById(this.zoneId); |
| | | // if (!Cools.isEmpty(zone)){ |
| | | // return String.valueOf(zone.getName()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | // |
| | | // public String getStaType$(){ |
| | | // StaTypeService service = SpringUtils.getBean(StaTypeService.class); |
| | | // StaType staType = service.getById(this.staType); |
| | | // if (!Cools.isEmpty(staType)){ |
| | | // return String.valueOf(staType.getName()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | // |
| | | // public String getCode$(){ |
| | | // CodeService service = SpringUtils.getBean(CodeService.class); |
| | | // Code code = service.getById(this.code); |
| | | // if (!Cools.isEmpty(code)){ |
| | | // return String.valueOf(code.getUuid()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | // |
| | | // public String getStaSts$(){ |
| | | // StaStsService service = SpringUtils.getBean(StaStsService.class); |
| | | // StaSts staSts = service.getById(this.staSts); |
| | | // if (!Cools.isEmpty(staSts)){ |
| | | // return String.valueOf(staSts.getName()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | |
| | | public String getStaType$(){ |
| | | StaTypeService service = SpringUtils.getBean(StaTypeService.class); |
| | | StaType staType = service.getById(this.staType); |
| | | if (!Cools.isEmpty(staType)){ |
| | | return String.valueOf(staType.getName()); |
| | | public Boolean getConnect() { |
| | | if (Cools.isEmpty(this.autoing)) { |
| | | return false; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCode$(){ |
| | | CodeService service = SpringUtils.getBean(CodeService.class); |
| | | Code code = service.getById(this.code); |
| | | if (!Cools.isEmpty(code)){ |
| | | return String.valueOf(code.getUuid()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStaSts$(){ |
| | | StaStsService service = SpringUtils.getBean(StaStsService.class); |
| | | StaSts staSts = service.getById(this.staSts); |
| | | if (!Cools.isEmpty(staSts)){ |
| | | return String.valueOf(staSts.getName()); |
| | | } |
| | | return null; |
| | | return this.autoing.equals("1"); |
| | | } |
| | | |
| | | public Boolean getStatusBool(){ |