| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | @Autowired |
| | | private TCoursePackageService tCoursePackageService; |
| | | |
| | | |
| | | /** |
| | | * 根据ids获取类型 |
| | | */ |
| | | @RequestMapping("/coursePackageType/getByCourseIds") |
| | | public List<TCoursePackageType> getByCourseIds(@RequestBody List<Integer> ids){ |
| | | if (ids.size()==0){ |
| | | return new ArrayList<>(); |
| | | } |
| | | return coursePackageTypeService.list(new QueryWrapper<TCoursePackageType>().in("id",ids)); |
| | | } |
| | | /** |
| | | * 新增课包类型 |
| | | */ |