package com.zy.asrs.entity.result; 
 | 
  
 | 
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; 
 | 
import com.core.common.Cools; 
 | 
import com.core.common.SpringUtils; 
 | 
import com.zy.asrs.entity.LocOwner; 
 | 
import com.zy.asrs.service.LocOwnerService; 
 | 
import com.zy.common.utils.Synchro; 
 | 
import lombok.Data; 
 | 
  
 | 
import java.util.Date; 
 | 
  
 | 
@Data 
 | 
@ExcelIgnoreUnannotated 
 | 
public class LocDetlAll { 
 | 
    private String loc_no; 
 | 
    private String zpallet; 
 | 
    private String matnr; 
 | 
    private String maktx; 
 | 
    private String specs; 
 | 
    private Double anfme; 
 | 
    private String batch; 
 | 
    private Double weight; 
 | 
  
 | 
    private String order_no; 
 | 
    private Integer owner; 
 | 
    private Integer payment; 
 | 
    private Date modi_time; 
 | 
    private Date appe_time; 
 | 
    private String meno; 
 | 
    private String manu; 
 | 
    private Integer inventory_max; 
 | 
    private Integer inventory_min; 
 | 
  
 | 
    public String getOwner$(){ 
 | 
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); 
 | 
        LocOwner locOwner = service.selectById(this.owner); 
 | 
        if (!Cools.isEmpty(locOwner)){ 
 | 
            return String.valueOf(locOwner.getOwner()); 
 | 
        } 
 | 
        return null; 
 | 
    } 
 | 
  
 | 
    public String getPayment$(){ 
 | 
        if (null == this.payment){ return null; } 
 | 
        switch (this.payment){ 
 | 
            case 1: 
 | 
                return "仓储"; 
 | 
            case 0: 
 | 
                return "代采"; 
 | 
            default: 
 | 
                return String.valueOf(this.payment); 
 | 
        } 
 | 
    } 
 | 
  
 | 
    public void sync(Object source) { 
 | 
        Synchro.Copy(source, this); 
 | 
    } 
 | 
} 
 |