yun-zuoyi
刘敏 6 years ago
commit 98cf305653

@ -29,7 +29,7 @@ public class WmsActionResponseBean<Obj> implements Serializable {
public Map<String, Obj> barCode; public Map<String, Obj> barCode;
@ApiParam("进度") @ApiParam("进度")
public String percent ="消息提示:"; public String percent = "消息提示:";
@ApiParam("当前步骤") @ApiParam("当前步骤")
public Integer currentStep; public Integer currentStep;
@ -97,6 +97,9 @@ public class WmsActionResponseBean<Obj> implements Serializable {
@ApiParam(value = "是否完成流程操作") @ApiParam(value = "是否完成流程操作")
public Boolean isComplete = false; public Boolean isComplete = false;
@ApiParam(value = "交易类型信息")
public WmsTransType wmsTransType;
public WmsActionResponseBean(Boolean codeStatus, String message) { public WmsActionResponseBean(Boolean codeStatus, String message) {
this.codeStatus = codeStatus; this.codeStatus = codeStatus;
this.message = message; this.message = message;

@ -30,125 +30,130 @@ import javax.persistence.*;
}) })
@Api("PO订单明细信息") @Api("PO订单明细信息")
public class WmsPOMasterDetails extends BaseBean { public class WmsPOMasterDetails extends BaseBean {
private static final long serialVersionUID = -677572691809622129L;
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("物料编码") @ApiParam("物料编码")
public String partNo; private String partNo;
@Column(name = "BOX_QTY" ) @Column(name = "BOX_QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value ="箱数", example = "0") @ApiParam(value = "箱数", example = "0")
public Integer boxQty; private Integer boxQty;
@Column(name = "PART_NAME_RDD") @Column(name = "PART_NAME_RDD")
@ApiParam("物料名称") @ApiParam("物料名称")
public String partNameRdd; private String partNameRdd;
@Column(name = "ITEM") @Column(name = "ITEM")
@ApiParam("行号") @ApiParam("行号")
public Integer item; private Integer item;
@Column(name = "QTY") @Column(name = "QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0") @ApiParam(value = "需求数量", example = "0")
public Double qty; private Double qty;
public Double getQty(){ return this.qty == null ? 0 : this.qty; } // 不可能为 null 值
// Rock.Yu at 2019-06-22 20:03
//private Double getQty(){ return this.qty == null ? new Double(0) : this.qty; }
@Column(name = "UNIT") @Column(name = "UNIT")
@ApiParam("单位") @ApiParam("单位")
public String unit; private String unit;
@Column(name = "ORDER_NO") @Column(name = "ORDER_NO")
@ApiParam("订单号") @ApiParam("订单号")
public String orderNo; private String orderNo;
@Column(name = "PRINT_QTY") @Column(name = "PRINT_QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "条码打印数量", example = "0") @ApiParam(value = "条码打印数量", example = "0")
public Double printQty; private Double printQty;
public Double getPrintQty(){ return this.printQty == null ? 0 : this.printQty; } //private Double getPrintQty(){ return this.printQty == null ? new Double(0) : this.printQty; }
@Column(name = "RC_QTY") @Column(name = "RC_QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "收货数量", example = "0") @ApiParam(value = "收货数量", example = "0")
public Double rcQty; private Double rcQty;
public Double getRcQty(){ return this.rcQty == null ? 0 : this.rcQty; } //private Double getRcQty(){ return this.rcQty == null ? new Double(0) : this.rcQty; }
@Column(name = "PASS_QTY") @Column(name = "PASS_QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "质检合格数量", example = "0") @ApiParam(value = "质检合格数量", example = "0")
public Double passQty; private Double passQty;
public Double getPassQty(){ return this.passQty == null ? 0 : this.passQty; } //private Double getPassQty(){ return this.passQty == null ? new Double(0) : this.passQty; }
@Column(name = "NG_QTY") @Column(name = "NG_QTY")
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "质检不合格数量", example = "0") @ApiParam(value = "质检不合格数量", example = "0")
public Double ngQty; private Double ngQty;
public Double getNgQty(){ return this.ngQty == null ? 0 : this.ngQty; } //private Double getNgQty(){ return this.ngQty == null ? new Double(0) : this.ngQty; }
@Column(name = "PLAN_DATE") @Column(name = "PLAN_DATE")
@ApiParam("计划交货日期") @ApiParam("计划交货日期")
public String planDate; private String planDate;
@Column(name = "PLAN_TIME") @Column(name = "PLAN_TIME")
@ApiParam("计划交货时间") @ApiParam("计划交货时间")
public String planTime; private String planTime;
@Column(name = "ERP_AREA_NO") @Column(name = "ERP_AREA_NO")
@ApiParam("默认收货库存地") @ApiParam("默认收货库存地")
public String erpAreaNo; private String erpAreaNo;
/** /**
* :10 N=,20 C= * :10 N=,20 C=
*/ */
@Column(name = "ITEM_STATUS") @Column(name = "ITEM_STATUS")
@ApiParam("状态") @ApiParam("状态")
public Integer itemStatus; private Integer itemStatus;
@Column(name = "SNP") @Column(name = "SNP")
@ApiParam("标准包装") @ApiParam("标准包装")
public Double snp; private Double snp;
/** /**
* :0=,1= * :0=,1=
*/ */
@Column(name = "IS_FREE") @Column(name = "IS_FREE")
@ApiParam(value = "是否免费", example = "1") @ApiParam(value = "是否免费", example = "1")
public Integer isFree; private Integer isFree;
@Transient @Transient
@ApiParam(value = "散件收货输入数量", example = "0") @ApiParam(value = "散件收货输入数量", example = "0")
public Double inputRcQty; private Double inputRcQty;
@Transient @Transient
@ApiParam(value = "供应商批次") @ApiParam(value = "供应商批次")
public String dateCode; private String dateCode;
@Transient @Transient
@ApiParam("前端表格编辑使用") @ApiParam("前端表格编辑使用")
public Boolean isSet = false; private Boolean isSet = false;
@Transient @Transient
@ApiParam("供应商批次字段是否可编辑") @ApiParam("供应商批次字段是否可编辑")
public Boolean isDateCodeEdit = true; private Boolean isDateCodeEdit = true;
public Double getInputRcQty(){ return this.inputRcQty == null ? 0 : this.inputRcQty; } //private Double getInputRcQty(){ return this.inputRcQty == null ? new Double(0) : this.inputRcQty; }
@Version @Version
@Column(name = "LOCK_VERSION") @Column(name = "LOCK_VERSION")
@ApiParam(value = "乐观锁", example = "1") @ApiParam(value = "乐观锁", example = "1")
public transient int lockVersion; private transient int lockVersion;
@Transient @Transient
@ApiParam("PO条码总箱数") @ApiParam("PO条码总箱数")
public Integer totalBoxes; private Integer totalBoxes;
@Transient @Transient
@ApiParam("差异") @ApiParam("差异")
public Double difference; private Double difference;
} }

@ -13,6 +13,7 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Index; import javax.persistence.Index;
import javax.persistence.Table; import javax.persistence.Table;
import java.math.BigDecimal;
/** /**
* @Description : * @Description :
@ -137,6 +138,10 @@ public class WmsTaskDetails extends BaseBean {
return this.qty == null ? 0 : this.qty; return this.qty == null ? 0 : this.qty;
} }
public String getQtyTxt(){
return new BigDecimal(getQty() + "").stripTrailingZeros().toPlainString();
}
public Double getTransQty() { public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty; return this.transQty == null ? 0 : this.transQty;
} }

@ -89,4 +89,11 @@ public class WmsZones extends BaseBean {
@Transient @Transient
@ApiParam(value ="子存储区列表") @ApiParam(value ="子存储区列表")
private List<WmsZones> childList; private List<WmsZones> childList;
public WmsZones(String zoneNo){
this.zoneNo = zoneNo;
}
public WmsZones(){}
} }

@ -4,6 +4,8 @@ import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsStockSn; import cn.estsh.i3plus.pojo.wms.bean.WmsStockSn;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;
import java.util.List;
/** /**
* @Description : dao * @Description : dao
* @Reference : * @Reference :
@ -21,13 +23,14 @@ public interface WmsStockSnRepository extends BaseRepository<WmsStockSn, Long> {
/** /**
* Rock.Yu at 2019-06-22 11:05
* *
* *
* @return * @return
*/ */
@Query(value = "select sn from WmsStockSn " + @Query(value = "from WmsStockSn " +
"where organizeCode=?1 and isValid=?2 and isDeleted=?3 " + "where organizeCode=?1 " +
"and zoneNo=?4 and partNo=?5 " + "and zoneNo=?2 and partNo=?3 and isValid=?4 and isDeleted=?5 " +
"order by fixLotNo, dateCode, lotNo") "order by fixLotNo, dateCode, lotNo")
WmsStockSn findFirstFifoSNByZoneNo(String organizeCode, int isValid, int isDeleted, String zoneNo, String partNo); List<WmsStockSn> findByFifoSNByZoneNo(String organizeCode, String zoneNo, String partNo, int isValid, int isDeleted);
} }

@ -2004,5 +2004,23 @@ public class WmsHqlPack {
return result; return result;
} }
/**
*
*
* @param zoneNoList
*@param wmsZones
* @param locateType
* @return
*/
public static DdlPackBean packLocateNoByZoneNo(List<String> zoneNoList , WmsZones wmsZones , Integer locateType) {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getInPackList(zoneNoList, "zoneNo", result);
DdlPreparedPack.getNumEqualPack(locateType, "locateType", result);
getStringBuilderPack(wmsZones, result);
return result;
}
} }

Loading…
Cancel
Save