| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; |
| | | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasLocStsService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | |
| | | @TableField("is_default") |
| | | private Integer isDefault; |
| | | |
| | | @ApiModelProperty("工位状态") |
| | | @TableField("loc_type") |
| | | private String locType; |
| | | |
| | | public LocAroundBind() {} |
| | | |
| | | public LocAroundBind(Long devId,String devNo,Long bLocId,String bLocNo) { |
| | |
| | | |
| | | public String getDef$() { |
| | | if (this.isDefault == 0) { |
| | | return "否"; |
| | | return "备用"; |
| | | } else { |
| | | return "是"; |
| | | return "默认"; |
| | | } |
| | | } |
| | | |
| | | public String getLocType$() { |
| | | if (this.locType == null) { |
| | | return null; |
| | | } |
| | | BasLocStsService service = SpringUtils.getBean(BasLocStsService.class); |
| | | BasLocSts basLocSts = service.selectById(this.locType); |
| | | if (!Cools.isEmpty(basLocSts)){ |
| | | return String.valueOf(basLocSts.getLocDesc()); |
| | | } |
| | | return null; |
| | | |
| | | } |
| | | |
| | | // LocAroundBind locAroundBind = new LocAroundBind( |
| | | // null, // 机台ID[非空] |
| | | // null, // 机台号[非空] |