从接口实现销售价每个客户不同的价格

This commit is contained in:
季圣华
2023-06-11 18:47:07 +08:00
parent d59ace2149
commit 04f6fdfd40
4 changed files with 43 additions and 1 deletions

View File

@@ -1195,4 +1195,23 @@ public class DepotItemService {
map.put("rows", arr);
return map;
}
public BigDecimal getLastUnitPriceByParam(Long organId, Long meId, String prefixNo) {
String type = "";
String subType = "";
if("XSDD".equals(prefixNo)) {
type = "其它";
subType = "销售订单";
} else if("XSCK".equals(prefixNo)) {
type = "出库";
subType = "销售";
} else if("XSTH".equals(prefixNo)) {
type = "入库";
subType = "销售退货";
} else if("QTCK".equals(prefixNo)) {
type = "出库";
subType = "其它";
}
return depotItemMapperEx.getLastUnitPriceByParam(organId, meId, type, subType);
}
}