diff --git a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue index 7bfc979c..39c661f1 100644 --- a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue +++ b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue @@ -12,7 +12,7 @@ 私人定制 - 成衣推荐 + +
+
+ +
+
+ + +
+ +
+
+
+
+
{{title}}
+

销量:{{sales}}件

+

价格:¥{{price}}

+

优惠:{{favour}}

+

+ 促销: + + {{sell}} + 收起>>> + + 详情>>> +

+
+
颜色:{{color}}
+ + + 白色 + + + 黑色 + + + 灰色 + + +
尺码:尺码参照表 | 找到您的尺寸
+ + 这里放尺码参照表 + + 关 闭 + + +
+ + + + + +
+
+
免费配送与退货服务更多详情
+ + text + + 关 闭 + + +
+
使用花呗分期,最低每月¥1182.50。详细说明
+ + text + + 关 闭 + + +
+
加入购物袋
+
立即购买
+ +
+ +
+
+
已选
+
+
+ +

{{item.text}}

+
+
+
+
+
+ 商品介绍 + 加入购物车 +
+ + + + + + + + + + + + + + + + + + + +
商品名称:{{clothDetail.name}}商品编号:{{clothDetail.num}}规格:{{clothDetail.style}}产品概述:{{clothDetail.weight}}
结构:{{clothDetail.itemNo}}特征:{{clothDetail.collar}}折叠搭配及包装:{{clothDetail.material}}适用场景:{{clothDetail.scene}}
配件及标志:{{clothDetail.type}}缝纫形式:{{clothDetail.placket}}产地:{{clothDetail.slit}}适用人群:{{clothDetail.people}}
+
+
+
+ + + + + diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java index bca8cea8..6589ff84 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java @@ -186,4 +186,10 @@ public interface SysUserMapper extends BaseMapper { @Select("SELECT za.contents FROM customercollectgoods AS crg LEFT JOIN goods_accessories AS ga ON crg.goods_id = ga.goods_id LEFT JOIN zy_accessories AS za ON ga.accessories_id = za.id where crg.id=#{id}") List getscgoodfi(String id); + + @Select("select id from customer_receiving_address where update_by =#{needuname}") + List getuserdizhi(String needuname); + + @Select("select id from customer_invoice where update_by =#{needuname}") + List getuserfapiao(String needuname); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISysUserService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISysUserService.java index e7e12a85..fbf44851 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISysUserService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISysUserService.java @@ -12,6 +12,7 @@ import org.jeecg.modules.system.entity.SysUser; import org.jeecg.modules.system.model.SysUserSysDepartModel; import org.jeecg.modules.system.vo.Grzx1; import org.jeecg.modules.system.vo.Grzx2; +import org.jeecg.modules.system.vo.SysUserdfVO; import org.springframework.transaction.annotation.Transactional; import java.util.Collection; @@ -266,7 +267,7 @@ public interface ISysUserService extends IService { //这里是产生一个随机虚拟用户,用于虚拟下单 - SysUser getuser(); + SysUserdfVO getuser(); SysUser getneeduser(String id); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java index 095598c2..12ceacfc 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java @@ -25,6 +25,7 @@ import org.jeecg.modules.system.vo.Grzx1; import org.jeecg.modules.system.vo.Grzx2; import org.jeecg.modules.system.vo.SysUserDepVo; +import org.jeecg.modules.system.vo.SysUserdfVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.springframework.stereotype.Service; @@ -564,7 +565,7 @@ public class SysUserServiceImpl extends ServiceImpl impl //这个是获取一个虚拟用户的对象 @Override - public SysUser getuser() { + public SysUserdfVO getuser() { //虚拟角色id String roleid="1630020854744330241"; //根据角色id查询用户id @@ -576,7 +577,14 @@ public class SysUserServiceImpl extends ServiceImpl impl String needid = uids.get(n); SysUser sysUser = new SysUser(); sysUser = userMapper.getneeduser(needid); - return sysUser; + String needuname = sysUser.getUsername(); + List dizhi = userMapper.getuserdizhi(needuname); + List fapiao = userMapper.getuserfapiao(needuname); + SysUserdfVO sdfvo = new SysUserdfVO(); + sdfvo.setSysUser(sysUser); + sdfvo.setDizhi(dizhi); + sdfvo.setFapiao(fapiao); + return sdfvo; } @Override diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/SysUserdfVO.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/SysUserdfVO.java new file mode 100644 index 00000000..323ae9d5 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/SysUserdfVO.java @@ -0,0 +1,13 @@ +package org.jeecg.modules.system.vo; + +import lombok.Data; +import org.jeecg.modules.system.entity.SysUser; + +import java.util.List; + +@Data +public class SysUserdfVO { + private SysUser sysUser; + private List fapiao; + private List dizhi; +}