Merge remote-tracking branch 'origin/2.0' into 2.0
| | |
| | | and userPopulation = #{query.userPopulation} |
| | | </if> |
| | | <if test="query.state != null"> |
| | | and `state` = #{query.state} |
| | | and `shelves` = #{query.state} |
| | | </if> |
| | | and `type` = 3 |
| | | order by sort desc |
| | |
| | | package com.dsh.guns.modular.system.controller.code; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.dsh.course.feignClient.account.AppUserClient; |
| | | import com.dsh.course.feignClient.account.VipPaymentClient; |
| | | import com.dsh.course.feignClient.account.model.QueryByNamePhone; |
| | |
| | | @Autowired |
| | | private CouponClient couponClient; |
| | | @Autowired |
| | | private IStoreService storeService; |
| | | private IRelationService relationService; |
| | | @Autowired |
| | | private AppUserClient appUserClient; |
| | | @Autowired |
| | |
| | | , Integer isRefund |
| | | , String time |
| | | ) { |
| | | // 判断当前是否有权限 |
| | | String roleid = UserExt.getUser().getRoleid(); |
| | | int count = relationService.count(new LambdaQueryWrapper<Relation>().eq(Relation::getRoleid, roleid).eq(Relation::getMenuid, 646)); |
| | | VipPaymentDto vipPaymentDto = new VipPaymentDto(); |
| | | if (StringUtils.hasLength(vipName)){ |
| | | List<Integer> vipIds = vipService.lambdaQuery().like(Vip::getVipName, vipName) |
| | |
| | | re.setAppUserName(appUser.getName()); |
| | | re.setAppUserPhone(appUser.getPhone()); |
| | | } |
| | | if (count>0){ |
| | | re.setMenuShow(1); |
| | | } |
| | | |
| | | } |
| | | |
| | | return res; |
| | | } |
| | | /** |
| | |
| | | @TableField("state") |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty(value = "菜单显示 1显示 2不显示") |
| | | private Integer menuShow=2; |
| | | |
| | | |
| | | } |
| | |
| | | <script> |
| | | </script> |
| | | <script type="application/javascript"> |
| | | var welfarePicture = new $WebUpload("welfarePicture"); |
| | | welfarePicture.setUploadBarId("progressBar"); |
| | | welfarePicture.init(); |
| | | </script> |
| | | @} |
| | |
| | | var carPhoto = new $WebUpload("img"); |
| | | carPhoto.setUploadBarId("progressBar"); |
| | | carPhoto.init(); |
| | | var carPhoto = new $WebUpload("welfarePicture"); |
| | | carPhoto.setUploadBarId("progressBar"); |
| | | carPhoto.init(); |
| | | var welfarePicture = new $WebUpload("welfarePicture"); |
| | | welfarePicture.setUploadBarId("progressBar"); |
| | | welfarePicture.init(); |
| | | var drivingLicensePhoto = new $WebUpload("drivingLicensePhoto"); |
| | | drivingLicensePhoto.setUploadBarId("progressBar"); |
| | | drivingLicensePhoto.init(); |
| | |
| | | return {0:"否",1:"是"}[data] |
| | | } |
| | | }, |
| | | {title: '权限展示', field: 'menuShow', visible: false, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {2:"否",1:"是"}[data] |
| | | } |
| | | }, |
| | | {title: '备注', field: 'remark', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '操作', field: 'remark', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (data,row) { |
| | | // row.redCode存储的设备二维码连接 |
| | | var temp = row.isRefund; |
| | | var menuShow = row.menuShow; |
| | | var id = row.id; |
| | | // 已退费不展示按钮 |
| | | if (temp==0){ |
| | | if (temp==0 && menuShow==1){ |
| | | var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" >'+'会员退费'+'</button>' |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>'] |
| | | return btn; |
| | | }else if (temp==0 && menuShow==2){ |
| | | return "-"; |
| | | }else{ |
| | | return '已退费'; |
| | | } |
| | |
| | | vo.setSort(homeModule.getSort()); |
| | | vo.setBackgroundImage(homeModule.getBackgroundImage()); |
| | | vo.setDisplayType(homeModule.getDisplayType()); |
| | | vo.setId(homeModule.getId()); |
| | | listVo.add(vo); |
| | | } |
| | | for (StoreConfig storeConfig : list) { |
| | |
| | | List<TicketVipResp> ticketVipRespList = new ArrayList<>(); |
| | | String couponJson = vip.getCouponJson(); |
| | | JSONArray couponJsonArray = JSONArray.parseArray(couponJson); |
| | | if(couponJsonArray==null){ |
| | | continue; |
| | | } |
| | | for (Object o : couponJsonArray) { |
| | | JSONObject couponJsonObject = (JSONObject) o; |
| | | // 优惠券id |