Commit 97f2ec05 by yukang

Merge remote-tracking branch 'origin/dev' into dev

parents 859334fa 3ab3d937
...@@ -38,6 +38,44 @@ public class DaoUtils { ...@@ -38,6 +38,44 @@ public class DaoUtils {
} }
/** /**
* 查询
*
* @param sql
* @param obj
* @return
*/
public static List query(String sql, Object obj){
if (obj instanceof DaoEPBase) {
// 企业编码
try {
String companyCode;
try {
companyCode = UserSessionUtils.getCompanyCode();
} catch (Exception e) {
companyCode = "";
}
BeanUtils.setProperty(obj, "companyCode", companyCode);
} catch (Exception e) {
log.warn("写入企业编码失败", e);
}
} else if (obj instanceof Map) {
// 创建人企业编码
try {
String companyCode;
try {
companyCode = UserSessionUtils.getCompanyCode();
} catch (Exception e) {
companyCode = "";
}
((Map) obj).put("companyCode", companyCode);
} catch (Exception e) {
log.warn("写入企业编码失败", e);
}
}
return DaoBase.getInstance().query(sql, obj);
}
/**
* insert method. * insert method.
* *
* @param sql * @param sql
......
...@@ -13,7 +13,9 @@ public class HPConstant { ...@@ -13,7 +13,9 @@ public class HPConstant {
* @date:2021/8/17,15:22 * @date:2021/8/17,15:22
*/ */
public class SequenceId { public class SequenceId {
// 企业编码
public static final String COMPANY_CODE = "COMPANY_CODE";
//项目档案编号 //项目档案编号
public static final String PROJ_NUMBER = "PROJ_NUMBER"; public static final String PROJ_NUMBER = "PROJ_NUMBER";
// 盘点单号 // 盘点单号
......
...@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils; ...@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br> * Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* *
* @version 1.0 * @version 1.0
* @history 2024-01-20 15:01:27 create * @history 2024-01-25 8:45:22 create
*/ */
public class HPKC009 extends DaoEPBase { public class HPKC009 extends DaoEPBase {
...@@ -33,13 +33,13 @@ public class HPKC009 extends DaoEPBase { ...@@ -33,13 +33,13 @@ public class HPKC009 extends DaoEPBase {
public static final String FIELD_INVENT_TYPE = "inventType"; /* 存货类型*/ public static final String FIELD_INVENT_TYPE = "inventType"; /* 存货类型*/
public static final String FIELD_INVENT_CODE = "inventCode"; /* 存货编码*/ public static final String FIELD_INVENT_CODE = "inventCode"; /* 存货编码*/
public static final String FIELD_INVENT_NAME = "inventName"; /* 存货名称*/ public static final String FIELD_INVENT_NAME = "inventName"; /* 存货名称*/
public static final String FIELD_SPEC = "spec"; /* 规格*/ public static final String FIELD_INVENT_RECORD_ID = "inventRecordId"; /* 规格ID*/
public static final String FIELD_INIT_AMOUNT = "initAmount"; /* 期初数量*/ public static final String FIELD_INIT_AMOUNT = "initAmount"; /* 期初数量*/
public static final String FIELD_INIT_WEIGHT = "initWeight"; /* 期初重量*/ public static final String FIELD_INIT_WEIGHT = "initWeight"; /* 期初重量*/
public static final String FIELD_STOCKIN_AMOUNT = "stockinAmount"; /* 入库数量*/ public static final String FIELD_ENTER_AMOUNT = "enterAmount"; /* 入库数量*/
public static final String FIELD_STOCKIN_WEIGHT = "stockinWeight"; /* 入库重量*/ public static final String FIELD_ENTER_WEIGHT = "enterWeight"; /* 入库重量*/
public static final String FIELD_STOCKOUT_AMOUNT = "stockoutAmount"; /* 出库数量*/ public static final String FIELD_OUTER_AMOUNT = "outerAmount"; /* 出库数量*/
public static final String FIELD_STOCKOUT_WEIGHT = "stockoutWeight"; /* 出库重量*/ public static final String FIELD_OUTER_WEIGHT = "outerWeight"; /* 出库重量*/
public static final String FIELD_END_AMOUNT = "endAmount"; /* 期末数量*/ public static final String FIELD_END_AMOUNT = "endAmount"; /* 期末数量*/
public static final String FIELD_END_WEIGHT = "endWeight"; /* 期末重量*/ public static final String FIELD_END_WEIGHT = "endWeight"; /* 期末重量*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/ public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
...@@ -60,13 +60,13 @@ public class HPKC009 extends DaoEPBase { ...@@ -60,13 +60,13 @@ public class HPKC009 extends DaoEPBase {
public static final String COL_INVENT_TYPE = "INVENT_TYPE"; /* 存货类型*/ public static final String COL_INVENT_TYPE = "INVENT_TYPE"; /* 存货类型*/
public static final String COL_INVENT_CODE = "INVENT_CODE"; /* 存货编码*/ public static final String COL_INVENT_CODE = "INVENT_CODE"; /* 存货编码*/
public static final String COL_INVENT_NAME = "INVENT_NAME"; /* 存货名称*/ public static final String COL_INVENT_NAME = "INVENT_NAME"; /* 存货名称*/
public static final String COL_SPEC = "SPEC"; /* 规格*/ public static final String COL_INVENT_RECORD_ID = "INVENT_RECORD_ID"; /* 规格ID*/
public static final String COL_INIT_AMOUNT = "INIT_AMOUNT"; /* 期初数量*/ public static final String COL_INIT_AMOUNT = "INIT_AMOUNT"; /* 期初数量*/
public static final String COL_INIT_WEIGHT = "INIT_WEIGHT"; /* 期初重量*/ public static final String COL_INIT_WEIGHT = "INIT_WEIGHT"; /* 期初重量*/
public static final String COL_STOCKIN_AMOUNT = "STOCKIN_AMOUNT"; /* 入库数量*/ public static final String COL_ENTER_AMOUNT = "ENTER_AMOUNT"; /* 入库数量*/
public static final String COL_STOCKIN_WEIGHT = "STOCKIN_WEIGHT"; /* 入库重量*/ public static final String COL_ENTER_WEIGHT = "ENTER_WEIGHT"; /* 入库重量*/
public static final String COL_STOCKOUT_AMOUNT = "STOCKOUT_AMOUNT"; /* 出库数量*/ public static final String COL_OUTER_AMOUNT = "OUTER_AMOUNT"; /* 出库数量*/
public static final String COL_STOCKOUT_WEIGHT = "STOCKOUT_WEIGHT"; /* 出库重量*/ public static final String COL_OUTER_WEIGHT = "OUTER_WEIGHT"; /* 出库重量*/
public static final String COL_END_AMOUNT = "END_AMOUNT"; /* 期末数量*/ public static final String COL_END_AMOUNT = "END_AMOUNT"; /* 期末数量*/
public static final String COL_END_WEIGHT = "END_WEIGHT"; /* 期末重量*/ public static final String COL_END_WEIGHT = "END_WEIGHT"; /* 期末重量*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/ public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
...@@ -76,6 +76,12 @@ public class HPKC009 extends DaoEPBase { ...@@ -76,6 +76,12 @@ public class HPKC009 extends DaoEPBase {
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/ public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/ public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String QUERY = "HPKC009.query";
public static final String COUNT = "HPKC009.count";
public static final String INSERT = "HPKC009.insert";
public static final String UPDATE = "HPKC009.update";
public static final String DELETE = "HPKC009.delete";
private Long id = null; private Long id = null;
private String companyCode = " "; /* 企业编码 预留*/ private String companyCode = " "; /* 企业编码 预留*/
private String depCode = " "; /* 部门编码*/ private String depCode = " "; /* 部门编码*/
...@@ -84,16 +90,16 @@ public class HPKC009 extends DaoEPBase { ...@@ -84,16 +90,16 @@ public class HPKC009 extends DaoEPBase {
private String dateProc = " "; /* 日期*/ private String dateProc = " "; /* 日期*/
private String whCode = " "; /* 仓库编码*/ private String whCode = " "; /* 仓库编码*/
private String whName = " "; /* 仓库名称*/ private String whName = " "; /* 仓库名称*/
private Integer inventType; /* 存货类型*/ private String inventType = " "; /* 存货类型*/
private String inventCode = " "; /* 存货编码*/ private String inventCode = " "; /* 存货编码*/
private String inventName = " "; /* 存货名称*/ private String inventName = " "; /* 存货名称*/
private String spec = " "; /* 规格*/ private Long inventRecordId = null; /* 规格ID*/
private BigDecimal initAmount = new BigDecimal(0.00); /* 期初数量*/ private BigDecimal initAmount = new BigDecimal(0.00); /* 期初数量*/
private BigDecimal initWeight = new BigDecimal(0.00); /* 期初重量*/ private BigDecimal initWeight = new BigDecimal(0.00); /* 期初重量*/
private BigDecimal stockinAmount = new BigDecimal(0.00); /* 入库数量*/ private BigDecimal enterAmount = new BigDecimal(0.00); /* 入库数量*/
private BigDecimal stockinWeight = new BigDecimal(0.00); /* 入库重量*/ private BigDecimal enterWeight = new BigDecimal(0.00); /* 入库重量*/
private BigDecimal stockoutAmount = new BigDecimal(0.00); /* 出库数量*/ private BigDecimal outerAmount = new BigDecimal(0.00); /* 出库数量*/
private BigDecimal stockoutWeight = new BigDecimal(0.00); /* 出库重量*/ private BigDecimal outerWeight = new BigDecimal(0.00); /* 出库重量*/
private BigDecimal endAmount = new BigDecimal(0.00); /* 期末数量*/ private BigDecimal endAmount = new BigDecimal(0.00); /* 期末数量*/
private BigDecimal endWeight = new BigDecimal(0.00); /* 期末重量*/ private BigDecimal endWeight = new BigDecimal(0.00); /* 期末重量*/
private String createdBy = " "; /* 创建人*/ private String createdBy = " "; /* 创建人*/
...@@ -154,8 +160,8 @@ public class HPKC009 extends DaoEPBase { ...@@ -154,8 +160,8 @@ public class HPKC009 extends DaoEPBase {
eiColumn.setDescName("存货名称"); eiColumn.setDescName("存货名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SPEC); eiColumn = new EiColumn(FIELD_INVENT_RECORD_ID);
eiColumn.setDescName("规格"); eiColumn.setDescName("规格ID");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_INIT_AMOUNT); eiColumn = new EiColumn(FIELD_INIT_AMOUNT);
...@@ -172,28 +178,28 @@ public class HPKC009 extends DaoEPBase { ...@@ -172,28 +178,28 @@ public class HPKC009 extends DaoEPBase {
eiColumn.setDescName("期初重量"); eiColumn.setDescName("期初重量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_STOCKIN_AMOUNT); eiColumn = new EiColumn(FIELD_ENTER_AMOUNT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(2); eiColumn.setScaleLength(2);
eiColumn.setFieldLength(10); eiColumn.setFieldLength(10);
eiColumn.setDescName("入库数量"); eiColumn.setDescName("入库数量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_STOCKIN_WEIGHT); eiColumn = new EiColumn(FIELD_ENTER_WEIGHT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(2); eiColumn.setScaleLength(2);
eiColumn.setFieldLength(10); eiColumn.setFieldLength(10);
eiColumn.setDescName("入库重量"); eiColumn.setDescName("入库重量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_STOCKOUT_AMOUNT); eiColumn = new EiColumn(FIELD_OUTER_AMOUNT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(2); eiColumn.setScaleLength(2);
eiColumn.setFieldLength(10); eiColumn.setFieldLength(10);
eiColumn.setDescName("出库数量"); eiColumn.setDescName("出库数量");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_STOCKOUT_WEIGHT); eiColumn = new EiColumn(FIELD_OUTER_WEIGHT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(2); eiColumn.setScaleLength(2);
eiColumn.setFieldLength(10); eiColumn.setFieldLength(10);
...@@ -380,7 +386,7 @@ public class HPKC009 extends DaoEPBase { ...@@ -380,7 +386,7 @@ public class HPKC009 extends DaoEPBase {
* get the inventType - 存货类型. * get the inventType - 存货类型.
* @return the inventType * @return the inventType
*/ */
public Integer getInventType() { public String getInventType() {
return this.inventType; return this.inventType;
} }
...@@ -389,7 +395,7 @@ public class HPKC009 extends DaoEPBase { ...@@ -389,7 +395,7 @@ public class HPKC009 extends DaoEPBase {
* *
* @param inventType - 存货类型 * @param inventType - 存货类型
*/ */
public void setInventType(Integer inventType) { public void setInventType(String inventType) {
this.inventType = inventType; this.inventType = inventType;
} }
/** /**
...@@ -425,20 +431,20 @@ public class HPKC009 extends DaoEPBase { ...@@ -425,20 +431,20 @@ public class HPKC009 extends DaoEPBase {
this.inventName = inventName; this.inventName = inventName;
} }
/** /**
* get the spec - 规格. * get the inventRecordId - 规格ID.
* @return the spec * @return the inventRecordId
*/ */
public String getSpec() { public Long getInventRecordId() {
return this.spec; return this.inventRecordId;
} }
/** /**
* set the spec - 规格. * set the inventRecordId - 规格ID.
* *
* @param spec - 规格 * @param inventRecordId - 规格ID
*/ */
public void setSpec(String spec) { public void setInventRecordId(Long inventRecordId) {
this.spec = spec; this.inventRecordId = inventRecordId;
} }
/** /**
* get the initAmount - 期初数量. * get the initAmount - 期初数量.
...@@ -473,68 +479,68 @@ public class HPKC009 extends DaoEPBase { ...@@ -473,68 +479,68 @@ public class HPKC009 extends DaoEPBase {
this.initWeight = initWeight; this.initWeight = initWeight;
} }
/** /**
* get the stockinAmount - 入库数量. * get the enterAmount - 入库数量.
* @return the stockinAmount * @return the enterAmount
*/ */
public BigDecimal getStockinAmount() { public BigDecimal getEnterAmount() {
return this.stockinAmount; return this.enterAmount;
} }
/** /**
* set the stockinAmount - 入库数量. * set the enterAmount - 入库数量.
* *
* @param stockinAmount - 入库数量 * @param enterAmount - 入库数量
*/ */
public void setStockinAmount(BigDecimal stockinAmount) { public void setEnterAmount(BigDecimal enterAmount) {
this.stockinAmount = stockinAmount; this.enterAmount = enterAmount;
} }
/** /**
* get the stockinWeight - 入库重量. * get the enterWeight - 入库重量.
* @return the stockinWeight * @return the enterWeight
*/ */
public BigDecimal getStockinWeight() { public BigDecimal getEnterWeight() {
return this.stockinWeight; return this.enterWeight;
} }
/** /**
* set the stockinWeight - 入库重量. * set the enterWeight - 入库重量.
* *
* @param stockinWeight - 入库重量 * @param enterWeight - 入库重量
*/ */
public void setStockinWeight(BigDecimal stockinWeight) { public void setEnterWeight(BigDecimal enterWeight) {
this.stockinWeight = stockinWeight; this.enterWeight = enterWeight;
} }
/** /**
* get the stockoutAmount - 出库数量. * get the outerAmount - 出库数量.
* @return the stockoutAmount * @return the outerAmount
*/ */
public BigDecimal getStockoutAmount() { public BigDecimal getOuterAmount() {
return this.stockoutAmount; return this.outerAmount;
} }
/** /**
* set the stockoutAmount - 出库数量. * set the outerAmount - 出库数量.
* *
* @param stockoutAmount - 出库数量 * @param outerAmount - 出库数量
*/ */
public void setStockoutAmount(BigDecimal stockoutAmount) { public void setOuterAmount(BigDecimal outerAmount) {
this.stockoutAmount = stockoutAmount; this.outerAmount = outerAmount;
} }
/** /**
* get the stockoutWeight - 出库重量. * get the outerWeight - 出库重量.
* @return the stockoutWeight * @return the outerWeight
*/ */
public BigDecimal getStockoutWeight() { public BigDecimal getOuterWeight() {
return this.stockoutWeight; return this.outerWeight;
} }
/** /**
* set the stockoutWeight - 出库重量. * set the outerWeight - 出库重量.
* *
* @param stockoutWeight - 出库重量 * @param outerWeight - 出库重量
*/ */
public void setStockoutWeight(BigDecimal stockoutWeight) { public void setOuterWeight(BigDecimal outerWeight) {
this.stockoutWeight = stockoutWeight; this.outerWeight = outerWeight;
} }
/** /**
* get the endAmount - 期末数量. * get the endAmount - 期末数量.
...@@ -680,16 +686,16 @@ public class HPKC009 extends DaoEPBase { ...@@ -680,16 +686,16 @@ public class HPKC009 extends DaoEPBase {
setDateProc(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DATE_PROC)), dateProc)); setDateProc(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DATE_PROC)), dateProc));
setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_CODE)), whCode)); setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_CODE)), whCode));
setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_NAME)), whName)); setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_NAME)), whName));
setInventType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_INVENT_TYPE)), inventType)); setInventType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_TYPE)), inventType));
setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_CODE)), inventCode)); setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_CODE)), inventCode));
setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_NAME)), inventName)); setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_NAME)), inventName));
setSpec(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SPEC)), spec)); setInventRecordId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_INVENT_RECORD_ID)), inventRecordId));
setInitAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_INIT_AMOUNT)), initAmount)); setInitAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_INIT_AMOUNT)), initAmount));
setInitWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_INIT_WEIGHT)), initWeight)); setInitWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_INIT_WEIGHT)), initWeight));
setStockinAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_STOCKIN_AMOUNT)), stockinAmount)); setEnterAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_ENTER_AMOUNT)), enterAmount));
setStockinWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_STOCKIN_WEIGHT)), stockinWeight)); setEnterWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_ENTER_WEIGHT)), enterWeight));
setStockoutAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_STOCKOUT_AMOUNT)), stockoutAmount)); setOuterAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_OUTER_AMOUNT)), outerAmount));
setStockoutWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_STOCKOUT_WEIGHT)), stockoutWeight)); setOuterWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_OUTER_WEIGHT)), outerWeight));
setEndAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_END_AMOUNT)), endAmount)); setEndAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_END_AMOUNT)), endAmount));
setEndWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_END_WEIGHT)), endWeight)); setEndWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_END_WEIGHT)), endWeight));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy)); setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
...@@ -718,13 +724,13 @@ public class HPKC009 extends DaoEPBase { ...@@ -718,13 +724,13 @@ public class HPKC009 extends DaoEPBase {
map.put(FIELD_INVENT_TYPE, StringUtils.toString(inventType, eiMetadata.getMeta(FIELD_INVENT_TYPE))); map.put(FIELD_INVENT_TYPE, StringUtils.toString(inventType, eiMetadata.getMeta(FIELD_INVENT_TYPE)));
map.put(FIELD_INVENT_CODE, StringUtils.toString(inventCode, eiMetadata.getMeta(FIELD_INVENT_CODE))); map.put(FIELD_INVENT_CODE, StringUtils.toString(inventCode, eiMetadata.getMeta(FIELD_INVENT_CODE)));
map.put(FIELD_INVENT_NAME, StringUtils.toString(inventName, eiMetadata.getMeta(FIELD_INVENT_NAME))); map.put(FIELD_INVENT_NAME, StringUtils.toString(inventName, eiMetadata.getMeta(FIELD_INVENT_NAME)));
map.put(FIELD_SPEC, StringUtils.toString(spec, eiMetadata.getMeta(FIELD_SPEC))); map.put(FIELD_INVENT_RECORD_ID, StringUtils.toString(inventRecordId, eiMetadata.getMeta(FIELD_INVENT_RECORD_ID)));
map.put(FIELD_INIT_AMOUNT, StringUtils.toString(initAmount, eiMetadata.getMeta(FIELD_INIT_AMOUNT))); map.put(FIELD_INIT_AMOUNT, StringUtils.toString(initAmount, eiMetadata.getMeta(FIELD_INIT_AMOUNT)));
map.put(FIELD_INIT_WEIGHT, StringUtils.toString(initWeight, eiMetadata.getMeta(FIELD_INIT_WEIGHT))); map.put(FIELD_INIT_WEIGHT, StringUtils.toString(initWeight, eiMetadata.getMeta(FIELD_INIT_WEIGHT)));
map.put(FIELD_STOCKIN_AMOUNT, StringUtils.toString(stockinAmount, eiMetadata.getMeta(FIELD_STOCKIN_AMOUNT))); map.put(FIELD_ENTER_AMOUNT, StringUtils.toString(enterAmount, eiMetadata.getMeta(FIELD_ENTER_AMOUNT)));
map.put(FIELD_STOCKIN_WEIGHT, StringUtils.toString(stockinWeight, eiMetadata.getMeta(FIELD_STOCKIN_WEIGHT))); map.put(FIELD_ENTER_WEIGHT, StringUtils.toString(enterWeight, eiMetadata.getMeta(FIELD_ENTER_WEIGHT)));
map.put(FIELD_STOCKOUT_AMOUNT, StringUtils.toString(stockoutAmount, eiMetadata.getMeta(FIELD_STOCKOUT_AMOUNT))); map.put(FIELD_OUTER_AMOUNT, StringUtils.toString(outerAmount, eiMetadata.getMeta(FIELD_OUTER_AMOUNT)));
map.put(FIELD_STOCKOUT_WEIGHT, StringUtils.toString(stockoutWeight, eiMetadata.getMeta(FIELD_STOCKOUT_WEIGHT))); map.put(FIELD_OUTER_WEIGHT, StringUtils.toString(outerWeight, eiMetadata.getMeta(FIELD_OUTER_WEIGHT)));
map.put(FIELD_END_AMOUNT, StringUtils.toString(endAmount, eiMetadata.getMeta(FIELD_END_AMOUNT))); map.put(FIELD_END_AMOUNT, StringUtils.toString(endAmount, eiMetadata.getMeta(FIELD_END_AMOUNT)));
map.put(FIELD_END_WEIGHT, StringUtils.toString(endWeight, eiMetadata.getMeta(FIELD_END_WEIGHT))); map.put(FIELD_END_WEIGHT, StringUtils.toString(endWeight, eiMetadata.getMeta(FIELD_END_WEIGHT)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY))); map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
......
...@@ -4,6 +4,7 @@ import com.baosight.hpjx.common.DdynamicEnum; ...@@ -4,6 +4,7 @@ import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPConstant; import com.baosight.hpjx.hp.constant.HPConstant;
import com.baosight.hpjx.hp.constant.HPSqlConstant;
import com.baosight.hpjx.hp.kc.domain.HPKC005; import com.baosight.hpjx.hp.kc.domain.HPKC005;
import com.baosight.hpjx.hp.kc.domain.HPKC006; import com.baosight.hpjx.hp.kc.domain.HPKC006;
import com.baosight.hpjx.hp.kc.domain.HPKC007; import com.baosight.hpjx.hp.kc.domain.HPKC007;
...@@ -55,7 +56,10 @@ public class ServiceHPKC005 extends ServiceBase { ...@@ -55,7 +56,10 @@ public class ServiceHPKC005 extends ServiceBase {
} }
/** /**
* 查询操作. * 查询操作
*
* @param inInfo
* @return
*/ */
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
...@@ -64,8 +68,8 @@ public class ServiceHPKC005 extends ServiceBase { ...@@ -64,8 +68,8 @@ public class ServiceHPKC005 extends ServiceBase {
String receiptDate = MapUtils.getString(queryRow, "receiptDate"); String receiptDate = MapUtils.getString(queryRow, "receiptDate");
queryRow.put("receiptDate", StringUtil.removeSpecifiedCharacter(receiptDate, queryRow.put("receiptDate", StringUtil.removeSpecifiedCharacter(receiptDate,
StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED)); StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED));
inInfo = super.query(inInfo, "HPKC005.query", new HPKC005()); inInfo = super.query(inInfo, HPKC005.QUERY, new HPKC005());
List sum = dao.query("HPKC005.querySum", queryRow); List sum = dao.query(HPSqlConstant.HPKC005.QUERY_SUM, queryRow);
inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0)); inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0));
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败"); LogUtils.setDetailMsg(inInfo, e, "查询失败");
...@@ -74,75 +78,11 @@ public class ServiceHPKC005 extends ServiceBase { ...@@ -74,75 +78,11 @@ public class ServiceHPKC005 extends ServiceBase {
} }
/** /**
* 保存操作. * 新增操作
* *
* @param inInfo * @param inInfo
* @return * @return
*/ */
public EiInfo save(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
// 数据校验
this.checkSaveData(resultRows);
// 写入数据
for (int i = 0; i < resultRows.size(); i++) {
HPKC005 fKc005 = new HPKC005();
fKc005.fromMap(resultRows.get(i));
// 设置基础信息
this.setBaseInfo(fKc005);
if (fKc005.getId() == null || fKc005.getId() == 0) {
this.add(fKc005);
} else {
this.modify(fKc005);
}
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 校验保存的数据
*
* @param resultRows
*/
private void checkSaveData(List<Map> resultRows) {
for (int i = 0; i < resultRows.size(); i++) {
HPKC005 fKc005 = new HPKC005();
fKc005.fromMap(resultRows.get(i));
AssertUtils.isEmpty(fKc005.getWhCode(), "仓库名称不能为空");
AssertUtils.isNull(fKc005.getInventCode(), "存货名称不能为空");
}
}
/**
* 新增
*
* @param fKc005
*/
private void add(HPKC005 fKc005) {
// 生成单据号
fKc005.setCheckNo(SequenceGenerator.getNextSequence(
HPConstant.SequenceId.CHECK_NO));
DaoUtils.insert("HPKC005.insert", fKc005);
}
/**
* 修改数据
*
* @param fKc005
*/
private void modify(HPKC005 fKc005) {
DaoUtils.update("HPKC005.update", fKc005);
}
/**
* 新增操作.
*/
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
......
...@@ -26,7 +26,10 @@ import java.util.Map; ...@@ -26,7 +26,10 @@ import java.util.Map;
public class ServiceHPKC008 extends ServiceBase { public class ServiceHPKC008 extends ServiceBase {
/** /**
* 画面初始化. * 画面初始化
*
* @param inInfo
* @return
*/ */
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
...@@ -37,21 +40,24 @@ public class ServiceHPKC008 extends ServiceBase { ...@@ -37,21 +40,24 @@ public class ServiceHPKC008 extends ServiceBase {
} }
return inInfo; return inInfo;
} }
/** /**
* 查询操作. * 查询操作
*/ *
@Override * @param inInfo
public EiInfo query(EiInfo inInfo) { * @return
try { */
Map queryRow = EiInfoUtils.getFirstRow(inInfo); @Override
String dateMonth = MapUtils.getString(queryRow, "dateMonth"); public EiInfo query(EiInfo inInfo) {
queryRow.put("dateMonth", StringUtil.removeSpecifiedCharacter(dateMonth, try {
StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED)); Map queryRow = EiInfoUtils.getFirstRow(inInfo);
inInfo = super.query(inInfo, "HPKC008.query", new HPKC008()); String dateMonth = MapUtils.getString(queryRow, "dateMonth");
List sum = dao.query("HPKC008.querySum", queryRow); queryRow.put("dateMonth", StringUtil.removeSpecifiedCharacter(dateMonth,
inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0)); StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED));
} catch (Exception e) { inInfo = super.query(inInfo, "HPKC008.query", new HPKC008());
List sum = dao.query("HPKC008.querySum", queryRow);
inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0));
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败"); LogUtils.setDetailMsg(inInfo, e, "查询失败");
} }
return inInfo; return inInfo;
...@@ -80,6 +86,8 @@ public class ServiceHPKC008 extends ServiceBase { ...@@ -80,6 +86,8 @@ public class ServiceHPKC008 extends ServiceBase {
HPConstant.SequenceId.HPKC008_NUMBER)); HPConstant.SequenceId.HPKC008_NUMBER));
DaoUtils.insert(HPKC008.INSERT, fKc008); DaoUtils.insert(HPKC008.INSERT, fKc008);
} }
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!"); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!");
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "新增失败"); LogUtils.setDetailMsg(inInfo, e, "新增失败");
......
...@@ -57,6 +57,8 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -57,6 +57,8 @@ public class ServiceHPKC009 extends ServiceBase {
try { try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.WH_RECORD_BLOCK_ID), null); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.WH_RECORD_BLOCK_ID), null);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), null); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), null);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_SPEC_BLOCK_ID), null);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.SPEC_NAME_BLOCK_ID), null, false);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPKC009().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPKC009().eiMetadata);
} catch (PlatException e) { } catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败"); LogUtils.setDetailMsg(inInfo, e, "初始化失败");
...@@ -78,7 +80,7 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -78,7 +80,7 @@ public class ServiceHPKC009 extends ServiceBase {
queryRow.put("dateProc", StringUtil.removeSpecifiedCharacter(receiptDate, queryRow.put("dateProc", StringUtil.removeSpecifiedCharacter(receiptDate,
StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED)); StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED));
queryRow.put("dateType", CommonConstant.DateType.MONTH); queryRow.put("dateType", CommonConstant.DateType.MONTH);
inInfo = super.query(inInfo, "HPKC009.query", new HPPZ009()); inInfo = super.query(inInfo, HPKC009.QUERY, new HPKC009());
List sum = dao.query("HPKC009.querySum", queryRow); List sum = dao.query("HPKC009.querySum", queryRow);
inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0)); inInfo.getBlock(EiConstant.resultBlock).set(EiConstant.COLUMN_TOTAL_SUM, sum.get(0));
} catch (Exception e) { } catch (Exception e) {
...@@ -197,14 +199,14 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -197,14 +199,14 @@ public class ServiceHPKC009 extends ServiceBase {
Map<String, HPKC009> dKc009Map = dKc009s.stream().collect(Collectors.toMap(item -> Map<String, HPKC009> dKc009Map = dKc009s.stream().collect(Collectors.toMap(item ->
item.getCompanyCode() + "#" + item.getDepCode() + "#" + item.getWhCode() + "#" item.getCompanyCode() + "#" + item.getDepCode() + "#" + item.getWhCode() + "#"
+ item.getInventType() + "#" + item.getInventCode() + "#" + item.getInventType() + "#" + item.getInventCode() + "#"
+ item.getSpec(), item -> item)); + item.getInventRecordId(), item -> item));
// 根据期末库存生成收发存对象 // 根据期末库存生成收发存对象
for (HPKC001 aItem : aItems) { for (HPKC001 aItem : aItems) {
String key = aItem.getCompanyCode() + "#" + aItem.getDepCode() + "#" String key = aItem.getCompanyCode() + "#" + aItem.getDepCode() + "#"
+ aItem.getWhCode() + "#" + aItem.getMaterialType() + "#" + aItem.getWhCode() + "#" + aItem.getMaterialType() + "#"
+ aItem.getMaterialCode() + "#" + aItem.getSpec(); + aItem.getMaterialCode() + "#" + aItem.getSpec();
HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class); HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class);
kc009.setInventType(Integer.parseInt(aItem.getMaterialType())); kc009.setInventType(aItem.getMaterialType());
kc009.setInventCode(aItem.getMaterialCode()); kc009.setInventCode(aItem.getMaterialCode());
kc009.setKcType(HPConstant.KcType.CG); kc009.setKcType(HPConstant.KcType.CG);
kc009.setDateType(queryMap.get("dateType").toString()); kc009.setDateType(queryMap.get("dateType").toString());
...@@ -214,22 +216,22 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -214,22 +216,22 @@ public class ServiceHPKC009 extends ServiceBase {
kc009.setEndWeight(aItem.getWeight()); kc009.setEndWeight(aItem.getWeight());
// 收入 // 收入
HPKC001 bKc001 = bKc001Map.get(key); HPKC001 bKc001 = bKc001Map.get(key);
kc009.setStockinAmount(bKc001 == null ? BigDecimal.ZERO : BigDecimal.valueOf(bKc001.getQuantity())); kc009.setEnterAmount(bKc001 == null ? BigDecimal.ZERO : BigDecimal.valueOf(bKc001.getQuantity()));
kc009.setStockinWeight(bKc001 == null ? BigDecimal.ZERO : bKc001.getWeight()); kc009.setEnterWeight(bKc001 == null ? BigDecimal.ZERO : bKc001.getWeight());
// 发出 // 发出
HPKC002 cKc002 = cKc001Map.get(key); HPKC002 cKc002 = cKc001Map.get(key);
kc009.setStockoutAmount(cKc002 == null ? BigDecimal.ZERO : BigDecimal.valueOf(cKc002.getQuantity())); kc009.setOuterAmount(cKc002 == null ? BigDecimal.ZERO : BigDecimal.valueOf(cKc002.getQuantity()));
kc009.setStockoutWeight(cKc002 == null ? BigDecimal.ZERO : cKc002.getWeight()); kc009.setOuterWeight(cKc002 == null ? BigDecimal.ZERO : cKc002.getWeight());
// 期初 // 期初
HPKC009 dKc009 = dKc009Map.get(key); HPKC009 dKc009 = dKc009Map.get(key);
if (dKc009 != null) { if (dKc009 != null) {
kc009.setInitAmount(dKc009.getEndAmount()); kc009.setInitAmount(dKc009.getEndAmount());
kc009.setInitWeight(dKc009.getEndWeight()); kc009.setInitWeight(dKc009.getEndWeight());
} else { } else {
kc009.setInitAmount(kc009.getEndAmount().add(kc009.getStockoutAmount()) kc009.setInitAmount(kc009.getEndAmount().add(kc009.getOuterAmount())
.subtract(kc009.getStockinAmount())); .subtract(kc009.getEnterAmount()));
kc009.setInitWeight(kc009.getEndWeight().add(kc009.getStockoutWeight()) kc009.setInitWeight(kc009.getEndWeight().add(kc009.getOuterWeight())
.subtract(kc009.getStockinWeight())); .subtract(kc009.getEnterWeight()));
} }
kc009Map.put(key, kc009); kc009Map.put(key, kc009);
} }
...@@ -272,7 +274,7 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -272,7 +274,7 @@ public class ServiceHPKC009 extends ServiceBase {
+ aItem.getInventCode(); + aItem.getInventCode();
HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class); HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class);
kc009.setWhCode(aItem.getWhCode()); kc009.setWhCode(aItem.getWhCode());
kc009.setInventType(aItem.getInventType()); kc009.setInventType(aItem.getInventType() + "");
kc009.setInventCode(aItem.getInventCode()); kc009.setInventCode(aItem.getInventCode());
kc009.setKcType(HPConstant.KcType.SC); kc009.setKcType(HPConstant.KcType.SC);
kc009.setDateType(queryMap.get("dateType").toString()); kc009.setDateType(queryMap.get("dateType").toString());
...@@ -282,22 +284,22 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -282,22 +284,22 @@ public class ServiceHPKC009 extends ServiceBase {
kc009.setEndWeight(aItem.getWeight()); kc009.setEndWeight(aItem.getWeight());
// 收入 // 收入
HPKC003 bItem = bItemMap.get(key); HPKC003 bItem = bItemMap.get(key);
kc009.setStockinAmount(bItem == null ? BigDecimal.ZERO : bItem.getAmount()); kc009.setEnterAmount(bItem == null ? BigDecimal.ZERO : bItem.getAmount());
kc009.setStockinWeight(bItem == null ? BigDecimal.ZERO : bItem.getWeight()); kc009.setEnterWeight(bItem == null ? BigDecimal.ZERO : bItem.getWeight());
// 发出 // 发出
HPKC004 cItem = cItemMap.get(key); HPKC004 cItem = cItemMap.get(key);
kc009.setStockoutAmount(cItem == null ? BigDecimal.ZERO : cItem.getAmount()); kc009.setOuterAmount(cItem == null ? BigDecimal.ZERO : cItem.getAmount());
kc009.setStockoutWeight(cItem == null ? BigDecimal.ZERO : cItem.getWeight()); kc009.setOuterWeight(cItem == null ? BigDecimal.ZERO : cItem.getWeight());
// 期初 // 期初
HPKC009 dItem = dItemMap.get(key); HPKC009 dItem = dItemMap.get(key);
if (dItem != null) { if (dItem != null) {
kc009.setInitAmount(dItem.getEndAmount()); kc009.setInitAmount(dItem.getEndAmount());
kc009.setInitWeight(dItem.getEndWeight()); kc009.setInitWeight(dItem.getEndWeight());
} else { } else {
kc009.setInitAmount(kc009.getEndAmount().add(kc009.getStockoutAmount()) kc009.setInitAmount(kc009.getEndAmount().add(kc009.getOuterAmount())
.subtract(kc009.getStockinAmount())); .subtract(kc009.getEnterAmount()));
kc009.setInitWeight(kc009.getEndWeight().add(kc009.getStockoutWeight()) kc009.setInitWeight(kc009.getEndWeight().add(kc009.getOuterWeight())
.subtract(kc009.getStockinWeight())); .subtract(kc009.getEnterWeight()));
} }
kc009Map.put(key, kc009); kc009Map.put(key, kc009);
} }
...@@ -338,7 +340,7 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -338,7 +340,7 @@ public class ServiceHPKC009 extends ServiceBase {
String key = aItem.getCompanyCode() + "#" + aItem.getDepCode() + "#" String key = aItem.getCompanyCode() + "#" + aItem.getDepCode() + "#"
+ aItem.getWhCode() + "#" + aItem.getInventType() + "#" + aItem.getInventCode(); + aItem.getWhCode() + "#" + aItem.getInventType() + "#" + aItem.getInventCode();
HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class); HPKC009 kc009 = BeanUtils.copy(aItem, HPKC009.class);
kc009.setInventType(Integer.parseInt(aItem.getInventType())); kc009.setInventType(aItem.getInventType());
kc009.setInventCode(aItem.getInventCode()); kc009.setInventCode(aItem.getInventCode());
kc009.setKcType(HPConstant.KcType.QT); kc009.setKcType(HPConstant.KcType.QT);
kc009.setDateType(queryMap.get("dateType").toString()); kc009.setDateType(queryMap.get("dateType").toString());
...@@ -348,22 +350,22 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -348,22 +350,22 @@ public class ServiceHPKC009 extends ServiceBase {
kc009.setEndWeight(aItem.getWeight()); kc009.setEndWeight(aItem.getWeight());
// 收入 // 收入
HPKC006 bItem = bItemMap.get(key); HPKC006 bItem = bItemMap.get(key);
kc009.setStockinAmount(bItem == null ? BigDecimal.ZERO : bItem.getAmount()); kc009.setEnterAmount(bItem == null ? BigDecimal.ZERO : bItem.getAmount());
kc009.setStockinWeight(bItem == null ? BigDecimal.ZERO : bItem.getWeight()); kc009.setEnterWeight(bItem == null ? BigDecimal.ZERO : bItem.getWeight());
// 发出 // 发出
HPKC007 cItem = cItemMap.get(key); HPKC007 cItem = cItemMap.get(key);
kc009.setStockoutAmount(cItem == null ? BigDecimal.ZERO : cItem.getAmount()); kc009.setOuterAmount(cItem == null ? BigDecimal.ZERO : cItem.getAmount());
kc009.setStockoutWeight(cItem == null ? BigDecimal.ZERO : cItem.getWeight()); kc009.setOuterWeight(cItem == null ? BigDecimal.ZERO : cItem.getWeight());
// 期初 // 期初
HPKC009 dItem = dItemMap.get(key); HPKC009 dItem = dItemMap.get(key);
if (dItem != null) { if (dItem != null) {
kc009.setInitAmount(dItem.getEndAmount()); kc009.setInitAmount(dItem.getEndAmount());
kc009.setInitWeight(dItem.getEndWeight()); kc009.setInitWeight(dItem.getEndWeight());
} else { } else {
kc009.setInitAmount(kc009.getEndAmount().add(kc009.getStockoutAmount()) kc009.setInitAmount(kc009.getEndAmount().add(kc009.getOuterAmount())
.subtract(kc009.getStockinAmount())); .subtract(kc009.getOuterAmount()));
kc009.setInitWeight(kc009.getEndWeight().add(kc009.getStockoutWeight()) kc009.setInitWeight(kc009.getEndWeight().add(kc009.getOuterWeight())
.subtract(kc009.getStockinWeight())); .subtract(kc009.getEnterWeight()));
} }
kc009Map.put(key, kc009); kc009Map.put(key, kc009);
} }
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
INVENT_TYPE as "inventType", <!-- 存货类型 --> INVENT_TYPE as "inventType", <!-- 存货类型 -->
INVENT_CODE as "inventCode", <!-- 存货编码 --> INVENT_CODE as "inventCode", <!-- 存货编码 -->
INVENT_NAME as "inventName", <!-- 存货名称 --> INVENT_NAME as "inventName", <!-- 存货名称 -->
SPEC as "spec", <!-- 规格 --> INVENT_RECORD_ID as "inventRecordId", <!-- 规格ID -->
INIT_AMOUNT as "initAmount", <!-- 期初数量 --> INIT_AMOUNT as "initAmount", <!-- 期初数量 -->
INIT_WEIGHT as "initWeight", <!-- 期初重量 --> INIT_WEIGHT as "initWeight", <!-- 期初重量 -->
STOCKIN_AMOUNT as "stockinAmount", <!-- 入库数量 --> ENTER_AMOUNT as "enterAmount", <!-- 入库数量 -->
STOCKIN_WEIGHT as "stockinWeight", <!-- 入库重量 --> ENTER_WEIGHT as "enterWeight", <!-- 入库重量 -->
STOCKOUT_AMOUNT as "stockoutAmount", <!-- 出库数量 --> OUTER_AMOUNT as "outerAmount", <!-- 出库数量 -->
STOCKOUT_WEIGHT as "stockoutWeight", <!-- 出库重量 --> OUTER_WEIGHT as "outerWeight", <!-- 出库重量 -->
END_AMOUNT as "endAmount", <!-- 期末数量 --> END_AMOUNT as "endAmount", <!-- 期末数量 -->
END_WEIGHT as "endWeight", <!-- 期末重量 --> END_WEIGHT as "endWeight", <!-- 期末重量 -->
CREATED_BY as "createdBy", <!-- 创建人 --> CREATED_BY as "createdBy", <!-- 创建人 -->
...@@ -32,51 +32,45 @@ ...@@ -32,51 +32,45 @@
</sql> </sql>
<sql id="condition"> <sql id="condition">
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode"> <isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode# DEP_CODE = #depCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="kcType"> <isNotEmpty prepend=" AND " property="kcType">
KC_TYPE = #kcType# KC_TYPE = #kcType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="dateType"> <isNotEmpty prepend=" AND " property="dateType">
DATE_TYPE = #dateType# DATE_TYPE = #dateType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="dateProc"> <isNotEmpty prepend=" AND " property="dateProc">
DATE_PROC = #dateProc# DATE_PROC = #dateProc#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="whCode"> <isNotEmpty prepend=" AND " property="whCode">
WH_CODE = #whCode# WH_CODE = #whCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="whName"> <isNotEmpty prepend=" AND " property="whName">
WH_NAME = #whName# WH_NAME = #whName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType"> <isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType# INVENT_TYPE = #inventType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode"> <isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode# INVENT_CODE = #inventCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName"> <isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName# INVENT_NAME = #inventName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="spec"> <isNotEmpty prepend=" AND " property="inventRecordId">
SPEC = #spec# INVENT_RECORD_ID = #inventRecordId#
</isNotEmpty> </isNotEmpty>
</sql> </sql>
<!-- 查询 --> <sql id="order">
<select id="query" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC009">
SELECT
<include refid="column"/>
FROM ${hpjxSchema}.T_HPKC009
WHERE 1=1
<include refid="condition"/>
<dynamic prepend="ORDER BY"> <dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy"> <isNotEmpty property="orderBy">
$orderBy$ $orderBy$
...@@ -85,6 +79,16 @@ ...@@ -85,6 +79,16 @@
ID asc ID asc
</isEmpty> </isEmpty>
</dynamic> </dynamic>
</sql>
<!-- 查询 -->
<select id="query" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC009">
SELECT
<include refid="column"/>
FROM ${hpjxSchema}.T_HPKC009
WHERE 1=1
<include refid="condition"/>
<include refid="order"/>
</select> </select>
<select id="count" resultClass="int"> <select id="count" resultClass="int">
...@@ -97,10 +101,10 @@ ...@@ -97,10 +101,10 @@
SELECT SELECT
COALESCE(SUM(INIT_AMOUNT), 0) AS "initAmount", <!-- 期初数量 --> COALESCE(SUM(INIT_AMOUNT), 0) AS "initAmount", <!-- 期初数量 -->
COALESCE(SUM(INIT_WEIGHT), 0) AS "initWeight", <!-- 期初重量 --> COALESCE(SUM(INIT_WEIGHT), 0) AS "initWeight", <!-- 期初重量 -->
COALESCE(SUM(STOCKIN_AMOUNT), 0) AS "stockinAmount", <!-- 入库数量 --> COALESCE(SUM(ENTER_AMOUNT), 0) AS "enterAmount", <!-- 入库数量 -->
COALESCE(SUM(STOCKIN_WEIGHT), 0) AS "stockinWeight", <!-- 入库重量 --> COALESCE(SUM(ENTER_WEIGHT), 0) AS "enterWeight", <!-- 入库重量 -->
COALESCE(SUM(STOCKOUT_AMOUNT), 0) AS "stockoutAmount", <!-- 差异数量 --> COALESCE(SUM(OUTER_AMOUNT), 0) AS "outerAmount", <!-- 差异数量 -->
COALESCE(SUM(STOCKOUT_WEIGHT), 0) AS "stockoutWeight", <!-- 差异重量 --> COALESCE(SUM(OUTER_WEIGHT), 0) AS "outerWeight", <!-- 差异重量 -->
COALESCE(SUM(END_AMOUNT), 0) AS "endAmount", <!-- 期末数量 --> COALESCE(SUM(END_AMOUNT), 0) AS "endAmount", <!-- 期末数量 -->
COALESCE(SUM(END_WEIGHT), 0) AS "endWeight" <!-- 期末重量 --> COALESCE(SUM(END_WEIGHT), 0) AS "endWeight" <!-- 期末重量 -->
FROM ${hpjxSchema}.T_HPKC009 FROM ${hpjxSchema}.T_HPKC009
...@@ -109,18 +113,37 @@ ...@@ -109,18 +113,37 @@
</select> </select>
<insert id="insert"> <insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPKC009 ( INSERT INTO ${hpjxSchema}.T_HPKC009 (
COMPANY_CODE, DEP_CODE, KC_TYPE, DATE_TYPE, DATE_PROC, WH_CODE, WH_NAME, INVENT_TYPE, COMPANY_CODE, <!-- 企业编码 预留 -->
INVENT_CODE, INVENT_NAME, SPEC, INIT_AMOUNT, INIT_WEIGHT, STOCKIN_AMOUNT, DEP_CODE, <!-- 部门编码 -->
STOCKIN_WEIGHT, STOCKOUT_AMOUNT, STOCKOUT_WEIGHT, END_AMOUNT, END_WEIGHT, KC_TYPE, <!-- 库存类型:CG:采购,SC:生产,QT:其他 -->
CREATED_BY, CREATED_NAME, CREATED_TIME DATE_TYPE, <!-- 日期类型:DAY:天,MONTH:月 -->
DATE_PROC, <!-- 日期 -->
WH_CODE, <!-- 仓库编码 -->
WH_NAME, <!-- 仓库名称 -->
INVENT_TYPE, <!-- 存货类型 -->
INVENT_CODE, <!-- 存货编码 -->
INVENT_NAME, <!-- 存货名称 -->
INVENT_RECORD_ID, <!-- 规格ID -->
INIT_AMOUNT, <!-- 期初数量 -->
INIT_WEIGHT, <!-- 期初重量 -->
ENTER_AMOUNT, <!-- 入库数量 -->
ENTER_WEIGHT, <!-- 入库重量 -->
OUTER_AMOUNT, <!-- 出库数量 -->
OUTER_WEIGHT, <!-- 出库重量 -->
END_AMOUNT, <!-- 期末数量 -->
END_WEIGHT, <!-- 期末重量 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME <!-- 创建时间 -->
) VALUES ( ) VALUES (
#companyCode#, #depCode#, #kcType#, #dateType#, #dateProc#, #whCode#, #whName#, #inventType#, #companyCode#, #depCode#, #kcType#, #dateType#, #dateProc#, #whCode#,
#inventCode#, #inventName#, #spec#, #initAmount#, #initWeight#, #stockinAmount#, #whName#, #inventType#, #inventCode#, #inventName#, #inventRecordId#,
#stockinWeight#, #stockoutAmount#, #stockoutWeight#, #endAmount#, #endWeight#, #initAmount#, #initWeight#, #enterAmount#, #enterWeight#, #outerAmount#,
#createdBy#, #createdName#, #createdTime# #outerWeight#, #endAmount#, #endWeight#, #createdBy#, #createdName#,
#createdTime#
) )
</insert> </insert>
<delete id="delete"> <delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPKC009 WHERE ID = #id# DELETE FROM ${hpjxSchema}.T_HPKC009 WHERE ID = #id#
......
...@@ -42,6 +42,12 @@ public class HPPZ009 extends DaoEPBase { ...@@ -42,6 +42,12 @@ public class HPPZ009 extends DaoEPBase {
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/ public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除:1.是,0.否*/ public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除:1.是,0.否*/
public static final String QUERY = "HPPZ009.query";
public static final String COUNT = "HPPZ009.count";
public static final String INSERT = "HPPZ009.insert";
public static final String UPDATE = "HPPZ009.update";
public static final String DELETE = "HPPZ009.delete";
private Long id = null; private Long id = null;
private String companyCode = " "; /* 企业编码*/ private String companyCode = " "; /* 企业编码*/
private String companyName = " "; /* 企业名称*/ private String companyName = " "; /* 企业名称*/
......
...@@ -2,9 +2,11 @@ package com.baosight.hpjx.hp.pz.service; ...@@ -2,9 +2,11 @@ package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPConstant;
import com.baosight.hpjx.hp.pz.domain.HPPZ009; import com.baosight.hpjx.hp.pz.domain.HPPZ009;
import com.baosight.hpjx.hp.xs.tools.HPXSUserTools; import com.baosight.hpjx.hp.xs.tools.HPXSUserTools;
import com.baosight.hpjx.util.AssertUtils; import com.baosight.hpjx.util.AssertUtils;
import com.baosight.hpjx.util.DateUtils;
import com.baosight.hpjx.util.LogUtils; import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.RsaUtils; import com.baosight.hpjx.util.RsaUtils;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
...@@ -12,6 +14,7 @@ import com.baosight.iplat4j.core.ei.EiInfo; ...@@ -12,6 +14,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException; import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceBase; import com.baosight.iplat4j.core.service.impl.ServiceBase;
import com.baosight.iplat4j.core.service.soa.XLocalManager; import com.baosight.iplat4j.core.service.soa.XLocalManager;
import com.baosight.iplat4j.core.web.threadlocal.UserSession;
import com.baosight.iplat4j.ed.util.SequenceGenerator; import com.baosight.iplat4j.ed.util.SequenceGenerator;
import com.baosight.xservices.xs.constants.LoginConstants; import com.baosight.xservices.xs.constants.LoginConstants;
...@@ -111,9 +114,12 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -111,9 +114,12 @@ public class ServiceHPPZ009 extends ServiceBase {
*/ */
private void add(HPPZ009 fPz009) throws Exception { private void add(HPPZ009 fPz009) throws Exception {
// 生成企业编码 // 生成企业编码
fPz009.setCompanyCode(SequenceGenerator.getNextSequence("COMPANY_CODE")); fPz009.setCompanyCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.COMPANY_CODE));
fPz009.setDeleteFlag(CommonConstant.YesNo.NO_0); fPz009.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.insert("HPPZ009.insert", fPz009); fPz009.setCreatedBy(UserSession.getLoginName());
fPz009.setCreatedName(UserSession.getLoginCName());
fPz009.setCreatedTime(DateUtils.shortDateTime());
dao.insert(HPPZ009.INSERT, fPz009);
// 默认新增企业管理员账号 // 默认新增企业管理员账号
this.initUser(fPz009); this.initUser(fPz009);
// 关联企业管理员角色 // 关联企业管理员角色
......
package com.baosight.iplat4j.core.data.ibatis.dao;
import com.baosight.hpjx.core.security.UserSessionUtils;
import com.baosight.hpjx.util.ObjectUtils;
import com.baosight.iplat4j.core.service.soa.DomainQuery.PageStatus;
import com.baosight.iplat4j.core.util.ExceptionUtil;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author:songx
* @date:2024/1/24,9:00
*/
public class SqlMapDaoLogProxy extends SqlMapDao {
public static final String QUERY = "query";
public SqlMapDaoLogProxy() {
}
public List query(String name, Object parameters) {
try {
// 初始化参数
this.initParam(name, parameters);
List ret = super.query(name, parameters);
return ret;
} catch (RuntimeException var4) {
throw var4;
}
}
public List queryAll(String name, Object parameters) {
try {
// 初始化参数
this.initParam(name, parameters);
List ret = super.queryAll(name, parameters);
return ret;
} catch (RuntimeException var4) {
throw var4;
}
}
public List query(String name, Object parameters, int offset, int limit) {
try {
// 初始化参数
this.initParam(name, parameters);
List ret = super.query(name, parameters, offset, limit);
return ret;
} catch (RuntimeException var6) {
throw var6;
}
}
public List query(String name, Object parameters, PageStatus pageStatus) {
int limit = pageStatus.getPageSize();
int offset = pageStatus.getPageNumber() * pageStatus.getPageSize();
try {
List ret = super.query(name, parameters, offset, limit);
return ret;
} catch (RuntimeException var7) {
ExceptionUtil.getRootCauseMessage(var7);
throw var7;
}
}
public int count(String name, Object parameters) {
String var3 = this.autoCount ? "query" : "count";
try {
// 初始化参数
this.initParam(name, parameters);
int ret = super.count(name, parameters);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
public void insert(String name, Object object) {
String var3 = "insert";
try {
super.insert(name, object);
} catch (RuntimeException var5) {
throw var5;
}
}
public int update(String name, Object object) {
String var3 = "update";
try {
int ret = super.update(name, object);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
public int delete(String name, Object parameters) {
String var3 = "delete";
try {
int ret = super.delete(name, parameters);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
public int insertBatch(String name, Collection parameters) {
String operation = "insert";
try {
this.getStatementName(operation, name);
int ret = super.insertBatch(name, parameters);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
public int updateBatch(String name, Collection parameters) {
String operation = "update";
try {
this.getStatementName(operation, name);
int ret = super.updateBatch(name, parameters);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
public int deleteBatch(String name, Collection parameters) {
String operation = "delete";
try {
this.getStatementName(operation, name);
int ret = super.deleteBatch(name, parameters);
return ret;
} catch (RuntimeException var5) {
throw var5;
}
}
/**
* 初始化参数
*
* @param name
* @param parameters
*/
private void initParam(String name, Object parameters) {
// 查询登录用户信息时不设置企业编码,否则会形成死循环
if ("HPXSUser.query".equals(name)) {
return;
}
if(!(parameters instanceof Map)){
return;
}
if (parameters == null) {
parameters = new HashMap();
}
// 企业编码
((Map) parameters).put("companyCode", UserSessionUtils.getCompanyCode());
// 部门编码
// ((Map) parameters).put("depCode", UserSessionUtils.getDepCode());
}
}
...@@ -8,16 +8,26 @@ ...@@ -8,16 +8,26 @@
<EF:EFPage title="库存收发存"> <EF:EFPage title="库存收发存">
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFDatePicker ename="inqu_status-0-dateProc" cname="日期:" start="year" depth="year" <EF:EFDatePicker cname="单据日期" ename="inqu_status-0-receiptDate" colWidth="3"
role="date" format="yyyy-MM" readonly="true"/> role="date" format="yyyy-MM-dd" readonly="true"/>
<EF:EFSelect ename="inqu_status-0-inventType" cname="存货类型:" filter="contains" defaultValue=""> <EF:EFSelect cname="存货类型" ename="inqu_status-0-inventType" colWidth="3" filter="contains">
<EF:EFOption label="请选择" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hpjx.hpkc.inventType"/> <EF:EFCodeOption codeName="hpjx.hpkc.inventType"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFSelect ename="inqu_status-0-whCode" cname="仓库名称" filter="contains" defultValue=""> <EF:EFSelect cname="仓库名称" ename="inqu_status-0-whCode" colWidth="3" filter="contains">
<EF:EFOption label="请选择" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="wh_record_block_id" textField="textField" valueField="valueField"/> <EF:EFOptions blockId="wh_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFSelect cname="存货名称" ename="inqu_status-0-inventCode" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="invent_name_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</div>
<div class="row">
<EF:EFSelect cname="规格" ename="inqu_status-0-spec" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="spec_name_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</div> </div>
</EF:EFRegion> </EF:EFRegion>
...@@ -28,18 +38,16 @@ ...@@ -28,18 +38,16 @@
<EF:EFCodeOption codeName="hpjx.hpkc.kcType"/> <EF:EFCodeOption codeName="hpjx.hpkc.kcType"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn cname="日期" ename="dateProc" enable="false" width="90" align="center"/> <EF:EFColumn cname="日期" ename="dateProc" enable="false" width="90" align="center"/>
<EF:EFComboColumn cname="仓库名称" ename="whCode" enable="false" columnTemplate="#=textField#"
itemTemplate="#=textField#" blockName="wh_record_block_id"
textField="textField" valueField="valueField"
align="center" filter="contains" width="100">
</EF:EFComboColumn>
<EF:EFComboColumn cname="存货类型" ename="inventType" enable="false" width="90" align="center"> <EF:EFComboColumn cname="存货类型" ename="inventType" enable="false" width="90" align="center">
<EF:EFCodeOption codeName="hpjx.hpkc.inventType"/> <EF:EFCodeOption codeName="hpjx.hpkc.inventType"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFComboColumn cname="存货名称" ename="inventCode" enable="false" columnTemplate="#=textField#" <EF:EFComboColumn cname="仓库名称" ename="whCode" enable="false" width="100" align="center"
itemTemplate="#=textField#" blockName="invent_name_block_id" blockName="wh_record_block_id" textField="textField" valueField="valueField"
textField="textField" valueField="valueField" columnTemplate="#=textField#" itemTemplate="#=textField#">
align="center" filter="contains" width="100"> </EF:EFComboColumn>
<EF:EFComboColumn cname="存货名称" ename="inventCode" enable="false" width="100" align="center"
blockName="invent_name_block_id" textField="textField" valueField="valueField"
columnTemplate="#=textField#" itemTemplate="#=textField#">
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn cname="规格" ename="spec" enable="false" width="120"/> <EF:EFColumn cname="规格" ename="spec" enable="false" width="120"/>
<EF:EFColumn cname="期初数量" ename="initAmount" enable="false" width="90" align="right" format="{0:N3}" <EF:EFColumn cname="期初数量" ename="initAmount" enable="false" width="90" align="right" format="{0:N3}"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<EF:EFColumn cname="修改时间" ename="updatedTime" enable="false" width="140" align="center" <EF:EFColumn cname="修改时间" ename="updatedTime" enable="false" width="140" align="center"
editType="datetime" parseFormats="['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"/> editType="datetime" parseFormats="['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"/>
</EF:EFGrid> </EF:EFGrid>
<p class="text-info"><span style='color: red;'>注:新增企业时会新增企业管理员账户,账号和密码与企业编码相同</span></p>
</EF:EFRegion> </EF:EFRegion>
</EF:EFPage> </EF:EFPage>
<%--<script src="${iPlatStaticURL}/common/js/common.js"></script>--%>
<%--<script src="${iPlatStaticURL}/common/js/jsUtils.js"></script>--%>
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