|
@@ -3279,7 +3279,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
|
|
|
- public HttpResponseResult createPackagePracticeGroup(PracticeGroupBuyDto practiceGroupBuyParams) {
|
|
|
+ public HttpResponseResult createPackagePracticeGroup(PracticeGroupBuyDto practiceGroupBuyParams, String operatorInfo) {
|
|
|
studentDao.lockUser(practiceGroupBuyParams.getStudentId());
|
|
|
if (Objects.isNull(practiceGroupBuyParams.getUserId())) {
|
|
|
return BaseController.failed(HttpStatus.EXPECTATION_FAILED, "请选择教师");
|
|
@@ -3461,6 +3461,9 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
practiceGroupBuyParams.setSingleClassMinutes(practiceCourseMinutes);
|
|
|
practiceGroupBuyParams.setGroupStatus(GroupStatusEnum.LOCK);
|
|
|
practiceGroupBuyParams.setType(PracticeGroupType.COME_ON_PACKAGE);
|
|
|
+ if(StringUtils.isNotBlank(operatorInfo)){
|
|
|
+ practiceGroupBuyParams.setMemo(operatorInfo+",教务代买");
|
|
|
+ }
|
|
|
practiceGroupDao.insert(practiceGroupBuyParams);
|
|
|
|
|
|
//创建班级信息
|
|
@@ -3629,6 +3632,9 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
studentPaymentOrder.setActualAmount(studentPaymentOrder.getExpectAmount());
|
|
|
studentPaymentOrder.setClassGroupId(classGroup.getId());
|
|
|
studentPaymentOrder.setVersion(0);
|
|
|
+ if(StringUtils.isNotBlank(operatorInfo)){
|
|
|
+ studentPaymentOrder.setMemo(operatorInfo+",教务代买");
|
|
|
+ }
|
|
|
studentPaymentOrderService.insert(studentPaymentOrder);
|
|
|
|
|
|
BigDecimal balance = BigDecimal.ZERO;
|