feat(point-record): add status filter for point record queries
- Change API endpoint from APP_MEMBER to APP_TIK for point record requests - Add status parameter to filter only confirmed records in frontend - Update fetchPointRecords function to pass status: 'confirmed' by default - Modify handleTableChange function signature to accept page and pageSize directly - Add new business type mappings for AI-related services (dify_chat, voice_tts, tikhub_fetch, forecast_rewrite) - Remove redundant reason display and status tag from record items - Add status field to backend query conditions in PointRecordMapper - Include status parameter in PointRecordPageReqVO with proper schema documentation
This commit is contained in:
@@ -29,6 +29,7 @@ public interface PointRecordMapper extends BaseMapperX<PointRecordDO> {
|
||||
.eqIfPresent(PointRecordDO::getBizType, reqVO.getBizType())
|
||||
.eqIfPresent(PointRecordDO::getBizId, reqVO.getBizId())
|
||||
.eqIfPresent(PointRecordDO::getRemark, reqVO.getRemark())
|
||||
.eqIfPresent(PointRecordDO::getStatus, reqVO.getStatus())
|
||||
.betweenIfPresent(PointRecordDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(PointRecordDO::getId));
|
||||
}
|
||||
|
||||
@@ -40,6 +40,9 @@ public class PointRecordPageReqVO extends PageParam {
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "状态:pending-预扣 confirmed-已确认 canceled-已取消")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
Reference in New Issue
Block a user