| | |
| | | import com.dsh.guns.modular.system.service.ITSiteService; |
| | | import com.dsh.guns.modular.system.util.ResultUtil; |
| | | import io.swagger.models.auth.In; |
| | | import org.aspectj.weaver.ast.Var; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据门店获取课程 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/getCoursePackageByStoreId") |
| | | public List<TCoursePackageType> getCoursePackageByStoreId(Integer storeId){ |
| | | List<TCoursePackage> list = coursePackageClient.getCoursePackageByStoreId(storeId); |
| | | List<Integer> ids = new ArrayList<>(); |
| | | for (TCoursePackage tCoursePackage : list) { |
| | | ids.add(tCoursePackage.getCoursePackageTypeId()); |
| | | } |
| | | return coursePackageTypeClient.getByCourseIds(ids); |
| | | } |
| | | /** |
| | | * 根据课包类型获取课包 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/getCoursePackageByType") |
| | | public List<TCoursePackage> getCoursePackageByType(Integer storeId){ |
| | | return coursePackageClient.getCoursePackageByType(storeId); |
| | | } |
| | | /** |
| | | * 跳转到列表页 |
| | | * @param model |
| | |
| | | // JSONObject jsonObject = JSON.parseObject(jsonArray.getString(i)); |
| | | |
| | | String jsonString = jsonArray.getString(i); |
| | | String[] split = jsonString.split("-"); |
| | | String[] split = jsonString.split(" - "); |
| | | first.add(split[0]); |
| | | second.add(split[1]); |
| | | |