| | |
| | | ExchangeDetailsVo getIntegralExchangeDetails(@RequestBody Integer appUserId); |
| | | |
| | | @PostMapping("/base/pointMerchars/getSpecificsOfGoods") |
| | | public PointDetailsVo getSpecificsOfGoods(@RequestBody Long speMercharsId); |
| | | PointDetailsVo getSpecificsOfGoods(@RequestBody Long speMercharsId); |
| | | |
| | | @PostMapping("/base/pointMerchars/selectPointsMerchandiseById") |
| | | public PointsMerchandise selectPointsMerchandiseById(@RequestBody Integer speMercharsId); |
| | |
| | | AppUser appUser = appUserClient.queryAppUser(uid); |
| | | String[] split = paymentCompetitionVo.getIds().split(";"); |
| | | Competition competition = this.getById(paymentCompetitionVo.getId()); |
| | | if ((competition.getBaseNumber()+split.length)>competition.getApplicantsNumber()){ |
| | | return ResultUtil.error("报名人数超过最大限制"); |
| | | |
| | | } |
| | | BigDecimal money = null; |
| | | if(paymentCompetitionVo.getPayType() == 1 || paymentCompetitionVo.getPayType() == 2){ |
| | | money = new BigDecimal(competition.getCashPrice()).multiply(new BigDecimal(split.length)).setScale(2, RoundingMode.HALF_EVEN); |
| | |
| | | paymentCompetition.setPayOrderNo(""); |
| | | paymentCompetitionService.updateById(paymentCompetition); |
| | | |
| | | competition.setApplicantsNumber(competition.getApplicantsNumber() + 1); |
| | | competition.setBaseNumber(competition.getBaseNumber() + 1); |
| | | this.updateById(competition); |
| | | } |
| | | return ResultUtil.success(); |
| | |
| | | resp.setTotalCourseNums(tCoursePackagePayment.getTotalClassHours()); |
| | | resp.setResidueNums(tCoursePackagePayment.getLaveClassHours()); |
| | | resp.setDeductionNums(tCoursePackagePayment.getTotalClassHours()-tCoursePackagePayment.getLaveClassHours()); |
| | | if (tCoursePackage.getValidDays()!=null){ |
| | | String afterDayDate = DateUtil.getAfterDayDate2(tCoursePackage.getInsertTime(),tCoursePackage.getValidDays() + ""); |
| | | resp.setPeriodOfValidity(afterDayDate); |
| | | } |
| | | resps.add(resp); |
| | | } |
| | | } |
| | |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | }else if(useScope==1){ |
| | | Integer id = pointMercharsClient.add(pointsMerchandise); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | return new SuccessTip<>(); |
| | | |
| | |
| | | |
| | | import groovyjarjarpicocli.CommandLine; |
| | | import net.bytebuddy.asm.Advice; |
| | | import org.apache.http.HttpResponse; |
| | | import org.aspectj.weaver.ast.Var; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpRequest; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.resource.HttpResource; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.lang.reflect.Type; |
| | |
| | | model.addAttribute("objectId",objectId); |
| | | model.addAttribute("stores",stores); |
| | | return PREFIX + "tSite_add.html"; |
| | | |
| | | } |
| | | |
| | | // /** |
| | |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <script src="${ctxPath}/modular/system/tShop/tShop_info.js"></script> |
| | | <script src="${ctxPath}/js/vue/vue.js"></script> |
| | | <script src="${ctxPath}/js/elementui/index.js"></script> |
| | |
| | | <script src="${ctxPath}/js/vue/vue.js"></script> |
| | | <script src="${ctxPath}/js/elementui/index.js"></script> |
| | | <link rel="stylesheet" href="${ctxPath}/js/elementui/index.css"> |
| | | <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" rel="stylesheet" /> |
| | | <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script> |
| | | <link href="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" rel="stylesheet" /> |
| | | <script src="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script> |
| | | <script> |
| | | |
| | | |
| | | $(document).ready(function() { |
| | | $('#yys').select2({ |
| | | width: '300px', |
| | |
| | | */ |
| | | TCarInfoDlg.addSubmit = function() { |
| | | |
| | | const textarea = document.getElementById('introduce'); |
| | | const text = textarea.value; |
| | | |
| | | if (text.length > 1000) { |
| | | console.log('The text is longer than 1000 characters.'); |
| | | Feng.error("门店介绍要求小于1000字") |
| | | return |
| | | } else { |
| | | console.log('The text is not longer than 1000 characters.'); |
| | | } |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |
| | |
| | | */ |
| | | TCarInfoDlg.editSubmit = function() { |
| | | |
| | | const textarea = document.getElementById('introduce'); |
| | | const text = textarea.value; |
| | | |
| | | if (text.length > 1000) { |
| | | console.log('The text is longer than 1000 characters.'); |
| | | Feng.error("门店介绍要求小于1000字") |
| | | return |
| | | } else { |
| | | console.log('The text is not longer than 1000 characters.'); |
| | | } |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |
| | |
| | | public ResultUtil<List<BannerVo>> queryBannerList(Integer position){ |
| | | try { |
| | | List<Banner> list = bannerService.list(new QueryWrapper<Banner>().eq("position", position).eq("state", 1).orderByAsc("sort")); |
| | | |
| | | List<Banner> list2 = bannerService.list1(position); |
| | | |
| | | List<BannerVo> list1 = new ArrayList<>(); |
| | | for (Banner banner : list) { |
| | | for (Banner banner : list2) { |
| | | BannerVo bannerVo = new BannerVo(); |
| | | BeanUtils.copyProperties(banner, bannerVo); |
| | | list1.add(bannerVo); |
| | |
| | | List<Banner> listAll(@Param("query") AdvertisementQuery query); |
| | | |
| | | String getFirst(); |
| | | |
| | | List<Banner> list1(Integer position); |
| | | } |
| | |
| | | @ApiModelProperty("图片路径") |
| | | private String img; |
| | | @ApiModelProperty("跳转页面") |
| | | private String jumpPage; |
| | | private String page; |
| | | } |
| | |
| | | List<GetHistoryDto> gethistory(Integer studentId); |
| | | |
| | | String getFirst(); |
| | | |
| | | List<Banner> list1(Integer position); |
| | | } |
| | |
| | | return baseMapper.getFirst(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Banner> list1(Integer position) { |
| | | return this.bannerMapper.list1(position); |
| | | } |
| | | |
| | | @Autowired |
| | | private BannerMapper bannerMapper; |
| | | @Override |
| | |
| | | payMoney = new BigDecimal(site.getPlayPaiCoinOne()).multiply(new BigDecimal(split.length)).setScale(2, RoundingMode.HALF_EVEN).doubleValue(); |
| | | } |
| | | if(appUser.getPlayPaiCoins().compareTo(payMoney.intValue()) < 0){ |
| | | return ResultUtil.error("玩湃币不足"); |
| | | |
| | | return new ResultUtil(3,"玩湃币不足"); |
| | | } |
| | | }else{ |
| | | payMoney = new BigDecimal(site.getCashPrice()).multiply(new BigDecimal(split.length)).setScale(2, RoundingMode.HALF_EVEN).doubleValue(); |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 定义统一返回对象 |
| | | */ |
| | | @ApiModel(value = "统一返回结果集") |
| | | @Data |
| | | public class ResultUtil<T> { |
| | | |
| | | public static final Integer SUCCESS = 200; |
| | |
| | | return code; |
| | | } |
| | | |
| | | private ResultUtil(Integer code, String msg) { |
| | | public ResultUtil(Integer code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 运行异常 |
| | | * @return |
| | |
| | | from t_img_config |
| | | where position = 6 |
| | | </select> |
| | | <select id="list1" resultType="com.dsh.other.entity.Banner"> |
| | | select tb.id as id,tb.img as img, tt.name as page |
| | | from t_banner tb |
| | | left join t_turn tt on tb.jumpPage = tt.id |
| | | where tb.position = #{position} |
| | | |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |