package com.zy.asrs.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableName; import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.service.BasWrkIotypeService; import com.zy.asrs.service.BasWrkStatusService; import lombok.Data; @Data @TableName("agv_wrk_log") public class WrkLog extends AgvWrkDetlLog{ @TableField("io_type") private Integer ioType; @TableField("loc_no") private String locNo; @TableField("source_loc_no") private String sourceLocNo; @TableField("wrk_sts") private Long wrkSts; public String getWrkSts$(){ BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); if (!Cools.isEmpty(basWrkStatus)){ return String.valueOf(basWrkStatus.getWrkDesc()); } return null; } public String getIoType$(){ BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); BasWrkIotype basWrkIotype = service.selectById(this.ioType); if (!Cools.isEmpty(basWrkIotype)){ return String.valueOf(basWrkIotype.getIoDesc()); } return null; } }