|
@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
@@ -75,6 +76,10 @@ public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCour
|
|
|
appCourses.setTenantId(site.getTenantId());
|
|
|
appCourses.setSiteId(site.getId());
|
|
|
}
|
|
|
+ if (appCoursesDTO.getCourses().getSellingPrice() == null ||
|
|
|
+ appCoursesDTO.getCourses().getSellingPrice().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ appCourses.setPriceType(1);
|
|
|
+ }
|
|
|
|
|
|
appCourses.setUserId(coursesCuDTO.getUserId());
|
|
|
appCourses.setAddressSiteId(coursesCuDTO.getAddressSiteId());
|