|
@@ -218,19 +218,4 @@ public class SecondTradeRecordController {
|
|
|
log.info("SecondTradeRecordController.locationShareHas?otherUserId={}", otherUserId);
|
|
log.info("SecondTradeRecordController.locationShareHas?otherUserId={}", otherUserId);
|
|
|
return R.data(secondTradeRecordService.locationShareHas(otherUserId));
|
|
return R.data(secondTradeRecordService.locationShareHas(otherUserId));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- @ApiOperation("买家逻辑删除交易记录")
|
|
|
|
|
- @ApiOperationSupport(order = 16)
|
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
|
- @ApiImplicitParam(name = "userId", value = "当前用户id(对应 buyer_id)", dataType = "Integer", paramType = "query", required = true),
|
|
|
|
|
- @ApiImplicitParam(name = "tradeId", value = "交易记录主键id(second_trade_record.id)", dataType = "Integer", paramType = "query", required = true)
|
|
|
|
|
- })
|
|
|
|
|
- @GetMapping("/logicDeleteByBuyer")
|
|
|
|
|
- public R<Boolean> logicDeleteByBuyer(@RequestParam Integer userId, @RequestParam Integer tradeId) {
|
|
|
|
|
- log.info("SecondTradeRecordController.logicDeleteByBuyer?userId={}, tradeId={}", userId, tradeId);
|
|
|
|
|
- if (secondTradeRecordService.logicDeleteByBuyerAndTradeId(userId, tradeId)) {
|
|
|
|
|
- return R.success("删除成功");
|
|
|
|
|
- }
|
|
|
|
|
- return R.fail("记录不存在、已删除,或参数无效");
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|