package com.zy.asrs.entity;
|
|
import com.core.common.Cools;
|
import com.core.common.SpringUtils;
|
import com.zy.asrs.service.BasWrkIotypeService;
|
import com.zy.asrs.service.BasWrkStatusService;
|
import com.zy.asrs.service.LocMastService;
|
import com.zy.system.entity.User;
|
import com.zy.system.service.UserService;
|
import lombok.Data;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
/**
|
* @author pang.jiabao
|
* @description 库存移动流水dto
|
* @createDate 2025/1/3 13:59
|
*/
|
@Data
|
public class InventoryFlowDto {
|
|
private Integer wrkNo;
|
private Date ioTime;
|
private Integer ioType;
|
private Integer wrkSts;
|
private String sourceLocNo;
|
private String locNo;
|
private String orderNo;
|
private String matnr;
|
private String maktx;
|
private String batch;
|
private Double anfme;
|
private String zpallet;
|
private Long modiUser;
|
private Date modiTime;
|
|
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;
|
}
|
|
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 getLocNo$() {
|
LocMastService service = SpringUtils.getBean(LocMastService.class);
|
LocMast locMast = service.selectById(this.locNo);
|
if (!Cools.isEmpty(locMast)) {
|
return String.valueOf(locMast.getLocNo());
|
}
|
return null;
|
}
|
|
public String getSourceLocNo$() {
|
LocMastService service = SpringUtils.getBean(LocMastService.class);
|
LocMast locMast = service.selectById(this.sourceLocNo);
|
if (!Cools.isEmpty(locMast)) {
|
return String.valueOf(locMast.getLocNo());
|
}
|
return null;
|
}
|
|
public String getIoTime$() {
|
if (Cools.isEmpty(this.ioTime)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
|
}
|
|
public String getModiTime$() {
|
if (Cools.isEmpty(this.modiTime)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
|
}
|
|
public String getModiUser$() {
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.modiUser);
|
if (!Cools.isEmpty(user)) {
|
return String.valueOf(user.getUsername());
|
}
|
return null;
|
}
|
|
}
|