|
|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
import static com.ym.mec.biz.dal.enums.PracticeGroupType.CHARGE;
|
|
|
@@ -50,6 +51,18 @@ public class TeacherPracticeGroupController extends BaseController {
|
|
|
return succeed(practiceGroupSellPriceDao.get(teacher.getOrganId()));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("课酬总费用")
|
|
|
+ @PostMapping("/getPracticeGroupCostCount")
|
|
|
+ public Object getPracticeGroupCostCount(@RequestBody PracticeGroupApplyBaseInfoDto practice){
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
+ practice.setUserId(sysUser.getId());
|
|
|
+ Map results = practiceGroupService.countPracticeGroupPredictFee(practice,practice.getUserId(), null);
|
|
|
+ return succeed(results);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "教师端网管课活动排课")
|
|
|
@PostMapping("/createPracticeGroup")
|
|
|
public Object createPracticeGroup(@RequestBody PracticeGroupApplyDto practiceGroupApplyDto){
|