| | |
| | | @ApiModelProperty(value = "员工生日") |
| | | private String staffBirthday; |
| | | |
| | | @ApiModelProperty(value = "商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty(value = "商户地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty(value = "商户电话") |
| | | private String shopServicePhone; |
| | | |
| | | |
| | | @ApiModelProperty(value = "商户营业时间") |
| | | private String businessTime; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.member.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.DbType; |
| | | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MyBatisPlusConfig |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | @Configuration |
| | | public class MyBatisPlusConfig { |
| | | |
| | | /** |
| | | * MyBatisPlus拦截器(用于分页) |
| | | */ |
| | | @Bean |
| | | public MybatisPlusInterceptor paginationInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | //添加MySQL的分页拦截器 |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
| | | return interceptor; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.order.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.DbType; |
| | | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MyBatisPlusConfig |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | @Configuration |
| | | public class MyBatisPlusConfig { |
| | | |
| | | /** |
| | | * MyBatisPlus拦截器(用于分页) |
| | | */ |
| | | @Bean |
| | | public MybatisPlusInterceptor paginationInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | //添加MySQL的分页拦截器 |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
| | | return interceptor; |
| | | } |
| | | } |
| | |
| | | Page<MerGoodsPageVo> page = new Page<>(); |
| | | page.setSize(merGoodsPageDto.getPageSize()); |
| | | page.setCurrent(merGoodsPageDto.getPageNum()); |
| | | page.setOptimizeCountSql(false); |
| | | List<MerGoodsPageVo> merGoodsPageVoList = goodsService.pageMerShopGoods(page,merGoodsPageDto); |
| | | return R.ok(page.setRecords(merGoodsPageVoList)); |
| | | } |
| | |
| | | Page<MerMemberNoClearOrderVo> page = new Page<>(); |
| | | page.setSize(merMemberNoClearOrderDto.getPageSize()); |
| | | page.setCurrent(merMemberNoClearOrderDto.getPageNum()); |
| | | |
| | | List<MerMemberNoClearOrderVo> merMemberNoClearOrderVoList = orderService.pageMerMemberOrder(page,merMemberNoClearOrderDto); |
| | | return R.ok(page.setRecords(merMemberNoClearOrderVoList)); |
| | | } |
| | |
| | | private Integer goodsType; |
| | | |
| | | @ApiModelProperty(value = "商品调理问题") |
| | | private BigDecimal goodsNurses; |
| | | private String goodsNurses; |
| | | |
| | | @ApiModelProperty(value = "商品建议售价") |
| | | private BigDecimal suggestSalesPrice;; |
| | |
| | | package com.ruoyi.order.domain.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "用户电话") |
| | | private String userMobile; |
| | | |
| | | @ApiModelProperty(value = "订单id") |
| | | private String orderId; |
| | |
| | | @ApiModelProperty("订单备注") |
| | | private String orderRemark; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("订单来源") |
| | | private Integer orderFrom; |
| | | |
| | | @ApiModelProperty("订单来源") |
| | | private String orderFromDesc; |
| | | |
| | | @ApiModelProperty("订单商品列表") |
| | | private List<MerOrderGoodsPageVo> merOrderGoodsVoList; |
| | | } |
| | |
| | | @Override |
| | | public List<MerOrderPageVo> pageMerOrder(Page page, MerOrderPageDto merOrderPageDto){ |
| | | List<MerOrderPageVo> merOrderPageVoList = orderMapper.pageMerOrder(page, merOrderPageDto); |
| | | if(merOrderPageVoList!=null&&!merOrderPageVoList.isEmpty()){ |
| | | Long userId; |
| | | Member member; |
| | | Integer orderFrom; |
| | | String orderFromDesc; |
| | | for(MerOrderPageVo merOrderPageVo : merOrderPageVoList){ |
| | | userId = merOrderPageVo.getUserId(); |
| | | member = remoteMemberService.getMember(userId).getData(); |
| | | merOrderPageVo.setUserName(member.getRealName()); |
| | | merOrderPageVo.setUserMobile(member.getMobile()); |
| | | orderFrom = merOrderPageVo.getOrderFrom(); |
| | | orderFromDesc = "商城订单"; |
| | | merOrderPageVo.setOrderFromDesc(orderFromDesc); |
| | | } |
| | | } |
| | | return merOrderPageVoList; |
| | | } |
| | | |
| | |
| | | <result column="receivableDeposit" property="receivableDeposit"/> |
| | | <result column="payMoney" property="payMoney"/> |
| | | <result column="orderRemark" property="orderRemark" /> |
| | | <result column="orderFrom" property="orderFrom" /> |
| | | <result column="createTime" property="createTime" /> |
| | | <collection property="merOrderGoodsVoList" ofType="com.ruoyi.order.domain.vo.MerOrderGoodsPageVo"> |
| | | <result column="goodsName" property="goodsName"/> |
| | | <result column="goodsType" property="goodsType"/> |
| | |
| | | toc.order_remark orderRemark, |
| | | tg.goods_name goodsName, |
| | | tog.goods_type goodsType, |
| | | tog.buy_num buyNum |
| | | tog.buy_num buyNum, |
| | | toc.create_time createTime, |
| | | toc.order_from orderFrom |
| | | FROM t_order toc |
| | | INNER JOIN t_order_goods tog ON tog.order_id = toc.order_id |
| | | INNER JOIN t_goods tg ON tg.goods_id = tog.goods_id |
New file |
| | |
| | | package com.ruoyi.shop.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.DbType; |
| | | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MyBatisPlusConfig |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | @Configuration |
| | | public class MyBatisPlusConfig { |
| | | |
| | | /** |
| | | * MyBatisPlus拦截器(用于分页) |
| | | */ |
| | | @Bean |
| | | public MybatisPlusInterceptor paginationInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | //添加MySQL的分页拦截器 |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
| | | return interceptor; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/editShopStaffInfo", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取员工信息") |
| | | @ApiOperation(value = "修改员工信息") |
| | | public R editShopStaffInfo(@RequestBody MerEditUserDto merEditUserDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | shopStaffService.editShopStaffInfo(merEditUserDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | CONCAT(ts.shop_area_name,ts.shop_address) shopAddress, |
| | | ts.shopowner_name shopownerName, |
| | | ts.shopowner_phone shopownerPhone, |
| | | ts.cooperationEndTime cooperationEndTime |
| | | ts.cooperation_end_time cooperationEndTime |
| | | FROM t_shop ts |
| | | WHERE ts.del_flag = 0 AND r.shop_id = #{param.shopId} |
| | | WHERE ts.del_flag = 0 AND ts.shop_id = #{param.shopId} |
| | | <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},'%')) |
New file |
| | |
| | | package com.ruoyi.system.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.DbType; |
| | | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MyBatisPlusConfig |
| | | * @description: TODO |
| | | * @date 2023年05月09日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | @Configuration |
| | | public class MyBatisPlusConfig { |
| | | |
| | | /** |
| | | * MyBatisPlus拦截器(用于分页) |
| | | */ |
| | | @Bean |
| | | public MybatisPlusInterceptor paginationInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | //添加MySQL的分页拦截器 |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
| | | return interceptor; |
| | | } |
| | | } |