订单用户id

pull/16/head
perry 2023-05-24 20:05:05 +08:00
parent ca79db833d
commit 65138e37a5
10 changed files with 21 additions and 59 deletions

View File

@ -32,7 +32,7 @@ public class RechargeOrderBaseVO {
@Schema(description = "用户id", required = true, example = "28969") @Schema(description = "用户id", required = true, example = "28969")
@NotNull(message = "用户id不能为空") @NotNull(message = "用户id不能为空")
private Integer uid; private Long uid;
@Schema(description = "用户姓名", required = true, example = "张三") @Schema(description = "用户姓名", required = true, example = "张三")
@NotNull(message = "用户姓名不能为空") @NotNull(message = "用户姓名不能为空")

View File

@ -22,7 +22,7 @@ public class RechargeOrderExportReqVO {
private Long tenantId; private Long tenantId;
@Schema(description = "用户id", example = "28969") @Schema(description = "用户id", example = "28969")
private Integer uid; private Long uid;
@Schema(description = "用户姓名", example = "张三") @Schema(description = "用户姓名", example = "张三")
private String realName; private String realName;

View File

@ -24,7 +24,7 @@ public class RechargeOrderPageReqVO extends PageParam {
private Long tenantId; private Long tenantId;
@Schema(description = "用户id", example = "28969") @Schema(description = "用户id", example = "28969")
private Integer uid; private Long uid;
@Schema(description = "用户姓名", example = "张三") @Schema(description = "用户姓名", example = "张三")
private String realName; private String realName;

View File

@ -37,42 +37,4 @@ import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.E
@Slf4j @Slf4j
public class AppPhoneRecordController { public class AppPhoneRecordController {
@Resource
private PhoneRecordService phoneRecordService;
@Value("${phone.query-url}")
private String phoneUrl;
@Value("${phone.token}")
private String token;
@PostMapping("test")
public CommonResult<Boolean> test(@RequestBody List<PhoneRecordAdd> 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<Boolean> 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);
}
} }

View File

@ -43,7 +43,7 @@ public class StoreProductLog implements Serializable {
private Integer productId; private Integer productId;
@Schema(description= "用户ID") @Schema(description= "用户ID")
private Integer uid; private Long uid;
@Schema(description= "是否浏览") @Schema(description= "是否浏览")
private Boolean visitNum; private Boolean visitNum;

View File

@ -70,5 +70,5 @@ public interface StoreOrderMapper extends BaseMapperX<StoreOrder> {
* @param uid uid * @param uid uid
* @param spreadId 广uid * @param spreadId 广uid
*/ */
OrderBrokerageData getBrokerageData(@Param("uid") Integer uid, @Param("spreadId") Integer spreadId); OrderBrokerageData getBrokerageData(@Param("uid") Long uid, @Param("spreadId") Integer spreadId);
} }

View File

@ -66,7 +66,7 @@ public interface StoreOrderService extends IService<StoreOrder> {
* @param pageParamRequest * @param pageParamRequest
* @return * @return
*/ */
List<StoreOrder> getUserOrderList(Integer uid, Integer status, PageParam pageParamRequest); List<StoreOrder> getUserOrderList(Long uid, Integer status, PageParam pageParamRequest);
/** /**
* *
* @param storeOrder * @param storeOrder
@ -141,21 +141,21 @@ public interface StoreOrderService extends IService<StoreOrder> {
* @param seckillId id * @param seckillId id
* @return * @return
*/ */
List<StoreOrder> getUserCurrentDaySecKillOrders(Integer uid, Integer seckillId); List<StoreOrder> getUserCurrentDaySecKillOrders(Long uid, Integer seckillId);
/** /**
* *
* @param uid uid * @param uid uid
* @return * @return
*/ */
List<StoreOrder> getUserCurrentBargainOrders(Integer uid, Integer bargainId); List<StoreOrder> getUserCurrentBargainOrders(Long uid, Integer bargainId);
/** /**
* *
* @param uid uid * @param uid uid
* @return * @return
*/ */
List<StoreOrder> getUserCurrentCombinationOrders(Integer uid, Integer combinationId); List<StoreOrder> getUserCurrentCombinationOrders(Long uid, Integer combinationId);
StoreOrder getByOderId(String orderId); StoreOrder getByOderId(String orderId);
@ -206,7 +206,7 @@ public interface StoreOrderService extends IService<StoreOrder> {
* @param uid uid * @param uid uid
* @return Integer * @return Integer
*/ */
Long getOrderCountByUid(Integer uid); Long getOrderCountByUid(Long uid);
/** /**
* *
@ -220,7 +220,7 @@ public interface StoreOrderService extends IService<StoreOrder> {
* @param uid uid * @param uid uid
* @return Integer * @return Integer
*/ */
Long getOrderCountByUidAndDate(Integer uid, String date); Long getOrderCountByUidAndDate(Long uid, String date);
/** /**
* () * ()
@ -380,7 +380,7 @@ public interface StoreOrderService extends IService<StoreOrder> {
* @param uid uid * @param uid uid
* @param spreadId 广uid * @param spreadId 广uid
*/ */
OrderBrokerageData getBrokerageData(Integer uid, Integer spreadId); OrderBrokerageData getBrokerageData(Long uid, Integer spreadId);
/** /**
* *

View File

@ -231,7 +231,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return * @return
*/ */
@Override @Override
public List<StoreOrder> getUserOrderList(Integer uid, Integer status, PageParam pageParamRequest) { public List<StoreOrder> getUserOrderList(Long uid, Integer status, PageParam pageParamRequest) {
PageHelper.startPage(pageParamRequest.getPageNo(), pageParamRequest.getPageSize()); PageHelper.startPage(pageParamRequest.getPageNo(), pageParamRequest.getPageSize());
LambdaQueryWrapper<StoreOrder> lqw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<StoreOrder> lqw = new LambdaQueryWrapper<>();
orderUtil.statusApiByWhere(lqw, status); orderUtil.statusApiByWhere(lqw, status);
@ -541,7 +541,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return * @return
*/ */
@Override @Override
public List<StoreOrder> getUserCurrentDaySecKillOrders(Integer uid, Integer seckillId) { public List<StoreOrder> getUserCurrentDaySecKillOrders(Long uid, Integer seckillId) {
String dayStart = DateUtils.nowDateTime(Constants.DATE_FORMAT_START); String dayStart = DateUtils.nowDateTime(Constants.DATE_FORMAT_START);
String dayEnd = DateUtils.nowDateTime(Constants.DATE_FORMAT_END); String dayEnd = DateUtils.nowDateTime(Constants.DATE_FORMAT_END);
LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery();
@ -560,7 +560,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return * @return
*/ */
@Override @Override
public List<StoreOrder> getUserCurrentBargainOrders(Integer uid, Integer bargainId) { public List<StoreOrder> getUserCurrentBargainOrders(Long uid, Integer bargainId) {
LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery();
lqw.eq(StoreOrder::getUid, uid); lqw.eq(StoreOrder::getUid, uid);
lqw.eq(StoreOrder::getBargainId, bargainId); lqw.eq(StoreOrder::getBargainId, bargainId);
@ -576,7 +576,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return * @return
*/ */
@Override @Override
public List<StoreOrder> getUserCurrentCombinationOrders(Integer uid, Integer combinationId) { public List<StoreOrder> getUserCurrentCombinationOrders(Long uid, Integer combinationId) {
LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery();
lqw.eq(StoreOrder::getUid, uid); lqw.eq(StoreOrder::getUid, uid);
lqw.eq(StoreOrder::getCombinationId, combinationId); lqw.eq(StoreOrder::getCombinationId, combinationId);
@ -724,7 +724,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return Integer * @return Integer
*/ */
@Override @Override
public Long getOrderCountByUid(Integer uid) { public Long getOrderCountByUid(Long uid) {
LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery();
lqw.eq(StoreOrder::getPaid, true); lqw.eq(StoreOrder::getPaid, true);
lqw.eq(StoreOrder::getIsDel, false); lqw.eq(StoreOrder::getIsDel, false);
@ -759,7 +759,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @return Integer * @return Integer
*/ */
@Override @Override
public Long getOrderCountByUidAndDate(Integer uid, String date) { public Long getOrderCountByUidAndDate(Long uid, String date) {
LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreOrder> lqw = Wrappers.lambdaQuery();
lqw.eq(StoreOrder::getPaid, true); lqw.eq(StoreOrder::getPaid, true);
lqw.eq(StoreOrder::getIsDel, false); lqw.eq(StoreOrder::getIsDel, false);
@ -1165,7 +1165,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
* @param spreadId 广uid * @param spreadId 广uid
*/ */
@Override @Override
public OrderBrokerageData getBrokerageData(Integer uid, Integer spreadId) { public OrderBrokerageData getBrokerageData(Long uid, Integer spreadId) {
return null; return null;
} }

View File

@ -53,7 +53,7 @@ public interface StoreProductRelationService extends IService<StoreProductRelati
* @param uid uid * @param uid uid
* @return * @return
*/ */
Integer getCollectCountByUid(Integer uid); Integer getCollectCountByUid(Long uid);
/** /**
* Id * Id

View File

@ -159,7 +159,7 @@ public class StoreProductRelationServiceImpl extends ServiceImpl<StoreProductRel
* @return * @return
*/ */
@Override @Override
public Integer getCollectCountByUid(Integer uid) { public Integer getCollectCountByUid(Long uid) {
LambdaQueryWrapper<StoreProductRelation> lqr = Wrappers.lambdaQuery(); LambdaQueryWrapper<StoreProductRelation> lqr = Wrappers.lambdaQuery();
lqr.eq(StoreProductRelation::getUid, uid); lqr.eq(StoreProductRelation::getUid, uid);
lqr.eq(StoreProductRelation::getType,"collect"); lqr.eq(StoreProductRelation::getType,"collect");