zmy02
parent
9b30e365ca
commit
e823462f26
|
@ -74,6 +74,10 @@
|
|||
<groupId>doctor</groupId>
|
||||
<artifactId>doctor-common-swagger</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>doctor</groupId>
|
||||
|
|
|
@ -3,10 +3,9 @@ package doctor.controller;
|
|||
|
||||
import doctor.common.core.web.controller.BaseController;
|
||||
import doctor.common.core.web.page.TableDataInfo;
|
||||
import doctor.entity.VideoCategoryEntity;
|
||||
import doctor.entity.VideoEntity;
|
||||
import doctor.domain.entity.VideoCategoryEntity;
|
||||
import doctor.domain.entity.VideoEntity;
|
||||
import doctor.service.HealthUserVideoService;
|
||||
import doctor.system.api.domain.SysUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -22,9 +21,9 @@ public class HealthUserVideoController extends BaseController {
|
|||
private HealthUserVideoService healthUserVideoService;
|
||||
|
||||
@GetMapping("/findVideoCategoryList")
|
||||
public TableDataInfo findVideoCategoryList(VideoCategoryEntity entity){
|
||||
public TableDataInfo findVideoCategoryList(){
|
||||
startPage();
|
||||
List<VideoCategoryEntity> List = healthUserVideoService.findVideoCategoryList(entity);
|
||||
List<VideoCategoryEntity> List = healthUserVideoService.findVideoCategoryList();
|
||||
return getDataTable(List);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package doctor.entity;
|
||||
package doctor.domain.entity;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
@ -1,4 +1,4 @@
|
|||
package doctor.entity;
|
||||
package doctor.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
|
@ -1,4 +1,4 @@
|
|||
package doctor.entity;
|
||||
package doctor.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
|
@ -1,4 +1,4 @@
|
|||
package doctor.entity;
|
||||
package doctor.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -19,6 +19,9 @@ public class VideoEntity {
|
|||
private String abstracts;
|
||||
private String originalUrl;
|
||||
private Integer duration;
|
||||
private Integer whetherCollection;
|
||||
private Integer whetherBuy;
|
||||
private Integer buyNum;
|
||||
private Integer price;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
|
@ -1,15 +1,14 @@
|
|||
package doctor.mapper;
|
||||
|
||||
|
||||
import doctor.entity.VideoCategoryEntity;
|
||||
import doctor.entity.VideoEntity;
|
||||
import doctor.system.api.domain.SysUser;
|
||||
import doctor.domain.entity.VideoCategoryEntity;
|
||||
import doctor.domain.entity.VideoEntity;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HealthUserVideoMapper {
|
||||
List<VideoCategoryEntity> findVideoCategoryList(VideoCategoryEntity entity);
|
||||
List<VideoCategoryEntity> findVideoCategoryList();
|
||||
|
||||
List<VideoEntity> findVideoVoList(@Param("categoryId") Integer categoryId);
|
||||
}
|
||||
|
|
|
@ -2,13 +2,13 @@ package doctor.service;
|
|||
|
||||
|
||||
|
||||
import doctor.entity.VideoCategoryEntity;
|
||||
import doctor.entity.VideoEntity;
|
||||
import doctor.domain.entity.VideoCategoryEntity;
|
||||
import doctor.domain.entity.VideoEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HealthUserVideoService {
|
||||
List<VideoCategoryEntity> findVideoCategoryList(VideoCategoryEntity entity);
|
||||
List<VideoCategoryEntity> findVideoCategoryList();
|
||||
|
||||
List<VideoEntity> findVideoVoList(Integer categoryId);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package doctor.service.impl;
|
||||
|
||||
|
||||
import doctor.entity.VideoCategoryEntity;
|
||||
import doctor.entity.VideoEntity;
|
||||
import doctor.domain.entity.VideoCategoryEntity;
|
||||
import doctor.domain.entity.VideoEntity;
|
||||
import doctor.mapper.HealthUserVideoMapper;
|
||||
import doctor.service.HealthUserVideoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -16,8 +16,8 @@ public class HealthUserVideoServiceImpl implements HealthUserVideoService {
|
|||
private HealthUserVideoMapper healthUserVideoMapper;
|
||||
|
||||
@Override
|
||||
public List<VideoCategoryEntity> findVideoCategoryList(VideoCategoryEntity entity) {
|
||||
return healthUserVideoMapper.findVideoCategoryList(entity);
|
||||
public List<VideoCategoryEntity> findVideoCategoryList() {
|
||||
return healthUserVideoMapper.findVideoCategoryList();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<mapper namespace="doctor.mapper.HealthUserVideoMapper">
|
||||
|
||||
|
||||
<select id="findVideoCategoryList" resultType="doctor.entity.VideoCategoryEntity">
|
||||
<select id="findVideoCategoryList" resultType="doctor.domain.entity.VideoCategoryEntity">
|
||||
select * from video_category
|
||||
</select>
|
||||
<select id="findVideoVoList" resultType="doctor.entity.VideoEntity">
|
||||
<select id="findVideoVoList" resultType="doctor.domain.entity.VideoEntity">
|
||||
select * from video where category_id=#{categoryId}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue