| | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.vo.AppUserCouponVo; |
| | | import com.ruoyi.system.api.factory.RemoteMemberFallbackFactory; |
| | |
| | | */ |
| | | @PostMapping("/member/updateMemberBinding") |
| | | public R updateMemberBinding(@RequestBody AppMemberBindingDto appMemberBindingDto); |
| | | |
| | | @PostMapping("/member/updateMemberGoodsType") |
| | | public R updateMemberGoodsType(@RequestBody AppMemberGoodsTypeDto appMemberGoodsTypeDto); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.api.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.HashSet; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppMemberGoodsTypeDto |
| | | * @description: TODO |
| | | * @date 2023年05月19日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppMemberGoodsTypeDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "商品类型") |
| | | private HashSet<String> goodsTypeSet; |
| | | |
| | | |
| | | } |
| | |
| | | @TableField("binding_flag") |
| | | private Integer bindingFlag; |
| | | |
| | | @TableField("goods_type") |
| | | private String goodsType; |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | |
| | | import com.ruoyi.system.api.RemoteMemberService; |
| | | import com.ruoyi.system.api.RemoteUserService; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.poji.sys.SysFile; |
| | | import com.ruoyi.system.api.domain.poji.sys.SysUser; |
| | |
| | | public R updateMemberBinding(AppMemberBindingDto appMemberBindingDto) { |
| | | return R.fail("更新绑定失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R updateMemberGoodsType(AppMemberGoodsTypeDto appMemberGoodsTypeDto) { |
| | | return R.fail("更新会员商品类型失败:" + throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.member.service.member.MemberService; |
| | | import com.ruoyi.member.service.member.UserCouponService; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.vo.AppUserCouponVo; |
| | | import com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo; |
| | |
| | | memberService.updateMemberBinding(appMemberBindingDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/updateMemberGoodsType") |
| | | public R updateMemberGoodsType(@RequestBody AppMemberGoodsTypeDto appMemberGoodsTypeDto) |
| | | { |
| | | memberService.updateMemberGoodsType(appMemberGoodsTypeDto); |
| | | return R.ok(); |
| | | } |
| | | } |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerMemberTagEditDto |
| | |
| | | |
| | | |
| | | @ApiModelProperty(value = "用户标签多个用,号隔开") |
| | | private String userTags; |
| | | private List<String> userTags; |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "用户标签") |
| | | private String userTags; |
| | | |
| | | |
| | | @ApiModelProperty(value = "商品类型") |
| | | private String goodsType; |
| | | } |
| | |
| | | */ |
| | | Member selectMemberByUserId(Long userId); |
| | | /** |
| | | * |
| | | * 通过openid获取会员 |
| | | * @param miniOpenid |
| | | * @return |
| | | */ |
| | | Member getOneByMiniOpenid(@Param("miniOpenid")String miniOpenid); |
| | | |
| | | /** |
| | | * |
| | | * 商户获取绑定会员 |
| | | * @param page |
| | | * @return |
| | | */ |
| | |
| | | import com.ruoyi.system.api.constant.SecurityConstant; |
| | | import com.ruoyi.system.api.domain.dto.AppEditUserDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.config.SysTag; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.poji.shop.Shop; |
| | |
| | | merMemberInfoVo.setPhonenumber(member.getMobile()); |
| | | merMemberInfoVo.setAvatar(member.getAvatar()); |
| | | merMemberInfoVo.setBirthday(member.getBirthday()); |
| | | merMemberInfoVo.setUserTags(member.getUserTags()); |
| | | //未完成 |
| | | |
| | | return merMemberInfoVo; |
| | |
| | | @Override |
| | | public void editMerMemberTags(MerMemberTagEditDto merMemberTagEditDto){ |
| | | Member member = this.getByUserId(merMemberTagEditDto.getMemberUserId()); |
| | | member.setUserTags(merMemberTagEditDto.getUserTags()); |
| | | List<String> userTags = merMemberTagEditDto.getUserTags(); |
| | | StringJoiner sj = new StringJoiner(","); |
| | | if(userTags!=null&&!userTags.isEmpty()){ |
| | | for(String str : userTags){ |
| | | sj.add(str); |
| | | } |
| | | } |
| | | member.setUserTags(sj.toString()); |
| | | this.saveOrUpdate(member); |
| | | } |
| | | |
| | |
| | | Member member = this.getOne(queryWrapper); |
| | | return member; |
| | | } |
| | | |
| | | /** |
| | | * 更新用户商品类型 |
| | | * @param appMemberGoodsTypeDto |
| | | */ |
| | | @Override |
| | | public void updateMemberGoodsType(AppMemberGoodsTypeDto appMemberGoodsTypeDto){ |
| | | Member member = this.getByUserId(appMemberGoodsTypeDto.getUserId()); |
| | | HashSet<String> goodsTypeSet = appMemberGoodsTypeDto.getGoodsTypeSet(); |
| | | if(member!=null){ |
| | | String goodsType = member.getGoodsType(); |
| | | Boolean change = false; |
| | | for(String str : goodsTypeSet){ |
| | | if(goodsType != null){ |
| | | if(!goodsType.contains(str)){ |
| | | goodsType = goodsType + "," + str; |
| | | change = true; |
| | | } |
| | | }else{ |
| | | goodsType = str; |
| | | change = true; |
| | | } |
| | | } |
| | | if(change){ |
| | | member.setGoodsType(goodsType); |
| | | this.saveOrUpdate(member); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.member.domain.vo.*; |
| | | import com.ruoyi.system.api.domain.dto.AppEditUserDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo; |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | |
| | | * @return |
| | | */ |
| | | Member getByMobile(String mobile); |
| | | |
| | | /** |
| | | * 更新用户商品类型 |
| | | * @param appMemberGoodsTypeDto |
| | | */ |
| | | void updateMemberGoodsType(AppMemberGoodsTypeDto appMemberGoodsTypeDto); |
| | | } |
| | |
| | | <result property="userTags" column="user_tags" /> |
| | | <result property="avatar" column="avatar" /> |
| | | <result property="bindingFlag" column="binding_flag" /> |
| | | <result property="goodsType" column="goods_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberVo"> |
| | | select user_id, del_flag, member_id, member_no, wx_openid, mini_openid, wx_unionid, relation_shop_id, nick_name, real_name, mobile, gender, referrer, customer_source, level, birthday, create_time, update_time, update_user_id, user_tags, avatar, binding_flag from t_member |
| | | select user_id, del_flag, member_id, member_no, wx_openid, mini_openid, wx_unionid, relation_shop_id, nick_name, real_name, mobile, gender, referrer, customer_source, level, birthday, create_time, update_time, update_user_id, user_tags, avatar, binding_flag, goods_type from t_member |
| | | </sql> |
| | | |
| | | <select id="selectMemberList" parameterType="com.ruoyi.system.api.domain.poji.member.Member" resultMap="MemberResult"> |
| | |
| | | 0 recommendNum, |
| | | 0 surpNum, |
| | | tm.birthday birthday, |
| | | tm.user_tags userTags |
| | | tm.user_tags userTags, |
| | | tm.goods_type goodsType |
| | | FROM t_member tm |
| | | WHERE tm.relation_shop_id = #{param.shopId} |
| | | <if test="param.memberGender != null and param.memberGender != ''"> |
| | | AND tm.gender = #{param.memberGender} |
| | | </if> |
| | | <if test="param.memberTag != null and param.memberTag != ''"> |
| | | AND FIND_IN_SET(tm.user_tags, #{param.memberTag}) |
| | | </if> |
| | | <if test="param.startMemberDate!=null and param.startMemberDate!=''"> |
| | | AND tm.create_time >= #{param.startMemberDate} |
| | | </if> |
| | | <if test="param.endMemberDate!=null and param.endMemberDate!=''"> |
| | | AND tm.create_time <= #{param.endMemberDate} |
| | | </if> |
| | | <if test="param.keyword != null and param.keyword != ''"> |
| | | AND (tm.real_name LIKE CONCAT('%',#{param.keyword},'%') OR tm.mobile LIKE CONCAT('%',#{param.keyword},'%') OR tm.referrer LIKE CONCAT('%',#{param.keyword},'%')) |
| | | </if> |
| | |
| | | package com.ruoyi.order.controller.miniapp; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.order.domain.vo.AppShoppingCartVo; |
| | |
| | | if(member!=null&&member.getRelationShopId()!=null){ |
| | | appGoodsInfoGetDto.setShopId(member.getRelationShopId()); |
| | | }else{ |
| | | appGoodsInfoGetDto.setShopId(1L); |
| | | throw new ServiceException("请先获取附近商户定位"); |
| | | } |
| | | } |
| | | AppGoodsInfoVo appGoodsInfoVo = goodsService.getGoodsInfo(appGoodsInfoGetDto); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.dto.AppPageDto; |
| | |
| | | @ApiOperation(value = "推荐商品") |
| | | public R<Page<AppSimpleGoodsVo>> pageRecommendGoods(@RequestBody AppPageDto appPageDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | logger.info("userId-----"+userId.toString()); |
| | | Long shopId = null; |
| | | if(userId!=null){ |
| | | Member member = memberService.getMember(userId).getData(); |
| | |
| | | @ApiModelProperty(value = "订单状态0.已取消1.待支付2.待核销3.已完成") |
| | | private Integer orderStatus; |
| | | |
| | | @ApiModelProperty("订单来源1.商城2.秒杀活动3.线下创建") |
| | | @ApiModelProperty("订单来源1.商城订单2.秒杀活动3.线下创建") |
| | | private Integer orderFrom; |
| | | |
| | | @ApiModelProperty("订单商品列表") |
| | |
| | | |
| | | |
| | | /** |
| | | * |
| | | * 分页获取商户订单 |
| | | * @param merOrderPageDto |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | List<AppShoppingCartVo> listShoppingCartVo(@Param("userId") Long userId, @Param("shopId")Long shopId); |
| | | |
| | | /** |
| | | * 删除购物车 |
| | | * @param |
| | | */ |
| | | void deleteByUserIdAndGoodsId(@Param("userId")Long userId,@Param("goodsId")String goodsId); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.order.domain.dto.*; |
| | | import com.ruoyi.order.domain.pojo.order.ConsumerGoods; |
| | | import com.ruoyi.order.domain.pojo.order.UserServiceRecord; |
| | |
| | | shopId = consumerGoods.getShopId(); |
| | | userId= consumerGoods.getUserId(); |
| | | serviceType = consumerGoods.getGoodsType(); |
| | | consumerGoodsIds = consumerGoodsIds + consumerGoods.getConsumerGoodsId(); |
| | | consumerGoodsNames = consumerGoodsNames + consumerGoods.getGoodsName(); |
| | | if(StringUtils.isBlank(consumerGoodsIds)){ |
| | | consumerGoodsIds = consumerGoods.getConsumerGoodsId(); |
| | | }else{ |
| | | consumerGoodsIds = consumerGoodsIds + "," + consumerGoods.getConsumerGoodsId(); |
| | | } |
| | | if(StringUtils.isBlank(consumerGoodsNames)){ |
| | | consumerGoodsNames = consumerGoods.getGoodsName(); |
| | | }else{ |
| | | consumerGoodsNames = consumerGoodsNames + "、" + consumerGoods.getGoodsName(); |
| | | } |
| | | } |
| | | UserServiceRecord userServiceRecord = new UserServiceRecord(); |
| | | userServiceRecord.setCreateTime(new Date()); |
| | |
| | | import com.ruoyi.order.domain.pojo.order.ConsumerGoods; |
| | | import com.ruoyi.order.domain.pojo.order.Order; |
| | | import com.ruoyi.order.domain.pojo.order.OrderGoods; |
| | | import com.ruoyi.order.domain.pojo.order.ShoppingCart; |
| | | import com.ruoyi.order.domain.vo.*; |
| | | import com.ruoyi.order.service.goods.GoodsFileService; |
| | | import com.ruoyi.order.service.goods.ShopGoodsService; |
| | | import com.ruoyi.order.service.order.ConsumerGoodsService; |
| | | import com.ruoyi.order.service.order.OrderGoodsService; |
| | | import com.ruoyi.order.service.order.ShoppingCartService; |
| | | import com.ruoyi.order.util.CodeFactoryUtil; |
| | | import com.ruoyi.system.api.RemoteMemberService; |
| | | import com.ruoyi.system.api.RemoteShopService; |
| | |
| | | import com.ruoyi.system.api.constant.AppErrorConstant; |
| | | import com.ruoyi.system.api.domain.dto.AppBaseGetDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberBindingDto; |
| | | import com.ruoyi.system.api.domain.dto.AppMemberGoodsTypeDto; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import com.ruoyi.system.api.domain.poji.shop.Shop; |
| | | import com.ruoyi.system.api.domain.poji.sys.SysUser; |
| | |
| | | |
| | | @Resource |
| | | private ConsumerGoodsService consumerGoodsService; |
| | | |
| | | @Resource |
| | | private ShoppingCartService shoppingCartService; |
| | | |
| | | /** |
| | | * @description: buyGoods |
| | |
| | | String orderNo = CodeFactoryUtil.getShopOrderNo(); |
| | | OrderGoods orderGoods; |
| | | String orderGoodsId; |
| | | ShoppingCart shoppingCart; |
| | | HashSet<String> goodsTypeSet = new HashSet<>(); |
| | | for(AppBuyGoodsDto appBuyGoodsDto : appBuyGoodsDtoList){ |
| | | appSureOrderGoodsVo = new AppSureOrderGoodsVo(); |
| | | useCoupon = 0; |
| | |
| | | orderGoods.setServiceNum(serviceNum); |
| | | orderGoods.setGoodsType(goods.getGoodsType()); |
| | | orderGoodsService.save(orderGoods); |
| | | //清空购物车 |
| | | shoppingCartService.deleteByUserIdAndGoodsId(userId,goodsId); |
| | | if(goods.getGoodsType()==1){ |
| | | goodsTypeSet.add("周期"); |
| | | }else if(goods.getGoodsType()==2){ |
| | | goodsTypeSet.add("服务"); |
| | | }else if(goods.getGoodsType()==3){ |
| | | goodsTypeSet.add("体验"); |
| | | }else if(goods.getGoodsType()==4){ |
| | | goodsTypeSet.add("单品"); |
| | | } |
| | | } |
| | | Order order = new Order(); |
| | | order.setOrderId(orderId); |
| | |
| | | order.setGoodsNum(goodsNum); |
| | | order.setCreateTime(new Date()); |
| | | this.save(order); |
| | | //更新用户商品类型 |
| | | if(goodsTypeSet!=null&&goodsTypeSet.size()>0){ |
| | | AppMemberGoodsTypeDto appMemberGoodsTypeDto = new AppMemberGoodsTypeDto(); |
| | | appMemberGoodsTypeDto.setUserId(userId); |
| | | appMemberGoodsTypeDto.setGoodsTypeSet(goodsTypeSet); |
| | | remoteMemberService.updateMemberGoodsType(appMemberGoodsTypeDto); |
| | | } |
| | | appPlaceOrderVo.setOrderId(orderId); |
| | | appPlaceOrderVo.setOrderNo(orderNo); |
| | | |
| | | //调用支付 |
| | | |
| | | |
| | | return appPlaceOrderVo; |
| | | } |
| | |
| | | merVerifyOrderVo.setPayMoney(order.getPayMoney()); |
| | | merVerifyOrderVo.setOrderRemark(order.getOrderRemark()); |
| | | merVerifyOrderVo.setAppUserOrderGoodsPageVoList(appUserOrderGoodsPageVoList); |
| | | merVerifyOrderVo.setCreateTime(order.getCreateTime()); |
| | | merVerifyOrderVo.setPayTime(order.getPayTime()); |
| | | merVerifyOrderVo.setUseTime(order.getUseTime()); |
| | | SysUser sysUser = remoteUserService.getSysUser(order.getUserId()).getData(); |
| | | merVerifyOrderVo.setUserName(sysUser.getNickName()); |
| | | merVerifyOrderVo.setUserMobile(sysUser.getPhonenumber()); |
| | |
| | | public List<AppShoppingCartVo> listShoppingCartVo(Long userId, Long shopId){ |
| | | return shoppingCartMapper.listShoppingCartVo(userId, shopId); |
| | | } |
| | | |
| | | /** |
| | | * 删除购物车 |
| | | * @param |
| | | */ |
| | | @Override |
| | | public void deleteByUserIdAndGoodsId(Long userId,String goodsId){ |
| | | shoppingCartMapper.deleteByUserIdAndGoodsId(userId,goodsId); |
| | | } |
| | | |
| | | } |
| | |
| | | void deleteShoppingCart(AppBaseBathDto appBaseBathDto); |
| | | |
| | | /** |
| | | * 删除购物车 |
| | | * @param |
| | | */ |
| | | void deleteByUserIdAndGoodsId(Long userId,String goodsId); |
| | | |
| | | /** |
| | | * |
| | | * @param userId |
| | | * @param shopId |
| | |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.apache.poi.ss.usermodel.DateUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.security.SecureRandom; |
| | | import java.util.Date; |
| | |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Component |
| | | public class CodeFactoryUtil { |
| | | |
| | | |
| | |
| | | |
| | | //将静态属性以入参(形参)的方式传入一个方法中,然后将此方法通过 @Autowired 注入到Spring容器中 |
| | | @Autowired |
| | | public void setService(RedisService redisService) { |
| | | public void setService(RedisService redisService) { |
| | | CodeFactoryUtil.redisService = redisService; |
| | | } |
| | | |
| | |
| | | INNER JOIN t_goods_file tgf ON tgf.goods_id = tg.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | WHERE tcg.del_flag = 0 AND tcg.user_id = #{param.userId} AND tcg.shop_id = #{param.shopId} |
| | | <if test="param.goodsType != null"> |
| | | AND tg.goods_type = #{param.goodsType} |
| | | AND tcg.goods_type = #{param.goodsType} |
| | | </if> |
| | | ORDER BY tcg.cycle_num_flag ASC, tcg.create_time DESC |
| | | </select> |
| | |
| | | <if test="param.type != null and param.type ==3 "> |
| | | AND toc.order_status = 3 |
| | | </if> |
| | | <if test="param.orderFrom != null and param.orderFrom != '' "> |
| | | AND toc.order_from = #{param.orderFrom} |
| | | </if> |
| | | <if test="param.startOrderDate != null and param.startOrderDate != '' "> |
| | | AND toc.create_time >= #{param.startOrderDate} |
| | | </if> |
| | | <if test="param.endOrderDate != null and param.endOrderDate != '' "> |
| | | AND toc.create_time <= #{param.endOrderDate} |
| | | </if> |
| | | <if test="param.keyword != null and param.keyword != ''"> |
| | | AND (toc.order_no LIKE CONCAT('%',#{param.keyword},'%') OR tg.goods_name LIKE CONCAT('%',#{param.keyword},'%')) |
| | | </if> |
| | |
| | | WHERE tsc.del_flag = 0 AND tg.del_flag = 0 AND tsc.shop_id = #{shopId} AND tsc.user_id = #{userId} AND tg.del_flag = 0 AND tg.goods_status = 1 AND tg.recommend_flag = 1 |
| | | ORDER BY tg.create_time DESC |
| | | </select> |
| | | |
| | | <update id="deleteByUserIdAndGoodsId"> |
| | | UPDATE t_shopping_cart SET del_flag = 1 WHERE user_id = #{userId} AND goods_id = #{goodsId} |
| | | </update> |
| | | </mapper> |
| | |
| | | |
| | | |
| | | /** |
| | | * |
| | | * 分页获取代理商 |
| | | * @param page |
| | | * @param merAgencyPageDto |
| | | * @return |
| | |
| | | List<MerAgencyPageVo> pageMerAgencyVo (Page page, @Param("param")MerAgencyPageDto merAgencyPageDto); |
| | | |
| | | /** |
| | | * |
| | | * 获取最近商户 |
| | | * @param appNearbyShopDto |
| | | * @return |
| | | */ |
| | |
| | | ts.shopowner_phone shopownerPhone, |
| | | ts.cooperation_end_time cooperationEndTime |
| | | FROM t_shop ts |
| | | WHERE ts.del_flag = 0 AND ts.shop_id = #{param.shopId} |
| | | WHERE ts.del_flag = 0 AND ts.belong_shop_id = #{param.shopId} |
| | | <if test="param.shopStatus!=null and param.shopStatus!=''"> |
| | | AND ts.shop_status = #{param.shopStatus} |
| | | </if> |
| | | <if test="param.keyword!=null and param.keyword!=''"> |
| | | AND (ts.shop_name LIKE CONCAT('%',#{param.keyword},'%') OR ts.shopowner_name LIKE CONCAT('%',#{param.keyword},'%') |
| | | OR ts.shopowner_phone LIKE CONCAT('%',#{param.keyword},'%')) |
| | | </if> |
| | | <if test="param.startCooperDate!=null and param.startCooperDate!=''"> |
| | | AND ts.cooperation_start_time >= #{param.startCooperDate} |
| | | </if> |
| | | <if test="param.endCooperDate!=null and param.endCooperDate!=''"> |
| | | AND ts.cooperation_end_time <= #{param.endCooperDate} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getNearbyShop" resultType="com.ruoyi.shop.domain.vo.AppNearShopVo"> |