|
@@ -276,7 +276,7 @@ public class DepotItemController {
|
|
item.put("anotherDepotName", diEx.getAnotherDepotId() == null ? "" : diEx.getAnotherDepotName());
|
|
item.put("anotherDepotName", diEx.getAnotherDepotId() == null ? "" : diEx.getAnotherDepotName());
|
|
item.put("mType", diEx.getMaterialType());
|
|
item.put("mType", diEx.getMaterialType());
|
|
item.put("op", 1);
|
|
item.put("op", 1);
|
|
- String productionDate = diEx.getProductionDate() == null ? null : DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss",diEx.getProductionDate());
|
|
|
|
|
|
+ String productionDate = diEx.getProductionDate() == null ? null : DateUtils.parseDateToStr("yyyy-MM-dd",diEx.getProductionDate());
|
|
item.put("productionDate",productionDate);
|
|
item.put("productionDate",productionDate);
|
|
item.put("expiryNum",diEx.getExpiryNum());
|
|
item.put("expiryNum",diEx.getExpiryNum());
|
|
item.put("supplierId",diEx.getSupplierId());
|
|
item.put("supplierId",diEx.getSupplierId());
|
|
@@ -290,11 +290,12 @@ public class DepotItemController {
|
|
item.put("warehousingVariance",diEx.getWarehousingVariance());
|
|
item.put("warehousingVariance",diEx.getWarehousingVariance());
|
|
item.put("reasonOfDifference",diEx.getReasonOfDifference());
|
|
item.put("reasonOfDifference",diEx.getReasonOfDifference());
|
|
item.put("warehousingUser",diEx.getWarehousingUser());
|
|
item.put("warehousingUser",diEx.getWarehousingUser());
|
|
- item.put("warehousingTime",diEx.getWarehousingTime());
|
|
|
|
|
|
+ item.put("warehousingTime",diEx.getWarehousingTime() == null ? null : DateUtils.parseDateToStr("yyyy-MM-dd",diEx.getWarehousingTime()));
|
|
item.put("warehousingUserName",diEx.getWarehousingUserName());
|
|
item.put("warehousingUserName",diEx.getWarehousingUserName());
|
|
item.put("wholesaleDecimal",diEx.getWholesaleDecimal());
|
|
item.put("wholesaleDecimal",diEx.getWholesaleDecimal());
|
|
item.put("defaultPurchaseDecimal",diEx.getDefaultPurchaseDecimal());
|
|
item.put("defaultPurchaseDecimal",diEx.getDefaultPurchaseDecimal());
|
|
item.put("defaultWholesaleDecimal",diEx.getDefaultWholesaleDecimal());
|
|
item.put("defaultWholesaleDecimal",diEx.getDefaultWholesaleDecimal());
|
|
|
|
+ item.put("ratio",diEx.getRatio());
|
|
dataArray.add(item);
|
|
dataArray.add(item);
|
|
//合计数据汇总
|
|
//合计数据汇总
|
|
totalOperNumber = totalOperNumber.add(diEx.getOperNumber()==null?BigDecimal.ZERO:diEx.getOperNumber());
|
|
totalOperNumber = totalOperNumber.add(diEx.getOperNumber()==null?BigDecimal.ZERO:diEx.getOperNumber());
|
|
@@ -1041,7 +1042,7 @@ public class DepotItemController {
|
|
taxRate = ExcelUtils.getContent(src, i, 4);
|
|
taxRate = ExcelUtils.getContent(src, i, 4);
|
|
remark = ExcelUtils.getContent(src, i, 5);
|
|
remark = ExcelUtils.getContent(src, i, 5);
|
|
}
|
|
}
|
|
- if("CGRK".equals(prefixNo) || "XSCK".equals(prefixNo)) {
|
|
|
|
|
|
+ if("CGRK".equals(prefixNo)) {
|
|
//采购入库
|
|
//采购入库
|
|
depotName = ExcelUtils.getContent(src, i, 0);
|
|
depotName = ExcelUtils.getContent(src, i, 0);
|
|
barCode = ExcelUtils.getContent(src, i, 1);
|
|
barCode = ExcelUtils.getContent(src, i, 1);
|