| | |
| | | if(appUser.getStatus()!=1){ |
| | | throw new ServiceException("账号被冻结,请联系管理员"); |
| | | } |
| | | appUser.setPhone(appletUserDecodeData.getPhoneNumber()); |
| | | appUser.setAvatar(StringUtils.hasLength(appUser.getAvatar())?appUser.getAvatar():""); |
| | | appUser.setName(StringUtils.hasLength(appUser.getName())?appUser.getName(): RptUtils.around(appletUserDecodeData.getPhoneNumber(),3,4)); |
| | | this.updateById(appUser); |
| | | } |
| | | return appUser; |
| | | } |
| | |
| | | <if test="query.userId != null"> |
| | | and tcr.userId = #{query.userId} |
| | | </if> |
| | | and tcr.status=1 |
| | | AND tcr.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tcr.status ASC,tcr.createTime DESC |
| | | ORDER BY tcr.createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | PageInfo<TLineUp> res = lineUpService.pageList(query); |
| | | return ApiResult.success(res); |
| | | } |
| | | @ApiOperation(value = "查询当前排队人数",tags = "排号a管理") |
| | | @ApiOperation(value = "查询当前排队人数",tags = "排号管理") |
| | | @GetMapping(value = "/getCount") |
| | | public ApiResult getCount(@RequestParam Integer storeId) { |
| | | if (storeId!=null){ |
| | | return ApiResult.success(lineUpService.lambdaQuery().eq(TLineUp::getStoreId,storeId).eq(TLineUp::getStatus,1).list().size()); |
| | | }else{ |
| | | return ApiResult.success(lineUpService.lambdaQuery().eq(TLineUp::getStatus,1).list().size()); |
| | | } |
| | | } |
| | | @ApiOperation(value = "取消排队",tags = "排号管理") |
| | | @GetMapping(value = "/cancel") |
| | |
| | | dto.setPhone(byId.getPhone()); |
| | | } |
| | | orderService.save(dto); |
| | | |
| | | List<TOptometryDetail> optometryDetails = dto.getOptometryDetails(); |
| | | if (!CollectionUtils.isEmpty(optometryDetails)){ |
| | | for (TOptometryDetail optometryDetail : optometryDetails) { |