| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.zy.asrs.common.wms.service.BasLocStsService; |
| | | import com.zy.asrs.common.wms.service.BasWhsService; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wms_loc_mast") |
| | | @TableName("common_loc_mast") |
| | | public class LocMast implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 库位号 |
| | | */ |
| | | @ApiModelProperty(value= "库位号") |
| | | @TableId(value = "loc_no", type = IdType.INPUT) |
| | | private String locNo; |
| | | |
| | | /** |
| | |
| | | private String memo; |
| | | |
| | | /** |
| | | * 仓库ID |
| | | * 授权商户 |
| | | */ |
| | | @ApiModelProperty(value= "仓库ID") |
| | | @ApiModelProperty(value= "授权商户") |
| | | private Long hostId; |
| | | |
| | | public LocMast() {} |
| | | |
| | | public LocMast(String locNo,Long whsType,String locSts,Integer crnNo,Integer row1,Integer bay1,Integer lev1,String fullPlt,Short locType1,Short locType2,Short locType3,Date ioTime,Date firstTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Date errorTime,String errorMemo,String mk,String barcode,String memo) { |
| | | public LocMast(String locNo,Long whsType,String locSts,Integer crnNo,Integer row1,Integer bay1,Integer lev1,String fullPlt,Short locType1,Short locType2,Short locType3,Date ioTime,Date firstTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Date errorTime,String errorMemo,String mk,String barcode,String memo,Long hostId) { |
| | | this.locNo = locNo; |
| | | this.whsType = whsType; |
| | | this.locSts = locSts; |
| | |
| | | this.mk = mk; |
| | | this.barcode = barcode; |
| | | this.memo = memo; |
| | | this.hostId = hostId; |
| | | } |
| | | |
| | | // LocMast locMast = new LocMast( |
| | |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // null, // |
| | | // null // 授权商户 |
| | | // ); |
| | | |
| | | public String getWhsType$(){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | | } |
| | | |
| | | public String getHostId$(){ |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.getById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | return String.valueOf(host.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |