Commit 05fca01850796de17a4864a19d70dd687327aacf
1 parent
2cd8327b
Exists in
master
video/getList status改成了1
Showing
5 changed files
with
50 additions
and
5 deletions
Show diff stats
src/main/java/com/sincere/student/controller/AdminController.java
| @@ -278,9 +278,10 @@ public class AdminController { | @@ -278,9 +278,10 @@ public class AdminController { | ||
| 278 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) | 278 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) |
| 279 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ | 279 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ |
| 280 | BaseDto<Page<Video>> result = new BaseDto<>() ; | 280 | BaseDto<Page<Video>> result = new BaseDto<>() ; |
| 281 | - videoSearchDto.setStatus(0); | 281 | + videoSearchDto.setStatus(1); |
| 282 | Page<Video> page = videoService.getList(videoSearchDto); | 282 | Page<Video> page = videoService.getList(videoSearchDto); |
| 283 | result.setData(page); | 283 | result.setData(page); |
| 284 | + System.out.println("result:"+result.toString()+"----------page:"+page.toString()); | ||
| 284 | return result ; | 285 | return result ; |
| 285 | } | 286 | } |
| 286 | 287 |
src/main/java/com/sincere/student/dto/BaseDto.java
| @@ -40,4 +40,13 @@ public class BaseDto<T> { | @@ -40,4 +40,13 @@ public class BaseDto<T> { | ||
| 40 | public BaseDto() { | 40 | public BaseDto() { |
| 41 | this.success = true ; | 41 | this.success = true ; |
| 42 | } | 42 | } |
| 43 | + | ||
| 44 | + @Override | ||
| 45 | + public String toString() { | ||
| 46 | + return "BaseDto{" + | ||
| 47 | + "success=" + success + | ||
| 48 | + ", message='" + message + '\'' + | ||
| 49 | + ", data=" + data + | ||
| 50 | + '}'; | ||
| 51 | + } | ||
| 43 | } | 52 | } |
src/main/java/com/sincere/student/model/Video.java
| @@ -150,4 +150,24 @@ public class Video { | @@ -150,4 +150,24 @@ public class Video { | ||
| 150 | public void setCreateTime(Date createTime) { | 150 | public void setCreateTime(Date createTime) { |
| 151 | this.createTime = createTime; | 151 | this.createTime = createTime; |
| 152 | } | 152 | } |
| 153 | + | ||
| 154 | + @Override | ||
| 155 | + public String toString() { | ||
| 156 | + return "Video{" + | ||
| 157 | + "id=" + id + | ||
| 158 | + ", universityId=" + universityId + | ||
| 159 | + ", columnType=" + columnType + | ||
| 160 | + ", videoUrl='" + videoUrl + '\'' + | ||
| 161 | + ", videoUrlList=" + videoUrlList + | ||
| 162 | + ", sort=" + sort + | ||
| 163 | + ", createTime=" + createTime + | ||
| 164 | + ", name='" + name + '\'' + | ||
| 165 | + ", code='" + code + '\'' + | ||
| 166 | + ", status=" + status + | ||
| 167 | + ", imgUrl='" + imgUrl + '\'' + | ||
| 168 | + ", duration='" + duration + '\'' + | ||
| 169 | + ", videoName='" + videoName + '\'' + | ||
| 170 | + ", coverUrl='" + coverUrl + '\'' + | ||
| 171 | + '}'; | ||
| 172 | + } | ||
| 153 | } | 173 | } |
src/main/java/com/sincere/student/utils/Page.java
| @@ -52,4 +52,14 @@ public class Page<T> { | @@ -52,4 +52,14 @@ public class Page<T> { | ||
| 52 | public void setList(List<T> list) { | 52 | public void setList(List<T> list) { |
| 53 | this.list = list; | 53 | this.list = list; |
| 54 | } | 54 | } |
| 55 | + | ||
| 56 | + @Override | ||
| 57 | + public String toString() { | ||
| 58 | + return "Page{" + | ||
| 59 | + "page=" + page + | ||
| 60 | + ", pageSize=" + pageSize + | ||
| 61 | + ", count=" + count + | ||
| 62 | + ", list=" + list + | ||
| 63 | + '}'; | ||
| 64 | + } | ||
| 55 | } | 65 | } |
src/main/resources/application.yaml
| @@ -5,10 +5,15 @@ spring: | @@ -5,10 +5,15 @@ spring: | ||
| 5 | application: | 5 | application: |
| 6 | name: student | 6 | name: student |
| 7 | datasource: | 7 | datasource: |
| 8 | - username: SZJXTUSER | ||
| 9 | - password: xst200919 | ||
| 10 | - url: jdbc:sqlserver://60.190.202.57:14333;database=consultative | 8 | + username: recruitS |
| 9 | + password: QWer123$%^ | ||
| 10 | + url: jdbc:sqlserver://47.110.50.251:33419;database=consultative | ||
| 11 | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver | 11 | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| 12 | + | ||
| 13 | +# username: SZJXTUSER | ||
| 14 | +# password: xst200919 | ||
| 15 | +# url: jdbc:sqlserver://60.190.202.57:14333;database=consultative | ||
| 16 | +# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver | ||
| 12 | # cache: | 17 | # cache: |
| 13 | # type: redis | 18 | # type: redis |
| 14 | # redis: | 19 | # redis: |
| @@ -26,4 +31,4 @@ mybatis: | @@ -26,4 +31,4 @@ mybatis: | ||
| 26 | 31 | ||
| 27 | logging: | 32 | logging: |
| 28 | level: | 33 | level: |
| 29 | - com.sincere.student.mapper: debug | ||
| 30 | \ No newline at end of file | 34 | \ No newline at end of file |
| 35 | + com.sincere.student.mapper: info | ||
| 31 | \ No newline at end of file | 36 | \ No newline at end of file |