| | |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @TableField("content") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("是否可提现(0=否,1=是)") |
| | | |
| | | private Integer withdraw; |
| | | |
| | | @ApiModelProperty("最低提现金额") |
| | | @TableField("withdrawalMinAmount") |
| | | private BigDecimal withdrawalMinAmount; |
| | | } |
| | |
| | | public class UserCancellationLogController { |
| | | @Resource |
| | | private UserCancellationLogService cancellationLogService; |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "注销记录列表", tags = {"后台"}) |
| | | public R<IPage<UserCancellationLog>> page(@RequestBody UserCancelQuery agentQuery) { |
| | | |
| | | return R.ok(cancellationLogService.pageList(agentQuery)); |
| | | } |
| | | |
| | |
| | | package com.ruoyi.account.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | private String userPhone; |
| | | @ApiModelProperty("类型:1充值2提现3红包4分佣5商城购物") |
| | | private Integer changeType; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDate localDate1; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDate localDate2; |
| | | private Integer pageNum; |
| | | private Integer pageSize; |
| | |
| | | package com.ruoyi.account.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | @Data |
| | | public class UserCancelQuery { |
| | | @ApiModelProperty("用户名称") |
| | | private String name; |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("电话") |
| | | private String phone; |
| | | private String userPhone; |
| | | |
| | | private Integer vipId; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate localDate1; |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate localDate2; |
| | | private Integer pageNum; |
| | | private Integer pageSize; |
| | |
| | | package com.ruoyi.account.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | @ApiModelProperty(value = "变更类型 0降级1升级") |
| | | @TableField("change_type") |
| | | private Integer changeType; |
| | | |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime localDate1; |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime localDate2; |
| | | private Integer pageNum; |
| | | private Integer pageSize; |
| | |
| | | from t_user_click_log t1 |
| | | left join t_app_user t2 on t1.app_user_id = t2.id |
| | | <where> |
| | | <if test="agentQuery.phone != null and agentQuery.phone != ''"> |
| | | and t2.phone like concat('%',#{agentQuery.phone},'%') |
| | | <if test="agentQuery.userPhone != null and agentQuery.userPhone != ''"> |
| | | and t2.phone like concat('%',#{agentQuery.userPhone},'%') |
| | | </if> |
| | | <if test="agentQuery.name != null and agentQuery.name != ''"> |
| | | and t2.name like concat('%',#{agentQuery.name},'%') |
| | | <if test="agentQuery.userName != null and agentQuery.userName != ''"> |
| | | and t2.name like concat('%',#{agentQuery.userName},'%') |
| | | </if> |
| | | <if test="agentQuery.vipId != null"> |
| | | and t1.vip_id = #{agentQuery.vipId} |
| | |
| | | |
| | | |
| | | |
| | | public static String sign(JSONObject body) throws Exception{ |
| | | public static String sign(JSONObject body) { |
| | | Set<Map.Entry<String, Object>> entries = body.entrySet(); |
| | | List<Map.Entry<String, Object>> infoIds = new ArrayList<Map.Entry<String, Object>>(entries); |
| | | // 对所有传入参数按照字段名的 ASCII 码从小到大排序(字典序) |
| | | Collections.sort(infoIds, new Comparator<Map.Entry<String, Object>>() { |
| | | public int compare(Map.Entry<String, Object> o1, Map.Entry<String, Object> o2) { |
| | | return (o1.getKey()).toString().compareTo(o2.getKey()); |
| | | return (o1.getKey()).compareTo(o2.getKey()); |
| | | } |
| | | }); |
| | | // 构造签名键值对的格式 |
| | |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | com.ruoyi.order.util.payment.wechat.TransferUtil.accountBalanceQuery(); |
| | | } |
| | | } |
| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.other.api.domain.BaseSetting; |
| | | import com.ruoyi.other.api.domain.VipSetting; |
| | | import com.ruoyi.other.service.BaseSettingService; |
| | | import com.ruoyi.other.service.VipSettingService; |
| | | import com.ruoyi.other.vo.RefundPassSettingVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Resource |
| | | private BaseSettingService baseSettingService; |
| | | |
| | | @Resource |
| | | private VipSettingService vipSettingService; |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | |
| | | @Resource |
| | | private AppUserClient appUserClient; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiOperation(value = "获取基础配置", tags = {"管理后台-基础配置"}) |
| | | public R<BaseSetting> getBaseSetting(@RequestParam("id") Integer id){ |
| | | BaseSetting baseSetting = baseSettingService.getById(id); |
| | | Long userid = tokenService.getLoginUserApplet().getUserid(); |
| | | AppUser appUser = appUserClient.getAppUserById(userid); |
| | | VipSetting vipSetting = vipSettingService.getById(appUser.getVipId()); |
| | | baseSetting.setWithdraw(vipSetting.getVipWithdrawalRole()); |
| | | baseSetting.setWithdrawalMinAmount(vipSetting.getVipWithdrawalMinAmount()); |
| | | return R.ok(baseSetting); |
| | | } |
| | | |
| | |
| | | */ |
| | | @GetMapping("/selectPhoneByShopId") |
| | | @ApiOperation(value = "查询指定门店手机号", tags = {"小程序-首页-门店详情"}) |
| | | public R<List<Phone>> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | return R.ok(phoneService.list(new LambdaQueryWrapper<Phone>() |
| | | public R<Phone> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | Phone list = phoneService.getOne(new LambdaQueryWrapper<Phone>() |
| | | .eq(Phone::getType, PhoneType.SHOP.getCode()) |
| | | .eq(Phone::getShopId, shopId))); |
| | | .eq(Phone::getShopId, shopId)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | |
| | | public R<List<RechargeSet>> list() { |
| | | return R.ok(rechargeSetService.list()); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/set") |
| | | @ApiOperation(value = "充值设置", tags = {"后台"}) |
| | | public R<List<RechargeSet>> detail(@RequestBody RechargeDto rechargeDto) { |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.core.web.page.TableDataInfo; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | |
| | | |
| | | @GetMapping("/shop/list") |
| | | @ApiOperation(value = "预约列表", tags = {"门店-预约列表"}) |
| | | public TableDataInfo<TechnicianSubscribeVO> shoplist(@ApiParam(value = "状态") Integer status, |
| | | @ApiParam("电话")String phone, |
| | | @ApiParam("姓名")String name, |
| | | @ApiParam("服务方式:1=上门服务,2=到店服务")Integer serviceMode |
| | | ) { |
| | | public R<PageInfo<TechnicianSubscribeVO>> shoplist(@ApiParam(value = "状态") Integer status, |
| | | @ApiParam("电话")String phone, |
| | | @ApiParam("姓名")String name, |
| | | @ApiParam("服务方式:1=上门服务,2=到店服务")Integer serviceMode, Integer pageCurr, Integer pageSize) { |
| | | Integer objectId = tokenService.getLoginUser().getSysUser().getObjectId(); |
| | | startPage(); |
| | | List<TechnicianSubscribeVO> list = technicianSubscribeService |
| | | .getTechnicianSubscribeByUserAndShop1(Long.valueOf(objectId),status,phone,name,serviceMode); |
| | | return getDataTable(list); |
| | | PageInfo<TechnicianSubscribeVO> pageInfo = technicianSubscribeService.getTechnicianSubscribeByUserAndShop1(Long.valueOf(objectId), status, phone, name, serviceMode, pageCurr, pageSize); |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "预约列表", notes = "预约列表", tags = {"小程序-个人中心-门店管理-预约列表"}) |
| | | public TableDataInfo<TechnicianSubscribeVO> list(@ApiParam(value = "状态") Integer status, |
| | | @ApiParam(value = "门店id") @RequestParam Long shopId) { |
| | | startPage(); |
| | | List<TechnicianSubscribeVO> list = technicianSubscribeService |
| | | .getTechnicianSubscribeByUserAndShop(shopId,status); |
| | | return getDataTable(list); |
| | | public R<PageInfo<TechnicianSubscribeVO>> list(@ApiParam(value = "状态") Integer status, |
| | | @ApiParam(value = "门店id") @RequestParam Long shopId, Integer current, Integer size) { |
| | | PageInfo<TechnicianSubscribeVO> pageInfo = technicianSubscribeService.getTechnicianSubscribeByUserAndShop(shopId, status, current, size); |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.other.api.domain.TechnicianSubscribe; |
| | | import com.ruoyi.other.vo.TechnicianSubscribeVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop( |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop(PageInfo<TechnicianSubscribeVO> pageInfo, |
| | | @Param("shopId") Long shopId, |
| | | @Param("status") Integer status); |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1( |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1(PageInfo<TechnicianSubscribeVO> pageInfo, |
| | | @Param("shopId") Long shopId, |
| | | @Param("status") Integer status,@Param("phone")String phone, |
| | | @Param("name")String name, |
| | | @Param("serviceMode")Integer serviceMode); |
| | | @Param("status") Integer status, @Param("phone")String phone, |
| | | @Param("name")String name, |
| | | @Param("serviceMode")Integer serviceMode); |
| | | IPage<TechnicianSubscribeVO> getTechnicianSubscribeByUser(@Param("page") Page<TechnicianSubscribe> page, @Param("userId") Long userId, |
| | | @Param("status") Integer status); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.other.api.domain.TechnicianSubscribe; |
| | | import com.ruoyi.other.vo.TechnicianSubscribeVO; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | /** |
| | | * 查询用于指定门店的相关预约记录 |
| | | */ |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop(Long shopId, Integer status); |
| | | List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1(Long shopId, Integer status ,String phone, |
| | | String name, |
| | | Integer serviceMode); |
| | | PageInfo<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop(Long shopId, Integer status, Integer pageCurr, Integer pageSize); |
| | | PageInfo<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1(Long shopId, Integer status , String phone, |
| | | String name, |
| | | Integer serviceMode, Integer pageCurr, Integer pageSize); |
| | | |
| | | IPage<TechnicianSubscribeVO> getTechnicianSubscribeByUser(Page<TechnicianSubscribe> page, Long userId, Integer status); |
| | | |
| | |
| | | if(goods.getAppointStore() == 1){ |
| | | List<Integer> shopIdList = goodsShopMapper.selectList(new LambdaQueryWrapper<GoodsShop>() |
| | | .eq(GoodsShop::getGoodsId, goodsId)).stream().map(GoodsShop::getShopId).collect(Collectors.toList()); |
| | | shops = shopMapper.selectObjs(new LambdaQueryWrapper<Shop>() |
| | | .select(Shop::getName) |
| | | .in(shopIdList.size() > 0, Shop::getId, shopIdList)); |
| | | shops = shopMapper.selectList(new LambdaQueryWrapper<Shop>() |
| | | .in(shopIdList.size() > 0, Shop::getId, shopIdList).eq(Shop::getDelFlag, 0)); |
| | | }else{ |
| | | shops = shopMapper.selectList(new LambdaUpdateWrapper<Shop>().eq(Shop::getDelFlag, 0)); |
| | | } |
| | |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.order.feignClient.RemoteOrderGoodsClient; |
| | | import com.ruoyi.other.api.domain.TechnicianSubscribe; |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop(Long shopId, Integer status) { |
| | | List<TechnicianSubscribeVO> list = technicianSubscribeMapper.getTechnicianSubscribeByUserAndShop(shopId, status); |
| | | public PageInfo<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop(Long shopId, Integer status, Integer pageCurr, Integer pageSize) { |
| | | PageInfo<TechnicianSubscribeVO> pageInfo = new PageInfo(pageCurr, pageSize); |
| | | List<TechnicianSubscribeVO> list = technicianSubscribeMapper.getTechnicianSubscribeByUserAndShop(pageInfo, shopId, status); |
| | | for (TechnicianSubscribeVO technicianSubscribeVO : list) { |
| | | Long id = technicianSubscribeVO.getId(); |
| | | TechnicianSubscribe technicianSubscribe = this.getById(id); |
| | |
| | | technicianSubscribeVO.setUserName(appUser.getName()); |
| | | technicianSubscribeVO.setPhone(appUser.getPhone()); |
| | | } |
| | | return list; |
| | | return pageInfo.setRecords(list); |
| | | } |
| | | @Override |
| | | public List<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1(Long shopId, Integer status ,String phone, |
| | | String name, |
| | | Integer serviceMode) { |
| | | return technicianSubscribeMapper.getTechnicianSubscribeByUserAndShop1(shopId,status,phone,name,serviceMode); |
| | | public PageInfo<TechnicianSubscribeVO> getTechnicianSubscribeByUserAndShop1(Long shopId, Integer status , String phone, |
| | | String name, |
| | | Integer serviceMode, Integer pageCurr, Integer pageSize) { |
| | | PageInfo<TechnicianSubscribeVO> pageInfo = new PageInfo(pageCurr, pageSize); |
| | | List<TechnicianSubscribeVO> technicianSubscribeByUserAndShop1 = technicianSubscribeMapper.getTechnicianSubscribeByUserAndShop1(pageInfo, shopId, status, phone, name, serviceMode); |
| | | return pageInfo.setRecords(technicianSubscribeByUserAndShop1); |
| | | } |
| | | @Override |
| | | public IPage<TechnicianSubscribeVO> getTechnicianSubscribeByUser(Page<TechnicianSubscribe> page, Long userId, Integer status) { |