yun-zuoyi
许心洁 6 years ago
commit f853f06ceb

@ -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;
}

@ -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;

@ -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() {
}

@ -247,7 +247,7 @@ public class WmsHqlPack {
DdlPreparedPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartName(), "partName", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
DdlPreparedPack.getStringEqualPack(wmsPart.getPartType(), "partType", result);
DdlPreparedPack.getNumEqualPack(wmsPart.getSnControl(), "snControl", result);
getStringBuilderPack(wmsPart, result);

Loading…
Cancel
Save