|
@@ -84,8 +84,8 @@ public class ExportServiceImpl implements ExportService {
|
|
|
private CourseScheduleService courseScheduleService;
|
|
|
@Autowired
|
|
|
private StudentService studentService;
|
|
|
- @Autowired
|
|
|
- private TenantConfigService tenantConfigService;
|
|
|
+ @Autowired
|
|
|
+ private TenantConfigService tenantConfigService;
|
|
|
@Autowired
|
|
|
private CourseScheduleStudentPaymentDao courseScheduleStudentPaymentDao;
|
|
|
@Autowired
|
|
@@ -1615,7 +1615,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
List<CooperationOrgan> cooperationOrgans = cooperationOrganDao.getCooperationOrganByIds(cooperationOrganIds);
|
|
|
cooperationOrganMap = cooperationOrgans.stream().collect(Collectors.toMap(CooperationOrgan::getId, CooperationOrgan::getName));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取机构费率
|
|
|
Integer tenantId = (Integer) params.get("tenantId");
|
|
|
TenantConfig tenantConfig = tenantConfigService.queryByTenantId(tenantId);
|
|
@@ -2168,8 +2168,8 @@ public class ExportServiceImpl implements ExportService {
|
|
|
} else if (row.getGroupType().equals(GroupType.SPORADIC)) {
|
|
|
//考级报名
|
|
|
if (row.getType().equals(OrderTypeEnum.DEGREE_REGISTRATION)) {
|
|
|
-
|
|
|
- if(StringUtils.isNotBlank(row.getMemo())){
|
|
|
+
|
|
|
+ if(StringUtils.isNotBlank(row.getMemo())){
|
|
|
String[] feeTypes = row.getMemo().split(";");
|
|
|
List<String> feeTypeList = Arrays.asList(feeTypes);
|
|
|
for (String feeTypeStr : feeTypeList) {
|
|
@@ -2189,7 +2189,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
row.setTheoryCourseFee(typeFee);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
row.setDegreeFee(row.getActualAmount().subtract(row.getVipCourseFee()).subtract(row.getPracticeCourseFee()).subtract(row.getTheoryCourseFee()));
|
|
|
} else {
|
|
|
if (row.getChargeType() != null && SporadicChargeTypeEnum.LEVEL.getCode().equals(row.getChargeType())) {
|
|
@@ -2322,7 +2322,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
List<CooperationOrgan> cooperationOrgans = cooperationOrganDao.getCooperationOrganByIds(cooperationOrganIds);
|
|
|
cooperationOrganMap = cooperationOrgans.stream().collect(Collectors.toMap(CooperationOrgan::getId, CooperationOrgan::getName));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取机构费率
|
|
|
Integer tenantId = (Integer) params.get("tenantId");
|
|
|
TenantConfig tenantConfig = tenantConfigService.queryByTenantId(tenantId);
|
|
@@ -2347,10 +2347,10 @@ public class ExportServiceImpl implements ExportService {
|
|
|
if(musicGroupIds != null && musicGroupIds.size() > 0){
|
|
|
musicGroupNameMap = MapUtil.convertIntegerMap(musicGroupDao.queryMusicGroupNameMap(musicGroupIds));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
Map<String,BigDecimal> serviceChargeMap = new HashMap<String, BigDecimal>();
|
|
|
Map<String,Integer> orderCountMap = new HashMap<String, Integer>();
|
|
|
-
|
|
|
+
|
|
|
for (StudentPaymentOrderExportDto row : studentPaymentOrderExportDtos) {
|
|
|
if (row.getActualAmount() == null) {
|
|
|
row.setActualAmount(BigDecimal.ZERO);
|
|
@@ -2369,7 +2369,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
BigDecimal totalFee = BigDecimal.ZERO;
|
|
|
if (row.getPaymentChannel() != null && row.getPaymentChannel().equals("ADAPAY")) {
|
|
|
FeeFlagNumDto countFeeFlagNum = studentPaymentRouteOrderDao.getCountFeeFlagNum(row.getOrderNo());
|
|
|
-
|
|
|
+
|
|
|
Integer times = orderCountMap.get(row.getOrderNo());
|
|
|
if (times == null) {
|
|
|
times = 1;
|
|
@@ -2377,9 +2377,9 @@ public class ExportServiceImpl implements ExportService {
|
|
|
++times;
|
|
|
}
|
|
|
orderCountMap.put(row.getOrderNo(), times);
|
|
|
-
|
|
|
+
|
|
|
currentFee = row.getServiceFee();
|
|
|
-
|
|
|
+
|
|
|
//兼容2022年之前的数据
|
|
|
if (currentFee == null || (currentFee.floatValue() == 0 && row.getCreateTime().before(DateUtil.stringToDate("2022-01-01 00:00:00")))) {
|
|
|
transferFee = serviceChargeMap.get(row.getOrderNo());
|