|  |  |  | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import com.core.common.SpringUtils; | 
|---|
|  |  |  | import com.zy.asrs.service.LocMastService; | 
|---|
|  |  |  | import com.zy.asrs.service.MatCodeService; | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | import com.zy.system.entity.User; | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.io.Serializable; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @TableName("asr_adj_detl") | 
|---|
|  |  |  | public class AdjDetl implements Serializable { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | private String locNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 物料编号 | 
|---|
|  |  |  | * 商品编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "物料编号") | 
|---|
|  |  |  | @TableField("mat_no") | 
|---|
|  |  |  | private String matNo; | 
|---|
|  |  |  | @ApiModelProperty(value= "变更商品编号") | 
|---|
|  |  |  | private String matnr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 商品编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "商品编号") | 
|---|
|  |  |  | @TableField("matnr_old") | 
|---|
|  |  |  | private String matnrOld; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 批号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "批号") | 
|---|
|  |  |  | private String batch; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 原箱数 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public AdjDetl() {} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public AdjDetl(String locNo,String matNo,Double oriCtns,Double oriQty,Double oriWt,Double adjCtns,Double adjQty,Double adjWt,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { | 
|---|
|  |  |  | public AdjDetl(String locNo, String matnr, String batch, Double oriCtns, Double oriQty, Double oriWt, Double adjCtns, Double adjQty, Double adjWt, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.matNo = matNo; | 
|---|
|  |  |  | this.matnr = matnr; | 
|---|
|  |  |  | this.batch = batch; | 
|---|
|  |  |  | this.oriCtns = oriCtns; | 
|---|
|  |  |  | this.oriQty = oriQty; | 
|---|
|  |  |  | this.oriWt = oriWt; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.appeTime = appeTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    AdjDetl adjDetl = new AdjDetl( | 
|---|
|  |  |  | //    AdjDetl adjDetl = new AdjDetl( | 
|---|
|  |  |  | //            null,    // 库位号[非空] | 
|---|
|  |  |  | //            null,    // 物料编号[非空] | 
|---|
|  |  |  | //            null,    // 序列码 | 
|---|
|  |  |  | //            null,    // 原箱数 | 
|---|
|  |  |  | //            null,    // 原数量 | 
|---|
|  |  |  | //            null,    // 原重量 | 
|---|
|  |  |  | 
|---|
|  |  |  | //            null    // 添加时间 | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getAdjId() { | 
|---|
|  |  |  | return adjId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAdjId(Long adjId) { | 
|---|
|  |  |  | this.adjId = adjId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLocNo() { | 
|---|
|  |  |  | return locNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLocNo$(){ | 
|---|
|  |  |  | LocMastService service = SpringUtils.getBean(LocMastService.class); | 
|---|
|  |  |  | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setLocNo(String locNo) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getMatNo() { | 
|---|
|  |  |  | return matNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getMatNo$(){ | 
|---|
|  |  |  | MatCodeService service = SpringUtils.getBean(MatCodeService.class); | 
|---|
|  |  |  | MatCode matCode = service.selectById(this.matNo); | 
|---|
|  |  |  | if (!Cools.isEmpty(matCode)){ | 
|---|
|  |  |  | return String.valueOf(matCode.getMatNo()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setMatNo(String matNo) { | 
|---|
|  |  |  | this.matNo = matNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOriCtns() { | 
|---|
|  |  |  | return oriCtns; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOriCtns(Double oriCtns) { | 
|---|
|  |  |  | this.oriCtns = oriCtns; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOriQty() { | 
|---|
|  |  |  | return oriQty; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOriQty(Double oriQty) { | 
|---|
|  |  |  | this.oriQty = oriQty; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOriWt() { | 
|---|
|  |  |  | return oriWt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOriWt(Double oriWt) { | 
|---|
|  |  |  | this.oriWt = oriWt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getAdjCtns() { | 
|---|
|  |  |  | return adjCtns; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAdjCtns(Double adjCtns) { | 
|---|
|  |  |  | this.adjCtns = adjCtns; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getAdjQty() { | 
|---|
|  |  |  | return adjQty; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAdjQty(Double adjQty) { | 
|---|
|  |  |  | this.adjQty = adjQty; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getAdjWt() { | 
|---|
|  |  |  | return adjWt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAdjWt(Double adjWt) { | 
|---|
|  |  |  | this.adjWt = adjWt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getMemo() { | 
|---|
|  |  |  | return memo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setMemo(String memo) { | 
|---|
|  |  |  | this.memo = memo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getModiUser() { | 
|---|
|  |  |  | return modiUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getModiUser$(){ | 
|---|
|  |  |  | UserService service = SpringUtils.getBean(UserService.class); | 
|---|
|  |  |  | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setModiUser(Long modiUser) { | 
|---|
|  |  |  | this.modiUser = modiUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getModiTime() { | 
|---|
|  |  |  | return modiTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getModiTime$(){ | 
|---|
|  |  |  | if (Cools.isEmpty(this.modiTime)){ | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setModiTime(Date modiTime) { | 
|---|
|  |  |  | this.modiTime = modiTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getAppeUser() { | 
|---|
|  |  |  | return appeUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAppeUser(Long appeUser) { | 
|---|
|  |  |  | this.appeUser = appeUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getAppeTime() { | 
|---|
|  |  |  | return appeTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getAppeTime$(){ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAppeTime(Date appeTime) { | 
|---|
|  |  |  | this.appeTime = appeTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|