Commit b798d0f2 by liuyang

2024-08-05 材料计划导入删除项目材料计划重复导入校验

parent c58e5856
......@@ -115,7 +115,7 @@ public class HGSC004B extends DaoEPBase {
private BigDecimal thick = new BigDecimal("0"); /* 厚*/
private Integer productStatus = new Integer(0); /* 产品状态 0:未提交,1:已提交*/
private Integer changeType = new Integer(0); /* 变更类型:默认0,1:增加,2:替换,3:删除*/
private Integer quantity = new Integer(0); /* 数量*/
private BigDecimal quantity = new BigDecimal(0); /* 数量*/
private BigDecimal singleWeight = new BigDecimal(0.000); /* 单重*/
private BigDecimal totalWeight = new BigDecimal(0.000); /* 总重*/
private Integer approvalStatus = new Integer(0); /* 审批状态\t0:待审;1:审核中;2:已审*/
......@@ -259,7 +259,7 @@ public class HGSC004B extends DaoEPBase {
eiColumn = new EiColumn(FIELD_quantity);
eiColumn.setType("N");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(8);
eiColumn.setFieldLength(20);
eiColumn.setDescName("数量");
eiMetadata.addMeta(eiColumn);
......@@ -573,7 +573,7 @@ public class HGSC004B extends DaoEPBase {
* get the quantity - 数量.
* @return the quantity
*/
public Integer getQuantity() {
public BigDecimal getQuantity() {
return this.quantity;
}
......@@ -582,7 +582,7 @@ public class HGSC004B extends DaoEPBase {
*
* @param quantity - 数量
*/
public void setQuantity(Integer quantity) {
public void setQuantity(BigDecimal quantity) {
this.quantity = quantity;
}
/**
......@@ -820,7 +820,7 @@ public class HGSC004B extends DaoEPBase {
setInventType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_invent_type)), inventType));
setProductStatus(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_product_status)), productStatus));
setChangeType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_change_type)), changeType));
setQuantity(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_quantity)), quantity));
setQuantity(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_quantity)), quantity));
setSingleWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_single_weight)), singleWeight));
setTotalWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_total_weight)), totalWeight));
setApprovalStatus(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_approval_status)), approvalStatus));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment