diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java index 2fef75a26..e10907369 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/PhoneRecordServiceImpl.java @@ -82,11 +82,14 @@ public class PhoneRecordServiceImpl implements PhoneRecordService { @Override public Boolean deletePhoneGearByOrderId(Long orderId) { + log.info("-------------------------orderId{}",orderId); List recordDOS = phoneRecordMapper.selectList(Wrappers.lambdaQuery().eq(PhoneRecordDO::getRechargeOrderId, orderId)); + log.info("-------------------------recordDOS{},{}",recordDOS,recordDOS.size()); if (!CollectionUtils.isEmpty(recordDOS)) { recordDOS.forEach(e->{ e.setDeleted(Boolean.TRUE); - phoneRecordMapper.updateById(e); + int i = phoneRecordMapper.updateById(e); + log.info("-------------------------i{}---------------------",i); }); } return null; diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesFreeMapper.xml b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesFreeMapper.xml index b82a15ce5..818c5057c 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesFreeMapper.xml +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesFreeMapper.xml @@ -14,7 +14,7 @@ FROM eb_shipping_templates_free where - temp_id = #{tempId, jdbcType=INTEGER} + temp_id = #{tempId, jdbcType=INTEGER} AND `status` = 1 GROUP BY `uniqid` ORDER BY id ASC diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesRegionMapper.xml b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesRegionMapper.xml index 1aefe98c4..c984f8d77 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesRegionMapper.xml +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesRegionMapper.xml @@ -14,7 +14,7 @@ FROM eb_shipping_templates_region where - temp_id = #{tempId, jdbcType=INTEGER} + temp_id = #{tempId, jdbcType=INTEGER} AND `status` = 1 GROUP BY `uniqid` ORDER BY id ASC diff --git a/yudao-ui-app/pages.json b/yudao-ui-app/pages.json index 1c1429f56..0a328886d 100644 --- a/yudao-ui-app/pages.json +++ b/yudao-ui-app/pages.json @@ -15,6 +15,11 @@ "style": { "navigationBarTitleText": "会员" } + },{ + "path": "pages/notice/index", + "style": { + "navigationBarTitleText": "公告详情" + } }, { "path": "pages/member_detail/index", diff --git a/yudao-ui-app/pages/index/index.vue b/yudao-ui-app/pages/index/index.vue index 824f6ece6..219a9a2d3 100644 --- a/yudao-ui-app/pages/index/index.vue +++ b/yudao-ui-app/pages/index/index.vue @@ -4,14 +4,24 @@ - + + {{tenant.name}} - 简介:{{tenant.introduction}} - 电话:{{tenant.serviceMobile}} - 服务时间:{{tenant.serviceTime}} + + 简介:{{tenant.introduction}} + + + 电话:{{tenant.serviceMobile}} + + + 服务时间:{{tenant.serviceTime}} + @@ -29,7 +39,7 @@ - + @@ -45,11 +55,7 @@ - + 搜索 @@ -73,16 +79,18 @@ - - - {{item.storeName}} - - - - - + + + {{item.storeName}} + + + + + + + @@ -204,7 +212,7 @@ bastInfo: '', fastInfo: '', fastList: [], - text:'尊敬的业主:接环卫所通知,近期将对小区进行大扫除,请大家做好准备', + text: '尊敬的业主:接环卫所通知,近期将对小区进行大扫除,请大家做好准备', firstInfo: '', salesInfo: '', indicatorDots: false, @@ -319,13 +327,13 @@ // ]); getUserInfo().then(res => { this.userInfo = res.data - getTenant(153).then(res=>{ + getTenant(153).then(res => { this.tenant = res.data this.text = res.data.notice }) }) - getHeader().then(res=>{ - console.log(res,'会员') + getHeader().then(res => { + console.log(res, '会员') }) this.getBanners() this.getIndexPage() @@ -341,8 +349,12 @@ }) }, methods: { - change(){ - console.log(this.value,'value') + // 跳转公告详情 + goNoticeDetail() { + console.log('notice哇') + uni.navigateTo({ + url: '/pages/notice/index' + }) }, // 搜索 searchSubmitValue: function() { @@ -356,32 +368,32 @@ }); }, // 加入购物车 - addCart(id){ + addCart(id) { getSpuDetail(id).then(res => { - console.log(res.data.productValue.默认.id,'1111111111111') + console.log(res.data.productValue.默认.id, '1111111111111') let unique = res.data.productValue.默认.id postCartAdd({ productId: id, productAttrUnique: unique, cartNum: 1 - }).then(res=> { + }).then(res => { console.log('加入成功') }) }) }, - go(){ - console.log(this.productList,'------') + go() { + console.log(this.productList, '------') }, // 获取banner和userInfo - getBanners(){ + getBanners() { // console.log(this.$store.tenantId,'tenantId') - getBanner().then(res=>{ + getBanner().then(res => { this.bannerList = res.data.list[0] - console.log(this.bannerList,'banner') + console.log(this.bannerList, 'banner') }) - console.log(this.userInfo.userId,'userInfo111111') + console.log(this.userInfo.userId, 'userInfo111111') }, getCoupon: function(id, index) { @@ -497,12 +509,12 @@ }) }, // 首页商品 - getIndexPage(){ + getIndexPage() { let that = this - productPage().then(res=>{ - console.log(res.data.list,'商品列表') + productPage().then(res => { + console.log(res.data.list, '商品列表') this.productList = this.productList.concat(res.data.list) - console.log(this.productList,'---------') + console.log(this.productList, '---------') }) }, getcouponList() { @@ -650,9 +662,9 @@ // 获取H5 搜索框高度 let appSearchH = uni.createSelectorQuery().select(".serch-wrapper"); appSearchH.boundingClientRect(function(data) { - if(data){ - self.searchH = data.height - } + if (data) { + self.searchH = data.height + } }).exec() // #endif }, @@ -698,302 +710,338 @@ } diff --git a/yudao-ui-app/pages/notice/index.vue b/yudao-ui-app/pages/notice/index.vue new file mode 100644 index 000000000..782f84bae --- /dev/null +++ b/yudao-ui-app/pages/notice/index.vue @@ -0,0 +1,50 @@ + + + + +