自动化立体仓库 - WMS系统
Administrator
5 天以前 08b4403ec8d6b69528d161cfcad80b5d64dea76c
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -2,8 +2,10 @@
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;
@@ -48,13 +50,13 @@
    /**
     * 物料
     */
    @ApiModelProperty(value= "商品编号")
    @ApiModelProperty(value= "品号")
    private String matnr;
    /**
     * 物料描述
     */
    @ApiModelProperty(value= "商品名称")
    @ApiModelProperty(value= "品名")
    private String maktx;
    /**
@@ -91,7 +93,8 @@
    /**
     * 品牌
     */
    @ApiModelProperty(value= "品牌")
    @ApiModelProperty(value= "类型")
//    @ApiModelProperty(value= "品牌")
    private String brand;
    /**
@@ -268,6 +271,10 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    @ApiModelProperty(value= "bom号")
    @TableField("bom_code")
    private String bomCode;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
@@ -357,5 +364,20 @@
        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$();
    }
}