【 日生产计划生成的条码在条码打印界面只能补打,不能打印】【bug7514】

yun-zuoyi
qianhs 5 years ago
parent 58fe5f61d8
commit 91b43823c9

@ -1264,6 +1264,46 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CS_STRATEGY_TYPE {
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
private int value;
private String description;
CS_STRATEGY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@ -1273,7 +1313,11 @@ public class WmsEnumUtil {
MONTH_INVENTORY(20, "月度盘点"),
SEASON_INVENTORY(30, "季度盘点"),
YEAR_INVENTORY(40, "年度盘点"),
AJUST_INVENTORY(50, "库存调整盘点");
AJUST_INVENTORY(50, "库存调整盘点"),
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
private int value;
private String description;

@ -598,7 +598,7 @@ public class DdlPreparedPack {
*/
public static void getNotInPackList(List<?> data, String columnName, DdlPackBean packBean) {
if (data != null && data.size() > 0) {
packBean.addColumnQuery(columnName, " and model." + columnName + "not in (:m_" + columnName + ")", data);
packBean.addColumnQuery(columnName, " and model." + columnName + " not in (:m_" + columnName + ")", data);
}
}

@ -103,6 +103,9 @@ public class WmsCSOrderMaster extends BaseBean {
@Column(name = "is_obvious")
private Integer isObvious;
@ApiParam(value = "允许盘入的库位")
@Column(name = "ALLOW_LOCATES")
private String allowLocates;
public Integer getIsInventoryVal() {
return this.isInventory == null ? 0 :this.isInventory.intValue();
}

@ -0,0 +1,89 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author :QianHuaSheng
* @CreateDate : 2020-02-17 10:13
* @Modify:
**/
@Data
@Entity
@Table(name = "WMS_CS_STRATEGY", indexes = {
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value = "盘点策略表", description = "盘点策略表")
public class WmsCsStrategy extends BaseBean implements Serializable {
private static final long serialVersionUID = -1692487594678973549L;
@Column(name = "STRATEGY_NAME")
@ApiParam(value = "策略名称")
private String strategyName;
@Column(name = "part_type")
@ApiParam(value = "物料分类")
private String partType;
@Column(name = "STRATEGY_TYPE")
@ApiParam(value = "策略分类", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.CS_STRATEGY_TYPE.class, refForeignKey = "value", value = "description")
private Integer strategyType;
@Column(name = "CYCLE_RULE")
@ApiParam(value = "循环规则")
private String cycleRule;
@Column(name = "START_DATE")
@ApiParam(value = "开始日期", example = "0")
private String startDate;
@Column(name = "END_DATE")
@ApiParam(value = "结束日期", example = "0")
private String endDate;
@Column(name = "NUM_MAX")
@ApiParam(value = "明细数量上限")
private Integer numMax;
@Column(name = "COVERAGE_RATE")
@ApiParam(value = "抽盘覆盖率")
private Double coverageRate;
@Column(name = "ZONE_NOS")
@ApiParam(value = "存储区")
private String zoneNos;
@Column(name = "LOCATES")
@ApiParam(value = "盘点库位")
private String locates;
@Column(name = "last_run_time")
@ApiParam(value = "上次运行时间")
private String lastRunTime;
@Column(name = "next_run_time")
@ApiParam(value = "下次运行时间")
private String nextRunTime;
@Column(name = "REMAKE")
@ApiParam(value = "备注")
private String remake;
}

@ -290,6 +290,10 @@ public class WmsStockSn extends BaseBean {
@ApiParam("是否同批次条码")
private Integer isSameBatch;
@Transient
@ApiParam("父层级packcode对应的可回用零件号")
private String parentReturnPart;
public WmsStockSn() {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsCsStrategy;
/**
* @Description :
* @Reference :
* @Author :QianHuaSheng
* @CreateDate : 2018-11-17 15:53
* @Modify:
**/
public interface WmsCsStrategyRepository extends BaseRepository<WmsCsStrategy, Long> {
}
Loading…
Cancel
Save