| | |
| | | |
| | | 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= "类型") |
| | | // @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "bom号") |
| | | @TableField("bom_code") |
| | | private String bomCode; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | 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$(); |
| | | } |
| | | |
| | | |
| | | } |