Merge branch 'feature/mall_product' of http://117.33.142.185:3000/zenghuapei/cyywl_server into feature/mall_product

pull/2/head
js199000126 2023-05-25 17:22:50 +08:00
commit 9cf17dc717
3 changed files with 12 additions and 5 deletions

View File

@ -96,6 +96,7 @@ public class ShippingTemplatesServiceImpl extends ServiceImpl<ShippingTemplatesM
shippingTemplatesDO.setSort(request.getSort());
shippingTemplatesDO.setType(request.getType());
shippingTemplatesDO.setDeleted(false);
shippingTemplatesDO.setNoDelivery(request.getNoDelivery());
shippingTemplatesDO.setAppoint(request.getAppoint());
save(shippingTemplatesDO);
@ -110,7 +111,7 @@ public class ShippingTemplatesServiceImpl extends ServiceImpl<ShippingTemplatesM
}
ShippingTemplatesNoDeliveryRespVO shippingTemplatesNoDeliveryRespVO = request.getShippingTemplatesNoDeliveryRespVOS();
if(!ObjectUtil.isNull(shippingTemplatesNoDeliveryRespVO)){
if(!ObjectUtil.isNull(shippingTemplatesNoDeliveryRespVO) && request.getNoDelivery()){
shippingTemplatesNoDeliveryService.saveAll(shippingTemplatesNoDeliveryRespVO, shippingTemplatesDO.getId());
}
@ -140,7 +141,7 @@ public class ShippingTemplatesServiceImpl extends ServiceImpl<ShippingTemplatesM
}
/**
*
*
* @param id Integer id
* @param request ShippingTemplatesRequest
*/
@ -152,6 +153,7 @@ public class ShippingTemplatesServiceImpl extends ServiceImpl<ShippingTemplatesM
shippingTemplatesDO.setSort(request.getSort());
shippingTemplatesDO.setType(request.getType());
shippingTemplatesDO.setAppoint(request.getAppoint());
shippingTemplatesDO.setNoDelivery(request.getNoDelivery());
updateById(shippingTemplatesDO);
@ -166,7 +168,7 @@ public class ShippingTemplatesServiceImpl extends ServiceImpl<ShippingTemplatesM
List<ShippingTemplatesFreeRespVO> shippingTemplatesFreeRespVOList = request.getShippingTemplatesFreeRespVOList();
if(CollUtil.isNotEmpty(shippingTemplatesFreeRespVOList) && request.getAppoint()){
shippingTemplatesFreeService.saveAll(shippingTemplatesFreeRespVOList, request.getType(), shippingTemplatesDO.getId());
shippingTemplatesFreeService.saveAll(shippingTemplatesFreeRespVOList, request.getType(), id);
}
ShippingTemplatesNoDeliveryRespVO shippingTemplatesNoDeliveryRespVO= request.getShippingTemplatesNoDeliveryRespVOS();
if(ObjectUtil.isNotNull(shippingTemplatesNoDeliveryRespVO)){

View File

@ -1464,7 +1464,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
});
List<PhoneRecordDO> infoDOS = phoneRecordMapper.selectList(Wrappers.<PhoneRecordDO>lambdaQuery()
.eq(PhoneRecordDO::getPhone, user.getMobile())
.eq(PhoneRecordDO::getPhone, request.getUserPhone())
.eq(PhoneRecordDO::getDeleted, 0)
.in(PhoneRecordDO::getRechargeGearId, collect));

View File

@ -95,7 +95,7 @@
@click="jumpPage('/pages/users/user_spread_code/index')">
<u-icon slot="icon" size="45" name="/static/images/user_icon2.png"></u-icon>
</u-cell>
<u-cell title="热线电话" value="023-12948338" :value="tenantInfo.serviceMobile" isLink>
<u-cell title="热线电话" value="023-12948338" :value="tenantInfo.serviceMobile" isLink @click="callPhone">
<u-icon slot="icon" size="45" name="/static/images/user_icon3.png"></u-icon>
</u-cell>
<u-cell title="在线客服" value="8:30-17:30" :value="tenantInfo.serviceTime" isLink @click="kefuClick">
@ -254,6 +254,11 @@
url: url
})
},
callPhone() {
if(this.tenantInfo.serviceMobile){
window.location.href = `tel:${this.tenantInfo.serviceMobile}`
}
},
kefuClick() {
if (this.tenantInfo.wxKfUrl) {
location.href = this.tenantInfo.wxKfUrl