puzhibing
2023-12-04 3ad6b6ba2ba56fc0bcd2130e47190779c6e15acc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.dsh.course.feignClient.course;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsh.course.dto.StudentQeryDto;
import com.dsh.course.feignClient.course.model.QueryCoursePackageLists;
import com.dsh.course.feignClient.course.model.QueryExamineCoursePackageLists;
import com.dsh.course.feignClient.course.model.QueryRegistrationRecord;
import com.dsh.course.feignClient.course.model.TCoursePackage;
import com.dsh.guns.modular.system.model.TCoursePackagePayment;
import com.dsh.guns.modular.system.model.dto.BallQueryDto;
import com.dsh.guns.modular.system.model.dto.PacQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author zhibing.pu
 * @Date 2023/8/1 15:12
 */
@FeignClient("mb-cloud-course")
public interface CoursePackageClient {
 
    /**
     * 根据门店ids获取课包ids 根据课包ids 获取购课记录的用户ids
     */
    @PostMapping("/base/coursePackage/getCoursePackageByStoreIds")
     List<Integer> getCoursePackageByStoreIds(@RequestBody List<Integer> storeIds);
    /**
     * 根据课包类型获取课包
     */
    @PostMapping("/base/coursePackage/getCoursePackageByType/{typeId}/{storeId}")
    List<TCoursePackage> getCoursePackageByType(@PathVariable("typeId") Integer typeId, @PathVariable("storeId")Integer storeId);
    /**
     * 根据门店id获取课包
     */
    @PostMapping("/base/coursePackage/getCoursePackageByStoreId")
    List<TCoursePackage> getCoursePackageByStoreId(@RequestBody Integer storeId);
    /**
     * 获取课包管理列表数据
     * @param queryCoursePackageLists
     * @return
     */
    @PostMapping("/coursePackage/queryCoursePackageLists")
    Page<Map<String, Object>> queryCoursePackageLists(QueryCoursePackageLists queryCoursePackageLists);
 
 
    /**
     * 添加数据
     * @param coursePackage
     */
    @PostMapping("/coursePackage/addCoursePackage")
    Integer addCoursePackage(TCoursePackage coursePackage);
 
 
    /**
     * 根据id查询数据
     * @param id
     * @return
     */
    @PostMapping("/base/coursePackage/queryCoursePackageById")
    TCoursePackage queryById(Integer id);
 
 
    /**
     * 修改数据
     * @param coursePackage
     */
    @PostMapping("/coursePackage/updateCoursePackageById")
    void updateCoursePackage(TCoursePackage coursePackage);
 
 
    /**
     * 获取课包审核列表
     * @param queryExamineCoursePackageLists
     * @return
     */
    @PostMapping("/coursePackage/queryExamineCoursePackageLists")
    Page<Map<String, Object>> queryExamineCoursePackageLists(QueryExamineCoursePackageLists queryExamineCoursePackageLists);
 
 
    @PostMapping("/courdent/getStudentTotal")
    List<Map<String, Object>> getStudentTotal(StudentQeryDto studentQeryDto);
 
 
    @PostMapping("/courdent/bypac")
    List<Map<String, Object>> bypac(PacQueryDto pacQueryDto);
 
 
    @PostMapping("/courdent/queryIdsByStore")
    List<Integer> queryIdsByStore(Integer objectId);
 
    @PostMapping("/courdent/queryAble")
    Integer queryAble(Integer id);
}