| | |
| | | package com.dsh.guns.modular.system.controller.system; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.course.dto.*; |
| | | import com.dsh.course.entity.EvaluateStudent; |
| | |
| | | import com.dsh.course.feignClient.competition.CompetitionClient; |
| | | import com.dsh.course.feignClient.competition.model.ListQuery; |
| | | import com.dsh.course.feignClient.course.CoursePackageClient; |
| | | import com.dsh.course.feignClient.course.CoursePackagePaymentClient; |
| | | import com.dsh.course.feignClient.course.CourseStuddentClient; |
| | | import com.dsh.course.feignClient.course.model.TCoursePackage; |
| | | import com.dsh.course.feignClient.course.model.TCoursePackagePayment; |
| | |
| | | import com.dsh.guns.core.base.controller.BaseController; |
| | | import com.dsh.guns.modular.system.model.*; |
| | | import com.dsh.guns.modular.system.model.dto.*; |
| | | import com.dsh.guns.modular.system.service.EvaluateStudentService; |
| | | import com.dsh.guns.modular.system.service.ISiteBookingService; |
| | | import com.dsh.guns.modular.system.service.IStoreService; |
| | | import com.dsh.guns.modular.system.service.ITStudentService; |
| | | import com.dsh.guns.modular.system.service.*; |
| | | import com.dsh.guns.modular.system.util.BigDecimalToChineseAmountUtil; |
| | | import com.dsh.guns.modular.system.util.ResultUtil; |
| | | import io.swagger.models.auth.In; |
| | |
| | | private IStoreService storeService; |
| | | @Autowired |
| | | private CompetitionClient competitionClient; |
| | | @Autowired |
| | | private ICityService cityService; |
| | | @Autowired |
| | | private CoursePackagePaymentClient coursePackagePaymentClient; |
| | | |
| | | @RequestMapping("download") |
| | | public void down(HttpServletRequest request, HttpServletResponse response) throws IOException { |
| | |
| | | public String index(Model model) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | model.addAttribute("objectType",objectType); |
| | | List<TCity> list = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "tStudent.html"; |
| | | } |
| | | |
| | |
| | | System.out.println("======>t"+tStudentId); |
| | | //查询学员信息 |
| | | TStudentDto tStudentDto = itStudentService.listOne(tStudentId); |
| | | // 查询该学员第一次购买课包的时间 |
| | | String time = coursePackagePaymentClient.getTime(tStudentId); |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
| | | try { |
| | | if (time!=null){ |
| | | Date parse = format.parse(time); |
| | | tStudentDto.setTime(parse); |
| | | } |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | |
| | | model.addAttribute("item", tStudentDto); |
| | | if (tStudentDto.getLateralSurface()!=null) { |
| | | String[] pics = tStudentDto.getLateralSurface().split(";"); |
| | |
| | | |
| | | @RequestMapping("/updatecom") |
| | | @ResponseBody |
| | | public ResultUtil updatecom(Integer id,String content,String images) { |
| | | public ResultUtil updatecom(@RequestBody StudentPingYuDTO dto) { |
| | | |
| | | EvaluateStudent evaluateStudent = new EvaluateStudent(); |
| | | evaluateStudent.setId(id); |
| | | evaluateStudent.setContent(content); |
| | | evaluateStudent.setImgs(images); |
| | | evaluateStudent.setId(dto.getId()); |
| | | evaluateStudent.setContent(dto.getContent()); |
| | | evaluateStudent.setImgs(dto.getImages()); |
| | | appUserClient.save(evaluateStudent); |
| | | |
| | | // evaluateStudentService.updateById(evaluateStudent); |