diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderBaseVO.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderBaseVO.java index b17255741..be86d0bfa 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderBaseVO.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderBaseVO.java @@ -32,7 +32,7 @@ public class RechargeOrderBaseVO { @Schema(description = "用户id", required = true, example = "28969") @NotNull(message = "用户id不能为空") - private Integer uid; + private Long uid; @Schema(description = "用户姓名", required = true, example = "张三") @NotNull(message = "用户姓名不能为空") diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderExportReqVO.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderExportReqVO.java index b2da768c3..b0bc6caac 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderExportReqVO.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderExportReqVO.java @@ -22,7 +22,7 @@ public class RechargeOrderExportReqVO { private Long tenantId; @Schema(description = "用户id", example = "28969") - private Integer uid; + private Long uid; @Schema(description = "用户姓名", example = "张三") private String realName; diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderPageReqVO.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderPageReqVO.java index 42b1cdd75..ccb6d0728 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderPageReqVO.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/admin/recharge/vo/RechargeOrderPageReqVO.java @@ -24,7 +24,7 @@ public class RechargeOrderPageReqVO extends PageParam { private Long tenantId; @Schema(description = "用户id", example = "28969") - private Integer uid; + private Long uid; @Schema(description = "用户姓名", example = "张三") private String realName; diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java index 7addc129a..1e5f9a16c 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/recharge/AppPhoneRecordController.java @@ -37,42 +37,4 @@ import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.E @Slf4j public class AppPhoneRecordController { - @Resource - private PhoneRecordService phoneRecordService; - - - @Value("${phone.query-url}") - private String phoneUrl; - - @Value("${phone.token}") - private String token; - - - @PostMapping("test") - public CommonResult test(@RequestBody List data){ - String result = HttpRequest.post(phoneUrl+"query/createReport") - .header("token",token) - .body(JSONObject.toJSONString(data)) - .execute() - .body(); - JSONObject resultJson = JSONObject.parseObject(result); - log.info("提报新增返回结果{}",JSONObject.toJSONString(resultJson)); - if("0000".equals(resultJson.get("code"))){ - return success(null); - } - return success(null); - } - @PostMapping("delete") - public CommonResult delete(@RequestBody String data){ - String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+data) - .header("token",token) - .execute() - .body(); - JSONObject resultJson = JSONObject.parseObject(result); - log.info("删除返回结果{}",JSONObject.toJSONString(resultJson)); - if("0000".equals(resultJson.get("code"))){ - return success(null); - } - return success(null); - } } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/dataobject/log/StoreProductLog.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/dataobject/log/StoreProductLog.java index 408c9a0fa..99a655e00 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/dataobject/log/StoreProductLog.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/dataobject/log/StoreProductLog.java @@ -43,7 +43,7 @@ public class StoreProductLog implements Serializable { private Integer productId; @Schema(description= "用户ID") - private Integer uid; + private Long uid; @Schema(description= "是否浏览") private Boolean visitNum; diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/order/StoreOrderMapper.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/order/StoreOrderMapper.java index ee135c8dd..610a740a8 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/order/StoreOrderMapper.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/dal/mysql/order/StoreOrderMapper.java @@ -70,5 +70,5 @@ public interface StoreOrderMapper extends BaseMapperX { * @param uid 用户uid * @param spreadId 推广人uid */ - OrderBrokerageData getBrokerageData(@Param("uid") Integer uid, @Param("spreadId") Integer spreadId); + OrderBrokerageData getBrokerageData(@Param("uid") Long uid, @Param("spreadId") Integer spreadId); } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java index 02881591f..d190d0f01 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java @@ -66,7 +66,7 @@ public interface StoreOrderService extends IService { * @param pageParamRequest 分页参数 * @return 订单结果列表 */ - List getUserOrderList(Integer uid, Integer status, PageParam pageParamRequest); + List getUserOrderList(Long uid, Integer status, PageParam pageParamRequest); /** * 创建订单 * @param storeOrder 订单参数 @@ -141,21 +141,21 @@ public interface StoreOrderService extends IService { * @param seckillId 秒杀商品id * @return 用户当天的秒杀商品订单数量 */ - List getUserCurrentDaySecKillOrders(Integer uid, Integer seckillId); + List getUserCurrentDaySecKillOrders(Long uid, Integer seckillId); /** * 获取用户当前的砍价订单 * @param uid 用户uid * @return 用户当前的砍价订单 */ - List getUserCurrentBargainOrders(Integer uid, Integer bargainId); + List getUserCurrentBargainOrders(Long uid, Integer bargainId); /** * 获取用户当前的拼团订单 * @param uid 用户uid * @return 用户当前的拼团订单 */ - List getUserCurrentCombinationOrders(Integer uid, Integer combinationId); + List getUserCurrentCombinationOrders(Long uid, Integer combinationId); StoreOrder getByOderId(String orderId); @@ -206,7 +206,7 @@ public interface StoreOrderService extends IService { * @param uid 用户uid * @return Integer */ - Long getOrderCountByUid(Integer uid); + Long getOrderCountByUid(Long uid); /** * 获取用户总消费金额 @@ -220,7 +220,7 @@ public interface StoreOrderService extends IService { * @param uid 用户uid * @return Integer */ - Long getOrderCountByUidAndDate(Integer uid, String date); + Long getOrderCountByUidAndDate(Long uid, String date); /** * 获取用户消费金额(时间) @@ -380,7 +380,7 @@ public interface StoreOrderService extends IService { * @param uid 用户uid * @param spreadId 推广人uid */ - OrderBrokerageData getBrokerageData(Integer uid, Integer spreadId); + OrderBrokerageData getBrokerageData(Long uid, Integer spreadId); /** * 会员充值 diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java index a3bc287b3..700953576 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java @@ -231,7 +231,7 @@ public class StoreOrderServiceImpl extends ServiceImpl getUserOrderList(Integer uid, Integer status, PageParam pageParamRequest) { + public List getUserOrderList(Long uid, Integer status, PageParam pageParamRequest) { PageHelper.startPage(pageParamRequest.getPageNo(), pageParamRequest.getPageSize()); LambdaQueryWrapper lqw = new LambdaQueryWrapper<>(); orderUtil.statusApiByWhere(lqw, status); @@ -541,7 +541,7 @@ public class StoreOrderServiceImpl extends ServiceImpl getUserCurrentDaySecKillOrders(Integer uid, Integer seckillId) { + public List getUserCurrentDaySecKillOrders(Long uid, Integer seckillId) { String dayStart = DateUtils.nowDateTime(Constants.DATE_FORMAT_START); String dayEnd = DateUtils.nowDateTime(Constants.DATE_FORMAT_END); LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); @@ -560,7 +560,7 @@ public class StoreOrderServiceImpl extends ServiceImpl getUserCurrentBargainOrders(Integer uid, Integer bargainId) { + public List getUserCurrentBargainOrders(Long uid, Integer bargainId) { LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); lqw.eq(StoreOrder::getUid, uid); lqw.eq(StoreOrder::getBargainId, bargainId); @@ -576,7 +576,7 @@ public class StoreOrderServiceImpl extends ServiceImpl getUserCurrentCombinationOrders(Integer uid, Integer combinationId) { + public List getUserCurrentCombinationOrders(Long uid, Integer combinationId) { LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); lqw.eq(StoreOrder::getUid, uid); lqw.eq(StoreOrder::getCombinationId, combinationId); @@ -724,7 +724,7 @@ public class StoreOrderServiceImpl extends ServiceImpl lqw = Wrappers.lambdaQuery(); lqw.eq(StoreOrder::getPaid, true); lqw.eq(StoreOrder::getIsDel, false); @@ -759,7 +759,7 @@ public class StoreOrderServiceImpl extends ServiceImpl lqw = Wrappers.lambdaQuery(); lqw.eq(StoreOrder::getPaid, true); lqw.eq(StoreOrder::getIsDel, false); @@ -1165,7 +1165,7 @@ public class StoreOrderServiceImpl extends ServiceImpl lqr = Wrappers.lambdaQuery(); lqr.eq(StoreProductRelation::getUid, uid); lqr.eq(StoreProductRelation::getType,"collect"); 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 31a4a8431..b82a15ce5 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 @@ -3,6 +3,22 @@ diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesNoDeliveryMapper.xml b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesNoDeliveryMapper.xml index c1b34165a..6b042f88e 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesNoDeliveryMapper.xml +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/express/ShippingTemplatesNoDeliveryMapper.xml @@ -3,6 +3,22 @@ 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 190b3e935..1aefe98c4 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 @@ -3,6 +3,22 @@ diff --git a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue index 4b520501f..c32814375 100644 --- a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue +++ b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue @@ -375,7 +375,7 @@ export default { logistics.shippingRegion({ tempId: this.tempId }).then(res => { res.data.forEach((item, index) => { // item.title = JSON.parse(item.title) - item.city_ids = item.title + item.city_ids = JSON.parse(item.title) }) this.ruleForm.region = res.data }) @@ -385,10 +385,9 @@ export default { logistics.shippingFree({ tempId: this.tempId }).then(res => { res.data.forEach((item, index) => { // item.title = JSON.parse(item.title) - item.city_ids = item.cityId.split(',') + item.city_ids = JSON.parse(item.title) }) this.ruleForm.free = res.data - console.log(this.ruleForm.free ) }) }, @@ -462,9 +461,11 @@ export default { } this.ruleForm.region.forEach((el, index) => { if(el.city_ids.length > 0){ - el.cityId = JSON.stringify(el.city_ids) + el.title = JSON.stringify(el.city_ids) + el.cityId = el.city_ids.join(",") }else{ el.cityId = 'all' + el.title = 0 } }) param.shippingTemplatesRegionRespVOList = this.ruleForm.region @@ -484,9 +485,11 @@ export default { if (this.ruleForm.appoint) { this.ruleForm.free.forEach((el, index) => { if(el.city_ids.length > 0){ - el.cityId = JSON.stringify(el.city_ids) + el.title = JSON.stringify(el.city_ids) + el.cityId = el.city_ids.join(",") }else{ el.cityId = 'all' + el.title = 0 } }) param.shippingTemplatesFreeRespVOList = this.ruleForm.free diff --git a/yudao-ui-app/pages/member_back/index.vue b/yudao-ui-app/pages/member_back/index.vue index 188fd6127..6eded3d16 100644 --- a/yudao-ui-app/pages/member_back/index.vue +++ b/yudao-ui-app/pages/member_back/index.vue @@ -1,30 +1,16 @@ @@ -81,15 +67,15 @@ list: [ { img:'../../static/images/member240.png', - name:'360' + name:360 }, { img:'../../static/images/member400.png', - name:'600' + name:600 }, { img:'../../static/images/member960.png', - name:'900' + name:900 }, ], vipData:['普通会员','中级会员','高级会员'], @@ -99,24 +85,8 @@ }; }, computed: mapGetters(['userInfo']), - async onLoad() { - const resful = await memberGradeInfo() - if(resful.data.some((item) => !!parseInt(item.isExist))){ - uni.setTabBarItem({ - index: 0, - pagePath: '/pages/member_equity/index' - }) - }else{ - uni.setTabBarItem({ - index: 0, - pagePath: '/pages/member_application/index' - }) - uni.switchTab({ - url:'/pages/member_application/index' - }) - } - const res = await memberHeadInfo() - this.memberDetail = res.data + async onLoad(options) { + this.memberDetail = options const equity = await query(this.userInfo.mobile) this.equityData = equity.data }, @@ -153,7 +123,7 @@