| | |
| | | import com.xinquan.common.core.utils.page.BeanUtils; |
| | | import com.xinquan.common.core.utils.page.PageDTO; |
| | | import com.xinquan.common.core.web.domain.BaseModel; |
| | | import com.xinquan.common.log.annotation.Log; |
| | | import com.xinquan.common.log.enums.BusinessType; |
| | | import com.xinquan.common.redis.service.RedisService; |
| | | import com.xinquan.common.security.utils.SecurityUtils; |
| | | import com.xinquan.course.api.domain.Course; |
| | |
| | | |
| | | @GetMapping("/updatePassword") |
| | | @ApiOperation(value = "管理后台-修改密码", tags = "管理后台-修改密码") |
| | | @Log(title = "【修改密码】修改密码", businessType = BusinessType.UPDATE) |
| | | |
| | | public R updatePassword(String userName,String password) { |
| | | SysUser one = sysUserService.lambdaQuery() |
| | | .eq(SysUser::getUserType, "00") |
| | |
| | | Map<String, Object> x = new HashMap<>(); |
| | | Map<String, Object> x1 = new HashMap<>(); |
| | | Map<String, Object> x2 = new HashMap<>(); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd"); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("d"); |
| | | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | switch (homeDto.getTimeType()){ |
| | |
| | | List<LocalDate> localDates = new ArrayList<>(); |
| | | while (!startLocalDate.isAfter(endLocalDate)) { |
| | | // 将startLocalDate转化为格式为yyyy-MM-dd格式字符串 |
| | | String format1 = startLocalDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); |
| | | String format1 = startLocalDate.format(DateTimeFormatter.ofPattern("d")); |
| | | x.put(format1,0); |
| | | x1.put(format1,0); |
| | | x2.put(format1,0); |
| | |
| | | |
| | | break; |
| | | } |
| | | if (StringUtils.hasLength(homeDto.getTime())&&(!homeDto.getTime().equals("1"))){ |
| | | List<LocalDate> localDates = generateDateList(homeDto.getTime()); |
| | | for (LocalDate localDate : localDates) { |
| | | x.put(localDate+"",0); |
| | | x1.put(localDate+"",0); |
| | | x2.put(localDate+"",0); |
| | | } |
| | | |
| | | } |
| | | // if (StringUtils.hasLength(homeDto.getTime())&&(!homeDto.getTime().equals("1"))){ |
| | | // List<LocalDate> localDates = generateDateList(homeDto.getTime()); |
| | | // for (LocalDate localDate : localDates) { |
| | | // x.put(localDate+"",0); |
| | | // x1.put(localDate+"",0); |
| | | // x2.put(localDate+"",0); |
| | | // } |
| | | // |
| | | // } |
| | | for (Order order : data6) { |
| | | int value = order.getCreateTime().getMonth().getValue(); |
| | | int value1 = order.getCreateTime().getDayOfMonth(); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "ids", name = "ids", required = true, dataType = "String"), |
| | | }) |
| | | @Log(title = "【banner】批量删除banner", businessType = BusinessType.DELETE) |
| | | |
| | | public R deleteBatch( |
| | | @RequestParam(value = "ids") String ids) |
| | | { |
| | |
| | | } |
| | | @PostMapping("/addBanner") |
| | | @ApiOperation(value = "添加banner",tags = "管理后台banner") |
| | | @Log(title = "【banner】添加", businessType = BusinessType.INSERT) |
| | | |
| | | public R addBanner(@RequestBody Banner banner) |
| | | { |
| | |
| | | } |
| | | @PostMapping("/updateBanner") |
| | | @ApiOperation(value = "修改banner",tags = "管理后台banner") |
| | | @Log(title = "【banner】修改", businessType = BusinessType.UPDATE) |
| | | |
| | | public R updateBanner(@RequestBody Banner banner) |
| | | { |