Merge branch 'test'

yun-zuoyi
peter.pan 6 years ago
commit c02d22ecba

@ -101,6 +101,12 @@ public class Pager {
}
public int getTotalPages() {
if(pageSize > 0 && totalRows > 0){
totalPages = totalRows / pageSize;
if (totalRows % pageSize > 0) {
totalPages++;
}
}
return totalPages;
}
@ -109,6 +115,13 @@ public class Pager {
}
public int getStartRow() {
if(pageSize > 0){
if(currentPage >= 1){
return currentPage * pageSize - pageSize;
}else {
return 0;
}
}
return startRow;
}
@ -125,6 +138,13 @@ public class Pager {
}
public int getEndRow() {
if(pageSize > 0){
if(currentPage > 1){
return currentPage * pageSize;
}else {
return pageSize;
}
}
return endRow;
}

@ -2505,7 +2505,7 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_PART_TYPE {
RAW_MATERIAL(1, "原材料"), PARTIALLY_PREPARED_PRODUCTS(2, "半成品"), FINISHED_PRODUCT(3, "成品");
RAW_MATERIAL(10, "原材料"), PARTIALLY_PREPARED_PRODUCTS(20, "半成品"), FINISHED_PRODUCT(30, "成品");
private int value;
private String description;

@ -62,6 +62,10 @@ public class BfDataObjectProperty extends BaseBean {
@ApiParam(value ="是否主键")
private Integer isPrimaryKey;
@Column(name="IS_NULLABLE")
@ApiParam(value = "是否允许为空")
private Integer isNullable;
// 字段长度
@ApiParam(value = "字段长度")
@Column(name="OBJECT_COLUMN_PRECISION")

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.model.form;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.common.Pager;
import cn.estsh.i3plus.pojo.form.bean.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@ -56,6 +57,9 @@ public class ElementModel{
@ApiParam(value = "元素类型")
private Integer elementType;
@ApiParam(value = "分页信息")
private Pager pager;
@ApiParam(value = "排序属性")
public String orderByParam;

@ -99,8 +99,16 @@ public class WmsCSFactTrans extends BaseBean {
@ApiParam("源仓库编号")
public String srcWhNo;
@Column
@ApiParam("是否范围内")
public Integer isScope;
public WmsCSFactTrans(){}
public Integer getIsScopeVal() {
return isScope== null ? 0 : this.isScope.intValue();
}
public WmsCSFactTrans(Double factQty, String partNo){
if(factQty == null) {
this.factQty = 0d;
@ -109,4 +117,20 @@ public class WmsCSFactTrans extends BaseBean {
}
this.partNo = partNo;
}
public WmsCSFactTrans(String orderNo, String whNo, String zoneNo, String locateNo,Double factQty, String partNo, String partNameRdd, String sn, Double qty, String unit, String srcLocateNo, String srcZoneNo, String srcWhNo) {
this.orderNo = orderNo;
this.whNo = whNo;
this.zoneNo = zoneNo;
this.locateNo = locateNo;
this.factQty = factQty;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.sn = sn;
this.qty = qty;
this.unit = unit;
this.srcLocateNo = srcLocateNo;
this.srcZoneNo = srcZoneNo;
this.srcWhNo = srcWhNo;
}
}

@ -68,4 +68,18 @@ public class WmsLocatePart extends BaseBean {
public Integer getIsGeneratePicklist() {
return this.isGeneratePicklist == null ? 0 : this.isGeneratePicklist;
}
public double getPullQtyValue(){
return this.pullQty ==null?0d:this.pullQty.doubleValue();
}
public double getMaxValue(){
return this.max ==null?0:this.max.doubleValue();
}
public double getMinValue(){
return this.min ==null?0:this.min.doubleValue();
}
}

@ -151,6 +151,9 @@ public class WmsPart extends BaseBean {
@ApiParam("库存水平")
private String stockLevelStatus;
public int getIqcValue(){
return this.iqc == null ? 0 : this.iqc.intValue();
}
public WmsPart() {
}

@ -61,4 +61,11 @@ public class WmsTransType extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class)
private Long tmId;
@Column(name = "PDA_ICON")
@ApiParam(value = "PDA图标")
private String pdaIcon;
@Transient
@ApiParam("菜单URL")
private String menuUrl;
}

@ -40,4 +40,8 @@ public class WmsUnit extends BaseBean {
@ApiParam(value = "单位精度")
private Integer unitPrecision;
public int getUnitPrecisionValue(){
return this.unitPrecision == null?0:this.unitPrecision.intValue();
}
}

Loading…
Cancel
Save