From 32ccaab4c3c4fb5a8d28af7eb2a041dfe06f0c04 Mon Sep 17 00:00:00 2001
From: wanghb <17803890193@163.com>
Date: Mon, 4 Sep 2023 20:05:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E5=90=8D?=
=?UTF-8?q?=E5=AD=97=E9=87=8D=E5=A4=8D=E6=A0=A1=E9=AA=8C=E5=A4=B1=E8=B4=A5?=
=?UTF-8?q?=E5=8F=8A=E5=A4=A7=E8=B5=9B=E4=B8=AD=E5=BF=83=E5=9B=BE=E7=89=87?=
=?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 9 +
.../academic/mapper/AcademicMapper.java | 5 +
.../service/impl/AcademicServiceImpl.java | 13 +-
.../application/mapper/ApplicationMapper.java | 3 +
.../service/impl/ApplicationServiceImpl.java | 11 +
.../course/controller/CourseController.java | 3 -
.../zhiyun03/course/mapper/CourseMapper.java | 2 +
.../service/impl/CourseServiceImpl.java | 17 +-
.../download/mapper/DownloadMapper.java | 3 +
.../service/impl/DownloadServiceImpl.java | 12 +
.../com/zhiyun/zhiyun03/game/entity/Game.java | 4 +-
.../zhiyun03/game/mapper/GameMapper.java | 5 +
.../game/service/impl/GameServiceImpl.java | 15 +-
.../zhiyun03/invite/mapper/InviteMapper.java | 3 +
.../invite/service/impl/InviteServieImpl.java | 21 +-
.../knowledge/mapper/KnowledgeMapper.java | 5 +
.../service/impl/KnowledgeServiceImpl.java | 15 +-
.../zhiyun03/serve/mapper/ServeMapper.java | 3 +
.../serve/service/impl/ServeServiceImpl.java | 10 +
.../textual/mapper/TextualMapper.java | 3 +
.../service/impl/TextualServiceImpl.java | 11 +-
src/main/resources/mapper/AcademicMapper.xml | 35 ++
.../resources/mapper/ApplicationMapper.xml | 3 +
src/main/resources/mapper/CourseMapper.xml | 4 +
src/main/resources/mapper/DownloadMapper.xml | 5 +-
src/main/resources/mapper/GameMapper.xml | 40 ++
src/main/resources/mapper/InviteMapper.xml | 3 +
src/main/resources/mapper/KnowledgeMapper.xml | 41 ++
src/main/resources/mapper/ServeMapper.xml | 7 +-
src/main/resources/mapper/TextualMapper.xml | 3 +
.../static/layui-v2.6.8/academicList.html | 33 +-
.../static/layui-v2.6.8/applicationList.html | 350 ++++++++++++++---
.../static/layui-v2.6.8/courseList.html | 350 ++++++++++++++---
.../static/layui-v2.6.8/downloadList.html | 30 +-
.../static/layui-v2.6.8/gameList.html | 53 +--
.../static/layui-v2.6.8/images/01.png | Bin 12316 -> 0 bytes
.../static/layui-v2.6.8/images/02.png | Bin 12328 -> 0 bytes
.../static/layui-v2.6.8/images/03.png | Bin 11452 -> 0 bytes
.../static/layui-v2.6.8/images/04.png | Bin 12871 -> 0 bytes
.../static/layui-v2.6.8/images/05.png | Bin 12570 -> 0 bytes
.../static/layui-v2.6.8/images/06.png | Bin 12893 -> 0 bytes
.../static/layui-v2.6.8/images/07.png | Bin 10578 -> 0 bytes
.../static/layui-v2.6.8/images/08.png | Bin 13098 -> 0 bytes
.../static/layui-v2.6.8/images/09.png | Bin 12653 -> 0 bytes
.../static/layui-v2.6.8/images/10.png | Bin 12094 -> 0 bytes
.../static/layui-v2.6.8/images/100.png | Bin 360 -> 0 bytes
.../static/layui-v2.6.8/images/101.png | Bin 359 -> 0 bytes
.../static/layui-v2.6.8/images/102.png | Bin 150538 -> 0 bytes
.../static/layui-v2.6.8/images/103.png | Bin 29505 -> 0 bytes
.../static/layui-v2.6.8/images/104.png | Bin 486 -> 0 bytes
.../static/layui-v2.6.8/images/105.png | Bin 659 -> 0 bytes
.../static/layui-v2.6.8/images/106.png | Bin 679 -> 0 bytes
.../static/layui-v2.6.8/images/107.png | Bin 510 -> 0 bytes
.../static/layui-v2.6.8/images/108.png | Bin 8311 -> 0 bytes
.../static/layui-v2.6.8/images/109.png | Bin 154655 -> 0 bytes
.../static/layui-v2.6.8/images/11.png | Bin 56303 -> 0 bytes
.../static/layui-v2.6.8/images/110.png | Bin 459 -> 0 bytes
.../static/layui-v2.6.8/images/111.png | Bin 447 -> 0 bytes
.../static/layui-v2.6.8/images/112.png | Bin 445 -> 0 bytes
.../static/layui-v2.6.8/images/113.png | Bin 382 -> 0 bytes
.../static/layui-v2.6.8/images/114.png | Bin 275 -> 0 bytes
.../static/layui-v2.6.8/images/115.png | Bin 285 -> 0 bytes
.../static/layui-v2.6.8/images/116.png | Bin 470 -> 0 bytes
.../static/layui-v2.6.8/images/117.png | Bin 474 -> 0 bytes
.../static/layui-v2.6.8/images/118.png | Bin 1293 -> 0 bytes
.../static/layui-v2.6.8/images/119.png | Bin 1859 -> 0 bytes
.../static/layui-v2.6.8/images/12.png | Bin 2099 -> 0 bytes
.../static/layui-v2.6.8/images/120.png | Bin 1632 -> 0 bytes
.../static/layui-v2.6.8/images/121.png | Bin 1932 -> 0 bytes
.../static/layui-v2.6.8/images/122.png | Bin 1527 -> 0 bytes
.../static/layui-v2.6.8/images/123.png | Bin 1969 -> 0 bytes
.../static/layui-v2.6.8/images/124.png | Bin 1816 -> 0 bytes
.../static/layui-v2.6.8/images/125.png | Bin 1470 -> 0 bytes
.../static/layui-v2.6.8/images/126.png | Bin 1641 -> 0 bytes
.../static/layui-v2.6.8/images/127.png | Bin 1877 -> 0 bytes
.../static/layui-v2.6.8/images/128.png | Bin 1799 -> 0 bytes
.../static/layui-v2.6.8/images/129.png | Bin 1512 -> 0 bytes
.../static/layui-v2.6.8/images/13.png | Bin 3900 -> 0 bytes
.../static/layui-v2.6.8/images/130.png | Bin 1769 -> 0 bytes
.../static/layui-v2.6.8/images/131.png | Bin 1636 -> 0 bytes
.../static/layui-v2.6.8/images/132.png | Bin 1470 -> 0 bytes
.../static/layui-v2.6.8/images/133.png | Bin 1969 -> 0 bytes
.../static/layui-v2.6.8/images/134.png | Bin 1600 -> 0 bytes
.../static/layui-v2.6.8/images/135.png | Bin 2059 -> 0 bytes
.../static/layui-v2.6.8/images/136.png | Bin 1646 -> 0 bytes
.../static/layui-v2.6.8/images/137.png | Bin 1859 -> 0 bytes
.../static/layui-v2.6.8/images/138.png | Bin 2058 -> 0 bytes
.../static/layui-v2.6.8/images/139.png | Bin 1843 -> 0 bytes
.../static/layui-v2.6.8/images/14.png | Bin 184 -> 0 bytes
.../static/layui-v2.6.8/images/140.png | Bin 2026 -> 0 bytes
.../static/layui-v2.6.8/images/141.png | Bin 1687 -> 0 bytes
.../static/layui-v2.6.8/images/142.png | Bin 473 -> 0 bytes
.../static/layui-v2.6.8/images/143.png | Bin 410 -> 0 bytes
.../static/layui-v2.6.8/images/144.png | Bin 453 -> 0 bytes
.../static/layui-v2.6.8/images/145.png | Bin 446 -> 0 bytes
.../static/layui-v2.6.8/images/146.png | Bin 360 -> 0 bytes
.../static/layui-v2.6.8/images/147.png | Bin 351 -> 0 bytes
.../static/layui-v2.6.8/images/148.png | Bin 396 -> 0 bytes
.../static/layui-v2.6.8/images/149.png | Bin 387 -> 0 bytes
.../static/layui-v2.6.8/images/15.png | Bin 80 -> 0 bytes
.../static/layui-v2.6.8/images/150.png | Bin 370 -> 0 bytes
.../static/layui-v2.6.8/images/151.png | Bin 367 -> 0 bytes
.../static/layui-v2.6.8/images/152.png | Bin 22953 -> 0 bytes
.../static/layui-v2.6.8/images/153.png | Bin 398 -> 0 bytes
.../static/layui-v2.6.8/images/154.png | Bin 390 -> 0 bytes
.../static/layui-v2.6.8/images/155.png | Bin 413 -> 0 bytes
.../static/layui-v2.6.8/images/156.png | Bin 400 -> 0 bytes
.../static/layui-v2.6.8/images/157.png | Bin 360 -> 0 bytes
.../static/layui-v2.6.8/images/158.png | Bin 359 -> 0 bytes
.../static/layui-v2.6.8/images/159.png | Bin 402 -> 0 bytes
.../static/layui-v2.6.8/images/16.png | Bin 592 -> 0 bytes
.../static/layui-v2.6.8/images/160.png | Bin 348 -> 0 bytes
.../static/layui-v2.6.8/images/161.png | Bin 347 -> 0 bytes
.../static/layui-v2.6.8/images/162.png | Bin 478 -> 0 bytes
.../static/layui-v2.6.8/images/163.png | Bin 473 -> 0 bytes
.../static/layui-v2.6.8/images/164.png | Bin 417 -> 0 bytes
.../static/layui-v2.6.8/images/165.png | Bin 409 -> 0 bytes
.../static/layui-v2.6.8/images/166.png | Bin 483 -> 0 bytes
.../static/layui-v2.6.8/images/167.png | Bin 457 -> 0 bytes
.../static/layui-v2.6.8/images/168.png | Bin 347 -> 0 bytes
.../static/layui-v2.6.8/images/169.png | Bin 415 -> 0 bytes
.../static/layui-v2.6.8/images/17.png | Bin 407 -> 0 bytes
.../static/layui-v2.6.8/images/170.png | Bin 427 -> 0 bytes
.../static/layui-v2.6.8/images/171.png | Bin 377 -> 0 bytes
.../static/layui-v2.6.8/images/172.png | Bin 377 -> 0 bytes
.../static/layui-v2.6.8/images/173.png | Bin 460 -> 0 bytes
.../static/layui-v2.6.8/images/174.png | Bin 438 -> 0 bytes
.../static/layui-v2.6.8/images/175.png | Bin 420 -> 0 bytes
.../static/layui-v2.6.8/images/176.png | Bin 421 -> 0 bytes
.../static/layui-v2.6.8/images/177.png | Bin 372 -> 0 bytes
.../static/layui-v2.6.8/images/178.png | Bin 377 -> 0 bytes
.../static/layui-v2.6.8/images/179.png | Bin 714 -> 0 bytes
.../static/layui-v2.6.8/images/18.png | Bin 335 -> 0 bytes
.../static/layui-v2.6.8/images/180.png | Bin 436 -> 0 bytes
.../static/layui-v2.6.8/images/181.png | Bin 572 -> 0 bytes
.../static/layui-v2.6.8/images/182.png | Bin 24239 -> 0 bytes
.../static/layui-v2.6.8/images/19.png | Bin 270 -> 0 bytes
.../static/layui-v2.6.8/images/20.png | Bin 40470 -> 0 bytes
.../static/layui-v2.6.8/images/21.png | Bin 14195 -> 0 bytes
.../static/layui-v2.6.8/images/22.png | Bin 709 -> 0 bytes
.../static/layui-v2.6.8/images/23.png | Bin 459 -> 0 bytes
.../static/layui-v2.6.8/images/24.png | Bin 447 -> 0 bytes
.../static/layui-v2.6.8/images/25.png | Bin 526 -> 0 bytes
.../static/layui-v2.6.8/images/26.png | Bin 505 -> 0 bytes
.../static/layui-v2.6.8/images/27.png | Bin 542 -> 0 bytes
.../static/layui-v2.6.8/images/28.png | Bin 434 -> 0 bytes
.../static/layui-v2.6.8/images/29.png | Bin 410 -> 0 bytes
.../static/layui-v2.6.8/images/30.png | Bin 401 -> 0 bytes
.../static/layui-v2.6.8/images/31.png | Bin 1658 -> 0 bytes
.../static/layui-v2.6.8/images/32.png | Bin 2028 -> 0 bytes
.../static/layui-v2.6.8/images/33.png | Bin 2296 -> 0 bytes
.../static/layui-v2.6.8/images/34.png | Bin 1455 -> 0 bytes
.../static/layui-v2.6.8/images/35.png | Bin 1726 -> 0 bytes
.../static/layui-v2.6.8/images/36.png | Bin 1437 -> 0 bytes
.../static/layui-v2.6.8/images/37.png | Bin 1268 -> 0 bytes
.../static/layui-v2.6.8/images/38.png | Bin 1552 -> 0 bytes
.../static/layui-v2.6.8/images/39.png | Bin 1300 -> 0 bytes
.../static/layui-v2.6.8/images/40.png | Bin 2035 -> 0 bytes
.../static/layui-v2.6.8/images/41.png | Bin 2174 -> 0 bytes
.../static/layui-v2.6.8/images/42.png | Bin 1315 -> 0 bytes
.../static/layui-v2.6.8/images/43.png | Bin 1506 -> 0 bytes
.../static/layui-v2.6.8/images/44.png | Bin 1698 -> 0 bytes
.../static/layui-v2.6.8/images/45.png | Bin 586 -> 0 bytes
.../static/layui-v2.6.8/images/46.png | Bin 1853 -> 0 bytes
.../static/layui-v2.6.8/images/47.png | Bin 2030 -> 0 bytes
.../static/layui-v2.6.8/images/48.png | Bin 2131 -> 0 bytes
.../static/layui-v2.6.8/images/49.png | Bin 2239 -> 0 bytes
.../static/layui-v2.6.8/images/50.png | Bin 1717 -> 0 bytes
.../static/layui-v2.6.8/images/51.png | Bin 2073 -> 0 bytes
.../static/layui-v2.6.8/images/52.png | Bin 2735 -> 0 bytes
.../static/layui-v2.6.8/images/53.png | Bin 2635 -> 0 bytes
.../static/layui-v2.6.8/images/54.png | Bin 1401 -> 0 bytes
.../static/layui-v2.6.8/images/55.png | Bin 2155 -> 0 bytes
.../static/layui-v2.6.8/images/56.png | Bin 2002 -> 0 bytes
.../static/layui-v2.6.8/images/57.png | Bin 2058 -> 0 bytes
.../static/layui-v2.6.8/images/58.png | Bin 2201 -> 0 bytes
.../static/layui-v2.6.8/images/59.png | Bin 2295 -> 0 bytes
.../static/layui-v2.6.8/images/60.png | Bin 2295 -> 0 bytes
.../static/layui-v2.6.8/images/61.png | Bin 2553 -> 0 bytes
.../static/layui-v2.6.8/images/62.png | Bin 2107 -> 0 bytes
.../static/layui-v2.6.8/images/63.png | Bin 2721 -> 0 bytes
.../static/layui-v2.6.8/images/64.png | Bin 2106 -> 0 bytes
.../static/layui-v2.6.8/images/65.png | Bin 2503 -> 0 bytes
.../static/layui-v2.6.8/images/66.png | Bin 2278 -> 0 bytes
.../static/layui-v2.6.8/images/67.png | Bin 2153 -> 0 bytes
.../static/layui-v2.6.8/images/68.png | Bin 2508 -> 0 bytes
.../static/layui-v2.6.8/images/69.png | Bin 2617 -> 0 bytes
.../static/layui-v2.6.8/images/70.png | Bin 2307 -> 0 bytes
.../static/layui-v2.6.8/images/71.png | Bin 2265 -> 0 bytes
.../static/layui-v2.6.8/images/72.png | Bin 3515 -> 0 bytes
.../static/layui-v2.6.8/images/73.png | Bin 2278 -> 0 bytes
.../static/layui-v2.6.8/images/74.png | Bin 1963 -> 0 bytes
.../static/layui-v2.6.8/images/75.png | Bin 1801 -> 0 bytes
.../static/layui-v2.6.8/images/76.png | Bin 3047 -> 0 bytes
.../static/layui-v2.6.8/images/77.png | Bin 2097 -> 0 bytes
.../static/layui-v2.6.8/images/78.png | Bin 2294 -> 0 bytes
.../static/layui-v2.6.8/images/79.png | Bin 2105 -> 0 bytes
.../static/layui-v2.6.8/images/80.png | Bin 2516 -> 0 bytes
.../static/layui-v2.6.8/images/81.png | Bin 2760 -> 0 bytes
.../static/layui-v2.6.8/images/82.png | Bin 2400 -> 0 bytes
.../static/layui-v2.6.8/images/83.png | Bin 2087 -> 0 bytes
.../static/layui-v2.6.8/images/84.png | Bin 2920 -> 0 bytes
.../static/layui-v2.6.8/images/85.png | Bin 1912 -> 0 bytes
.../static/layui-v2.6.8/images/86.png | Bin 2956 -> 0 bytes
.../static/layui-v2.6.8/images/87.png | Bin 2937 -> 0 bytes
.../static/layui-v2.6.8/images/88.png | Bin 2178 -> 0 bytes
.../static/layui-v2.6.8/images/89.png | Bin 1878 -> 0 bytes
.../static/layui-v2.6.8/images/90.png | Bin 1285 -> 0 bytes
.../static/layui-v2.6.8/images/91.png | Bin 2117 -> 0 bytes
.../static/layui-v2.6.8/images/92.png | Bin 1959 -> 0 bytes
.../static/layui-v2.6.8/images/93.png | Bin 2103 -> 0 bytes
.../static/layui-v2.6.8/images/94.png | Bin 2136 -> 0 bytes
.../static/layui-v2.6.8/images/95.png | Bin 3645 -> 0 bytes
.../static/layui-v2.6.8/images/96.png | Bin 398 -> 0 bytes
.../static/layui-v2.6.8/images/97.png | Bin 390 -> 0 bytes
.../static/layui-v2.6.8/images/98.png | Bin 413 -> 0 bytes
.../static/layui-v2.6.8/images/99.png | Bin 400 -> 0 bytes
.../static/layui-v2.6.8/inviteList.html | 30 +-
.../static/layui-v2.6.8/knowledgeList.html | 30 +-
.../static/layui-v2.6.8/serveList.html | 30 +-
.../static/layui-v2.6.8/textualList.html | 359 +++++++++++++++++-
221 files changed, 1337 insertions(+), 242 deletions(-)
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/01.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/02.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/03.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/04.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/05.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/06.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/07.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/08.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/09.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/10.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/100.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/101.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/102.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/103.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/104.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/105.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/106.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/107.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/108.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/109.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/11.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/110.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/111.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/112.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/113.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/114.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/115.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/116.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/117.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/118.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/119.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/12.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/120.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/121.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/122.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/123.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/124.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/125.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/126.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/127.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/128.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/129.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/13.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/130.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/131.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/132.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/133.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/134.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/135.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/136.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/137.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/138.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/139.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/14.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/140.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/141.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/142.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/143.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/144.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/145.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/146.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/147.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/148.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/149.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/15.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/150.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/151.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/152.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/153.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/154.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/155.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/156.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/157.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/158.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/159.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/16.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/160.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/161.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/162.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/163.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/164.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/165.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/166.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/167.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/168.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/169.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/17.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/170.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/171.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/172.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/173.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/174.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/175.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/176.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/177.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/178.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/179.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/18.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/180.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/181.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/182.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/19.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/20.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/21.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/22.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/23.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/24.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/25.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/26.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/27.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/28.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/29.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/30.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/31.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/32.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/33.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/34.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/35.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/36.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/37.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/38.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/39.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/40.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/41.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/42.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/43.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/44.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/45.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/46.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/47.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/48.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/49.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/50.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/51.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/52.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/53.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/54.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/55.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/56.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/57.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/58.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/59.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/60.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/61.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/62.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/63.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/64.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/65.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/66.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/67.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/68.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/69.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/70.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/71.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/72.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/73.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/74.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/75.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/76.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/77.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/78.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/79.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/80.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/81.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/82.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/83.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/84.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/85.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/86.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/87.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/88.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/89.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/90.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/91.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/92.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/93.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/94.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/95.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/96.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/97.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/98.png
delete mode 100644 src/main/resources/static/layui-v2.6.8/images/99.png
diff --git a/pom.xml b/pom.xml
index b2100c2..b5329a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,7 @@
8
+ jar
org.springframework.boot
@@ -62,12 +63,20 @@
3.5.2
+
+
+
+
+
+
+
mysql
mysql-connector-java
5.0.7
+
org.springframework.boot
diff --git a/src/main/java/com/zhiyun/zhiyun03/academic/mapper/AcademicMapper.java b/src/main/java/com/zhiyun/zhiyun03/academic/mapper/AcademicMapper.java
index 7c6b2d4..4926195 100644
--- a/src/main/java/com/zhiyun/zhiyun03/academic/mapper/AcademicMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/academic/mapper/AcademicMapper.java
@@ -4,10 +4,15 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.academic.entity.Academic;
import com.zhiyun.zhiyun03.academic.vo.AcademicVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface AcademicMapper extends BaseMapper {
List queryAcademic();
+
+ int updateByIdInfo(Academic academic);
+
+ int findByNameAndId(@Param("id") Integer id,@Param("academicName") String academicName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/academic/service/impl/AcademicServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/academic/service/impl/AcademicServiceImpl.java
index 5f6b7bb..12030b1 100644
--- a/src/main/java/com/zhiyun/zhiyun03/academic/service/impl/AcademicServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/academic/service/impl/AcademicServiceImpl.java
@@ -132,8 +132,11 @@ public class AcademicServiceImpl extends ServiceImpl i
if (academicVo.getDirName().isEmpty()){
throw new ServiceException("400","归属目录不能为空");
}
- if (academicVo.getAcademicImg().isEmpty()){
- throw new ServiceException("400","学术图片不能为空");
+ // 校验名称是否重复
+ int sum = academicMapper.findByNameAndId(academicVo.getId(),academicVo.getAcademicName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
}
//将vo类转换为实体类
ConvertUtil convertUtil=new ConvertUtil();
@@ -145,7 +148,7 @@ public class AcademicServiceImpl extends ServiceImpl i
//将目录id封装到实体类
academic.setDirId(directory.getId());
academic.setAcademicUpdatetime(new Date());
- int update = academicMapper.updateById(academic);
+ int update = academicMapper.updateByIdInfo(academic);
return update;
}
@@ -186,6 +189,10 @@ public class AcademicServiceImpl extends ServiceImpl i
if (directory.getDirName().isEmpty()){
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()){
throw new ServiceException("400","图片不能为空");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/application/mapper/ApplicationMapper.java b/src/main/java/com/zhiyun/zhiyun03/application/mapper/ApplicationMapper.java
index dcdb551..3433f81 100644
--- a/src/main/java/com/zhiyun/zhiyun03/application/mapper/ApplicationMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/application/mapper/ApplicationMapper.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.application.entity.Application;
import com.zhiyun.zhiyun03.application.vo.ApplicationVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -11,4 +12,6 @@ import java.util.List;
@Mapper
public interface ApplicationMapper extends BaseMapper {
List queryApplication();
+
+ int findByNameAndId(@Param("id") Integer id,@Param("appName") String appName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/application/service/impl/ApplicationServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/application/service/impl/ApplicationServiceImpl.java
index 826f11a..d68977c 100644
--- a/src/main/java/com/zhiyun/zhiyun03/application/service/impl/ApplicationServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/application/service/impl/ApplicationServiceImpl.java
@@ -114,6 +114,13 @@ public class ApplicationServiceImpl extends ServiceImpl0)
+ {
+ throw new ServiceException("300","课程名已存在");
+ }
+
ConvertUtil convertUtil=new ConvertUtil();
Application application = convertUtil.VoToEntity(applicationVo, Application.class);
QueryWrapper qwd=new QueryWrapper<>();
@@ -147,6 +154,10 @@ public class ApplicationServiceImpl extends ServiceImpl6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()){
throw new ServiceException("400","图片不能为空");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/course/controller/CourseController.java b/src/main/java/com/zhiyun/zhiyun03/course/controller/CourseController.java
index 3e96c57..5b729a6 100644
--- a/src/main/java/com/zhiyun/zhiyun03/course/controller/CourseController.java
+++ b/src/main/java/com/zhiyun/zhiyun03/course/controller/CourseController.java
@@ -116,11 +116,9 @@ public class CourseController {
@GetMapping("/addCourseDirectory")
public JsonResult addCourseDirectory(Directory directory){
courseService.addCourseDirectory(directory);
-
return JsonResult.success();
}
-
@ApiOperation("查询目录")
@GetMapping("/queryCourseDirectory")
public JsonResult queryCourseDirectory(){
@@ -130,5 +128,4 @@ public class CourseController {
}
-
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/course/mapper/CourseMapper.java b/src/main/java/com/zhiyun/zhiyun03/course/mapper/CourseMapper.java
index 83c4a89..715e18f 100644
--- a/src/main/java/com/zhiyun/zhiyun03/course/mapper/CourseMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/course/mapper/CourseMapper.java
@@ -6,6 +6,7 @@ import com.zhiyun.zhiyun03.course.vo.ClientCourseVo;
import com.zhiyun.zhiyun03.course.vo.CourseVo;
import com.zhiyun.zhiyun03.course.vo.PageVO;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
@@ -35,4 +36,5 @@ public interface CourseMapper extends BaseMapper {
int selectByName(String courseName);
+ int findByNameAndId(@Param("id") Integer id, @Param("courseName") String courseName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java
index 3204225..a268de6 100644
--- a/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java
@@ -138,12 +138,23 @@ public class CourseServiceImpl extends ServiceImpl implemen
{
throw new ServiceException("400","课程名称不能为空");
}
+ // 校验名称是否重复
+ int sum = courseMapper.findByNameAndId(courseVo.getId(),courseVo.getCourseName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
+ }
+// QueryWrapper qwc=new QueryWrapper<>();
+// qwc.select("course_name").lambda().eq(Course::getCourseName,courseVo.getCourseName());
+// List courses = courseMapper.selectList(qwc);
+// if(courses.size()!=0){
+// throw new ServiceException("403","课程名称已存在");
+// }
//将vo值赋给course
Course course = new Course();
BeanUtils.copyProperties(courseVo,course);
//查询归属目录
String dirName = courseVo.getDirName();
-
if (dirName.isEmpty())
{
throw new ServiceException("403","归属目录不能为空");
@@ -194,6 +205,10 @@ public class CourseServiceImpl extends ServiceImpl implemen
{
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
/*判断目录图标是否为空*/
if (directory.getDirIcon().isEmpty())
{
diff --git a/src/main/java/com/zhiyun/zhiyun03/download/mapper/DownloadMapper.java b/src/main/java/com/zhiyun/zhiyun03/download/mapper/DownloadMapper.java
index 25f2c1f..c204c7c 100644
--- a/src/main/java/com/zhiyun/zhiyun03/download/mapper/DownloadMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/download/mapper/DownloadMapper.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.download.entity.Download;
import com.zhiyun.zhiyun03.download.vo.DownloadVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -14,4 +15,6 @@ public interface DownloadMapper extends BaseMapper {
int selectByName(String downloadName);
int updateDownloadById(Download download);
+
+ int findByNameAndId(@Param("id") Integer id,@Param("downloadName") String downloadName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/download/service/impl/DownloadServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/download/service/impl/DownloadServiceImpl.java
index 67063cf..882d60a 100644
--- a/src/main/java/com/zhiyun/zhiyun03/download/service/impl/DownloadServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/download/service/impl/DownloadServiceImpl.java
@@ -140,6 +140,14 @@ public class DownloadServiceImpl extends ServiceImpl i
if (vo.getDownloadName().isEmpty()) {
throw new ServiceException("400", "下载名不能为空失败");
}
+ // 校验名称是否重复
+ int sum = downloadMapper.findByNameAndId(vo.getId(),vo.getDownloadName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
+ }
+
+
//将vo值传给download
Download download = new Download();
BeanUtils.copyProperties(vo, download);
@@ -166,6 +174,10 @@ public class DownloadServiceImpl extends ServiceImpl i
if (directory.getDirName().isEmpty()) {
throw new ServiceException("400", "目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()) {
throw new ServiceException("400", "请选择一个icon");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/game/entity/Game.java b/src/main/java/com/zhiyun/zhiyun03/game/entity/Game.java
index c4609b2..42673b0 100644
--- a/src/main/java/com/zhiyun/zhiyun03/game/entity/Game.java
+++ b/src/main/java/com/zhiyun/zhiyun03/game/entity/Game.java
@@ -59,7 +59,7 @@ public class Game {
@TableField(value = "start_time")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
- private String startTime;
+ private Date startTime;
/**
* 结束时间
@@ -67,7 +67,7 @@ public class Game {
@TableField(value = "end_time")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
- private String endTime;
+ private Date endTime;
/**
diff --git a/src/main/java/com/zhiyun/zhiyun03/game/mapper/GameMapper.java b/src/main/java/com/zhiyun/zhiyun03/game/mapper/GameMapper.java
index 736bd10..6327348 100644
--- a/src/main/java/com/zhiyun/zhiyun03/game/mapper/GameMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/game/mapper/GameMapper.java
@@ -4,10 +4,15 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.game.entity.Game;
import com.zhiyun.zhiyun03.game.vo.GameVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface GameMapper extends BaseMapper {
List queryGame();
+
+ int updateByIdInfo(Game game);
+
+ int findByNameAndId(@Param("id") Integer id, @Param("gameName")String gameName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/game/service/impl/GameServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/game/service/impl/GameServiceImpl.java
index 986765a..c7718d7 100644
--- a/src/main/java/com/zhiyun/zhiyun03/game/service/impl/GameServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/game/service/impl/GameServiceImpl.java
@@ -137,9 +137,14 @@ public class GameServiceImpl extends ServiceImpl implements Ga
if (gameVo.getDirName().isEmpty()){
throw new ServiceException("400","归属目录不能为空");
}
- if (gameVo.getGameImg().isEmpty()){
- throw new ServiceException("400","大赛图片不能为空");
+
+ // 校验名称是否重复
+ int sum = gameMapper.findByNameAndId(gameVo.getId(),gameVo.getGameName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
}
+
//将vo类转换为实体类
ConvertUtil convertUtil=new ConvertUtil();
Game game = convertUtil.VoToEntity(gameVo, Game.class);
@@ -150,7 +155,7 @@ public class GameServiceImpl extends ServiceImpl implements Ga
//将目录id封装到实体类
game.setDirId(directory.getId());
game.setGameUpdatetime(new Date());
- int update = gameMapper.updateById(game);
+ int update = gameMapper.updateByIdInfo(game);
return update;
}
@@ -182,6 +187,10 @@ public class GameServiceImpl extends ServiceImpl implements Ga
if (directory.getDirName().isEmpty()){
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()){
throw new ServiceException("400","图片不能为空");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/invite/mapper/InviteMapper.java b/src/main/java/com/zhiyun/zhiyun03/invite/mapper/InviteMapper.java
index cb15c72..0aadbfc 100644
--- a/src/main/java/com/zhiyun/zhiyun03/invite/mapper/InviteMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/invite/mapper/InviteMapper.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.invite.entity.Invite;
import com.zhiyun.zhiyun03.invite.vo.InviteVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -14,4 +15,6 @@ public interface InviteMapper extends BaseMapper {
int selectByName(String inviteName);
int updateDownloadById(Invite invite);
+
+ int findByNameAndId(@Param("id") Integer id,@Param("inviteName") String inviteName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java b/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java
index 215ac6c..3abb5c7 100644
--- a/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java
@@ -131,12 +131,17 @@ public class InviteServieImpl extends ServiceImpl implemen
* */
@Override
public int updateById(InviteVo vo) {
- //查询更新的下载名是否存在
-// int sum = inviteMapper.selectByName(vo.getInviteName());
-// if (sum>0)
-// {
-// throw new ServiceException("403","下载已存在");
-// }
+
+ if (vo.getInviteName().isEmpty())
+ {
+ throw new ServiceException("400","就业名称不能为空");
+ }
+ // 校验名称是否重复
+ int sum = inviteMapper.findByNameAndId(vo.getId(),vo.getInviteName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
+ }
//将vo值传给download
Invite invite = new Invite();
@@ -160,6 +165,10 @@ public class InviteServieImpl extends ServiceImpl implemen
if (directory.getDirName().isEmpty()) {
throw new ServiceException("400", "目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()) {
throw new ServiceException("400", "请选择一个icon");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/knowledge/mapper/KnowledgeMapper.java b/src/main/java/com/zhiyun/zhiyun03/knowledge/mapper/KnowledgeMapper.java
index 4a4f040..31c49ea 100644
--- a/src/main/java/com/zhiyun/zhiyun03/knowledge/mapper/KnowledgeMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/knowledge/mapper/KnowledgeMapper.java
@@ -4,10 +4,15 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.knowledge.entity.Knowledge;
import com.zhiyun.zhiyun03.knowledge.vo.KnowledgeVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface KnowledgeMapper extends BaseMapper {
List queryKnowledge();
+
+ int updateByIdInfo(Knowledge knowledge);
+
+ int findByNameAndId(@Param("id") Integer id,@Param("knowledgeName") String knowledgeName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/knowledge/service/impl/KnowledgeServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/knowledge/service/impl/KnowledgeServiceImpl.java
index db36cea..00c8602 100644
--- a/src/main/java/com/zhiyun/zhiyun03/knowledge/service/impl/KnowledgeServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/knowledge/service/impl/KnowledgeServiceImpl.java
@@ -137,9 +137,14 @@ public class KnowledgeServiceImpl extends ServiceImpl
if (knowledgeVo.getDirName().isEmpty()){
throw new ServiceException("400","归属目录不能为空");
}
- if (knowledgeVo.getKnowledgeImg().isEmpty()){
- throw new ServiceException("400","知识图片不能为空");
+ // 校验名称是否重复
+ int sum = knowledgeMapper.findByNameAndId(knowledgeVo.getId(),knowledgeVo.getKnowledgeName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
}
+
+
//将vo类转换为实体类
ConvertUtil convertUtil=new ConvertUtil();
Knowledge knowledge = convertUtil.VoToEntity(knowledgeVo, Knowledge.class);
@@ -150,7 +155,7 @@ public class KnowledgeServiceImpl extends ServiceImpl
//将目录id封装到实体类
knowledge.setDirId(directory.getId());
knowledge.setKnowledgeUpdatetime(new Date());
- int update = knowledgeMapper.updateById(knowledge);
+ int update = knowledgeMapper.updateByIdInfo(knowledge);
return update;
}
@@ -177,6 +182,10 @@ public class KnowledgeServiceImpl extends ServiceImpl
if (directory.getDirName().isEmpty()){
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()){
throw new ServiceException("400","图片不能为空");
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/serve/mapper/ServeMapper.java b/src/main/java/com/zhiyun/zhiyun03/serve/mapper/ServeMapper.java
index bdfc7cb..1239f15 100644
--- a/src/main/java/com/zhiyun/zhiyun03/serve/mapper/ServeMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/serve/mapper/ServeMapper.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.serve.entity.Serve;
import com.zhiyun.zhiyun03.serve.vo.ServeVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -14,4 +15,6 @@ public interface ServeMapper extends BaseMapper {
int selectByName(String serveName);
int updateDownloadById(Serve serve);
+
+ int findByNameAndId(@Param("id") Integer id,@Param("serveName") String serveName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java
index 73ec1f9..d720760 100644
--- a/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java
@@ -147,6 +147,12 @@ public class ServeServiceImpl extends ServiceImpl implements
{
throw new ServiceException("400","服务名不能为空");
}
+ // 校验名称是否重复
+ int sum = serveMapper.findByNameAndId(vo.getId(),vo.getServeName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
+ }
//将vo值传给download
Serve serve = new Serve();
@@ -174,6 +180,10 @@ public class ServeServiceImpl extends ServiceImpl implements
{
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty())
{
throw new ServiceException("400","请选择一个icon");
diff --git a/src/main/java/com/zhiyun/zhiyun03/textual/mapper/TextualMapper.java b/src/main/java/com/zhiyun/zhiyun03/textual/mapper/TextualMapper.java
index 284e9fe..2896580 100644
--- a/src/main/java/com/zhiyun/zhiyun03/textual/mapper/TextualMapper.java
+++ b/src/main/java/com/zhiyun/zhiyun03/textual/mapper/TextualMapper.java
@@ -4,10 +4,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyun.zhiyun03.textual.entity.Textual;
import com.zhiyun.zhiyun03.textual.vo.TextualVo;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface TextualMapper extends BaseMapper {
List queryTextual();
+
+ int findByNameAndId(@Param("id") Integer id, @Param("textualName") String textualName);
}
diff --git a/src/main/java/com/zhiyun/zhiyun03/textual/service/impl/TextualServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/textual/service/impl/TextualServiceImpl.java
index 1a55c49..3f521d3 100644
--- a/src/main/java/com/zhiyun/zhiyun03/textual/service/impl/TextualServiceImpl.java
+++ b/src/main/java/com/zhiyun/zhiyun03/textual/service/impl/TextualServiceImpl.java
@@ -131,8 +131,11 @@ public class TextualServiceImpl extends ServiceImpl impl
if (textualVo.getDirName().isEmpty()){
throw new ServiceException("400","归属目录不能为空");
}
- if (textualVo.getTextualImg().isEmpty()){
- throw new ServiceException("400","学术图片不能为空");
+ // 校验名称是否重复
+ int sum = textualMapper.findByNameAndId(textualVo.getId(),textualVo.getTextualName());
+ if (sum>0)
+ {
+ throw new ServiceException("300","课程名已存在");
}
//将vo类转换为实体类
ConvertUtil convertUtil=new ConvertUtil();
@@ -180,6 +183,10 @@ public class TextualServiceImpl extends ServiceImpl impl
if (directory.getDirName().isEmpty()){
throw new ServiceException("400","目录名称不能为空");
}
+ if (directory.getDirName().length()>6)
+ {
+ throw new ServiceException("400","目录名超出限制长度");
+ }
if (directory.getDirIcon().isEmpty()){
throw new ServiceException("400","图片不能为空");
}
diff --git a/src/main/resources/mapper/AcademicMapper.xml b/src/main/resources/mapper/AcademicMapper.xml
index 3c6aaf9..140af7b 100644
--- a/src/main/resources/mapper/AcademicMapper.xml
+++ b/src/main/resources/mapper/AcademicMapper.xml
@@ -1,6 +1,38 @@
+
+ update academic
+
+
+ academic_name = #{academicName},
+
+
+ academic_brief = #{academicBrief},
+
+
+ academic_url = #{academicUrl},
+
+
+ dir_id = #{dirId},
+
+
+ academic_img = #{academicImg},
+
+
+ academic_addtime = #{academicAddtime},
+
+
+ academic_updatetime = #{academicUpdatetime},
+
+
+
+
+ id = #{id}
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ApplicationMapper.xml b/src/main/resources/mapper/ApplicationMapper.xml
index 6511217..0a37091 100644
--- a/src/main/resources/mapper/ApplicationMapper.xml
+++ b/src/main/resources/mapper/ApplicationMapper.xml
@@ -16,4 +16,7 @@
(select * from directory) as d
on c.dir_id = d.id
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/CourseMapper.xml b/src/main/resources/mapper/CourseMapper.xml
index 42f0718..509b1c2 100644
--- a/src/main/resources/mapper/CourseMapper.xml
+++ b/src/main/resources/mapper/CourseMapper.xml
@@ -82,5 +82,9 @@
where course_name = #{courseName}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DownloadMapper.xml b/src/main/resources/mapper/DownloadMapper.xml
index ac27d56..bd39b88 100644
--- a/src/main/resources/mapper/DownloadMapper.xml
+++ b/src/main/resources/mapper/DownloadMapper.xml
@@ -16,7 +16,7 @@
dir_id=#{dirId},
-
+
download_img=#{downloadImg}
@@ -43,4 +43,7 @@
select count(1) from download where download_name =#{downloadName}
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/GameMapper.xml b/src/main/resources/mapper/GameMapper.xml
index 3374eee..27a88b4 100644
--- a/src/main/resources/mapper/GameMapper.xml
+++ b/src/main/resources/mapper/GameMapper.xml
@@ -1,6 +1,43 @@
+
+ update game
+
+
+ game_name = #{gameName},
+
+
+ game_brief = #{gameBrief},
+
+
+ game_url = #{gameUrl},
+
+
+ dir_id = #{dirId},
+
+
+ game_img = #{gameImg},
+
+
+ start_time = #{startTime},
+
+
+ end_time = #{endTime},
+
+
+ game_addtime = #{gameAddtime},
+
+
+ game_updatetime = #{gameUpdatetime},
+
+
+
+
+ id = #{id}
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/InviteMapper.xml b/src/main/resources/mapper/InviteMapper.xml
index 790fe6f..47f83bb 100644
--- a/src/main/resources/mapper/InviteMapper.xml
+++ b/src/main/resources/mapper/InviteMapper.xml
@@ -34,4 +34,7 @@
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/KnowledgeMapper.xml b/src/main/resources/mapper/KnowledgeMapper.xml
index d6dac1b..d21bf1b 100644
--- a/src/main/resources/mapper/KnowledgeMapper.xml
+++ b/src/main/resources/mapper/KnowledgeMapper.xml
@@ -1,6 +1,44 @@
+
+ update knowledge
+
+
+ knowledge_name = #{knowledgeName},
+
+
+ knowledge_brief = #{knowledgeBrief},
+
+
+ knowledge_url = #{knowledgeUrl},
+
+
+ dir_id = #{dirId},
+
+
+ knowledge_img = #{knowledgeImg},
+
+
+ knowledge_addtime = #{knowledgeAddtime},
+
+
+ knowledge_updatetime = #{knowledgeUpdatetime},
+
+
+
+
+
+ id = #{id}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ServeMapper.xml b/src/main/resources/mapper/ServeMapper.xml
index dca1f1f..5aca0fc 100644
--- a/src/main/resources/mapper/ServeMapper.xml
+++ b/src/main/resources/mapper/ServeMapper.xml
@@ -17,7 +17,7 @@
dir_id=#{dirId},
-
+
serve_img=#{serveImg}
@@ -26,8 +26,6 @@
id = #{id}
-
-
+
+ select count(1) from textual where textual_name =#{textualName} and id != #{id}
+
\ No newline at end of file
diff --git a/src/main/resources/static/layui-v2.6.8/academicList.html b/src/main/resources/static/layui-v2.6.8/academicList.html
index b7f17b3..a065d76 100644
--- a/src/main/resources/static/layui-v2.6.8/academicList.html
+++ b/src/main/resources/static/layui-v2.6.8/academicList.html
@@ -134,6 +134,7 @@
$("#academicUrl").val(data.academicUrl);
$("#dirName").val(data.dirName);
$("#academicImg").val(data.academicImg);
+
//渲染页面
layui.form.render();
},
@@ -372,43 +373,43 @@
-

-
-
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
+
+
+
-

+
-

+
@@ -591,6 +592,7 @@
+
-