1 文件已重命名
23个文件已修改
4个文件已删除
9个文件已添加
| | |
| | | */ |
| | | @TableField("real_name") |
| | | private String realName; |
| | | |
| | | /** |
| | | * 昵称 |
| | | */ |
| | | @TableField("nick_name") |
| | | private String nickName; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | |
| | | |
| | | @ApiModelProperty(name = "调理问题") |
| | | private List<String> memberNurse; |
| | | |
| | | @ApiModelProperty(name = "创建时间") |
| | | private Date createTime; |
| | | } |
| | |
| | | @ApiModelProperty("用户头像") |
| | | private String avatar; |
| | | |
| | | @ApiModelProperty("用户生日") |
| | | private String birthday; |
| | | |
| | | @ApiModelProperty(value = "用户标签") |
| | | private String userTags; |
| | | |
| | |
| | | sysUser = new SysUser(); |
| | | sysUser.setUserName(memberId); |
| | | sysUser.setUserType("03"); |
| | | sysUser.setNickName("微信用户"); |
| | | sysUser.setNickName("鸿瑞堂用户"); |
| | | sysUser.setAvatar("https://hongruitang.oss-cn-beijing.aliyuncs.com/default.png"); |
| | | String password = "hongruitang"; |
| | | sysUser.setPassword(SecurityUtils.encryptPassword(password)); |
| | | sysUser = sysUserService.registerUser(sysUser).getData(); |
| | |
| | | member = new Member(); |
| | | member.setUserId(sysUser.getUserId()); |
| | | member.setDelFlag(0); |
| | | member.setNickName("鸿瑞堂用户"); |
| | | member.setAvatar("https://hongruitang.oss-cn-beijing.aliyuncs.com/default.png"); |
| | | member.setMemberId(memberId); |
| | | member.setWxUnionid(unionid); |
| | | member.setMiniOpenid(openid); |
| | |
| | | sysUser.setPhonenumber(mobile); |
| | | sysUserService.updateUserMobile(sysUser); |
| | | member.setMobile(mobile); |
| | | member.setRealName(sysUser.getNickName()); |
| | | member.setNickName(sysUser.getNickName()); |
| | | this.saveOrUpdate(member); |
| | | appUserAuthorizeVo.setMobile(mobile); |
| | | appUserAuthorizeVo.setNickName(sysUser.getNickName()); |
| | |
| | | Member member = this.getByUserId(appEditUserDto.getUserId()); |
| | | switch (editType){ |
| | | case 1: |
| | | member.setRealName(editValue); |
| | | member.setNickName(editValue); |
| | | member.setUpdateTime(new Date()); |
| | | member.setUpdateUserId(appEditUserDto.getUserId()); |
| | | this.saveOrUpdate(member); |
| | |
| | | @Override |
| | | public MerMemberInfoVo getMerMemberInfo(Long userId){ |
| | | MerMemberInfoVo merMemberInfoVo = new MerMemberInfoVo(); |
| | | SysUser sysUser = sysUserService.getSysUser(userId).getData(); |
| | | Member member = this.getByUserId(userId); |
| | | merMemberInfoVo.setUserId(userId); |
| | | merMemberInfoVo.setNickName(sysUser.getNickName()); |
| | | merMemberInfoVo.setPhonenumber(sysUser.getPhonenumber()); |
| | | merMemberInfoVo.setAvatar(sysUser.getAvatar()); |
| | | merMemberInfoVo.setNickName(member.getNickName()); |
| | | merMemberInfoVo.setPhonenumber(member.getMobile()); |
| | | merMemberInfoVo.setAvatar(member.getAvatar()); |
| | | merMemberInfoVo.setBirthday(member.getBirthday()); |
| | | //未完成 |
| | | |
| | | return merMemberInfoVo; |
| | |
| | | MerMemberBasicFileVo merMemberBasicFileVo = new MerMemberBasicFileVo(); |
| | | Member member = this.getByUserId(userId); |
| | | BeanUtils.copyProperties(member, merMemberBasicFileVo); |
| | | merMemberBasicFileVo.setNickName(member.getNickName()); |
| | | merMemberBasicFileVo.setPhonenumber(member.getMobile()); |
| | | merMemberBasicFileVo.setCreateTime(member.getCreateTime()); |
| | | List<MemberNurse> memberNurseList = memberNurseService.listByUserId(userId); |
| | | List<String> valueList = memberNurseList.stream().map(k->k.getNurse()).collect(Collectors.toList()); |
| | | merMemberBasicFileVo.setMemberNurse(valueList); |
| | |
| | | <result property="miniOpenid" column="mini_openid" /> |
| | | <result property="wxUnionid" column="wx_unionid" /> |
| | | <result property="relationShopId" column="relation_shop_id" /> |
| | | <result property="nickName" column="nick_name" /> |
| | | <result property="realName" column="real_name" /> |
| | | <result property="mobile" column="mobile" /> |
| | | <result property="gender" column="gender" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberVo"> |
| | | select user_id, del_flag, member_id, member_no, wx_openid, mini_openid, wx_unionid, relation_shop_id, 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 from t_member |
| | | </sql> |
| | | |
| | | <select id="selectMemberList" parameterType="com.ruoyi.system.api.domain.poji.member.Member" resultMap="MemberResult"> |
| | |
| | | <select id="pageMerMember" resultType="com.ruoyi.member.domain.vo.MerMemberPageVo"> |
| | | SELECT |
| | | tm.user_id userId, |
| | | tm.real_name nickName, |
| | | tm.nick_name nickName, |
| | | tm.avatar avatar, |
| | | CASE tm.gender WHEN 0 THEN '男' WHEN 1 THEN '女' ELSE '未知' END gender, |
| | | tm.mobile mobile, |
| | |
| | | <select id="pageMerCashMember" resultType="com.ruoyi.member.domain.vo.MerCashMemberPageVo"> |
| | | SELECT |
| | | tm.user_id userId, |
| | | tm.real_name nickName, |
| | | tm.nick_name nickName, |
| | | tm.mobile mobile |
| | | FROM t_member tm |
| | | WHERE tm.relation_shop_id = #{param.shopId} |
| | |
| | | import com.ruoyi.order.service.order.ConsumerGoodsService; |
| | | import com.ruoyi.order.service.order.UserServiceRecordService; |
| | | import com.ruoyi.system.api.domain.poji.member.Member; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Data; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @date 2023年05月05日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | @Api(value = "商户端服务相关接口", tags = "商户端服务相关接口", description = "商户端服务相关接口") |
| | | @RestController |
| | | @RequestMapping("/mer/consumer") |
| | | public class MerConsumerController { |
| | | |
| | | @Autowired |
| | |
| | | @ApiModelProperty("商品名称") |
| | | private String goodsName; |
| | | |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String goodsIntroduction; |
| | | |
| | | @ApiModelProperty("商品图片") |
| | | private String goodsPicture; |
| | | |
| | |
| | | for(MerOrderPageVo merOrderPageVo : merOrderPageVoList){ |
| | | userId = merOrderPageVo.getUserId(); |
| | | member = remoteMemberService.getMember(userId).getData(); |
| | | merOrderPageVo.setUserName(member.getRealName()); |
| | | merOrderPageVo.setUserName(member.getNickName()); |
| | | merOrderPageVo.setUserMobile(member.getMobile()); |
| | | orderFrom = merOrderPageVo.getOrderFrom(); |
| | | orderFromDesc = "商城订单"; |
| | |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | |
| | | ORDER BY tusr.create_time DESC |
| | | </select> |
| | | |
| | | <select id="pageUserServiceRecord" resultType="com.ruoyi.order.domain.vo.MerServiceRecordPageVo"> |
| | | <select id="pageMerMemberServiceRecord" resultType="com.ruoyi.order.domain.vo.MerServiceRecordPageVo"> |
| | | SELECT |
| | | tcg.consumer_goods_names consumerGoodsNames, |
| | | tcg.service_type serviceType, |
| | | tcg.create_time createTime |
| | | tusr.consumer_goods_names consumerGoodsNames, |
| | | tusr.service_type serviceType, |
| | | tusr.create_time createTime |
| | | FROM t_user_service_record tusr |
| | | WHERE tusr.del_flag = 0 AND tusr.user_id = #{param.memberUserId} AND tusr.shop_id = #{param.shopId} |
| | | ORDER BY tusr.create_time DESC |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.shop.domain.dto.MerAgencyPageDto; |
| | | import com.ruoyi.shop.domain.dto.MerMemberTaskPageDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopCertificateEditDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopCertificateListDto; |
| | | import com.ruoyi.shop.domain.vo.MerAgencyPageVo; |
| | | import com.ruoyi.shop.domain.vo.MerMemberTaskPageVo; |
| | | import com.ruoyi.shop.domain.vo.MerShopCertificateListVo; |
| | | import com.ruoyi.shop.domain.vo.MgtShopInfoVo; |
| | | import com.ruoyi.shop.service.shop.ShopCertificateService; |
| | | import com.ruoyi.shop.service.shop.ShopService; |
| | | import com.ruoyi.shop.service.shop.ShopStaffService; |
| | | import com.ruoyi.system.api.domain.dto.MerBaseDto; |
| | | import com.ruoyi.system.api.domain.dto.MerBaseGetDto; |
| | | import com.ruoyi.system.api.domain.dto.MerEditUserDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.shop.domain.dto.*; |
| | | import com.ruoyi.shop.domain.vo.*; |
| | | import com.ruoyi.shop.service.shop.*; |
| | | import com.ruoyi.system.api.domain.dto.*; |
| | | import com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo; |
| | | import com.ruoyi.system.api.domain.vo.MerStaffInfoVo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @Autowired |
| | | private ShopStaffService shopStaffService; |
| | | |
| | | @Autowired |
| | | private RecommendCooperationService recommendCooperationService; |
| | | |
| | | @Autowired |
| | | private ShopSuggestService shopSuggestService; |
| | | |
| | | /** |
| | | * 未完成实际统计 |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageMerShopRecommend", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取商户推荐列表") |
| | | public R<Page<MerShopRecommendPageVo>> pageMerShopRecommend(@RequestBody MerShopRecommendPageDto merShopRecommendPageDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merShopRecommendPageDto.setUserId(userId); |
| | | Page<MerShopRecommendPageVo> page = new Page<>(); |
| | | page.setSize(merShopRecommendPageDto.getPageSize()); |
| | | page.setCurrent(merShopRecommendPageDto.getPageNum()); |
| | | List<MerShopRecommendPageVo> merShopRecommendPageVoList = recommendCooperationService.pageMerShopRecommend(page,merShopRecommendPageDto); |
| | | return R.ok(page.setRecords(merShopRecommendPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/recommendCooperation", method = RequestMethod.POST) |
| | | @ApiOperation(value = "推荐合作") |
| | | public R recommendCooperation(@RequestBody MerRecommendCooperationDto merRecommendCooperationDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merRecommendCooperationDto.setUserId(userId); |
| | | recommendCooperationService.recommendCooperation(merRecommendCooperationDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageMerShopSuggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取商户建议") |
| | | public R<Page<MerShopSuggestVo>> pageMerShopSuggest(@RequestBody MerPageDto merPageDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merPageDto.setUserId(userId); |
| | | Page<MerShopSuggestVo> page = new Page<>(); |
| | | page.setSize(merPageDto.getPageSize()); |
| | | page.setCurrent(merPageDto.getPageNum()); |
| | | List<MerShopSuggestVo> merShopSuggestVoList = shopSuggestService.pageMerShopSuggest(page,merPageDto); |
| | | return R.ok(page.setRecords(merShopSuggestVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/suggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "建议") |
| | | public R suggest(@RequestBody MerShopSuggestDto merShopSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merShopSuggestDto.setUserId(userId); |
| | | shopSuggestService.suggest(merShopSuggestDto); |
| | | return R.ok(); |
| | | } |
| | | } |
| | |
| | | * @date 2023年05月06日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Api(value = "商户端会员相关接口", tags = "商户端会员相关接口", description = "商户端会员相关接口") |
| | | @Api(value = "商户端任务相关接口", tags = "商户端任务相关接口", description = "商户端任务相关接口") |
| | | @RestController |
| | | @RequestMapping("/mer/task") |
| | | public class MerTaskController { |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageMerAgencyTaskRecord", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取商户会员跟进任务记录列表") |
| | | @ApiOperation(value = "分页获取商户代理商跟进任务记录列表") |
| | | public R<Page<MerAgencyTaskRecordPageVo>> pageMerAgencyTaskRecord(@RequestBody MerAgencyTaskPageDto merAgencyTaskPageDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merAgencyTaskPageDto.setUserId(userId); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/createAgencyTask", method = RequestMethod.POST) |
| | | @ApiOperation(value = "新建会员跟进任务") |
| | | @ApiOperation(value = "新建代理商跟进任务") |
| | | public R createAgencyTask(@RequestBody MerCreateAgencyTaskDto merCreateAgencyTaskDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merCreateAgencyTaskDto.setUserId(userId); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/followAgencyTask", method = RequestMethod.POST) |
| | | @ApiOperation(value = "会员任务跟进") |
| | | @ApiOperation(value = "会员代理商跟进") |
| | | public R followAgencyTask(@RequestBody MerFollowAgencyTaskDto merFollowAgencyTaskDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merFollowAgencyTaskDto.setUserId(userId); |
New file |
| | |
| | | package com.ruoyi.shop.domain.dto; |
| | | |
| | | import com.ruoyi.system.api.domain.dto.MerBaseDto; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerRecommendCooperationDto |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerRecommendCooperationDto extends MerBaseDto { |
| | | |
| | | @ApiModelProperty(name = "被推荐人") |
| | | private String recommendedName; |
| | | |
| | | @ApiModelProperty(name = "被推荐人电话") |
| | | private String recommendedPhone; |
| | | |
| | | @ApiModelProperty(name = "备注") |
| | | private String remark; |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.domain.dto; |
| | | |
| | | import com.ruoyi.system.api.domain.dto.MerBaseDto; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerShopRecommendPageVo |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerShopRecommendPageDto extends MerPageDto { |
| | | |
| | | @ApiModelProperty(name = "搜索关键词") |
| | | private String keyword; |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.domain.dto; |
| | | |
| | | import com.ruoyi.system.api.domain.dto.MerBaseDto; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerShopSuggestVo |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerShopSuggestDto extends MerBaseDto { |
| | | |
| | | @ApiModelProperty(name = "建议内容") |
| | | private String suggestContent; |
| | | |
| | | } |
File was renamed from ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/domain/pojo/shop/RecommandCooperation.java |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.Version; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_recommand_cooperation") |
| | | public class RecommandCooperation extends Model<RecommandCooperation> { |
| | | @TableName("t_recommend_cooperation") |
| | | public class RecommendCooperation extends Model<RecommendCooperation> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 签约状态 |
| | | * 签约状态1.未签约2已签约 |
| | | */ |
| | | @TableField("corp_status") |
| | | private Integer corpStatus; |
| | | /** |
| | | * 推荐人id |
| | | */ |
| | | @TableField("recommand_user_id") |
| | | private Long recommandUserId; |
| | | @TableField("recommend_user_id") |
| | | private Long recommendUserId; |
| | | /** |
| | | * 被推荐人 |
| | | */ |
| | |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | |
| | | @TableField("Shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 建议内容 |
| | | */ |
| | |
| | | @ApiModelProperty("任务内容") |
| | | private String taskContent; |
| | | |
| | | @ApiModelProperty("任务内容") |
| | | @ApiModelProperty("今日标记") |
| | | private Integer todayFlag; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("任务内容") |
| | | private String taskContent; |
| | | |
| | | @ApiModelProperty("任务内容") |
| | | @ApiModelProperty("今日标记") |
| | | private Integer todayFlag; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.domain.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerShopRecommendPageVo |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerShopRecommendPageVo { |
| | | |
| | | @ApiModelProperty(name = "推荐id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(name = "签约状态1.未签约2已签约") |
| | | private Integer corpStatus; |
| | | |
| | | @ApiModelProperty(name = "被推荐人") |
| | | private String recommendedName; |
| | | |
| | | @ApiModelProperty(name = "被推荐人电话") |
| | | private String recommendedPhone; |
| | | |
| | | @ApiModelProperty(name = "备注") |
| | | private String remark; |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.domain.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerShopSuggestVo |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerShopSuggestVo { |
| | | |
| | | |
| | | @ApiModelProperty(name = "建议内容") |
| | | private String suggestContent; |
| | | |
| | | |
| | | @ApiModelProperty(name = "回复内容") |
| | | private String replayContent; |
| | | |
| | | |
| | | @ApiModelProperty(name = "创建时间") |
| | | private Date createTime; |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.mapper.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.shop.domain.dto.MerShopRecommendPageDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.RecommendCooperation; |
| | | import com.ruoyi.shop.domain.vo.MerShopRecommendPageVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-05-09 |
| | | */ |
| | | public interface RecommendCooperationMapper extends BaseMapper<RecommendCooperation> { |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merShopRecommendPageDto |
| | | * @return |
| | | */ |
| | | List<MerShopRecommendPageVo> pageMerShopRecommend(Page page, @Param("param") MerShopRecommendPageDto merShopRecommendPageDto); |
| | | } |
| | |
| | | package com.ruoyi.shop.mapper.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.shop.domain.pojo.shop.ShopSuggest; |
| | | import com.ruoyi.shop.domain.vo.MerShopSuggestVo; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2023-05-09 |
| | | */ |
| | | public interface ShopSuggestMapper extends BaseMapper<ShopSuggest> { |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merPageDto |
| | | * @return |
| | | */ |
| | | List<MerShopSuggestVo> pageMerShopSuggest(Page page, @Param("param") MerPageDto merPageDto); |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.service.impl.shop; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.utils.bean.BeanUtils; |
| | | import com.ruoyi.shop.domain.dto.MerRecommendCooperationDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopRecommendPageDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.RecommendCooperation; |
| | | import com.ruoyi.shop.domain.vo.MerShopRecommendPageVo; |
| | | import com.ruoyi.shop.mapper.shop.RecommendCooperationMapper; |
| | | import com.ruoyi.shop.service.shop.RecommendCooperationService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-05-09 |
| | | */ |
| | | @Service |
| | | public class RecommendCooperationServiceImpl extends ServiceImpl<RecommendCooperationMapper, RecommendCooperation> implements RecommendCooperationService { |
| | | |
| | | @Resource |
| | | private RecommendCooperationMapper recommendCooperationMapper; |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merShopRecommendPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MerShopRecommendPageVo> pageMerShopRecommend(Page page, MerShopRecommendPageDto merShopRecommendPageDto){ |
| | | return recommendCooperationMapper.pageMerShopRecommend(page,merShopRecommendPageDto); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param merRecommendCooperationDto |
| | | */ |
| | | @Override |
| | | public void recommendCooperation(MerRecommendCooperationDto merRecommendCooperationDto){ |
| | | RecommendCooperation recommendCooperation = new RecommendCooperation(); |
| | | BeanUtils.copyProperties(merRecommendCooperationDto,recommendCooperation); |
| | | recommendCooperation.setDelFlag(0); |
| | | recommendCooperation.setRecommendUserId(merRecommendCooperationDto.getUserId()); |
| | | recommendCooperation.setShopId(merRecommendCooperationDto.getShopId()); |
| | | recommendCooperation.setCorpStatus(1); |
| | | recommendCooperation.setCreateTime(new Date()); |
| | | this.save(recommendCooperation); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.shop.service.impl.shop; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.shop.domain.dto.MerShopSuggestDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.ShopSuggest; |
| | | import com.ruoyi.shop.domain.vo.MerShopSuggestVo; |
| | | import com.ruoyi.shop.mapper.shop.ShopSuggestMapper; |
| | | import com.ruoyi.shop.service.shop.ShopSuggestService; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class ShopSuggestServiceImpl extends ServiceImpl<ShopSuggestMapper, ShopSuggest> implements ShopSuggestService { |
| | | |
| | | @Resource |
| | | private ShopSuggestMapper shopSuggestMapper; |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MerShopSuggestVo> pageMerShopSuggest(Page page, MerPageDto merPageDto){ |
| | | return shopSuggestMapper.pageMerShopSuggest(page, merPageDto); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param merShopSuggestDto |
| | | */ |
| | | @Override |
| | | public void suggest(MerShopSuggestDto merShopSuggestDto){ |
| | | ShopSuggest shopSuggest = new ShopSuggest(); |
| | | shopSuggest.setDelFlag(0); |
| | | shopSuggest.setCreateUserId(merShopSuggestDto.getUserId()); |
| | | shopSuggest.setShopId(merShopSuggestDto.getShopId()); |
| | | shopSuggest.setSuggestContent(merShopSuggestDto.getSuggestContent()); |
| | | this.save(shopSuggest); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.shop.service.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.shop.domain.dto.MerRecommendCooperationDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopRecommendPageDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.RecommendCooperation; |
| | | import com.ruoyi.shop.domain.vo.MerShopRecommendPageVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-05-09 |
| | | */ |
| | | public interface RecommendCooperationService extends IService<RecommendCooperation> { |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merShopRecommendPageDto |
| | | * @return |
| | | */ |
| | | List<MerShopRecommendPageVo> pageMerShopRecommend(Page page, MerShopRecommendPageDto merShopRecommendPageDto); |
| | | |
| | | /** |
| | | * |
| | | * @param merRecommendCooperationDto |
| | | */ |
| | | void recommendCooperation(MerRecommendCooperationDto merRecommendCooperationDto); |
| | | } |
| | |
| | | package com.ruoyi.shop.service.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.shop.domain.dto.MerShopSuggestDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.ShopSuggest; |
| | | import com.ruoyi.shop.domain.vo.MerShopSuggestVo; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface ShopSuggestService extends IService<ShopSuggest> { |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merPageDto |
| | | * @return |
| | | */ |
| | | List<MerShopSuggestVo> pageMerShopSuggest(Page page, MerPageDto merPageDto); |
| | | |
| | | /** |
| | | * |
| | | * @param merShopSuggestDto |
| | | */ |
| | | void suggest(MerShopSuggestDto merShopSuggestDto); |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.shop.mapper.shop.RecommendCooperationMapper"> |
| | | |
| | | <select id="pageMerShopRecommend" resultType="com.ruoyi.shop.domain.vo.MerShopRecommendPageVo"> |
| | | SELECT |
| | | id id, |
| | | corp_status corpStatus, |
| | | recommended_name recommendedName, |
| | | recommended_phone recommendedPhone, |
| | | remark remark |
| | | FROM t_recommend_cooperation |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} |
| | | <if test="param.keyword != null and param.keyword != ''"> |
| | | AND (recommended_name LIKE CONCAT('%',#{param.keyword},'%') OR recommended_phone LIKE CONCAT('%',#{param.keyword},'%')) |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.shop.mapper.shop.ShopSuggestMapper"> |
| | | |
| | | |
| | | |
| | | <select id="pageMerShopSuggest" resultType="com.ruoyi.shop.domain.vo.MerShopSuggestVo"> |
| | | SELECT |
| | | suggest_content suggestContent, |
| | | replay_content replayContent, |
| | | create_time createTime |
| | | FROM |
| | | t_shop_suggest |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} |
| | | </select> |
| | | </mapper> |
| | |
| | | task_date taskDate, |
| | | task_content taskContent |
| | | FROM t_agency_task tat |
| | | WHERE delFlag = 0 AND shop_id = #{param.shopId} AND agency_id = #{param.agencyId} |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} AND agency_id = #{param.agencyId} |
| | | <if test="param.taskStatus!=null and param.taskStatus!=null == 0"> |
| | | AND task_status = 0 AND task_date < #{param.nowDay} |
| | | </if> |
| | |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="pageMerMemberTaskRecord" resultType="com.ruoyi.shop.domain.vo.MerMemberTaskRecordPageVo"> |
| | | <select id="pageMerAgencyTaskRecord" resultType="com.ruoyi.shop.domain.vo.MerAgencyTaskRecordPageVo"> |
| | | SELECT |
| | | tmtr.id followId, |
| | | tmtr.task_id taskId, |
| | |
| | | tmtr.callPhone callPhone |
| | | FROM t_agency_task tmt |
| | | INNER JOIN t_agency_task_record tmtr ON tmtr.task_id = tmt.task_id |
| | | WHERE delFlag = 0 AND shop_id = #{param.shopId} AND agency_id = #{param.agencyId} |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} AND agency_id = #{param.agencyId} |
| | | ORDER BY tmt.task_date DESC |
| | | </select> |
| | | </mapper> |
| | |
| | | task_date taskDate, |
| | | task_content taskContent |
| | | FROM t_member_task |
| | | WHERE delFlag = 0 AND shop_id = #{param.shopId} AND user_id = #{param.memberUserId} |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} AND user_id = #{param.memberUserId} |
| | | ORDER BY task_date DESC |
| | | </select> |
| | | </mapper> |
| | |
| | | tmtr.callPhone callPhone |
| | | FROM t_member_task tmt |
| | | INNER JOIN t_member_task_record tmtr ON tmtr.task_id = tmt.task_id |
| | | WHERE delFlag = 0 AND shop_id = #{param.shopId} AND user_id = #{param.memberUserId} |
| | | WHERE del_flag = 0 AND shop_id = #{param.shopId} AND user_id = #{param.memberUserId} |
| | | ORDER BY tmt.task_date DESC |
| | | </select> |
| | | </mapper> |