|
@@ -551,7 +551,7 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
|
//出入库用户
|
|
|
depotItem.setWarehousingUser(rowObj.getLong("warehousingUser"));
|
|
|
//warehousingTime
|
|
|
- depotItem.setWarehousingTime(rowObj.getString("warehousingTime"));
|
|
|
+ depotItem.setWarehousingTime(rowObj.getDate("warehousingTime"));
|
|
|
//生产日期
|
|
|
depotItem.setProductionDate(rowObj.getDate("productionDate"));
|
|
|
//保质期天数
|
|
@@ -1614,13 +1614,14 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
|
}
|
|
|
if(StringUtil.isNotEmpty(detailMap.get("unitPrice"))) {
|
|
|
unitPrice = new BigDecimal(detailMap.get("unitPrice"));
|
|
|
- } else {
|
|
|
- if("CGDD".equals(prefixNo)) {
|
|
|
- unitPrice = m.getPurchaseDecimal();
|
|
|
- } else if("XSDD".equals(prefixNo)) {
|
|
|
- unitPrice = m.getWholesaleDecimal();
|
|
|
- }
|
|
|
}
|
|
|
+// else {
|
|
|
+// if("CGDD".equals(prefixNo)) {
|
|
|
+// unitPrice = m.getPurchaseDecimal();
|
|
|
+// } else if("XSDD".equals(prefixNo)) {
|
|
|
+// unitPrice = m.getWholesaleDecimal();
|
|
|
+// }
|
|
|
+// }
|
|
|
if(StringUtil.isNotEmpty(detailMap.get("taxRate"))) {
|
|
|
taxRate = new BigDecimal(detailMap.get("taxRate"));
|
|
|
}
|
|
@@ -1630,7 +1631,7 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
|
item.put("productionDate",detailMap.get("productionDate"));
|
|
|
BigDecimal allPrice = BigDecimal.ZERO;
|
|
|
if(unitPrice!=null && unitPrice.compareTo(BigDecimal.ZERO)!=0) {
|
|
|
- allPrice = unitPrice.multiply(operNumber);
|
|
|
+ allPrice = unitPrice.multiply(operNumber).multiply(m.getRatio());
|
|
|
}
|
|
|
BigDecimal taxMoney = BigDecimal.ZERO;
|
|
|
if(taxRate.compareTo(BigDecimal.ZERO) != 0) {
|
|
@@ -1646,6 +1647,8 @@ public class DepotItemServiceImpl extends ServiceImpl<DepotItemMapper, DepotItem
|
|
|
item.put("wholesaleDecimal",m.getDefaultWholesaleDecimal());
|
|
|
item.put("defaultPurchaseDecimal",m.getDefaultPurchaseDecimal());
|
|
|
item.put("defaultWholesaleDecimal",m.getDefaultWholesaleDecimal());
|
|
|
+ item.put("ratio",m.getRatio());
|
|
|
+ item.put("unitName",m.getUnitName());
|
|
|
arr.add(item);
|
|
|
} else {
|
|
|
throw new BusinessRunTimeException(ExceptionConstants.DEPOT_ITEM_BARCODE_IS_NOT_EXIST_CODE,
|