init src
This commit is contained in:
@@ -0,0 +1,111 @@
|
|||||||
|
package com.fly.boot.biz.ai.controller;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.fly.boot.biz.ai.service.IAiScenicService;
|
||||||
|
import com.fly.boot.biz.ai.service.IAiSysareaService;
|
||||||
|
import com.fly.boot.biz.ai.vo.*;
|
||||||
|
import com.fly.boot.common.constant.AiAudioConstant;
|
||||||
|
import com.fly.boot.common.result.Result;
|
||||||
|
import com.fly.boot.core.annotation.SecurityParameter;
|
||||||
|
import com.fly.boot.biz.customer.service.UserBaseService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
@RequestMapping("/ai-audio")
|
||||||
|
public class AiAudioController{
|
||||||
|
|
||||||
|
|
||||||
|
private final IAiScenicService aiScenicService;
|
||||||
|
|
||||||
|
|
||||||
|
private final IAiSysareaService aiSysareaService;
|
||||||
|
|
||||||
|
private final UserBaseService userBaseService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地区列表 有景区的地区
|
||||||
|
*/
|
||||||
|
@SecurityParameter(inDecode = false)
|
||||||
|
@GetMapping("/area-list")
|
||||||
|
public Result<List<AiSysareaRespVO>> areaList(AiSysareaReqVO sysareaReqVO) {
|
||||||
|
List<AiSysareaRespVO> areaListByPid = aiSysareaService.selectAiSysarea(sysareaReqVO);
|
||||||
|
return Result.data(areaListByPid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 依据经纬度,升序排序地区城市
|
||||||
|
*/
|
||||||
|
@SecurityParameter(inDecode = false)
|
||||||
|
@GetMapping("/area-near-city")
|
||||||
|
public Result<List<AiSysareaRespVO>> areaNearCity(AiSysareaReqVO sysareaReqVO) {
|
||||||
|
if (sysareaReqVO.getLatitude() == null || sysareaReqVO.getLongitude() == null) {
|
||||||
|
return Result.failure("未找到经纬度信息");
|
||||||
|
}
|
||||||
|
List<AiSysareaRespVO> vos = aiSysareaService.areaNearCity(sysareaReqVO);
|
||||||
|
return Result.data(vos);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 依据pid 获取 地区列表
|
||||||
|
*/
|
||||||
|
@SecurityParameter(inDecode = false)
|
||||||
|
@GetMapping("/area-by-pid")
|
||||||
|
public Result<List<AiSysareaRespVO>> areaByPidList(String pid) {
|
||||||
|
if (StrUtil.isEmpty(pid)) {
|
||||||
|
pid = AiAudioConstant.AREA_CN;
|
||||||
|
}
|
||||||
|
List<AiSysareaRespVO> areaListByPid = aiSysareaService.selectByPid(pid);
|
||||||
|
return Result.data(areaListByPid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 景区列表 搜索
|
||||||
|
* @param aiScenicPageReqVO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@SecurityParameter(inDecode = false)
|
||||||
|
@GetMapping("/ai-scenic-page")
|
||||||
|
public Result<Page<AiScenicVO>> aiScenicPage(AiScenicPageReqVO aiScenicPageReqVO) {
|
||||||
|
if(aiScenicPageReqVO.getPageSize() == null){
|
||||||
|
aiScenicPageReqVO.setPageSize(10);
|
||||||
|
}
|
||||||
|
if (aiScenicPageReqVO.getCurrentPage() == null){
|
||||||
|
aiScenicPageReqVO.setCurrentPage(1);
|
||||||
|
}
|
||||||
|
// Long userId = StpUtil.getLoginIdAsLong();
|
||||||
|
// //非空校验
|
||||||
|
// if (null == userId) {
|
||||||
|
// return Result.failure("未找到用户信息");
|
||||||
|
// }
|
||||||
|
// UserBase user = userBaseService.getById(userId);
|
||||||
|
return Result.data(aiScenicService.selectPage(aiScenicPageReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 景区景点详细
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@SecurityParameter(inDecode = false)
|
||||||
|
@GetMapping("/scenicDetail")
|
||||||
|
public Result<AiScenicDetailVO> scenicDetail(@RequestParam("id") String id){
|
||||||
|
return Result.data(aiScenicService.scenicDetail(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
30
src/main/java/com/fly/boot/biz/ai/convert/AiConverter.java
Normal file
30
src/main/java/com/fly/boot/biz/ai/convert/AiConverter.java
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
package com.fly.boot.biz.ai.convert;
|
||||||
|
|
||||||
|
import com.fly.boot.biz.ai.entity.AiAudioEntity;
|
||||||
|
import com.fly.boot.biz.ai.entity.AiScenicEntity;
|
||||||
|
import com.fly.boot.biz.ai.entity.AiSysareaEntity;
|
||||||
|
import com.fly.boot.biz.ai.vo.AiAudioVO;
|
||||||
|
import com.fly.boot.biz.ai.vo.AiScenicDetailVO;
|
||||||
|
import com.fly.boot.biz.ai.vo.AiScenicVO;
|
||||||
|
import com.fly.boot.biz.ai.vo.AiSysareaRespVO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mapstruct 转换
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface AiConverter {
|
||||||
|
|
||||||
|
AiConverter INSTANCE = Mappers.getMapper(AiConverter.class);
|
||||||
|
|
||||||
|
AiSysareaRespVO convertToVO(AiSysareaEntity entity);
|
||||||
|
AiScenicDetailVO convertToVO(AiScenicEntity entity);
|
||||||
|
AiAudioVO convertToVO(AiAudioEntity entity);
|
||||||
|
|
||||||
|
List<AiSysareaRespVO> convertToVOList(List<AiSysareaEntity> list);
|
||||||
|
List<AiScenicVO> convertToScenicVOList(List<AiScenicEntity> list);
|
||||||
|
|
||||||
|
}
|
||||||
34
src/main/java/com/fly/boot/biz/ai/dto/AiAudioDTO.java
Normal file
34
src/main/java/com/fly/boot/biz/ai/dto/AiAudioDTO.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
*
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
* this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
* Author: Chill 庄骞 (smallchill@163.com)
|
||||||
|
*/
|
||||||
|
package com.fly.boot.biz.ai.dto;
|
||||||
|
|
||||||
|
import com.fly.boot.biz.ai.entity.AiAudioEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频表 数据传输对象实体类
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class AiAudioDTO extends AiAudioEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
||||||
148
src/main/java/com/fly/boot/biz/ai/entity/AiAudioEntity.java
Normal file
148
src/main/java/com/fly/boot/biz/ai/entity/AiAudioEntity.java
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
package com.fly.boot.biz.ai.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.fly.boot.common.entity.BaseEntity;
|
||||||
|
////
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频表 实体类
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ai_audio")
|
||||||
|
//
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class AiAudioEntity extends BaseEntity {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
//
|
||||||
|
@TableId(value = "id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 音频名称
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioName;
|
||||||
|
/**
|
||||||
|
* 音频地址
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioUrl;
|
||||||
|
/**
|
||||||
|
* 音频大小
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioSize;
|
||||||
|
/**
|
||||||
|
* 音频图片
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioImage;
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Long userId;
|
||||||
|
/**
|
||||||
|
* 音频价格
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioPrice;
|
||||||
|
/**
|
||||||
|
* 音频语种【1中文 2英文 3日语(部分)】
|
||||||
|
*/
|
||||||
|
//】")
|
||||||
|
private Long audioLanguage;
|
||||||
|
/**
|
||||||
|
* 0:隐藏 1:显示 审核 另一张表 前端只需判断该字段
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioIsShow;
|
||||||
|
/**
|
||||||
|
* 音频时长
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioLong;
|
||||||
|
/**
|
||||||
|
* 景点id
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Long scenicId;
|
||||||
|
/**
|
||||||
|
* 专辑id (如果后台上传音频默认值 0 )
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer albumId;
|
||||||
|
/**
|
||||||
|
* 表示 官方排序字段 用话创建 默认值 官方创建值为 999
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioType;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Date operatorTime;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String createName;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String operatorName;
|
||||||
|
/**
|
||||||
|
* 排序因子,每天跑服务复制
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer sortingFactor;
|
||||||
|
/**
|
||||||
|
* 音频来源:5巡洋舰启航待录制音频(语音待录制收费的) 4 注册用户 (UGC)3 起航用户 2采集人 1 链景主播
|
||||||
|
*/
|
||||||
|
// 4 注册用户 (UGC)3 起航用户 2采集人 1 链景主播 ")
|
||||||
|
private Integer audioSource;
|
||||||
|
/**
|
||||||
|
* 排序字段
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioOrder;
|
||||||
|
/**
|
||||||
|
* 上一状态(1.待审核 2.已上架 3.已下架 4.修改上传)默认1 0代表空
|
||||||
|
*/
|
||||||
|
//默认1 0代表空")
|
||||||
|
private Integer previousStatus;
|
||||||
|
/**
|
||||||
|
* 当前状态(1.待审核 2.已上架 3.已下架 4.修改上传)默认1
|
||||||
|
*/
|
||||||
|
//默认1")
|
||||||
|
private Integer currentState;
|
||||||
|
/**
|
||||||
|
* 是否可试听(1.可试听 2.不可试听) 默认2
|
||||||
|
*/
|
||||||
|
// 默认2")
|
||||||
|
private Integer isAudition;
|
||||||
|
/**
|
||||||
|
* 背景音乐表ID 默认0 0代表空
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer backgroundMusicId;
|
||||||
|
/**
|
||||||
|
* 下架原因
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String reasonUndercarriage;
|
||||||
|
|
||||||
|
}
|
||||||
34
src/main/java/com/fly/boot/biz/ai/mapper/AiAudioMapper.java
Normal file
34
src/main/java/com/fly/boot/biz/ai/mapper/AiAudioMapper.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
*
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
* this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
* Author: Chill 庄骞 (smallchill@163.com)
|
||||||
|
*/
|
||||||
|
package com.fly.boot.biz.ai.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.fly.boot.biz.ai.entity.AiAudioEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频表 Mapper 接口
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface AiAudioMapper extends BaseMapper<AiAudioEntity> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
11
src/main/java/com/fly/boot/biz/ai/mapper/AiAudioMapper.xml
Normal file
11
src/main/java/com/fly/boot/biz/ai/mapper/AiAudioMapper.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.fly.boot.biz.ai.mapper.AiAudioMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="aiAudioResultMap" type="com.fly.boot.biz.ai.entity.AiAudioEntity">
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
*
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
* this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
* Author: Chill 庄骞 (smallchill@163.com)
|
||||||
|
*/
|
||||||
|
package com.fly.boot.biz.ai.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.fly.boot.biz.ai.convert.AiConverter;
|
||||||
|
import com.fly.boot.biz.ai.entity.AiAudioEntity;
|
||||||
|
import com.fly.boot.biz.ai.mapper.AiAudioMapper;
|
||||||
|
import com.fly.boot.biz.ai.service.IAiAudioService;
|
||||||
|
import com.fly.boot.biz.ai.vo.AiAudioVO;
|
||||||
|
import com.fly.boot.common.constant.AiAudioConstant;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频表 服务实现类
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AiAudioServiceImpl extends ServiceImpl<AiAudioMapper, AiAudioEntity> implements IAiAudioService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Long, List<AiAudioVO>> findByScenicId(List<Long> scenicIds) {
|
||||||
|
LambdaQueryWrapper<AiAudioEntity> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
queryWrapper.eq(AiAudioEntity::getIsDeleted, "0");
|
||||||
|
queryWrapper.in(AiAudioEntity::getScenicId, scenicIds);
|
||||||
|
queryWrapper.eq(AiAudioEntity::getCurrentState, AiAudioConstant.CurrentState.ON_SHELF.getValue());
|
||||||
|
queryWrapper.eq(AiAudioEntity::getAudioIsShow, AiAudioConstant.ShowStatus.SHOW.getValue());
|
||||||
|
List<AiAudioEntity> aiAudioEntities = this.baseMapper.selectList(queryWrapper);
|
||||||
|
return aiAudioEntities.stream()
|
||||||
|
.map(AiConverter.INSTANCE::convertToVO)
|
||||||
|
.collect(Collectors.groupingBy(AiAudioVO::getScenicId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AiAudioVO> findByScenicId(Long scenicId) {
|
||||||
|
LambdaQueryWrapper<AiAudioEntity> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
queryWrapper.eq(AiAudioEntity::getIsDeleted, "0");
|
||||||
|
queryWrapper.eq(AiAudioEntity::getScenicId, scenicId);
|
||||||
|
queryWrapper.eq(AiAudioEntity::getCurrentState, AiAudioConstant.CurrentState.ON_SHELF.getValue());
|
||||||
|
queryWrapper.eq(AiAudioEntity::getAudioIsShow, AiAudioConstant.ShowStatus.SHOW.getValue());
|
||||||
|
List<AiAudioEntity> aiAudioEntities = this.baseMapper.selectList(queryWrapper);
|
||||||
|
return aiAudioEntities.stream()
|
||||||
|
.map(AiConverter.INSTANCE::convertToVO)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
143
src/main/java/com/fly/boot/biz/ai/vo/AiAudioVO.java
Normal file
143
src/main/java/com/fly/boot/biz/ai/vo/AiAudioVO.java
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
|
||||||
|
package com.fly.boot.biz.ai.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
////
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ai语音解说音频表 视图实体类
|
||||||
|
*
|
||||||
|
* @author jinghan
|
||||||
|
* @since 2024-04-10
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
@Data
|
||||||
|
public class AiAudioVO {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
//
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 音频名称
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioName;
|
||||||
|
/**
|
||||||
|
* 音频地址
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioUrl;
|
||||||
|
/**
|
||||||
|
* 音频大小
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioSize;
|
||||||
|
/**
|
||||||
|
* 音频图片
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String audioImage;
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Long userId;
|
||||||
|
/**
|
||||||
|
* 音频价格
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioPrice;
|
||||||
|
/**
|
||||||
|
* 音频语种【1中文 2英文 3日语(部分)】
|
||||||
|
*/
|
||||||
|
//】")
|
||||||
|
private Long audioLanguage;
|
||||||
|
/**
|
||||||
|
* 0:隐藏 1:显示 审核 另一张表 前端只需判断该字段
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioIsShow;
|
||||||
|
/**
|
||||||
|
* 音频时长
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioLong;
|
||||||
|
/**
|
||||||
|
* 景点id
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Long scenicId;
|
||||||
|
/**
|
||||||
|
* 专辑id (如果后台上传音频默认值 0 )
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer albumId;
|
||||||
|
/**
|
||||||
|
* 表示 官方排序字段 用话创建 默认值 官方创建值为 999
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioType;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Date operatorTime;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String createName;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String operatorName;
|
||||||
|
/**
|
||||||
|
* 排序因子,每天跑服务复制
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer sortingFactor;
|
||||||
|
/**
|
||||||
|
* 音频来源:5巡洋舰启航待录制音频(语音待录制收费的) 4 注册用户 (UGC)3 起航用户 2采集人 1 链景主播
|
||||||
|
*/
|
||||||
|
// 4 注册用户 (UGC)3 起航用户 2采集人 1 链景主播 ")
|
||||||
|
private Integer audioSource;
|
||||||
|
/**
|
||||||
|
* 排序字段
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer audioOrder;
|
||||||
|
/**
|
||||||
|
* 上一状态(1.待审核 2.已上架 3.已下架 4.修改上传)默认1 0代表空
|
||||||
|
*/
|
||||||
|
//默认1 0代表空")
|
||||||
|
private Integer previousStatus;
|
||||||
|
/**
|
||||||
|
* 当前状态(1.待审核 2.已上架 3.已下架 4.修改上传)默认1
|
||||||
|
*/
|
||||||
|
//默认1")
|
||||||
|
private Integer currentState;
|
||||||
|
/**
|
||||||
|
* 是否可试听(1.可试听 2.不可试听) 默认2
|
||||||
|
*/
|
||||||
|
// 默认2")
|
||||||
|
private Integer isAudition;
|
||||||
|
/**
|
||||||
|
* 背景音乐表ID 默认0 0代表空
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer backgroundMusicId;
|
||||||
|
/**
|
||||||
|
* 下架原因
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String reasonUndercarriage;
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package com.fly.boot.biz.mall.constant;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
// 售后状态(1=待审核,2=售后中,3=已完成,5=取消待审核,6=已取消,10-待人工审核 11-待填写物流单号 12 已完成 )
|
||||||
|
@Getter
|
||||||
|
public enum AfterSalesStatusEnums {
|
||||||
|
|
||||||
|
WAIT_AUDIT(1, "待审核"),
|
||||||
|
AUDITING(2, "售后中"),
|
||||||
|
REMOTE_COMPLETED(3, "已完成"),
|
||||||
|
CANCEL_WAIT_AUDIT(5, "取消待审核"),
|
||||||
|
CANCELED(6, "已取消"),
|
||||||
|
LOCAL_WAIT_AUDIT(10, "待人工审核"),
|
||||||
|
LOCAL_WAIT_DELIVERY(11, "待填写物流单号"),
|
||||||
|
LOCAL_COMPLETED(12, "已完成"),
|
||||||
|
LOCAL_WAIT_AUDIT_DELIVERY(13, "待人工审核物流单号"),
|
||||||
|
LOCAL_AUDIT_FALSE(14, "已拒绝"),
|
||||||
|
;
|
||||||
|
|
||||||
|
private final int code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
AfterSalesStatusEnums(int code, String description) {
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 通过code获取对应的枚举值
|
||||||
|
public static AfterSalesStatusEnums getByCode(int code) {
|
||||||
|
for (AfterSalesStatusEnums status : AfterSalesStatusEnums.values()) {
|
||||||
|
if (status.getCode() == code) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Invalid PaymentStatus code: " + code);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.fly.boot.biz.mall.remote.request;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterSalesRequest implements Serializable {
|
||||||
|
|
||||||
|
//接口凭证
|
||||||
|
@JSONField(name = "access_token")
|
||||||
|
private String accessToken;
|
||||||
|
|
||||||
|
//订单商品id
|
||||||
|
@JSONField(name = "order_goods_id")
|
||||||
|
private String orderGoodsId;
|
||||||
|
|
||||||
|
//售后类型,1=未收货退款,2=退货退款,3=换货补发,4=不退货仅退款
|
||||||
|
@JSONField(name = "after_type")
|
||||||
|
private String afterType;
|
||||||
|
|
||||||
|
//售后数量
|
||||||
|
@JSONField(name = "after_num")
|
||||||
|
private String afterNum;
|
||||||
|
|
||||||
|
//售后原因
|
||||||
|
private String explain;
|
||||||
|
|
||||||
|
//系统订单号
|
||||||
|
@JSONField(name = "plat_order_no")
|
||||||
|
private String platOrderNo;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.fly.boot.biz.mall.remote.request;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterStatusRequest implements Serializable {
|
||||||
|
|
||||||
|
//接口凭证
|
||||||
|
@JSONField(name = "access_token")
|
||||||
|
private String accessToken;
|
||||||
|
|
||||||
|
//平台售后单号
|
||||||
|
@JSONField(name = "plat_after_no")
|
||||||
|
private String platAfterNo;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.fly.boot.biz.mall.remote.response;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterSales implements Serializable {
|
||||||
|
|
||||||
|
//系统订单号
|
||||||
|
@JSONField(name = "plat_order_no")
|
||||||
|
private String platOrderNo;
|
||||||
|
|
||||||
|
//订单商品id
|
||||||
|
@JSONField(name = "order_goods_id")
|
||||||
|
private String orderGoodsId;
|
||||||
|
|
||||||
|
//售后单号
|
||||||
|
@JSONField(name = "plat_after_no")
|
||||||
|
private String platAfterNo;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
package com.fly.boot.biz.mall.remote.response;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterStatus implements Serializable {
|
||||||
|
|
||||||
|
//系统订单号
|
||||||
|
@JSONField(name = "plat_order_no")
|
||||||
|
private String platOrderNo;
|
||||||
|
|
||||||
|
//售后单号
|
||||||
|
@JSONField(name = "plat_after_no")
|
||||||
|
private String platAfterNo;
|
||||||
|
|
||||||
|
//售后类型
|
||||||
|
@JSONField(name = "after_type")
|
||||||
|
private Integer afterType;
|
||||||
|
|
||||||
|
//订单商品id
|
||||||
|
@JSONField(name = "order_goods_id")
|
||||||
|
private Integer orderGoodsId;
|
||||||
|
|
||||||
|
//规格编码
|
||||||
|
@JSONField(name = "goods_sku")
|
||||||
|
private String goodsSku;
|
||||||
|
|
||||||
|
//售后数量
|
||||||
|
@JSONField(name = "after_num")
|
||||||
|
private Integer afterNum;
|
||||||
|
|
||||||
|
//预计商品退款金额
|
||||||
|
@JSONField(name = "goods_price")
|
||||||
|
private BigDecimal goodsPrice;
|
||||||
|
|
||||||
|
//预计服务费退款金额
|
||||||
|
@JSONField(name = "service_price")
|
||||||
|
private BigDecimal servicePrice;
|
||||||
|
|
||||||
|
//预计运费退款金额
|
||||||
|
@JSONField(name = "freight_price")
|
||||||
|
private BigDecimal freightPrice;
|
||||||
|
|
||||||
|
//售后状态 1=待审核,2=售后中,3=已完成,4=已关闭,5=取消审核,6=已取消
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
//售后进度
|
||||||
|
private List<Progress> progress;
|
||||||
|
|
||||||
|
//退件收货人姓名
|
||||||
|
private String receiver;
|
||||||
|
|
||||||
|
//退件收货人电话
|
||||||
|
@JSONField(name = "receiver_phone")
|
||||||
|
private String receiverPhone;
|
||||||
|
|
||||||
|
//退件地址
|
||||||
|
@JSONField(name = "receiver_addr")
|
||||||
|
private String receiverAddr;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public static class Progress implements Serializable {
|
||||||
|
|
||||||
|
private String date;
|
||||||
|
|
||||||
|
private String explain;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.fly.boot.biz.mall.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AfterServiceConditionVO implements Serializable {
|
||||||
|
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
|
private List<Node> serviceType;
|
||||||
|
|
||||||
|
private List<Node> pickType;
|
||||||
|
|
||||||
|
private List<Node> packageType;
|
||||||
|
|
||||||
|
private List<Node> returnType;
|
||||||
|
|
||||||
|
private List<Node> reasonsType;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class Node implements Serializable{
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.fly.boot.biz.mall.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterServiceOrderVO implements Serializable {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String image;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private String skuTitle;
|
||||||
|
|
||||||
|
private Integer quantity;
|
||||||
|
|
||||||
|
private Integer paymentType;
|
||||||
|
|
||||||
|
private Integer orderStatus;
|
||||||
|
|
||||||
|
private Integer refundStatus;
|
||||||
|
|
||||||
|
private BigDecimal amount;
|
||||||
|
|
||||||
|
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
||||||
31
src/main/java/com/fly/boot/biz/red/dto/AgreementDTO.java
Normal file
31
src/main/java/com/fly/boot/biz/red/dto/AgreementDTO.java
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
package com.fly.boot.biz.red.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author ganwu
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AgreementDTO {
|
||||||
|
/**
|
||||||
|
* 资源地址
|
||||||
|
*/
|
||||||
|
private String url;
|
||||||
|
/**
|
||||||
|
* 资源名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 是否查看
|
||||||
|
*/
|
||||||
|
private Boolean hasRead;
|
||||||
|
/**
|
||||||
|
* 最新查看时间
|
||||||
|
*/
|
||||||
|
private Integer minReadTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
package com.fly.boot.common.constant;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
public interface AiAudioConstant {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国内
|
||||||
|
*/
|
||||||
|
String AREA_TYPE_CN = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 市级别
|
||||||
|
*/
|
||||||
|
String AREA_LEVEL_CITY = "4";
|
||||||
|
|
||||||
|
String AREA_CN = "100000";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前状态枚举
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
enum CurrentState {
|
||||||
|
WAITING_FOR_APPROVAL(1),
|
||||||
|
ON_SHELF(2),
|
||||||
|
OFF_SHELF(3),
|
||||||
|
UPLOAD_MODIFICATION(4);
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
CurrentState(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
enum ShowStatus {
|
||||||
|
NO_SHOW(0),
|
||||||
|
SHOW(1);
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
ShowStatus(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
package com.fly.boot.modules.order.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.baomidou.mybatisplus.annotation.Version;
|
||||||
|
import com.fly.boot.common.entity.BaseEntity;
|
||||||
|
////
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 售后订单 实体类
|
||||||
|
*
|
||||||
|
* @author 刘玮杰
|
||||||
|
* @since 2023-05-17
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("after_service_order")
|
||||||
|
//
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class AfterServiceOrder extends BaseEntity {
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 订单id
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Long orderId;
|
||||||
|
|
||||||
|
//
|
||||||
|
private Long userId;
|
||||||
|
/**
|
||||||
|
* 供应商订单号
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String supplierOrderSn;
|
||||||
|
/**
|
||||||
|
* 商品编码
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String skuSn;
|
||||||
|
/**
|
||||||
|
* 供应商售后单号
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String supplierAfterServiceSn;
|
||||||
|
/**
|
||||||
|
* 退货原因
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private String reason;
|
||||||
|
/**
|
||||||
|
* 数量数量
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer quantity;
|
||||||
|
/**
|
||||||
|
* 售后类型
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer afterServiceType;
|
||||||
|
/**
|
||||||
|
* 售后状态
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
private Integer orderStatus;
|
||||||
|
|
||||||
|
//
|
||||||
|
private String img;
|
||||||
|
|
||||||
|
@Version
|
||||||
|
private Long version;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.fly.boot.modules.order.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.fly.boot.modules.order.entity.AfterServiceOrder;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface AfterServiceOrderMapper extends BaseMapper<AfterServiceOrder> {
|
||||||
|
List<AfterServiceOrder> selectListByUser(IPage<AfterServiceOrder> page, AfterServiceOrder afterServiceOrder);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.fly.boot.modules.order.mapper.AfterServiceOrderMapper">
|
||||||
|
<select id="selectListByUser" resultType="com.fly.boot.modules.order.entity.AfterServiceOrder">
|
||||||
|
select * from after_service_order where is_deleted = 0 and user_id = #{afterServiceOrder.userId} order by id desc
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.fly.boot.modules.order.request;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import javax.validation.constraints.Min;
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterServiceRequest implements Serializable {
|
||||||
|
@NotNull
|
||||||
|
private Long orderId;
|
||||||
|
//1-退货 2-换货
|
||||||
|
@NotNull
|
||||||
|
private Integer type;
|
||||||
|
@NotNull
|
||||||
|
@Min(value = 1)
|
||||||
|
private Integer quantity;
|
||||||
|
private Long userId;
|
||||||
|
@NotEmpty
|
||||||
|
private String img;
|
||||||
|
@NotEmpty
|
||||||
|
private String reason;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.fly.boot.modules.order.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.fly.boot.modules.order.entity.AfterServiceOrder;
|
||||||
|
|
||||||
|
public interface AfterServiceOrderService extends IService<AfterServiceOrder> {
|
||||||
|
Page<AfterServiceOrder> queryUserOrderList(Page<AfterServiceOrder> page, AfterServiceOrder afterServiceOrder);
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package com.fly.boot.modules.order.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.fly.boot.modules.order.entity.AfterServiceOrder;
|
||||||
|
import com.fly.boot.modules.order.mapper.AfterServiceOrderMapper;
|
||||||
|
import com.fly.boot.modules.order.service.AfterServiceOrderService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class AfterServiceOrderServiceImpl extends ServiceImpl<AfterServiceOrderMapper, AfterServiceOrder> implements AfterServiceOrderService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Page<AfterServiceOrder> queryUserOrderList(Page<AfterServiceOrder> page, AfterServiceOrder afterServiceOrder) {
|
||||||
|
return page.setRecords(baseMapper.selectListByUser(page, afterServiceOrder));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.fly.boot.modules.order.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterServiceOrderVO implements Serializable {
|
||||||
|
private Long id;
|
||||||
|
private Long userOrderId;
|
||||||
|
private String reason;
|
||||||
|
private String coverUrl;
|
||||||
|
private String title;
|
||||||
|
private BigDecimal price;
|
||||||
|
private Integer afterServiceQuantity;
|
||||||
|
private Integer userOrderQuantity;
|
||||||
|
private Integer afterServiceType;
|
||||||
|
private Integer paymentType;
|
||||||
|
private BigDecimal actualAmount;
|
||||||
|
private Integer userOrderStatus;
|
||||||
|
private Integer orderStatus;
|
||||||
|
private String img;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.fly.boot.modules.remote.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class AfterServiceVO implements Serializable {
|
||||||
|
private String tradeNo;
|
||||||
|
private Integer type;
|
||||||
|
private Integer quantity;
|
||||||
|
private String reason;
|
||||||
|
private String skuSn;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user