| | |
| | | package com.dsh.guns.modular.system.controller.system; |
| | | |
| | | import com.alibaba.nacos.common.utils.Md5Utils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.course.dto.JsDto; |
| | | import com.dsh.course.dto.StudentQeryDto; |
| | | import com.dsh.course.entity.SiteLock; |
| | | import com.dsh.course.feignClient.account.AppUserClient; |
| | | import com.dsh.course.feignClient.account.CityManagerClient; |
| | | import com.dsh.course.feignClient.account.CoachClient; |
| | |
| | | import com.dsh.guns.modular.system.model.dto.*; |
| | | import com.dsh.guns.modular.system.service.*; |
| | | import com.dsh.guns.modular.system.util.*; |
| | | import com.dsh.course.entity.SiteLock; |
| | | import com.google.gson.Gson; |
| | | import com.google.zxing.BarcodeFormat; |
| | | import com.google.zxing.EncodeHintType; |
| | | import com.google.zxing.WriterException; |
| | | import com.google.zxing.client.j2se.MatrixToImageWriter; |
| | | import com.google.zxing.common.BitMatrix; |
| | | import com.google.zxing.qrcode.QRCodeWriter; |
| | | import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; |
| | | import org.apache.commons.fileupload.FileItem; |
| | | import org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream; |
| | | import org.json.JSONArray; |
| | | import org.json.JSONObject; |
| | |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.commons.CommonsMultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.imageio.ImageIO; |
| | | |
| | | import java.awt.image.BufferedImage; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | | |
| | | import java.nio.file.FileSystems; |
| | | import java.nio.file.Path; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/yunying") |
| | | @ResponseBody |
| | | public ResultUtil getUserSlect() { |
| | | |
| | | |
| | | |
| | | List<SelectDto> selectDtos = storeService.getSelect(); |
| | |
| | | game.setId(id); |
| | | |
| | | |
| | | |
| | | if (!operationId.equals("平台")){ |
| | | game.setOperationId(Integer.valueOf(operationId));} |
| | | else { |
| | | game.setOperationId(Integer.valueOf(operationId)); |
| | | } else { |
| | | game.setOperationId(0); |
| | | } |
| | | System.out.println("============"+game); |
| | |
| | | |
| | | //玩湃熊之力-速度 |
| | | TGameConfig gameConfigsudu = new TGameConfig(); |
| | | gameConfigsudu.setGameId(suduId);gameConfigsudu.setId(sdId); |
| | | gameConfigsudu.setGameId(suduId); |
| | | gameConfigsudu.setId(sdId); |
| | | gameConfigsudu.setCash(suduCash); |
| | | gameConfigsudu.setImg(suduImage); |
| | | gameConfigsudu.setName(sudu); |
| | |
| | | gameConfigList.add(gameConfigsq); |
| | | |
| | | |
| | | |
| | | //涨姿势 |
| | | TGameConfig gameConfigzs = new TGameConfig(); |
| | | gameConfigzs.setGameId(zsId); |
| | |
| | | |
| | | //涨姿势2 |
| | | TGameConfig gameConfigzs2 = new TGameConfig(); |
| | | gameConfigzs2.setGameId(zs2Id);gameConfigzs2.setId(zs2IId); |
| | | gameConfigzs2.setGameId(zs2Id); |
| | | gameConfigzs2.setId(zs2IId); |
| | | gameConfigzs2.setCash(zs2Cash); |
| | | gameConfigzs2.setImg(zs2Image); |
| | | gameConfigzs2.setName(zs2); |
| | |
| | | // String s2 = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addDevice", map2); |
| | | |
| | | |
| | | |
| | | ballClient.saveConfig( gameConfigList); |
| | | return null; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | model.addAttribute("is","${is}"); |
| | | |
| | | |
| | | |
| | | return PREFIX+"ball_pre_add.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private TGameConfigService gameConfigService; |
| | | |
| | | @RequestMapping("/pre_edit/{id}") |
| | | public String pre_edit(@PathVariable("id") Integer id,Model model) { |
| | | Game game = ballClient.queryGame(id); |
| | |
| | | SiteBooking book = iSiteBookingService.getById(id); |
| | | model.addAttribute("item", book); |
| | | if (book.getMoney()!=null){ |
| | | model.addAttribute("money",book.getMoney().split(","));} |
| | | model.addAttribute("money", book.getMoney().split(",")); |
| | | } |
| | | String[] split1 = book.getTimes().split(";"); |
| | | model.addAttribute("date",split1[0].substring(0,10)); |
| | | |
| | |
| | | System.out.println("======timeRanges========"+timeRanges); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private IUserService userService; |
| | | |
| | |
| | | SiteBooking book = iSiteBookingService.getById(id); |
| | | model.addAttribute("item", book); |
| | | if (book.getMoney()!=null){ |
| | | model.addAttribute("money",book.getMoney().split(","));} |
| | | model.addAttribute("money", book.getMoney().split(",")); |
| | | } |
| | | String[] split1 = book.getTimes().split(";"); |
| | | model.addAttribute("date",split1[0].substring(0,10)); |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | timeRanges.add(orderDto); |
| | | currentTime = nextTime; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("/paike") |
| | | public String paike(Model model) { |
| | | |
| | | return PREFIX+"paike.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @RequestMapping("/getStudentTotal") |
| | |
| | | List<Map<String, Object>> pays = coursePackageClient.getStudentTotal(studentQeryDto); |
| | | return pays; |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("/bypac") |
| | |
| | | |
| | | return PREFIX+"jieshao.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Resource |
| | | private SiteClient siteClient; |
| | | |
| | | |
| | | |
| | | @Autowired |
| | |
| | | Date isPass = format.parse(etime); |
| | | |
| | | |
| | | |
| | | orderDto.setState(1); |
| | | // 查出lock |
| | | List<SiteLock> list = siteLockService.list(new LambdaQueryWrapper<SiteLock>().eq(SiteLock::getSiteId, id)); |
| | |
| | | System.out.println("-------------" + timeRanges); |
| | | |
| | | return timeRanges; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | model.addAttribute("objectType",objectType); |
| | | return PREFIX+"yuyue_add.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("/ordersave") |