Commit 5a49204e by liuyang

2024-06-07 销售发货数量重量类型修改

parent 76369964
...@@ -3,6 +3,8 @@ package com.baosight.hggp.hg.yx.domain; ...@@ -3,6 +3,8 @@ package com.baosight.hggp.hg.yx.domain;
import com.baosight.iplat4j.core.util.NumberUtils; import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn; import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase; import com.baosight.iplat4j.core.data.DaoEPBase;
import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils; import com.baosight.iplat4j.core.util.StringUtils;
...@@ -119,8 +121,8 @@ public class HGYX001 extends DaoEPBase { ...@@ -119,8 +121,8 @@ public class HGYX001 extends DaoEPBase {
private String receUserPhone = " "; /* 收货人电话*/ private String receUserPhone = " "; /* 收货人电话*/
private Integer tranType = 0; /* 运输方式*/ private Integer tranType = 0; /* 运输方式*/
private String numPlate = " "; /* 车号*/ private String numPlate = " "; /* 车号*/
private String consQuantity = " "; /* 发货数量*/ private BigDecimal consQuantity = new BigDecimal("0"); /* 发货数量*/
private String consWeight = " "; /* 发货重量*/ private BigDecimal consWeight = new BigDecimal("0"); /* 发货重量*/
private Integer status = 0; /* 审批状态 0-未审核,1-已审核*/ private Integer status = 0; /* 审批状态 0-未审核,1-已审核*/
/** /**
...@@ -239,10 +241,16 @@ public class HGYX001 extends DaoEPBase { ...@@ -239,10 +241,16 @@ public class HGYX001 extends DaoEPBase {
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CONS_QUANTITY); eiColumn = new EiColumn(FIELD_CONS_QUANTITY);
eiColumn.setType("N");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(20);
eiColumn.setDescName("发货数量"); eiColumn.setDescName("发货数量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CONS_WEIGHT); eiColumn = new EiColumn(FIELD_CONS_WEIGHT);
eiColumn.setType("N");
eiColumn.setScaleLength(3);
eiColumn.setFieldLength(17);
eiColumn.setDescName("发货重量"); eiColumn.setDescName("发货重量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
...@@ -696,7 +704,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -696,7 +704,7 @@ public class HGYX001 extends DaoEPBase {
* get the consQuantity - 发货数量. * get the consQuantity - 发货数量.
* @return the consQuantity * @return the consQuantity
*/ */
public String getConsQuantity() { public BigDecimal getConsQuantity() {
return this.consQuantity; return this.consQuantity;
} }
...@@ -705,14 +713,14 @@ public class HGYX001 extends DaoEPBase { ...@@ -705,14 +713,14 @@ public class HGYX001 extends DaoEPBase {
* *
* @param consQuantity - 发货数量 * @param consQuantity - 发货数量
*/ */
public void setConsQuantity(String consQuantity) { public void setConsQuantity(BigDecimal consQuantity) {
this.consQuantity = consQuantity; this.consQuantity = consQuantity;
} }
/** /**
* get the consWeight - 发货重量. * get the consWeight - 发货重量.
* @return the consWeight * @return the consWeight
*/ */
public String getConsWeight() { public BigDecimal getConsWeight() {
return this.consWeight; return this.consWeight;
} }
...@@ -721,7 +729,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -721,7 +729,7 @@ public class HGYX001 extends DaoEPBase {
* *
* @param consWeight - 发货重量 * @param consWeight - 发货重量
*/ */
public void setConsWeight(String consWeight) { public void setConsWeight(BigDecimal consWeight) {
this.consWeight = consWeight; this.consWeight = consWeight;
} }
/** /**
...@@ -775,8 +783,8 @@ public class HGYX001 extends DaoEPBase { ...@@ -775,8 +783,8 @@ public class HGYX001 extends DaoEPBase {
setReceUserPhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_RECE_USER_PHONE)), receUserPhone)); setReceUserPhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_RECE_USER_PHONE)), receUserPhone));
setTranType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_TRAN_TYPE)), tranType)); setTranType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_TRAN_TYPE)), tranType));
setNumPlate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_NUM_PLATE)), numPlate)); setNumPlate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_NUM_PLATE)), numPlate));
setConsQuantity(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CONS_QUANTITY)), consQuantity)); setConsQuantity(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_CONS_QUANTITY)), consQuantity));
setConsWeight(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CONS_WEIGHT)), consWeight)); setConsWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_CONS_WEIGHT)), consWeight));
setStatus(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_STATUS)), status)); setStatus(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_STATUS)), status));
} }
......
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