|  |  |  | 
|---|
|  |  |  | private Date updateTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 类型 0:非空  1:空板 | 
|---|
|  |  |  | * 类型 1:非空  2:空板 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "类型 0:非空  1:空板") | 
|---|
|  |  |  | @ApiModelProperty(value = "类型 1:非空  2:空板") | 
|---|
|  |  |  | private Integer type; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | private Integer lineNumber; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 工作类型 | 
|---|
|  |  |  | * 工作类型 1:取(叠盘)  2:拆盘  3:取放 5:满取  6:满放 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "工作类型  1:取(叠盘)  2:放 3:取放 4:拆盘") | 
|---|
|  |  |  | @ApiModelProperty(value = "工作类型  1:取(叠盘)  2:拆盘  3:取放 5:满取  6:满放") | 
|---|
|  |  |  | @TableField("wrk_type") | 
|---|
|  |  |  | private Integer wrkType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | this.wrkEnd = wrkMast.getStaNo(); | 
|---|
|  |  |  | this.staStart = basDevp.getDevNo(); | 
|---|
|  |  |  | this.staEnd = getStaEnd(wrkMast.getStaNo()); | 
|---|
|  |  |  | this.createTime = now; | 
|---|
|  |  |  | this.updateTime = now; | 
|---|
|  |  |  | this.wrkSts = 0; | 
|---|
|  |  |  | this.bignTime = now; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public WrkMastSta(Date now, Integer staStart) { | 
|---|
|  |  |  | this.wrkNo = staStart.longValue()+19999L; | 
|---|
|  |  |  | this.wrkStart = staStart; | 
|---|
|  |  |  | this.wrkEnd = staStart; | 
|---|
|  |  |  | this.staStart = staStart; | 
|---|
|  |  |  | this.staEnd = staStart; | 
|---|
|  |  |  | this.createTime = now; | 
|---|
|  |  |  | this.updateTime = now; | 
|---|
|  |  |  | this.wrkSts = 0; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getType$() { | 
|---|
|  |  |  | if (Cools.isEmpty(this.type)) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | switch (this.type) { | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "非空"; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | return "空板"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 工作状态 0:初始 1:等待小车取 2:等待小车放 3:完成 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String getWrkSts$() { | 
|---|
|  |  |  | if (Cools.isEmpty(this.wrkSts)) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | if (this.wrkSts==0){ | 
|---|
|  |  |  | return "初始"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | switch (this.wrkSts) { | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "初始"; | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "等待小车取"; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | return "等待小车放"; | 
|---|
|  |  |  | case 3: | 
|---|
|  |  |  | return "完成"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 工作类型 1:取(叠盘)  2:拆盘  3:取放 5:满取  6:满放 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String getWrkType$() { | 
|---|
|  |  |  | if (Cools.isEmpty(this.wrkType)) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | switch (this.wrkType) { | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "叠盘"; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | return "拆盘"; | 
|---|
|  |  |  | case 3: | 
|---|
|  |  |  | return "取放"; | 
|---|
|  |  |  | case 4: | 
|---|
|  |  |  | return "行走"; | 
|---|
|  |  |  | case 5: | 
|---|
|  |  |  | return "满取"; | 
|---|
|  |  |  | case 6: | 
|---|
|  |  |  | return "满放"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|