| | |
| | | if (check) { |
| | | one.setPaymentStatus(2); |
| | | orderService.updateById(one); |
| | | if (one.getGoodType()==1){ |
| | | try { |
| | | TCourse byId = courseService.getById(one.getGoodId()); |
| | | byId.setBuyNum(byId.getBuyNum()+1); |
| | | courseService.updateById(byId); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | } |
| | | return R.ok(); |
| | | }else { |
| | | return R.fail("请支付"); |
| | |
| | | one.setPayTime(LocalDateTime.now()); |
| | | |
| | | one.setPaymentType(1); |
| | | orderService.updateById(one); |
| | | if (one.getGoodType()==1){ |
| | | try { |
| | | TCourse byId = courseService.getById(one.getGoodId()); |
| | | byId.setBuyNum(byId.getBuyNum()+1); |
| | | courseService.updateById(byId); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | orderService.updateById(one); |
| | | if (one.getGoodType()==1){ |
| | | try { |
| | | TCourse byId = courseService.getById(one.getGoodId()); |
| | | byId.setBuyNum(byId.getBuyNum()+1); |
| | | courseService.updateById(byId); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | return R.ok(null,"SUCCESS"); |
| | | } |
| | |
| | | tUserChangeDetail.setTitleName(byId2.getTitileName()); |
| | | TTitleMajor byId3 = majorService.getById(tUserChangeDetail.getMajorId()); |
| | | tUserChangeDetail.setMajorName(byId3.getMajorName()); |
| | | TLevel byId4 = levelService.getById(tUserChangeDetail.getLevelId()); |
| | | tUserChangeDetail.setLevelName(byId4.getName()); |
| | | } |
| | | tUserChange.setUserChangeDetails(list1); |
| | | } |
| | |
| | | import oshi.driver.mac.net.NetStat; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | Long payCount = courseCount -courseFreeCount; |
| | | Long recordsCount = generatedRecordsService.lambdaQuery().count(); |
| | | Long infoCount = informationService.lambdaQuery().count(); |
| | | Long infoFreeCount = informationService.lambdaQuery().count(); |
| | | Long infoFreeCount = informationService.lambdaQuery().eq(TInformation::getInformationPrice,new BigDecimal(0)).count(); |
| | | Long infoPayCount = infoCount-infoFreeCount; |
| | | ManageCountDto manageCountDto = new ManageCountDto(); |
| | | manageCountDto.setUserCount(userCount); |
| | |
| | | manageCountDto.setRecordsCount(recordsCount); |
| | | manageCountDto.setInfoFreeCount(infoFreeCount); |
| | | manageCountDto.setInfoPayCount(infoPayCount); |
| | | manageCountDto.setInfoCount(infoCount); |
| | | return R.ok(manageCountDto); |
| | | } |
| | | |
| | |
| | | import com.ruoyi.system.service.TInfoConfigService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | @ApiOperation(value = "修改",tags = "后台-系统设置-关于我们,其他设置") |
| | | |
| | | @PostMapping("/updateInfoConfig") |
| | | public R<Boolean> updateInfoConfig(TInfoConfig tInfoConfig){ |
| | | public R<Boolean> updateInfoConfig(@RequestBody TInfoConfig tInfoConfig){ |
| | | return R.ok(tInfoConfigService.updateById(tInfoConfig)); |
| | | } |
| | | |
| | |
| | | @Resource |
| | | private TTitleMajorService majorService; |
| | | @Resource |
| | | private TLevelService levelService; |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private TOrderService orderService; |
| | |
| | | record.setRegionName(byId.getProvinceName()+"-"+byId.getName()); |
| | | TTechnicalTitle byId1 = tTechnicalTitleService.getById(record.getTechnicalId()); |
| | | TTitleMajor byId2 = majorService.getById(record.getMajorId()); |
| | | record.setTechnicalName(byId1.getTitileName()+"-"+byId2.getMajorName()); |
| | | record.setTechnicalName(byId1.getTitileName()+"-"+byId2.getMajorName()+"-"+record.getLevel()); |
| | | if (cacheSet!=null){ |
| | | if (cacheSet.contains(record.getId())){ |
| | | record.setIsCollect(1); |
| | |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | if (failMsg.size()==0){ |
| | | tTitleMajorService.saveBatch(tTechnicalTitles); |
| | | }else { |
| | | return R.fail(failMsg); |
| | | return R.fail(failMsg.stream().collect(Collectors.joining(","))); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | |
| | | package com.ruoyi.system.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | private Long createBy; |
| | | |
| | | @TableField("create_time") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | | @TableField("price") |
| | | private BigDecimal price; |
| | | @TableField("name") |
| | | private String name="工作生成总结"; |
| | | private String name="工作总结生成"; |
| | | |
| | | @TableLogic |
| | | @TableField("is_delete") |
| | | private Integer isDelete; |
| | | @TableLogic |
| | | @TableField("is_delete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | @ApiModelProperty(value = "用户头像") |
| | |
| | | package com.ruoyi.system.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | private Long createBy; |
| | | |
| | | @TableField("create_time") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableLogic |
| | |
| | | package com.ruoyi.system.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | private Long createBy; |
| | | |
| | | @TableField("create_time") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableLogic |
| | |
| | | |
| | | @TableField(exist = false) |
| | | private String majorName; |
| | | @TableField(exist = false) |
| | | private String levelName; |
| | | |
| | | |
| | | |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @Override |
| | | public List<AllertTitleDto> allert(List<String> cityCode) { |
| | | List<AllertTitleDto> allert = this.baseMapper.allert(cityCode); |
| | | List<AllertTitleDto> allert = new ArrayList<>(); |
| | | for (String s : cityCode) { |
| | | List<AllertTitleDto> allert1 = this.baseMapper.allert(Collections.singletonList(s)); |
| | | allert.addAll(allert1); |
| | | } |
| | | for (AllertTitleDto allertTitleDto : allert) { |
| | | List<TTitleMajor> tTitleMajors = titleMajorMapper.selectList(Wrappers.lambdaQuery(TTitleMajor.class) |
| | | .eq(TTitleMajor::getTechnicalId, allertTitleDto.getId())); |
| | |
| | | AND ta.phone LIKE concat('%',#{generatedQuery.userPhone},'%') |
| | | </if> |
| | | <if test="generatedQuery.createTime1 != null"> |
| | | AND tg.create_time >= #{generatedQuery.createTime1} |
| | | AND tg.create_time >= CONCAT(#{generatedQuery.createTime1},' 00:00:00') |
| | | </if> |
| | | <if test="generatedQuery.createTime2 != null"> |
| | | AND tg.create_time <= #{generatedQuery.createTime2} |
| | | AND tg.create_time <= CONCAT(#{generatedQuery.createTime2},' 23:59:59') |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | WHERE 1=1 and tt.is_delete = 0 |
| | | <if test="cityCode != null and cityCode.size() > 0"> |
| | | <foreach collection="cityCode" item="id" separator=","> |
| | | and FIND_IN_SET(#{id}, tt.region_ids) |
| | | or FIND_IN_SET(#{id}, tt.region_ids) |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | |
| | | select sum(payment_amount),count(1) |
| | | from t_order |
| | | <where> |
| | | is_delete = 0 |
| | | <if test="dayType == 1"> |
| | | and DATE(create_time ) = CURDATE() |
| | | </if> |
| | |
| | | t1.*, |
| | | t2.NAME AS name, |
| | | t2.phone AS phone, |
| | | t2.avatar AS avatar, |
| | | CONCAT( t2.NAME, ' ', t2.phone ) AS user_search, |
| | | COALESCE ( t_course.course_name, t_information.information_name,t_generated_records.recordsName ) AS good_name, |
| | | COALESCE ( t_course.course_cover, t_information.information_cover ) AS cover, |