计费模块重构,可以在线配置SQl,更灵活面对不同计费方式
parent
d59a91ad68
commit
5cf4699fcc
|
@ -118,7 +118,7 @@ public class CostTask {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
for (WmCusCostIEntity wmCusCostIEntity : wmCusCostIEntityList) {
|
for (WmCusCostIEntity wmCusCostIEntity : wmCusCostIEntityList) {
|
||||||
//执行计算
|
//执行计算 SQL 返回order_id goods_id goods_count count_unit
|
||||||
String dataSql = wmCusCostIEntity.getDataSql();
|
String dataSql = wmCusCostIEntity.getDataSql();
|
||||||
dataSql = StringUtils.replace(dataSql, "{cusCode}", cusCode);
|
dataSql = StringUtils.replace(dataSql, "{cusCode}", cusCode);
|
||||||
List<Map<String, Object>> resulthq = systemService
|
List<Map<String, Object>> resulthq = systemService
|
||||||
|
|
Loading…
Reference in New Issue