| | |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.WrkMastLogService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | /** |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value= "品号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value= "品名") |
| | | private String maktx; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value= "类型") |
| | | // @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | private Integer check; |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "bom号") |
| | | @TableField("bom_code") |
| | | private String bomCode; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCheck$(){ |
| | | if (null == this.check){ return null; } |
| | | switch (this.check){ |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.check); |
| | | return String.valueOf(this.inspect); |
| | | } |
| | | } |
| | | |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | if (Cools.isEmpty(this.wrkNo) || Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | | } |
| | | WrkMastLogService wrkMastLogService = SpringUtils.getBean(WrkMastLogService.class); |
| | | EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("wrk_no", wrkNo); |
| | | wrapper.eq("io_time", ioTime); |
| | | WrkMastLog wrkMastLog = wrkMastLogService.selectOne(wrapper); |
| | | if (Cools.isEmpty(wrkMastLog)){ |
| | | return ""; |
| | | } |
| | | return wrkMastLog.getIoType$(); |
| | | } |
| | | |
| | | |
| | | } |