Selaa lähdekoodia

Merge branch 'saas' of http://git.dayaedu.com/yonge/mec into saas

yonge 3 vuotta sitten
vanhempi
commit
e35e3f8f42

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TenantAssetsInfoServiceImpl.java

@@ -80,7 +80,7 @@ public class TenantAssetsInfoServiceImpl extends ServiceImpl<TenantAssetsInfoDao
             //计算总上课时间
             BigDecimal courseDate = getCourseDate(record.getClassDate(), record.getStartClassTime(), record.getEndClassTime());
             //课程总价 = 每分钟扣费标准 * 总上课时间
-            BigDecimal coursePrice = minutePrice.multiply(courseDate, new MathContext(2, RoundingMode.HALF_UP));
+            BigDecimal coursePrice = minutePrice.multiply(courseDate, new MathContext(3, RoundingMode.HALF_UP));
             //修改流水
             TenantCloudCourseRecord sourceCord = new TenantCloudCourseRecord();
             sourceCord.setId(record.getId());
@@ -133,7 +133,7 @@ public class TenantAssetsInfoServiceImpl extends ServiceImpl<TenantAssetsInfoDao
             //计算总上课时间
             BigDecimal courseDate = getCourseDate(course.getClassDate(), course.getStartClassTime(), course.getEndClassTime());
             //课程总价 = 每分钟扣费标准 * 总上课时间
-            BigDecimal coursePrice = minutePrice.multiply(courseDate, new MathContext(2, RoundingMode.HALF_UP));
+            BigDecimal coursePrice = minutePrice.multiply(courseDate, new MathContext(3, RoundingMode.HALF_UP));
             //写流水
             insertRecord(course, coursePrice, 1);
             log.info("deductAmount >>>>>> coursePrice {}  tenantId {}", coursePrice, course.getTenantId());