From f7d32b36be126bce133cb4b14a9657d9e363927b Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 6 Nov 2024 16:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=A5=E8=A1=A8=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/Tjbb_141Controller.java | 178 ++++ .../modules/tjbb/tjbb141/entity/Tjbb_141.java | 107 +++ .../tjbb/tjbb141/mapper/Tjbb_141Mapper.java | 17 + .../tjbb141/mapper/xml/Tjbb_141Mapper.xml | 5 + .../tjbb141/service/ITjbb_141Service.java | 14 + .../service/impl/Tjbb_141ServiceImpl.java | 19 + .../controller/Tjbb_151Controller.java | 178 ++++ .../modules/tjbb/tjbb151/entity/Tjbb_151.java | 115 +++ .../tjbb/tjbb151/mapper/Tjbb_151Mapper.java | 17 + .../tjbb151/mapper/xml/Tjbb_151Mapper.xml | 5 + .../tjbb151/service/ITjbb_151Service.java | 14 + .../service/impl/Tjbb_151ServiceImpl.java | 19 + .../controller/Tjbb_152Controller.java | 178 ++++ .../modules/tjbb/tjbb152/entity/Tjbb_152.java | 100 +++ .../tjbb/tjbb152/mapper/Tjbb_152Mapper.java | 22 + .../tjbb152/mapper/xml/Tjbb_152Mapper.xml | 21 + .../tjbb152/service/ITjbb_152Service.java | 21 + .../service/impl/Tjbb_152ServiceImpl.java | 36 + .../controller/Tjbb_153Controller.java | 178 ++++ .../modules/tjbb/tjbb153/entity/Tjbb_153.java | 115 +++ .../tjbb/tjbb153/mapper/Tjbb_153Mapper.java | 17 + .../tjbb153/mapper/xml/Tjbb_153Mapper.xml | 5 + .../tjbb153/service/ITjbb_153Service.java | 14 + .../service/impl/Tjbb_153ServiceImpl.java | 19 + .../tjbb16/controller/TjbbController.java | 757 ++++++++++++++++++ .../tjbb16/controller/Tjbb_16Controller.java | 177 ++++ .../modules/tjbb/tjbb16/entity/Tjbb_16.java | 92 +++ .../tjbb/tjbb16/mapper/Tjbb_16Mapper.java | 21 + .../tjbb/tjbb16/mapper/xml/Tjbb_16Mapper.xml | 12 + .../tjbb/tjbb16/service/ITjbb_16Service.java | 20 + .../service/impl/Tjbb_16ServiceImpl.java | 32 + .../tjbb24/controller/Tjbb_24Controller.java | 178 ++++ .../modules/tjbb/tjbb24/entity/Tjbb_24.java | 92 +++ .../tjbb/tjbb24/mapper/Tjbb_24Mapper.java | 18 + .../tjbb/tjbb24/mapper/xml/Tjbb_24Mapper.xml | 8 + .../tjbb/tjbb24/service/ITjbb_24Service.java | 17 + .../service/impl/Tjbb_24ServiceImpl.java | 26 + .../controller/TjbbSf11Controller.java | 178 ++++ .../tjbb/tjbbSf11/entity/TjbbSf11.java | 91 +++ .../tjbb/tjbbSf11/mapper/TjbbSf11Mapper.java | 17 + .../tjbbSf11/mapper/xml/TjbbSf11Mapper.xml | 5 + .../tjbbSf11/service/ITjbbSf11Service.java | 14 + .../service/impl/TjbbSf11ServiceImpl.java | 19 + .../tjbbSf3/controller/TjbbSf3Controller.java | 178 ++++ .../modules/tjbb/tjbbSf3/entity/TjbbSf3.java | 99 +++ .../tjbb/tjbbSf3/mapper/TjbbSf3Mapper.java | 17 + .../tjbb/tjbbSf3/mapper/xml/TjbbSf3Mapper.xml | 5 + .../tjbb/tjbbSf3/service/ITjbbSf3Service.java | 14 + .../service/impl/TjbbSf3ServiceImpl.java | 19 + .../tjbbSf5/controller/TjbbSf5Controller.java | 178 ++++ .../modules/tjbb/tjbbSf5/entity/TjbbSf5.java | 119 +++ .../tjbb/tjbbSf5/mapper/TjbbSf5Mapper.java | 17 + .../tjbb/tjbbSf5/mapper/xml/TjbbSf5Mapper.xml | 5 + .../tjbb/tjbbSf5/service/ITjbbSf5Service.java | 14 + .../service/impl/TjbbSf5ServiceImpl.java | 19 + .../tjbbSf6/controller/TjbbSf6Controller.java | 178 ++++ .../modules/tjbb/tjbbSf6/entity/TjbbSf6.java | 91 +++ .../tjbb/tjbbSf6/mapper/TjbbSf6Mapper.java | 17 + .../tjbb/tjbbSf6/mapper/xml/TjbbSf6Mapper.xml | 5 + .../tjbb/tjbbSf6/service/ITjbbSf6Service.java | 14 + .../service/impl/TjbbSf6ServiceImpl.java | 19 + .../tjbbSf8/controller/TjbbSf8Controller.java | 178 ++++ .../modules/tjbb/tjbbSf8/entity/TjbbSf8.java | 88 ++ .../tjbb/tjbbSf8/mapper/TjbbSf8Mapper.java | 20 + .../tjbb/tjbbSf8/mapper/xml/TjbbSf8Mapper.xml | 38 + .../tjbb/tjbbSf8/service/ITjbbSf8Service.java | 19 + .../service/impl/TjbbSf8ServiceImpl.java | 31 + .../tjbbSf9/controller/TjbbSf9Controller.java | 178 ++++ .../modules/tjbb/tjbbSf9/entity/TjbbSf9.java | 115 +++ .../tjbb/tjbbSf9/mapper/TjbbSf9Mapper.java | 17 + .../tjbb/tjbbSf9/mapper/xml/TjbbSf9Mapper.xml | 5 + .../tjbb/tjbbSf9/service/ITjbbSf9Service.java | 14 + .../service/impl/TjbbSf9ServiceImpl.java | 19 + jeecgboot-vue3/src/views/tjbbVue/Tjbb.api.ts | 15 + jeecgboot-vue3/src/views/tjbbVue/TjbbList.vue | 240 ++++++ .../src/views/tjbbVue/tjbb141/Tjbb_141.api.ts | 72 ++ .../views/tjbbVue/tjbb141/Tjbb_141.data.ts | 90 +++ .../views/tjbbVue/tjbb141/Tjbb_141List.vue | 235 ++++++ .../tjbb141/components/Tjbb_141Form.vue | 217 +++++ .../tjbb141/components/Tjbb_141Modal.vue | 77 ++ .../src/views/tjbbVue/tjbb151/Tjbb_151.api.ts | 72 ++ .../views/tjbbVue/tjbb151/Tjbb_151.data.ts | 102 +++ .../views/tjbbVue/tjbb151/Tjbb_151List.vue | 235 ++++++ .../tjbb151/components/Tjbb_151Form.vue | 229 ++++++ .../tjbb151/components/Tjbb_151Modal.vue | 77 ++ .../src/views/tjbbVue/tjbb152/Tjbb_152.api.ts | 72 ++ .../views/tjbbVue/tjbb152/Tjbb_152.data.ts | 78 ++ .../views/tjbbVue/tjbb152/Tjbb_152List.vue | 235 ++++++ .../tjbb152/components/Tjbb_152Form.vue | 205 +++++ .../tjbb152/components/Tjbb_152Modal.vue | 77 ++ .../src/views/tjbbVue/tjbb153/Tjbb_153.api.ts | 72 ++ .../views/tjbbVue/tjbb153/Tjbb_153.data.ts | 102 +++ .../views/tjbbVue/tjbb153/Tjbb_153List.vue | 235 ++++++ .../tjbb153/components/Tjbb_153Form.vue | 229 ++++++ .../tjbb153/components/Tjbb_153Modal.vue | 77 ++ .../src/views/tjbbVue/tjbb16/Tjbb_16.api.ts | 72 ++ .../src/views/tjbbVue/tjbb16/Tjbb_16.data.ts | 66 ++ .../src/views/tjbbVue/tjbb16/Tjbb_16List.vue | 235 ++++++ .../tjbbVue/tjbb16/components/Tjbb_16Form.vue | 193 +++++ .../tjbb16/components/Tjbb_16Modal.vue | 77 ++ .../src/views/tjbbVue/tjbb24/Tjbb_24.api.ts | 72 ++ .../src/views/tjbbVue/tjbb24/Tjbb_24.data.ts | 66 ++ .../src/views/tjbbVue/tjbb24/Tjbb_24List.vue | 235 ++++++ .../tjbbVue/tjbb24/components/Tjbb_24Form.vue | 193 +++++ .../tjbb24/components/Tjbb_24Modal.vue | 77 ++ .../views/tjbbVue/tjbbSf11/TjbbSf11.api.ts | 72 ++ .../views/tjbbVue/tjbbSf11/TjbbSf11.data.ts | 66 ++ .../views/tjbbVue/tjbbSf11/TjbbSf11List.vue | 235 ++++++ .../tjbbSf11/components/TjbbSf11Form.vue | 193 +++++ .../tjbbSf11/components/TjbbSf11Modal.vue | 77 ++ .../src/views/tjbbVue/tjbbSf3/TjbbSf3.api.ts | 72 ++ .../src/views/tjbbVue/tjbbSf3/TjbbSf3.data.ts | 78 ++ .../src/views/tjbbVue/tjbbSf3/TjbbSf3List.vue | 235 ++++++ .../tjbbSf3/components/TjbbSf3Form.vue | 205 +++++ .../tjbbSf3/components/TjbbSf3Modal.vue | 77 ++ .../src/views/tjbbVue/tjbbSf5/TjbbSf5.api.ts | 64 ++ .../src/views/tjbbVue/tjbbSf5/TjbbSf5.data.ts | 210 +++++ .../src/views/tjbbVue/tjbbSf5/TjbbSf5List.vue | 190 +++++ .../tjbbSf5/components/TjbbSf5Form.vue | 70 ++ .../tjbbSf5/components/TjbbSf5Modal.vue | 76 ++ .../src/views/tjbbVue/tjbbSf6/TjbbSf6.api.ts | 72 ++ .../src/views/tjbbVue/tjbbSf6/TjbbSf6.data.ts | 66 ++ .../src/views/tjbbVue/tjbbSf6/TjbbSf6List.vue | 235 ++++++ .../tjbbSf6/components/TjbbSf6Form.vue | 193 +++++ .../tjbbSf6/components/TjbbSf6Modal.vue | 77 ++ .../src/views/tjbbVue/tjbbSf8/TjbbSf8.api.ts | 72 ++ .../src/views/tjbbVue/tjbbSf8/TjbbSf8.data.ts | 60 ++ .../src/views/tjbbVue/tjbbSf8/TjbbSf8List.vue | 235 ++++++ .../tjbbSf8/components/TjbbSf8Form.vue | 187 +++++ .../tjbbSf8/components/TjbbSf8Modal.vue | 77 ++ .../src/views/tjbbVue/tjbbSf9/TjbbSf9.api.ts | 72 ++ .../src/views/tjbbVue/tjbbSf9/TjbbSf9.data.ts | 102 +++ .../src/views/tjbbVue/tjbbSf9/TjbbSf9List.vue | 235 ++++++ .../tjbbSf9/components/TjbbSf9Form.vue | 229 ++++++ .../tjbbSf9/components/TjbbSf9Modal.vue | 77 ++ 135 files changed, 13156 insertions(+) create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/controller/Tjbb_141Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/entity/Tjbb_141.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/Tjbb_141Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/xml/Tjbb_141Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/ITjbb_141Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/impl/Tjbb_141ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/controller/Tjbb_151Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/entity/Tjbb_151.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/Tjbb_151Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/xml/Tjbb_151Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/ITjbb_151Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/impl/Tjbb_151ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/controller/Tjbb_152Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/entity/Tjbb_152.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/Tjbb_152Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/xml/Tjbb_152Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/ITjbb_152Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/impl/Tjbb_152ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/controller/Tjbb_153Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/entity/Tjbb_153.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/Tjbb_153Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/xml/Tjbb_153Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/ITjbb_153Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/impl/Tjbb_153ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/TjbbController.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/Tjbb_16Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/entity/Tjbb_16.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/Tjbb_16Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/xml/Tjbb_16Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/ITjbb_16Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/impl/Tjbb_16ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/controller/Tjbb_24Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/entity/Tjbb_24.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/Tjbb_24Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/xml/Tjbb_24Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/ITjbb_24Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/impl/Tjbb_24ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/controller/TjbbSf11Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/entity/TjbbSf11.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/TjbbSf11Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/xml/TjbbSf11Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/ITjbbSf11Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/impl/TjbbSf11ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/controller/TjbbSf3Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/entity/TjbbSf3.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/TjbbSf3Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/xml/TjbbSf3Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/ITjbbSf3Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/impl/TjbbSf3ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/controller/TjbbSf5Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/entity/TjbbSf5.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/TjbbSf5Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/xml/TjbbSf5Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/ITjbbSf5Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/impl/TjbbSf5ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/controller/TjbbSf6Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/entity/TjbbSf6.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/TjbbSf6Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/xml/TjbbSf6Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/ITjbbSf6Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/impl/TjbbSf6ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/controller/TjbbSf8Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/entity/TjbbSf8.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/TjbbSf8Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/xml/TjbbSf8Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/ITjbbSf8Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/impl/TjbbSf8ServiceImpl.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/controller/TjbbSf9Controller.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/entity/TjbbSf9.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/TjbbSf9Mapper.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/xml/TjbbSf9Mapper.xml create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/ITjbbSf9Service.java create mode 100644 jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/impl/TjbbSf9ServiceImpl.java create mode 100644 jeecgboot-vue3/src/views/tjbbVue/Tjbb.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/TjbbList.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Modal.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.api.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.data.ts create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9List.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Form.vue create mode 100644 jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Modal.vue diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/controller/Tjbb_141Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/controller/Tjbb_141Controller.java new file mode 100644 index 0000000..3f4881a --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/controller/Tjbb_141Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbb141.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb141.entity.Tjbb_141; +import org.jeecg.modules.tjbb.tjbb141.service.ITjbb_141Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_141 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_141") +@RestController +@RequestMapping("/tjbb141/tjbb_141") +@Slf4j +public class Tjbb_141Controller extends JeecgController { + @Autowired + private ITjbb_141Service tjbb_141Service; + + /** + * 分页列表查询 + * + * @param tjbb_141 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_141-分页列表查询") + @ApiOperation(value="tjbb_141-分页列表查询", notes="tjbb_141-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_141 tjbb_141, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_141, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_141Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_141 + * @return + */ + @AutoLog(value = "tjbb_141-添加") + @ApiOperation(value="tjbb_141-添加", notes="tjbb_141-添加") + @RequiresPermissions("tjbb141:tjbb_141:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_141 tjbb_141) { + tjbb_141Service.save(tjbb_141); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_141 + * @return + */ + @AutoLog(value = "tjbb_141-编辑") + @ApiOperation(value="tjbb_141-编辑", notes="tjbb_141-编辑") + @RequiresPermissions("tjbb141:tjbb_141:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_141 tjbb_141) { + tjbb_141Service.updateById(tjbb_141); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_141-通过id删除") + @ApiOperation(value="tjbb_141-通过id删除", notes="tjbb_141-通过id删除") + @RequiresPermissions("tjbb141:tjbb_141:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_141Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_141-批量删除") + @ApiOperation(value="tjbb_141-批量删除", notes="tjbb_141-批量删除") + @RequiresPermissions("tjbb141:tjbb_141:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_141Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_141-通过id查询") + @ApiOperation(value="tjbb_141-通过id查询", notes="tjbb_141-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_141 tjbb_141 = tjbb_141Service.getById(id); + if(tjbb_141==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_141); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_141 + */ + @RequiresPermissions("tjbb141:tjbb_141:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_141 tjbb_141) { + return super.exportXls(request, tjbb_141, Tjbb_141.class, "tjbb_141"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbb_141Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, Tjbb_141.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/entity/Tjbb_141.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/entity/Tjbb_141.java new file mode 100644 index 0000000..0adfc6f --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/entity/Tjbb_141.java @@ -0,0 +1,107 @@ +package org.jeecg.modules.tjbb.tjbb141.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_141 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_141") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_141对象", description="tjbb_141") +public class Tjbb_141 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**专业名称*/ + @Excel(name = "专业名称", width = 15) + @ApiModelProperty(value = "专业名称") + private java.lang.String zymc; + /**专业代码*/ + @Excel(name = "专业代码", width = 15) + @ApiModelProperty(value = "专业代码") + private java.lang.String zydm; + /**所属单位名称*/ + @Excel(name = "所属单位名称", width = 15) + @ApiModelProperty(value = "所属单位名称") + private java.lang.String ssdwmc; + /**所属单位号*/ + @Excel(name = "所属单位号", width = 15) + @ApiModelProperty(value = "所属单位号") + private java.lang.String ssdwh; + /**专业设置年份*/ + @Excel(name = "专业设置年份", width = 15) + @ApiModelProperty(value = "专业设置年份") + private java.lang.String zysznf; + /**学制*/ + @Excel(name = "学制", width = 15) + @ApiModelProperty(value = "学制") + private java.lang.String xz; + /**允许修业年限*/ + @Excel(name = "允许修业年限", width = 15) + @ApiModelProperty(value = "允许修业年限") + private java.lang.String rxxynx; + /**授予学位门类*/ + @Excel(name = "授予学位门类", width = 15) + @ApiModelProperty(value = "授予学位门类") + private java.lang.String syxwml; + /**招生状态*/ + @Excel(name = "招生状态", width = 15) + @ApiModelProperty(value = "招生状态") + private java.lang.String zszt; + /**是否新专业*/ + @Excel(name = "是否新专业", width = 15) + @ApiModelProperty(value = "是否新专业") + private java.lang.String sfxzy; + /**是否师范类专业*/ + @Excel(name = "是否师范类专业", width = 15) + @ApiModelProperty(value = "是否师范类专业") + private java.lang.String sfsflzy; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/Tjbb_141Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/Tjbb_141Mapper.java new file mode 100644 index 0000000..2437304 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/Tjbb_141Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbb141.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb141.entity.Tjbb_141; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_141 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_141Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/xml/Tjbb_141Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/xml/Tjbb_141Mapper.xml new file mode 100644 index 0000000..ccc4017 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/mapper/xml/Tjbb_141Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/ITjbb_141Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/ITjbb_141Service.java new file mode 100644 index 0000000..fd2a996 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/ITjbb_141Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbb141.service; + +import org.jeecg.modules.tjbb.tjbb141.entity.Tjbb_141; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_141 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_141Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/impl/Tjbb_141ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/impl/Tjbb_141ServiceImpl.java new file mode 100644 index 0000000..fe5674a --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb141/service/impl/Tjbb_141ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbb141.service.impl; + +import org.jeecg.modules.tjbb.tjbb141.entity.Tjbb_141; +import org.jeecg.modules.tjbb.tjbb141.mapper.Tjbb_141Mapper; +import org.jeecg.modules.tjbb.tjbb141.service.ITjbb_141Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_141 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_141ServiceImpl extends ServiceImpl implements ITjbb_141Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/controller/Tjbb_151Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/controller/Tjbb_151Controller.java new file mode 100644 index 0000000..22cc2ce --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/controller/Tjbb_151Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbb151.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb151.entity.Tjbb_151; +import org.jeecg.modules.tjbb.tjbb151.service.ITjbb_151Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_151 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_151") +@RestController +@RequestMapping("/tjbb151/tjbb_151") +@Slf4j +public class Tjbb_151Controller extends JeecgController { + @Autowired + private ITjbb_151Service tjbb_151Service; + + /** + * 分页列表查询 + * + * @param tjbb_151 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_151-分页列表查询") + @ApiOperation(value="tjbb_151-分页列表查询", notes="tjbb_151-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_151 tjbb_151, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_151, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_151Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_151 + * @return + */ + @AutoLog(value = "tjbb_151-添加") + @ApiOperation(value="tjbb_151-添加", notes="tjbb_151-添加") + @RequiresPermissions("tjbb151:tjbb_151:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_151 tjbb_151) { + tjbb_151Service.save(tjbb_151); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_151 + * @return + */ + @AutoLog(value = "tjbb_151-编辑") + @ApiOperation(value="tjbb_151-编辑", notes="tjbb_151-编辑") + @RequiresPermissions("tjbb151:tjbb_151:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_151 tjbb_151) { + tjbb_151Service.updateById(tjbb_151); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_151-通过id删除") + @ApiOperation(value="tjbb_151-通过id删除", notes="tjbb_151-通过id删除") + @RequiresPermissions("tjbb151:tjbb_151:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_151Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_151-批量删除") + @ApiOperation(value="tjbb_151-批量删除", notes="tjbb_151-批量删除") + @RequiresPermissions("tjbb151:tjbb_151:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_151Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_151-通过id查询") + @ApiOperation(value="tjbb_151-通过id查询", notes="tjbb_151-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_151 tjbb_151 = tjbb_151Service.getById(id); + if(tjbb_151==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_151); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_151 + */ + @RequiresPermissions("tjbb151:tjbb_151:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_151 tjbb_151) { + return super.exportXls(request, tjbb_151, Tjbb_151.class, "tjbb_151"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbb_151Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, Tjbb_151.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/entity/Tjbb_151.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/entity/Tjbb_151.java new file mode 100644 index 0000000..768e3c0 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/entity/Tjbb_151.java @@ -0,0 +1,115 @@ +package org.jeecg.modules.tjbb.tjbb151.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_151 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_151") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_151对象", description="tjbb_151") +public class Tjbb_151 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**工号*/ + @Excel(name = "工号", width = 15) + @ApiModelProperty(value = "工号") + private java.lang.String gh; + /**姓名*/ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private java.lang.String xm; + /**性别*/ + @Excel(name = "性别", width = 15) + @ApiModelProperty(value = "性别") + private java.lang.String xb; + /**出生年月*/ + @Excel(name = "出生年月", width = 15) + @ApiModelProperty(value = "出生年月") + private java.lang.String csny; + /**入校时间*/ + @Excel(name = "入校时间", width = 15) + @ApiModelProperty(value = "入校时间") + private java.lang.String rxsj; + /**任职状态*/ + @Excel(name = "任职状态", width = 15) + @ApiModelProperty(value = "任职状态") + private java.lang.String rzzt; + /**单位号*/ + @Excel(name = "单位号", width = 15) + @ApiModelProperty(value = "单位号") + private java.lang.String dwh; + /**单位名称*/ + @Excel(name = "单位名称", width = 15) + @ApiModelProperty(value = "单位名称") + private java.lang.String dwmc; + /**学历*/ + @Excel(name = "学历", width = 15) + @ApiModelProperty(value = "学历") + private java.lang.String xl; + /**最高学位*/ + @Excel(name = "最高学位", width = 15) + @ApiModelProperty(value = "最高学位") + private java.lang.String zgxw; + /**学缘*/ + @Excel(name = "学缘", width = 15) + @ApiModelProperty(value = "学缘") + private java.lang.String xy; + /**专业技术职称*/ + @Excel(name = "专业技术职称", width = 15) + @ApiModelProperty(value = "专业技术职称") + private java.lang.String zyjszc; + /**学科类别*/ + @Excel(name = "学科类别", width = 15) + @ApiModelProperty(value = "学科类别") + private java.lang.String xklb; + /**政治面貌*/ + @Excel(name = "政治面貌", width = 15) + @ApiModelProperty(value = "政治面貌") + private java.lang.String zzmm; + /**国籍*/ + @Excel(name = "国籍", width = 15) + @ApiModelProperty(value = "国籍") + private java.lang.String gj; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/Tjbb_151Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/Tjbb_151Mapper.java new file mode 100644 index 0000000..1db9fe0 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/Tjbb_151Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbb151.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb151.entity.Tjbb_151; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_151 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_151Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/xml/Tjbb_151Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/xml/Tjbb_151Mapper.xml new file mode 100644 index 0000000..ff63fd4 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/mapper/xml/Tjbb_151Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/ITjbb_151Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/ITjbb_151Service.java new file mode 100644 index 0000000..fd8e10c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/ITjbb_151Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbb151.service; + +import org.jeecg.modules.tjbb.tjbb151.entity.Tjbb_151; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_151 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_151Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/impl/Tjbb_151ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/impl/Tjbb_151ServiceImpl.java new file mode 100644 index 0000000..d4c268f --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb151/service/impl/Tjbb_151ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbb151.service.impl; + +import org.jeecg.modules.tjbb.tjbb151.entity.Tjbb_151; +import org.jeecg.modules.tjbb.tjbb151.mapper.Tjbb_151Mapper; +import org.jeecg.modules.tjbb.tjbb151.service.ITjbb_151Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_151 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_151ServiceImpl extends ServiceImpl implements ITjbb_151Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/controller/Tjbb_152Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/controller/Tjbb_152Controller.java new file mode 100644 index 0000000..b18bcb8 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/controller/Tjbb_152Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbb152.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb152.entity.Tjbb_152; +import org.jeecg.modules.tjbb.tjbb152.service.ITjbb_152Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_152 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_152") +@RestController +@RequestMapping("/tjbb152/tjbb_152") +@Slf4j +public class Tjbb_152Controller extends JeecgController { + @Autowired + private ITjbb_152Service tjbb_152Service; + + /** + * 分页列表查询 + * + * @param tjbb_152 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_152-分页列表查询") + @ApiOperation(value="tjbb_152-分页列表查询", notes="tjbb_152-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_152 tjbb_152, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_152, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_152Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_152 + * @return + */ + @AutoLog(value = "tjbb_152-添加") + @ApiOperation(value="tjbb_152-添加", notes="tjbb_152-添加") + @RequiresPermissions("tjbb152:tjbb_152:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_152 tjbb_152) { + tjbb_152Service.save(tjbb_152); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_152 + * @return + */ + @AutoLog(value = "tjbb_152-编辑") + @ApiOperation(value="tjbb_152-编辑", notes="tjbb_152-编辑") + @RequiresPermissions("tjbb152:tjbb_152:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_152 tjbb_152) { + tjbb_152Service.updateById(tjbb_152); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_152-通过id删除") + @ApiOperation(value="tjbb_152-通过id删除", notes="tjbb_152-通过id删除") + @RequiresPermissions("tjbb152:tjbb_152:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_152Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_152-批量删除") + @ApiOperation(value="tjbb_152-批量删除", notes="tjbb_152-批量删除") + @RequiresPermissions("tjbb152:tjbb_152:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_152Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_152-通过id查询") + @ApiOperation(value="tjbb_152-通过id查询", notes="tjbb_152-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_152 tjbb_152 = tjbb_152Service.getById(id); + if(tjbb_152==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_152); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_152 + */ + @RequiresPermissions("tjbb152:tjbb_152:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_152 tjbb_152) { + return super.exportXls(request, tjbb_152, Tjbb_152.class, "tjbb_152"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbb_152Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, Tjbb_152.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/entity/Tjbb_152.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/entity/Tjbb_152.java new file mode 100644 index 0000000..afa76b8 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/entity/Tjbb_152.java @@ -0,0 +1,100 @@ +package org.jeecg.modules.tjbb.tjbb152.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_152 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_152") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_152对象", description="tjbb_152") +public class Tjbb_152 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**工号*/ + @Excel(name = "工号", width = 15) + @ApiModelProperty(value = "工号") + private java.lang.String gh; + /**姓名*/ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private java.lang.String xm; + /**任教类型*/ + @Excel(name = "任教类型", width = 15) + @ApiModelProperty(value = "任教类型") + private java.lang.String rjlx; + /**任教专业名称*/ + @Excel(name = "任教专业名称", width = 15) + @ApiModelProperty(value = "任教专业名称") + private java.lang.String rjzymc; + /**任教专业代码*/ + @Excel(name = "任教专业代码", width = 15) + @ApiModelProperty(value = "任教专业代码") + private java.lang.String rjzydm; + /**专业任教时间*/ + @Excel(name = "专业任教时间", width = 15) + @ApiModelProperty(value = "专业任教时间") + private java.lang.String zyrjsj; + /**是否实验技术人员*/ + @Excel(name = "是否实验技术人员", width = 15) + @ApiModelProperty(value = "是否实验技术人员") + private java.lang.String sfsyjsry; + /**是否双师双能型*/ + @Excel(name = "是否双师双能型", width = 15) + @ApiModelProperty(value = "是否双师双能型") + private java.lang.String sfsssnx; + /**是否工程背景*/ + @Excel(name = "是否工程背景", width = 15) + @ApiModelProperty(value = "是否工程背景") + private java.lang.String sfgcbj; + /**是否行业背景*/ + @Excel(name = "是否行业背景", width = 15) + @ApiModelProperty(value = "是否行业背景") + private java.lang.String sfhybj; + /**是否具有国(境)外一年及以上经历*/ + @Excel(name = "是否具有国(境)外一年及以上经历", width = 15) + @ApiModelProperty(value = "是否具有国(境)外一年及以上经历") + private java.lang.String ynysjl; + + @TableField(exist = false) + private String count; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/Tjbb_152Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/Tjbb_152Mapper.java new file mode 100644 index 0000000..4148fe6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/Tjbb_152Mapper.java @@ -0,0 +1,22 @@ +package org.jeecg.modules.tjbb.tjbb152.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb152.entity.Tjbb_152; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_152 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_152Mapper extends BaseMapper { + + List getGroupByCountByRjzymc(); + + List getGroupByCountByGjzc(); + + List getGroupByCountBySbs(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/xml/Tjbb_152Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/xml/Tjbb_152Mapper.xml new file mode 100644 index 0000000..e16858c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/mapper/xml/Tjbb_152Mapper.xml @@ -0,0 +1,21 @@ + + + + + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/ITjbb_152Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/ITjbb_152Service.java new file mode 100644 index 0000000..919dc4c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/ITjbb_152Service.java @@ -0,0 +1,21 @@ +package org.jeecg.modules.tjbb.tjbb152.service; + +import org.jeecg.modules.tjbb.tjbb152.entity.Tjbb_152; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + * @Description: tjbb_152 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_152Service extends IService { + + List getGroupByCountByRjzymc(); + + List getGroupByCountByGjzc(); + + List getGroupByCountBySbs(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/impl/Tjbb_152ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/impl/Tjbb_152ServiceImpl.java new file mode 100644 index 0000000..d1e9291 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb152/service/impl/Tjbb_152ServiceImpl.java @@ -0,0 +1,36 @@ +package org.jeecg.modules.tjbb.tjbb152.service.impl; + +import org.jeecg.modules.tjbb.tjbb152.entity.Tjbb_152; +import org.jeecg.modules.tjbb.tjbb152.mapper.Tjbb_152Mapper; +import org.jeecg.modules.tjbb.tjbb152.service.ITjbb_152Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import java.util.Collections; +import java.util.List; + +/** + * @Description: tjbb_152 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_152ServiceImpl extends ServiceImpl implements ITjbb_152Service { + + @Override + public List getGroupByCountByRjzymc() { + return baseMapper.getGroupByCountByRjzymc(); + } + + @Override + public List getGroupByCountByGjzc() { + return baseMapper.getGroupByCountByGjzc(); + } + + @Override + public List getGroupByCountBySbs() { + return baseMapper.getGroupByCountBySbs(); + } +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/controller/Tjbb_153Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/controller/Tjbb_153Controller.java new file mode 100644 index 0000000..d333ab7 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/controller/Tjbb_153Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbb153.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb153.entity.Tjbb_153; +import org.jeecg.modules.tjbb.tjbb153.service.ITjbb_153Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_153 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_153") +@RestController +@RequestMapping("/tjbb153/tjbb_153") +@Slf4j +public class Tjbb_153Controller extends JeecgController { + @Autowired + private ITjbb_153Service tjbb_153Service; + + /** + * 分页列表查询 + * + * @param tjbb_153 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_153-分页列表查询") + @ApiOperation(value="tjbb_153-分页列表查询", notes="tjbb_153-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_153 tjbb_153, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_153, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_153Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_153 + * @return + */ + @AutoLog(value = "tjbb_153-添加") + @ApiOperation(value="tjbb_153-添加", notes="tjbb_153-添加") + @RequiresPermissions("tjbb153:tjbb_153:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_153 tjbb_153) { + tjbb_153Service.save(tjbb_153); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_153 + * @return + */ + @AutoLog(value = "tjbb_153-编辑") + @ApiOperation(value="tjbb_153-编辑", notes="tjbb_153-编辑") + @RequiresPermissions("tjbb153:tjbb_153:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_153 tjbb_153) { + tjbb_153Service.updateById(tjbb_153); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_153-通过id删除") + @ApiOperation(value="tjbb_153-通过id删除", notes="tjbb_153-通过id删除") + @RequiresPermissions("tjbb153:tjbb_153:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_153Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_153-批量删除") + @ApiOperation(value="tjbb_153-批量删除", notes="tjbb_153-批量删除") + @RequiresPermissions("tjbb153:tjbb_153:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_153Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_153-通过id查询") + @ApiOperation(value="tjbb_153-通过id查询", notes="tjbb_153-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_153 tjbb_153 = tjbb_153Service.getById(id); + if(tjbb_153==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_153); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_153 + */ + @RequiresPermissions("tjbb153:tjbb_153:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_153 tjbb_153) { + return super.exportXls(request, tjbb_153, Tjbb_153.class, "tjbb_153"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbb_153Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, Tjbb_153.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/entity/Tjbb_153.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/entity/Tjbb_153.java new file mode 100644 index 0000000..7250861 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/entity/Tjbb_153.java @@ -0,0 +1,115 @@ +package org.jeecg.modules.tjbb.tjbb153.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_153 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_153") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_153对象", description="tjbb_153") +public class Tjbb_153 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**工号*/ + @Excel(name = "工号", width = 15) + @ApiModelProperty(value = "工号") + private java.lang.String gh; + /**姓名*/ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private java.lang.String xm; + /**性别*/ + @Excel(name = "性别", width = 15) + @ApiModelProperty(value = "性别") + private java.lang.String xb; + /**出生年月*/ + @Excel(name = "出生年月", width = 15) + @ApiModelProperty(value = "出生年月") + private java.lang.String csny; + /**聘任时间*/ + @Excel(name = "聘任时间", width = 15) + @ApiModelProperty(value = "聘任时间") + private java.lang.String prsj; + /**任职状态*/ + @Excel(name = "任职状态", width = 15) + @ApiModelProperty(value = "任职状态") + private java.lang.String rzzt; + /**聘期*/ + @Excel(name = "聘期", width = 15) + @ApiModelProperty(value = "聘期") + private java.lang.String pq; + /**单位号*/ + @Excel(name = "单位号", width = 15) + @ApiModelProperty(value = "单位号") + private java.lang.String dwh; + /**单位名称*/ + @Excel(name = "单位名称", width = 15) + @ApiModelProperty(value = "单位名称") + private java.lang.String dwmc; + /**学历*/ + @Excel(name = "学历", width = 15) + @ApiModelProperty(value = "学历") + private java.lang.String xl; + /**最高学位*/ + @Excel(name = "最高学位", width = 15) + @ApiModelProperty(value = "最高学位") + private java.lang.String zgxw; + /**专业技术职称*/ + @Excel(name = "专业技术职称", width = 15) + @ApiModelProperty(value = "专业技术职称") + private java.lang.String zyjszc; + /**工作单位类别*/ + @Excel(name = "工作单位类别", width = 15) + @ApiModelProperty(value = "工作单位类别") + private java.lang.String gzdwlb; + /**承担本科教学任务*/ + @Excel(name = "承担本科教学任务", width = 15) + @ApiModelProperty(value = "承担本科教学任务") + private java.lang.String cdbkjxrw; + /**地区*/ + @Excel(name = "地区", width = 15) + @ApiModelProperty(value = "地区") + private java.lang.String dq; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/Tjbb_153Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/Tjbb_153Mapper.java new file mode 100644 index 0000000..aba6057 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/Tjbb_153Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbb153.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb153.entity.Tjbb_153; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_153 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_153Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/xml/Tjbb_153Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/xml/Tjbb_153Mapper.xml new file mode 100644 index 0000000..f58f8c6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/mapper/xml/Tjbb_153Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/ITjbb_153Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/ITjbb_153Service.java new file mode 100644 index 0000000..1edf913 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/ITjbb_153Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbb153.service; + +import org.jeecg.modules.tjbb.tjbb153.entity.Tjbb_153; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_153 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_153Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/impl/Tjbb_153ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/impl/Tjbb_153ServiceImpl.java new file mode 100644 index 0000000..252c6d7 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb153/service/impl/Tjbb_153ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbb153.service.impl; + +import org.jeecg.modules.tjbb.tjbb153.entity.Tjbb_153; +import org.jeecg.modules.tjbb.tjbb153.mapper.Tjbb_153Mapper; +import org.jeecg.modules.tjbb.tjbb153.service.ITjbb_153Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_153 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_153ServiceImpl extends ServiceImpl implements ITjbb_153Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/TjbbController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/TjbbController.java new file mode 100644 index 0000000..171ed77 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/TjbbController.java @@ -0,0 +1,757 @@ +package org.jeecg.modules.tjbb.tjbb16.controller; + +import com.alibaba.druid.util.StringUtils; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.jeecg.common.constant.SymbolConstant; +import org.jeecg.common.system.base.controller.JeecgController; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.vo.LoginUser; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.config.JeecgBaseConfig; +import org.jeecg.modules.tjbb.tjbb141.entity.Tjbb_141; +import org.jeecg.modules.tjbb.tjbb141.service.ITjbb_141Service; +import org.jeecg.modules.tjbb.tjbb151.service.ITjbb_151Service; +import org.jeecg.modules.tjbb.tjbb152.entity.Tjbb_152; +import org.jeecg.modules.tjbb.tjbb152.service.ITjbb_152Service; +import org.jeecg.modules.tjbb.tjbb153.service.ITjbb_153Service; +import org.jeecg.modules.tjbb.tjbb16.entity.Tjbb_16; +import org.jeecg.modules.tjbb.tjbb16.service.ITjbb_16Service; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import org.jeecg.modules.tjbb.tjbb24.service.ITjbb_24Service; +import org.jeecg.modules.tjbb.tjbbSf11.entity.TjbbSf11; +import org.jeecg.modules.tjbb.tjbbSf11.service.ITjbbSf11Service; +import org.jeecg.modules.tjbb.tjbbSf3.entity.TjbbSf3; +import org.jeecg.modules.tjbb.tjbbSf3.service.ITjbbSf3Service; +import org.jeecg.modules.tjbb.tjbbSf5.entity.TjbbSf5; +import org.jeecg.modules.tjbb.tjbbSf5.service.ITjbbSf5Service; +import org.jeecg.modules.tjbb.tjbbSf6.service.ITjbbSf6Service; +import org.jeecg.modules.tjbb.tjbbSf8.entity.TjbbSf8; +import org.jeecg.modules.tjbb.tjbbSf8.service.ITjbbSf8Service; +import org.jeecg.modules.tjbb.tjbbSf9.entity.TjbbSf9; +import org.jeecg.modules.tjbb.tjbbSf9.service.ITjbbSf9Service; +import org.jeecgframework.poi.excel.ExcelExportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; + +import javax.annotation.Resource; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.text.DecimalFormat; +import java.util.*; +import java.util.stream.Collectors; + +/** +* @Description: tjbb +* @Author: jeecg-boot +* @Date: 2024-11-04 +* @Version: V1.0 +*/ +@RestController +@RequestMapping("/tjbb/tjbb") +@Slf4j +public class TjbbController extends JeecgController { + @Autowired + private ITjbb_16Service tjbb_16Service; + @Autowired + private ITjbb_24Service tjbb_24Service; + @Autowired + private ITjbb_141Service tjbb_141Service; + @Autowired + private ITjbb_151Service tjbb_151Service; + @Autowired + private ITjbb_152Service tjbb_152Service; + @Autowired + private ITjbb_153Service tjbb_153Service; + @Autowired + private ITjbbSf3Service tjbbSf3Service; + @Autowired + private ITjbbSf5Service tjbbSf5Service; + @Autowired + private ITjbbSf6Service tjbbSf6Service; + @Autowired + private ITjbbSf8Service tjbbSf8Service; + @Autowired + private ITjbbSf9Service tjbbSf9Service; + @Autowired + private ITjbbSf11Service tjbbSf11Service; + + @Resource + private JeecgBaseConfig jeecgBaseConfig; + + + @GetMapping(value = "/list") + public Result> queryPageList() { + long t16 = tjbb_16Service.count(); + long t24 = tjbb_24Service.count(); + long t141 = tjbb_141Service.count(); + long t151 = tjbb_151Service.count(); + long t152 = tjbb_152Service.count(); + long t153 = tjbb_153Service.count(); + long tsf3 = tjbbSf3Service.count(); + long tsf5 = tjbbSf5Service.count(); + long tsf6 = tjbbSf6Service.count(); + long tsf8 = tjbbSf8Service.count(); + long tsf9 = tjbbSf9Service.count(); + long tsf11 = tjbbSf11Service.count(); + Map map = new HashMap<>(); + map.put("t16",t16); + map.put("t24",t24); + map.put("t141",t141); + map.put("t151",t151); + map.put("t152",t152); + map.put("t153",t153); + map.put("tsf3",tsf3); + map.put("tsf5",tsf5); + map.put("tsf6",tsf6); + map.put("tsf8",tsf8); + map.put("tsf9",tsf9); + map.put("tsf11",tsf11); + return Result.OK(map); + } + + + @DeleteMapping(value = "/delete") + public Result delete() { + tjbb_16Service.remove(new QueryWrapper<>()); + tjbb_24Service.remove(new QueryWrapper<>()); + tjbb_141Service.remove(new QueryWrapper<>()); + tjbb_151Service.remove(new QueryWrapper<>()); + tjbb_152Service.remove(new QueryWrapper<>()); + tjbb_153Service.remove(new QueryWrapper<>()); + tjbbSf3Service.remove(new QueryWrapper<>()); + tjbbSf5Service.remove(new QueryWrapper<>()); + tjbbSf6Service.remove(new QueryWrapper<>()); + tjbbSf8Service.remove(new QueryWrapper<>()); + tjbbSf9Service.remove(new QueryWrapper<>()); + tjbbSf11Service.remove(new QueryWrapper<>()); + return Result.OK("删除成功!"); + } + + + + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_16 tjbb_16,HttpServletResponse response) throws Exception { + // Step.1 组装查询条件 + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + + List entityList = new ArrayList<>(); + + //获取列头 + QueryWrapper tjbb141QueryWrapper = new QueryWrapper<>(); + tjbb141QueryWrapper.eq("sfsflzy","S"); + tjbb141QueryWrapper.orderByAsc("xnzydm"); + List headList = tjbb_141Service.list(tjbb141QueryWrapper); + + //表头 + List heade = new ArrayList<>(); + heade.add("维度"); + heade.add("监测指标"); + heade.add("监测指标1"); + heade.add("监测指标2"); + heade.add("一级参考标准"); + for(Tjbb_141 par : headList){ + heade.add(par.getXnzymc()); + } + //动态表头 + for(String data: heade){ + ExcelExportEntity excelExportEntity = new ExcelExportEntity(data,data); +// excelExportEntity.setMergeVertical(true); + entityList.add(excelExportEntity); + } + + //表数据 + List> pageList = new ArrayList<>(); + Map objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标","1"); + objectMap.put("监测指标1","教师教育课程学分"); + objectMap.put("监测指标2","必修课"); + objectMap.put("一级参考标准","必修课≥10学分"); + + List zbsf5List = tjbbSf5Service.list(new QueryWrapper<>()); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getJsjykcbx).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教师教育课程学分"); + objectMap.put("监测指标2","总学分"); + objectMap.put("一级参考标准","总学分≥14学分"); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getJsjykcxj).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标","2"); + objectMap.put("监测指标1","人文社会与科学素养课程学分占总学分比例"); + objectMap.put("监测指标2"," "); + objectMap.put("一级参考标准","≥10%"); + for(Tjbb_141 par : headList){ + String rwshykxsykc = zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getRwshykxsykc).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String xfzj = zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXfzj).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + objectMap.put(par.getXnzymc(), StringUtils.isEmpty(xfzj)?null:new DecimalFormat("#.00%").format(Double.parseDouble(rwshykxsykc)/Double.parseDouble(xfzj))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","人文社会与科学素养课程学分"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getRwshykxsykc).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","总学分"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXfzj).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标","3"); + objectMap.put("监测指标1","学科专业课程学分占总学分比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥50%"); + for(Tjbb_141 par : headList){ + String xkzykc = zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXkzykc).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String xfzj = zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXfzj).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + objectMap.put(par.getXnzymc(), StringUtils.isEmpty(xfzj)?null:new DecimalFormat("#.00%").format(Double.parseDouble(xkzykc)/Double.parseDouble(xfzj))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","学科专业课程学分"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXkzykc).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","课程与教学"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","总学分"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getXfzj).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","合作与实践"); + objectMap.put("监测指标","4"); + objectMap.put("监测指标1","教育实践时间"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥18周"); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getJysjsjzj).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","合作与实践"); + objectMap.put("监测指标","5"); + objectMap.put("监测指标1","实习生数与教育实践基地数比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≤20:1"); + + List zb24GpzyList = tjbb_24Service.getGroupByCountByXnzydm(); + for(Tjbb_141 par : headList){ + String sxss = zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getCjjysjsfssxzs).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String jdzs = zb24GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(Tjbb_24::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(sxss) && !StringUtils.isEmpty(jdzs)){ + objectMap.put(par.getXnzymc(), StringUtils.isEmpty(jdzs)?null:new DecimalFormat("#.00%").format(Double.parseDouble(sxss)/Double.parseDouble(jdzs))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","合作与实践"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","实习生数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf5List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf5::getCjjysjsfssxzs).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","合作与实践"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教育实践基地数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb24GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(Tjbb_24::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + List zb16GpzyList = tjbb_16Service.getGroupByCountByXnzydm(); + List zbsf9GpzyList = tjbbSf9Service.list(); + List zb152GpzyList = tjbb_152Service.getGroupByCountByRjzymc(); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标","6"); + objectMap.put("监测指标1","生师比"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≤18:1"); + for(Tjbb_141 par : headList){ + String bkss = zb16GpzyList.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String jysss = zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getSsyjss).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String jybss = zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getBsyjss).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String lxss = zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getBzklxss).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String bzyjss = zb152GpzyList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + + if(!StringUtils.isEmpty(bzyjss) ){ + if(StringUtils.isEmpty(bkss)){ + bkss = "0"; + } + if(StringUtils.isEmpty(jysss)){ + jysss = "0"; + } + if(StringUtils.isEmpty(jybss)){ + jybss = "0"; + } + if(StringUtils.isEmpty(lxss)){ + lxss = "0"; + } + Double tj = Double.parseDouble(bkss) + Double.parseDouble(jysss) + Double.parseDouble(jybss) - Double.parseDouble(lxss); + objectMap.put(par.getXnzymc(), StringUtils.isEmpty(bzyjss)?null:new DecimalFormat("#.00%").format(tj/Double.parseDouble(bzyjss))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","专业本科生数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb16GpzyList.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教育硕士数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getSsyjss).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教育博士数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getBsyjss).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","留学生数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf9GpzyList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf9::getBzklxss).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本专业专业教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb152GpzyList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + //此项模板忽略 + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标","7"); + objectMap.put("监测指标1","学科课程与教学论教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","有"); + pageList.add(objectMap); + + + + List zb152GpgjList = tjbb_152Service.getGroupByCountByGjzc(); + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标","8"); + objectMap.put("监测指标1","具有高级职称教师占专任教师比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥学校平均水平"); + for(Tjbb_141 par : headList){ + String gjzc = zb152GpgjList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String allteacher = zb152GpzyList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(allteacher)){ + if(StringUtils.isEmpty(gjzc)){ + gjzc = "0"; + } + objectMap.put(par.getXnzymc(),StringUtils.isEmpty(allteacher)?null:new DecimalFormat("#.00%").format(Double.parseDouble(gjzc)/Double.parseDouble(allteacher))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","高级职称教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb152GpgjList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本专业专业教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb152GpzyList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + + List zb152SbsList = tjbb_152Service.getGroupByCountBySbs(); + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标","9"); + objectMap.put("监测指标1","具有硕博士学位教师占专任教师比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥60%"); + for(Tjbb_141 par : headList){ + String gjzc = zb152GpgjList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String allteacher = zb152SbsList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(allteacher)){ + if(StringUtils.isEmpty(gjzc)){ + gjzc = "0"; + } + objectMap.put(par.getXnzymc(),StringUtils.isEmpty(allteacher)?null:new DecimalFormat("#.00%").format(Double.parseDouble(gjzc)/Double.parseDouble(allteacher))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","硕博士学位教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb152SbsList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本专业专业教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb152GpzyList.stream().filter(zb->zb.getRjzydm().equals(par.getXnzydm())).map(Tjbb_152::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + //todo 待完善 + + List zbsf8AllList = tjbbSf8Service.getJsAllList(); + List zbsf8jzjsList = tjbbSf8Service.getJsJzjsList(); + + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标","10"); + objectMap.put("监测指标1","中学兼职教师占教师教育课程教师比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥20%"); + for(Tjbb_141 par : headList){ + String jzjss = zbsf8jzjsList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf8::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String alljss = zbsf8AllList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf8::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(alljss)){ + if(StringUtils.isEmpty(jzjss)){ + jzjss = "0"; + } + objectMap.put(par.getXnzymc(),StringUtils.isEmpty(alljss)?null:new DecimalFormat("#.00%").format(Double.parseDouble(jzjss)/(Double.parseDouble(alljss)))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本专业中学兼职教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf8jzjsList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf8::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","师资队伍"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本专业教师教育教师"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf8AllList.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf8::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + + List zbsf3List = tjbbSf3Service.list(); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标","11"); + objectMap.put("监测指标1","教学日常运行支出占生均拨款总额与学费收入之和的比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥13%"); + for(Tjbb_141 par : headList){ + String jxrcyxzc = zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getJxrcyxzc).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String sjbkze = zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getSjbkze).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String xfsrzh = zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getXfsrzh).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(jxrcyxzc)){ + if(StringUtils.isEmpty(sjbkze)){ + sjbkze = "0"; + } + if(StringUtils.isEmpty(xfsrzh)){ + xfsrzh = "0"; + } + objectMap.put(par.getXnzymc(),StringUtils.isEmpty(jxrcyxzc)?null:new DecimalFormat("#.00%").format(Double.parseDouble(jxrcyxzc)/(Double.parseDouble(xfsrzh)+Double.parseDouble(sjbkze)))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教学日常运行支出"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getJxrcyxzc).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","生均拨款总额"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getSjbkze).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","学费收入"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getXfsrzh).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标","12"); + objectMap.put("监测指标1","生均教学日常运行支出"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准"," ≥学校平均水平"); + pageList.add(objectMap); + + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教学日常运行支出"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getJxrcyxzc).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本科在校生"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb16GpzyList.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标","13"); + objectMap.put("监测指标1","生均教育实践经费"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥学校平均水平"); + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","教育实践经费"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbsf3List.stream().filter(zb->zb.getXnzydm().equals(par.getXnzydm())).map(TjbbSf3::getJysjjf).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","本科在校生"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb16GpzyList.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + //模板忽略 + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标","14"); + objectMap.put("监测指标1","生均教育类纸质图书"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥30册"); + pageList.add(objectMap); + + //模板忽略 + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1",""); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","每6个实习生配备中学学科教材≥1套"); + pageList.add(objectMap); + + //模板忽略 + objectMap = new HashMap<>(); + objectMap.put("维度","支持条件"); + objectMap.put("监测指标","15"); + objectMap.put("监测指标1","微格教学、语言技能、书写技能、学科实验教学实训室等教学设施"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","有"); + pageList.add(objectMap); + + List zb16Bjy = tjbb_16Service.getBjyrsList(); + List zbSf11List = tjbbSf11Service.list(); + objectMap = new HashMap<>(); + objectMap.put("维度","学生发展"); + objectMap.put("监测指标","16"); + objectMap.put("监测指标1","教师资格证比例"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准","≥75%"); + for(Tjbb_141 par : headList){ + String jszgz = zbSf11List.stream().filter(zb->zb.getXnzymc().equals(par.getXnzymc())).map(TjbbSf11::getJszgz).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + String bjyrs = zb16Bjy.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON)); + if(!StringUtils.isEmpty(jszgz)){ + if(StringUtils.isEmpty(bjyrs)){ + bjyrs = "0"; + } + objectMap.put(par.getXnzymc(),StringUtils.isEmpty(jszgz)?null:new DecimalFormat("#.00%").format(Double.parseDouble(jszgz)/Double.parseDouble(bjyrs))); + } + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","学生发展"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","取得教师资格证人数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zbSf11List.stream().filter(zb->zb.getXnzymc().equals(par.getXnzymc())).map(TjbbSf11::getJszgz).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + objectMap = new HashMap<>(); + objectMap.put("维度","学生发展"); + objectMap.put("监测指标",""); + objectMap.put("监测指标1","毕业生人数"); + objectMap.put("监测指标2",""); + objectMap.put("一级参考标准",""); + for(Tjbb_141 par : headList){ + objectMap.put(par.getXnzymc(),zb16Bjy.stream().filter(zb->zb.getXnzydldm().equals(par.getXnzydm())).map(Tjbb_16::getCount).collect(Collectors.joining(SymbolConstant.SEMICOLON))); + } + pageList.add(objectMap); + + + + + Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams("2024年师范专业监测数据","导出人:"+sysUser.getRealname(), "2024年师范专业监测数据"),entityList,pageList); + ServletOutputStream out = response.getOutputStream(); + workbook.write(out); + out.flush(); + ModelAndView modelAndView = new ModelAndView(); + modelAndView.addObject(out); + + return modelAndView; + + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/Tjbb_16Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/Tjbb_16Controller.java new file mode 100644 index 0000000..6f4160e --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/controller/Tjbb_16Controller.java @@ -0,0 +1,177 @@ +package org.jeecg.modules.tjbb.tjbb16.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb16.entity.Tjbb_16; +import org.jeecg.modules.tjbb.tjbb16.service.ITjbb_16Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_16 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_16") +@RestController +@RequestMapping("/tjbb16/tjbb_16") +@Slf4j +public class Tjbb_16Controller extends JeecgController { + @Autowired + private ITjbb_16Service tjbb_16Service; + + /** + * 分页列表查询 + * + * @param tjbb_16 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_16-分页列表查询") + @ApiOperation(value="tjbb_16-分页列表查询", notes="tjbb_16-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_16 tjbb_16, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_16, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_16Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_16 + * @return + */ + @AutoLog(value = "tjbb_16-添加") + @ApiOperation(value="tjbb_16-添加", notes="tjbb_16-添加") + @RequiresPermissions("tjbb16:tjbb_16:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_16 tjbb_16) { + tjbb_16Service.save(tjbb_16); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_16 + * @return + */ + @AutoLog(value = "tjbb_16-编辑") + @ApiOperation(value="tjbb_16-编辑", notes="tjbb_16-编辑") + @RequiresPermissions("tjbb16:tjbb_16:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_16 tjbb_16) { + tjbb_16Service.updateById(tjbb_16); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_16-通过id删除") + @ApiOperation(value="tjbb_16-通过id删除", notes="tjbb_16-通过id删除") + @RequiresPermissions("tjbb16:tjbb_16:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_16Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_16-批量删除") + @ApiOperation(value="tjbb_16-批量删除", notes="tjbb_16-批量删除") + @RequiresPermissions("tjbb16:tjbb_16:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_16Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_16-通过id查询") + @ApiOperation(value="tjbb_16-通过id查询", notes="tjbb_16-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_16 tjbb_16 = tjbb_16Service.getById(id); + if(tjbb_16==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_16); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_16 + */ + @RequiresPermissions("tjbb16:tjbb_16:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_16 tjbb_16) { + return super.exportXls(request, tjbb_16, Tjbb_16.class, "tjbb_16"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel2(request, response, Tjbb_16.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/entity/Tjbb_16.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/entity/Tjbb_16.java new file mode 100644 index 0000000..9c230ca --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/entity/Tjbb_16.java @@ -0,0 +1,92 @@ +package org.jeecg.modules.tjbb.tjbb16.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_16 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_16") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_16对象", description="tjbb_16") +public class Tjbb_16 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**学号*/ + @Excel(name = "学号", width = 15) + @ApiModelProperty(value = "学号") + private java.lang.String xh; + /**学生姓名*/ + @Excel(name = "学生姓名", width = 15) + @ApiModelProperty(value = "学生姓名") + private java.lang.String xsxm; + /**性别*/ + @Excel(name = "性别", width = 15) + @ApiModelProperty(value = "性别") + private java.lang.String xb; + /**校内专业(大类)名称*/ + @Excel(name = "校内专业(大类)名称", width = 15) + @ApiModelProperty(value = "校内专业(大类)名称") + private java.lang.String xnzydlmc; + /**校内专业(大类)代码*/ + @Excel(name = "校内专业(大类)代码", width = 15) + @ApiModelProperty(value = "校内专业(大类)代码") + private java.lang.String xnzydldm; + /**生源类别*/ + @Excel(name = "生源类别", width = 15) + @ApiModelProperty(value = "生源类别") + private java.lang.String sylb; + /**学生类别*/ + @Excel(name = "学生类别", width = 15) + @ApiModelProperty(value = "学生类别") + private java.lang.String xslb; + /**年级*/ + @Excel(name = "年级", width = 15) + @ApiModelProperty(value = "年级") + private java.lang.String nj; + /**入学年份*/ + @Excel(name = "入学年份", width = 15) + @ApiModelProperty(value = "入学年份") + private java.lang.String rxnf; + + @TableField(exist = false) + private String count; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/Tjbb_16Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/Tjbb_16Mapper.java new file mode 100644 index 0000000..23686e6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/Tjbb_16Mapper.java @@ -0,0 +1,21 @@ +package org.jeecg.modules.tjbb.tjbb16.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb16.entity.Tjbb_16; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; + +/** + * @Description: tjbb_16 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_16Mapper extends BaseMapper { + + List getGroupByCountByXnzydm(); + + List getBjyrsList(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/xml/Tjbb_16Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/xml/Tjbb_16Mapper.xml new file mode 100644 index 0000000..db0735d --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/mapper/xml/Tjbb_16Mapper.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/ITjbb_16Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/ITjbb_16Service.java new file mode 100644 index 0000000..44d8779 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/ITjbb_16Service.java @@ -0,0 +1,20 @@ +package org.jeecg.modules.tjbb.tjbb16.service; + +import org.jeecg.modules.tjbb.tjbb16.entity.Tjbb_16; +import com.baomidou.mybatisplus.extension.service.IService; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; + +import java.util.List; + +/** + * @Description: tjbb_16 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_16Service extends IService { + + List getGroupByCountByXnzydm(); + + List getBjyrsList(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/impl/Tjbb_16ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/impl/Tjbb_16ServiceImpl.java new file mode 100644 index 0000000..94b050d --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb16/service/impl/Tjbb_16ServiceImpl.java @@ -0,0 +1,32 @@ +package org.jeecg.modules.tjbb.tjbb16.service.impl; + +import org.jeecg.modules.tjbb.tjbb16.entity.Tjbb_16; +import org.jeecg.modules.tjbb.tjbb16.mapper.Tjbb_16Mapper; +import org.jeecg.modules.tjbb.tjbb16.service.ITjbb_16Service; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import java.util.Collections; +import java.util.List; + +/** + * @Description: tjbb_16 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_16ServiceImpl extends ServiceImpl implements ITjbb_16Service { + + @Override + public List getGroupByCountByXnzydm() { + return baseMapper.getGroupByCountByXnzydm(); + } + + @Override + public List getBjyrsList() { + return baseMapper.getBjyrsList(); + } +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/controller/Tjbb_24Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/controller/Tjbb_24Controller.java new file mode 100644 index 0000000..703a2b5 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/controller/Tjbb_24Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbb24.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import org.jeecg.modules.tjbb.tjbb24.service.ITjbb_24Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_24 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_24") +@RestController +@RequestMapping("/tjbb24/tjbb_24") +@Slf4j +public class Tjbb_24Controller extends JeecgController { + @Autowired + private ITjbb_24Service tjbb_24Service; + + /** + * 分页列表查询 + * + * @param tjbb_24 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_24-分页列表查询") + @ApiOperation(value="tjbb_24-分页列表查询", notes="tjbb_24-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Tjbb_24 tjbb_24, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbb_24, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbb_24Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbb_24 + * @return + */ + @AutoLog(value = "tjbb_24-添加") + @ApiOperation(value="tjbb_24-添加", notes="tjbb_24-添加") + @RequiresPermissions("tjbb24:tjbb_24:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Tjbb_24 tjbb_24) { + tjbb_24Service.save(tjbb_24); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbb_24 + * @return + */ + @AutoLog(value = "tjbb_24-编辑") + @ApiOperation(value="tjbb_24-编辑", notes="tjbb_24-编辑") + @RequiresPermissions("tjbb24:tjbb_24:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Tjbb_24 tjbb_24) { + tjbb_24Service.updateById(tjbb_24); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_24-通过id删除") + @ApiOperation(value="tjbb_24-通过id删除", notes="tjbb_24-通过id删除") + @RequiresPermissions("tjbb24:tjbb_24:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbb_24Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_24-批量删除") + @ApiOperation(value="tjbb_24-批量删除", notes="tjbb_24-批量删除") + @RequiresPermissions("tjbb24:tjbb_24:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbb_24Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_24-通过id查询") + @ApiOperation(value="tjbb_24-通过id查询", notes="tjbb_24-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Tjbb_24 tjbb_24 = tjbb_24Service.getById(id); + if(tjbb_24==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbb_24); + } + + /** + * 导出excel + * + * @param request + * @param tjbb_24 + */ + @RequiresPermissions("tjbb24:tjbb_24:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Tjbb_24 tjbb_24) { + return super.exportXls(request, tjbb_24, Tjbb_24.class, "tjbb_24"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbb_24Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, Tjbb_24.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/entity/Tjbb_24.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/entity/Tjbb_24.java new file mode 100644 index 0000000..332c1b1 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/entity/Tjbb_24.java @@ -0,0 +1,92 @@ +package org.jeecg.modules.tjbb.tjbb24.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_24 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_24") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_24对象", description="tjbb_24") +public class Tjbb_24 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**基地名称*/ + @Excel(name = "基地名称", width = 15) + @ApiModelProperty(value = "基地名称") + private java.lang.String jdmc; + /**地点*/ + @Excel(name = "地点", width = 15) + @ApiModelProperty(value = "地点") + private java.lang.String dd; + /**建立时间*/ + @Excel(name = "建立时间", width = 15) + @ApiModelProperty(value = "建立时间") + private java.lang.String zlsj; + /**面向校内专业*/ + @Excel(name = "面向校内专业", width = 15) + @ApiModelProperty(value = "面向校内专业") + private java.lang.String mxxnzy; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**是否是创业实习基地*/ + @Excel(name = "是否是创业实习基地", width = 15) + @ApiModelProperty(value = "是否是创业实习基地") + private java.lang.String sfscysxjd; + /**是否是示范性教育实践基地*/ + @Excel(name = "是否是示范性教育实践基地", width = 15) + @ApiModelProperty(value = "是否是示范性教育实践基地") + private java.lang.String sfjyjd; + /**当年接纳学生总数(人次)*/ + @Excel(name = "当年接纳学生总数(人次)", width = 15) + @ApiModelProperty(value = "当年接纳学生总数(人次)") + private java.lang.String jnxszs; + /**是否与行业企业共建*/ + @Excel(name = "是否与行业企业共建", width = 15) + @ApiModelProperty(value = "是否与行业企业共建") + private java.lang.String sfyhyqygj; + + @TableField(exist = false) + private String count; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/Tjbb_24Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/Tjbb_24Mapper.java new file mode 100644 index 0000000..0a05225 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/Tjbb_24Mapper.java @@ -0,0 +1,18 @@ +package org.jeecg.modules.tjbb.tjbb24.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_24 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface Tjbb_24Mapper extends BaseMapper { + + List getGroupByCountByXnzydm(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/xml/Tjbb_24Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/xml/Tjbb_24Mapper.xml new file mode 100644 index 0000000..8fec179 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/mapper/xml/Tjbb_24Mapper.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/ITjbb_24Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/ITjbb_24Service.java new file mode 100644 index 0000000..bef58eb --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/ITjbb_24Service.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbb24.service; + +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + * @Description: tjbb_24 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbb_24Service extends IService { + + List getGroupByCountByXnzydm(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/impl/Tjbb_24ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/impl/Tjbb_24ServiceImpl.java new file mode 100644 index 0000000..43549ab --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbb24/service/impl/Tjbb_24ServiceImpl.java @@ -0,0 +1,26 @@ +package org.jeecg.modules.tjbb.tjbb24.service.impl; + +import org.jeecg.modules.tjbb.tjbb24.entity.Tjbb_24; +import org.jeecg.modules.tjbb.tjbb24.mapper.Tjbb_24Mapper; +import org.jeecg.modules.tjbb.tjbb24.service.ITjbb_24Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import java.util.Collections; +import java.util.List; + +/** + * @Description: tjbb_24 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class Tjbb_24ServiceImpl extends ServiceImpl implements ITjbb_24Service { + + @Override + public List getGroupByCountByXnzydm() { + return baseMapper.getGroupByCountByXnzydm(); + } +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/controller/TjbbSf11Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/controller/TjbbSf11Controller.java new file mode 100644 index 0000000..861945c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/controller/TjbbSf11Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf11.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf11.entity.TjbbSf11; +import org.jeecg.modules.tjbb.tjbbSf11.service.ITjbbSf11Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf11 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf11") +@RestController +@RequestMapping("/tjbbSf11/tjbbSf11") +@Slf4j +public class TjbbSf11Controller extends JeecgController { + @Autowired + private ITjbbSf11Service tjbbSf11Service; + + /** + * 分页列表查询 + * + * @param tjbbSf11 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf11-分页列表查询") + @ApiOperation(value="tjbb_sf11-分页列表查询", notes="tjbb_sf11-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf11 tjbbSf11, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf11, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf11Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf11 + * @return + */ + @AutoLog(value = "tjbb_sf11-添加") + @ApiOperation(value="tjbb_sf11-添加", notes="tjbb_sf11-添加") + @RequiresPermissions("tjbbSf11:tjbb_sf11:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf11 tjbbSf11) { + tjbbSf11Service.save(tjbbSf11); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf11 + * @return + */ + @AutoLog(value = "tjbb_sf11-编辑") + @ApiOperation(value="tjbb_sf11-编辑", notes="tjbb_sf11-编辑") + @RequiresPermissions("tjbbSf11:tjbb_sf11:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf11 tjbbSf11) { + tjbbSf11Service.updateById(tjbbSf11); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf11-通过id删除") + @ApiOperation(value="tjbb_sf11-通过id删除", notes="tjbb_sf11-通过id删除") + @RequiresPermissions("tjbbSf11:tjbb_sf11:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf11Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf11-批量删除") + @ApiOperation(value="tjbb_sf11-批量删除", notes="tjbb_sf11-批量删除") + @RequiresPermissions("tjbbSf11:tjbb_sf11:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf11Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf11-通过id查询") + @ApiOperation(value="tjbb_sf11-通过id查询", notes="tjbb_sf11-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf11 tjbbSf11 = tjbbSf11Service.getById(id); + if(tjbbSf11==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf11); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf11 + */ + @RequiresPermissions("tjbbSf11:tjbb_sf11:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf11 tjbbSf11) { + return super.exportXls(request, tjbbSf11, TjbbSf11.class, "tjbb_sf11"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf11Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf11.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/entity/TjbbSf11.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/entity/TjbbSf11.java new file mode 100644 index 0000000..365f2e3 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/entity/TjbbSf11.java @@ -0,0 +1,91 @@ +package org.jeecg.modules.tjbb.tjbbSf11.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf11 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf11") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf11对象", description="tjbb_sf11") +public class TjbbSf11 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**普通话水平测试一级甲等人数*/ + @Excel(name = "普通话水平测试一级甲等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试一级甲等人数") + private java.lang.String yjj; + /**普通话水平测试一级乙等人数*/ + @Excel(name = "普通话水平测试一级乙等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试一级乙等人数") + private java.lang.String yjy; + /**普通话水平测试二级甲等人数*/ + @Excel(name = "普通话水平测试二级甲等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试二级甲等人数") + private java.lang.String ejj; + /**普通话水平测试二级乙等人数*/ + @Excel(name = "普通话水平测试二级乙等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试二级乙等人数") + private java.lang.String ejy; + /**普通话水平测试三级甲等人数*/ + @Excel(name = "普通话水平测试三级甲等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试三级甲等人数") + private java.lang.String sjj; + /**普通话水平测试三级乙等人数*/ + @Excel(name = "普通话水平测试三级乙等人数", width = 15) + @ApiModelProperty(value = "普通话水平测试三级乙等人数") + private java.lang.String sjy; + /**通过教师资格证考试人数*/ + @Excel(name = "通过教师资格证考试人数", width = 15) + @ApiModelProperty(value = "通过教师资格证考试人数") + private java.lang.String jszgz; + /**毕业从事教育工作人数*/ + @Excel(name = "毕业从事教育工作人数", width = 15) + @ApiModelProperty(value = "毕业从事教育工作人数") + private java.lang.String jygz; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/TjbbSf11Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/TjbbSf11Mapper.java new file mode 100644 index 0000000..8397a9e --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/TjbbSf11Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbbSf11.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf11.entity.TjbbSf11; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf11 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf11Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/xml/TjbbSf11Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/xml/TjbbSf11Mapper.xml new file mode 100644 index 0000000..e2eb242 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/mapper/xml/TjbbSf11Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/ITjbbSf11Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/ITjbbSf11Service.java new file mode 100644 index 0000000..1ad9d1a --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/ITjbbSf11Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbbSf11.service; + +import org.jeecg.modules.tjbb.tjbbSf11.entity.TjbbSf11; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_sf11 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf11Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/impl/TjbbSf11ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/impl/TjbbSf11ServiceImpl.java new file mode 100644 index 0000000..ebdb9d2 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf11/service/impl/TjbbSf11ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf11.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf11.entity.TjbbSf11; +import org.jeecg.modules.tjbb.tjbbSf11.mapper.TjbbSf11Mapper; +import org.jeecg.modules.tjbb.tjbbSf11.service.ITjbbSf11Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_sf11 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf11ServiceImpl extends ServiceImpl implements ITjbbSf11Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/controller/TjbbSf3Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/controller/TjbbSf3Controller.java new file mode 100644 index 0000000..9939024 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/controller/TjbbSf3Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf3.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf3.entity.TjbbSf3; +import org.jeecg.modules.tjbb.tjbbSf3.service.ITjbbSf3Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf3 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf3") +@RestController +@RequestMapping("/tjbbSf3/tjbbSf3") +@Slf4j +public class TjbbSf3Controller extends JeecgController { + @Autowired + private ITjbbSf3Service tjbbSf3Service; + + /** + * 分页列表查询 + * + * @param tjbbSf3 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf3-分页列表查询") + @ApiOperation(value="tjbb_sf3-分页列表查询", notes="tjbb_sf3-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf3 tjbbSf3, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf3, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf3Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf3 + * @return + */ + @AutoLog(value = "tjbb_sf3-添加") + @ApiOperation(value="tjbb_sf3-添加", notes="tjbb_sf3-添加") + @RequiresPermissions("tjbbSf3:tjbb_sf3:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf3 tjbbSf3) { + tjbbSf3Service.save(tjbbSf3); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf3 + * @return + */ + @AutoLog(value = "tjbb_sf3-编辑") + @ApiOperation(value="tjbb_sf3-编辑", notes="tjbb_sf3-编辑") + @RequiresPermissions("tjbbSf3:tjbb_sf3:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf3 tjbbSf3) { + tjbbSf3Service.updateById(tjbbSf3); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf3-通过id删除") + @ApiOperation(value="tjbb_sf3-通过id删除", notes="tjbb_sf3-通过id删除") + @RequiresPermissions("tjbbSf3:tjbb_sf3:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf3Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf3-批量删除") + @ApiOperation(value="tjbb_sf3-批量删除", notes="tjbb_sf3-批量删除") + @RequiresPermissions("tjbbSf3:tjbb_sf3:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf3Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf3-通过id查询") + @ApiOperation(value="tjbb_sf3-通过id查询", notes="tjbb_sf3-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf3 tjbbSf3 = tjbbSf3Service.getById(id); + if(tjbbSf3==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf3); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf3 + */ + @RequiresPermissions("tjbbSf3:tjbb_sf3:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf3 tjbbSf3) { + return super.exportXls(request, tjbbSf3, TjbbSf3.class, "tjbb_sf3"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf3Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf3.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/entity/TjbbSf3.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/entity/TjbbSf3.java new file mode 100644 index 0000000..c1ce6b6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/entity/TjbbSf3.java @@ -0,0 +1,99 @@ +package org.jeecg.modules.tjbb.tjbbSf3.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf3 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf3") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf3对象", description="tjbb_sf3") +public class TjbbSf3 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**教学日常运行支出*/ + @Excel(name = "教学日常运行支出", width = 15) + @ApiModelProperty(value = "教学日常运行支出") + private java.lang.String jxrcyxzc; + /**教育实践经费*/ + @Excel(name = "教育实践经费", width = 15) + @ApiModelProperty(value = "教育实践经费") + private java.lang.String jysjjf; + /**生均拨款总额*/ + @Excel(name = "生均拨款总额", width = 15) + @ApiModelProperty(value = "生均拨款总额") + private java.lang.String sjbkze; + /**学费收入之和*/ + @Excel(name = "学费收入之和", width = 15) + @ApiModelProperty(value = "学费收入之和") + private java.lang.String xfsrzh; + /**纸质图书数量*/ + @Excel(name = "纸质图书数量", width = 15) + @ApiModelProperty(value = "纸质图书数量") + private java.lang.String zztssl; + /**其中:中文图书*/ + @Excel(name = "其中:中文图书", width = 15) + @ApiModelProperty(value = "其中:中文图书") + private java.lang.String zwts; + /**其中:教材或教师教材参考书*/ + @Excel(name = "其中:教材或教师教材参考书", width = 15) + @ApiModelProperty(value = "其中:教材或教师教材参考书") + private java.lang.String cks; + /**电子图书数量*/ + @Excel(name = "电子图书数量", width = 15) + @ApiModelProperty(value = "电子图书数量") + private java.lang.String dzts; + /**教学案例数量*/ + @Excel(name = "教学案例数量", width = 15) + @ApiModelProperty(value = "教学案例数量") + private java.lang.String jxalsl; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/TjbbSf3Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/TjbbSf3Mapper.java new file mode 100644 index 0000000..0aba2fd --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/TjbbSf3Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbbSf3.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf3.entity.TjbbSf3; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf3 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf3Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/xml/TjbbSf3Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/xml/TjbbSf3Mapper.xml new file mode 100644 index 0000000..9d2ef78 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/mapper/xml/TjbbSf3Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/ITjbbSf3Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/ITjbbSf3Service.java new file mode 100644 index 0000000..b8fc2d1 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/ITjbbSf3Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbbSf3.service; + +import org.jeecg.modules.tjbb.tjbbSf3.entity.TjbbSf3; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_sf3 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf3Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/impl/TjbbSf3ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/impl/TjbbSf3ServiceImpl.java new file mode 100644 index 0000000..789aabe --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf3/service/impl/TjbbSf3ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf3.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf3.entity.TjbbSf3; +import org.jeecg.modules.tjbb.tjbbSf3.mapper.TjbbSf3Mapper; +import org.jeecg.modules.tjbb.tjbbSf3.service.ITjbbSf3Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_sf3 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf3ServiceImpl extends ServiceImpl implements ITjbbSf3Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/controller/TjbbSf5Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/controller/TjbbSf5Controller.java new file mode 100644 index 0000000..eb6bc02 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/controller/TjbbSf5Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf5.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf5.entity.TjbbSf5; +import org.jeecg.modules.tjbb.tjbbSf5.service.ITjbbSf5Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf5 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf5") +@RestController +@RequestMapping("/tjbbSf5/tjbbSf5") +@Slf4j +public class TjbbSf5Controller extends JeecgController { + @Autowired + private ITjbbSf5Service tjbbSf5Service; + + /** + * 分页列表查询 + * + * @param tjbbSf5 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf5-分页列表查询") + @ApiOperation(value="tjbb_sf5-分页列表查询", notes="tjbb_sf5-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf5 tjbbSf5, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf5, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf5Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf5 + * @return + */ + @AutoLog(value = "tjbb_sf5-添加") + @ApiOperation(value="tjbb_sf5-添加", notes="tjbb_sf5-添加") + @RequiresPermissions("tjbbSf5:tjbb_sf5:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf5 tjbbSf5) { + tjbbSf5Service.save(tjbbSf5); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf5 + * @return + */ + @AutoLog(value = "tjbb_sf5-编辑") + @ApiOperation(value="tjbb_sf5-编辑", notes="tjbb_sf5-编辑") + @RequiresPermissions("tjbbSf5:tjbb_sf5:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf5 tjbbSf5) { + tjbbSf5Service.updateById(tjbbSf5); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf5-通过id删除") + @ApiOperation(value="tjbb_sf5-通过id删除", notes="tjbb_sf5-通过id删除") + @RequiresPermissions("tjbbSf5:tjbb_sf5:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf5Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf5-批量删除") + @ApiOperation(value="tjbb_sf5-批量删除", notes="tjbb_sf5-批量删除") + @RequiresPermissions("tjbbSf5:tjbb_sf5:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf5Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf5-通过id查询") + @ApiOperation(value="tjbb_sf5-通过id查询", notes="tjbb_sf5-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf5 tjbbSf5 = tjbbSf5Service.getById(id); + if(tjbbSf5==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf5); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf5 + */ + @RequiresPermissions("tjbbSf5:tjbb_sf5:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf5 tjbbSf5) { + return super.exportXls(request, tjbbSf5, TjbbSf5.class, "tjbb_sf5"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf5Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf5.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/entity/TjbbSf5.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/entity/TjbbSf5.java new file mode 100644 index 0000000..dd2eae2 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/entity/TjbbSf5.java @@ -0,0 +1,119 @@ +package org.jeecg.modules.tjbb.tjbbSf5.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf5 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf5") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf5对象", description="tjbb_sf5") +public class TjbbSf5 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**专业类别*/ + @Excel(name = "专业类别", width = 15) + @ApiModelProperty(value = "专业类别") + private java.lang.String zylb; + /**学分总计*/ + @Excel(name = "学分总计", width = 15) + @ApiModelProperty(value = "学分总计") + private java.lang.String xfzj; + /**人文社会与科学素养课程*/ + @Excel(name = "人文社会与科学素养课程", width = 15) + @ApiModelProperty(value = "人文社会与科学素养课程") + private java.lang.String rwshykxsykc; + /**其中学科专业课程*/ + @Excel(name = "其中学科专业课程", width = 15) + @ApiModelProperty(value = "其中学科专业课程") + private java.lang.String xkzykc; + /**教师教育课程小计*/ + @Excel(name = "教师教育课程小计", width = 15) + @ApiModelProperty(value = "教师教育课程小计") + private java.lang.String jsjykcxj; + /**教师教育课程必修*/ + @Excel(name = "教师教育课程必修", width = 15) + @ApiModelProperty(value = "教师教育课程必修") + private java.lang.String jsjykcbx; + /**其中师德教育类课程*/ + @Excel(name = "其中师德教育类课程", width = 15) + @ApiModelProperty(value = "其中师德教育类课程") + private java.lang.String sdjylkc; + /**其中信息素养类课程*/ + @Excel(name = "其中信息素养类课程", width = 15) + @ApiModelProperty(value = "其中信息素养类课程") + private java.lang.String xxsylkc; + /**教育实践时间总计*/ + @Excel(name = "教育实践时间总计", width = 15) + @ApiModelProperty(value = "教育实践时间总计") + private java.lang.String jysjsjzj; + /**教育实践时间见习*/ + @Excel(name = "教育实践时间见习", width = 15) + @ApiModelProperty(value = "教育实践时间见习") + private java.lang.String jysjsjjx; + /**教育实践时间研习*/ + @Excel(name = "教育实践时间研习", width = 15) + @ApiModelProperty(value = "教育实践时间研习") + private java.lang.String jysjsjyx; + /**教育实践时间实习*/ + @Excel(name = "教育实践时间实习", width = 15) + @ApiModelProperty(value = "教育实践时间实习") + private java.lang.String jysjsjsx; + /**参加教育实践师范生总计*/ + @Excel(name = "参加教育实践师范生总计", width = 15) + @ApiModelProperty(value = "参加教育实践师范生总计") + private java.lang.String cjjysjsfszj; + /**参加教育实践师范生实习生数*/ + @Excel(name = "参加教育实践师范生实习生数", width = 15) + @ApiModelProperty(value = "参加教育实践师范生实习生数") + private java.lang.String cjjysjsfssxzs; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/TjbbSf5Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/TjbbSf5Mapper.java new file mode 100644 index 0000000..ecb8dcc --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/TjbbSf5Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbbSf5.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf5.entity.TjbbSf5; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf5 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf5Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/xml/TjbbSf5Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/xml/TjbbSf5Mapper.xml new file mode 100644 index 0000000..a995f2f --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/mapper/xml/TjbbSf5Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/ITjbbSf5Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/ITjbbSf5Service.java new file mode 100644 index 0000000..bcb8460 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/ITjbbSf5Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbbSf5.service; + +import org.jeecg.modules.tjbb.tjbbSf5.entity.TjbbSf5; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_sf5 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf5Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/impl/TjbbSf5ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/impl/TjbbSf5ServiceImpl.java new file mode 100644 index 0000000..b0b4af7 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf5/service/impl/TjbbSf5ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf5.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf5.entity.TjbbSf5; +import org.jeecg.modules.tjbb.tjbbSf5.mapper.TjbbSf5Mapper; +import org.jeecg.modules.tjbb.tjbbSf5.service.ITjbbSf5Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_sf5 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf5ServiceImpl extends ServiceImpl implements ITjbbSf5Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/controller/TjbbSf6Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/controller/TjbbSf6Controller.java new file mode 100644 index 0000000..23c59bc --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/controller/TjbbSf6Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf6.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf6.entity.TjbbSf6; +import org.jeecg.modules.tjbb.tjbbSf6.service.ITjbbSf6Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf6 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf6") +@RestController +@RequestMapping("/tjbbSf6/tjbbSf6") +@Slf4j +public class TjbbSf6Controller extends JeecgController { + @Autowired + private ITjbbSf6Service tjbbSf6Service; + + /** + * 分页列表查询 + * + * @param tjbbSf6 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf6-分页列表查询") + @ApiOperation(value="tjbb_sf6-分页列表查询", notes="tjbb_sf6-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf6 tjbbSf6, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf6, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf6Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf6 + * @return + */ + @AutoLog(value = "tjbb_sf6-添加") + @ApiOperation(value="tjbb_sf6-添加", notes="tjbb_sf6-添加") + @RequiresPermissions("tjbbSf6:tjbb_sf6:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf6 tjbbSf6) { + tjbbSf6Service.save(tjbbSf6); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf6 + * @return + */ + @AutoLog(value = "tjbb_sf6-编辑") + @ApiOperation(value="tjbb_sf6-编辑", notes="tjbb_sf6-编辑") + @RequiresPermissions("tjbbSf6:tjbb_sf6:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf6 tjbbSf6) { + tjbbSf6Service.updateById(tjbbSf6); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf6-通过id删除") + @ApiOperation(value="tjbb_sf6-通过id删除", notes="tjbb_sf6-通过id删除") + @RequiresPermissions("tjbbSf6:tjbb_sf6:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf6Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf6-批量删除") + @ApiOperation(value="tjbb_sf6-批量删除", notes="tjbb_sf6-批量删除") + @RequiresPermissions("tjbbSf6:tjbb_sf6:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf6Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf6-通过id查询") + @ApiOperation(value="tjbb_sf6-通过id查询", notes="tjbb_sf6-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf6 tjbbSf6 = tjbbSf6Service.getById(id); + if(tjbbSf6==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf6); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf6 + */ + @RequiresPermissions("tjbbSf6:tjbb_sf6:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf6 tjbbSf6) { + return super.exportXls(request, tjbbSf6, TjbbSf6.class, "tjbb_sf6"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf6Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf6.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/entity/TjbbSf6.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/entity/TjbbSf6.java new file mode 100644 index 0000000..3a96c7a --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/entity/TjbbSf6.java @@ -0,0 +1,91 @@ +package org.jeecg.modules.tjbb.tjbbSf6.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf6 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf6") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf6对象", description="tjbb_sf6") +public class TjbbSf6 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**开课号*/ + @Excel(name = "开课号", width = 15) + @ApiModelProperty(value = "开课号") + private java.lang.String kkh; + /**课程名称*/ + @Excel(name = "课程名称", width = 15) + @ApiModelProperty(value = "课程名称") + private java.lang.String kcmc; + /**课程性质*/ + @Excel(name = "课程性质", width = 15) + @ApiModelProperty(value = "课程性质") + private java.lang.String kcxz; + /**授课教师*/ + @Excel(name = "授课教师", width = 15) + @ApiModelProperty(value = "授课教师") + private java.lang.String skjs; + /**授课教师工号*/ + @Excel(name = "授课教师工号", width = 15) + @ApiModelProperty(value = "授课教师工号") + private java.lang.String skjsgh; + /**学分*/ + @Excel(name = "学分", width = 15) + @ApiModelProperty(value = "学分") + private java.lang.String xf; + /**年级*/ + @Excel(name = "年级", width = 15) + @ApiModelProperty(value = "年级") + private java.lang.String nj; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/TjbbSf6Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/TjbbSf6Mapper.java new file mode 100644 index 0000000..bfa7891 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/TjbbSf6Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbbSf6.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf6.entity.TjbbSf6; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf6 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf6Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/xml/TjbbSf6Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/xml/TjbbSf6Mapper.xml new file mode 100644 index 0000000..b891fa6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/mapper/xml/TjbbSf6Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/ITjbbSf6Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/ITjbbSf6Service.java new file mode 100644 index 0000000..1c2bf92 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/ITjbbSf6Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbbSf6.service; + +import org.jeecg.modules.tjbb.tjbbSf6.entity.TjbbSf6; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_sf6 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf6Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/impl/TjbbSf6ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/impl/TjbbSf6ServiceImpl.java new file mode 100644 index 0000000..d32c37c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf6/service/impl/TjbbSf6ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf6.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf6.entity.TjbbSf6; +import org.jeecg.modules.tjbb.tjbbSf6.mapper.TjbbSf6Mapper; +import org.jeecg.modules.tjbb.tjbbSf6.service.ITjbbSf6Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_sf6 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf6ServiceImpl extends ServiceImpl implements ITjbbSf6Service { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/controller/TjbbSf8Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/controller/TjbbSf8Controller.java new file mode 100644 index 0000000..0bb4bf5 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/controller/TjbbSf8Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf8.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf8.entity.TjbbSf8; +import org.jeecg.modules.tjbb.tjbbSf8.service.ITjbbSf8Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf8 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf8") +@RestController +@RequestMapping("/tjbbSf8/tjbbSf8") +@Slf4j +public class TjbbSf8Controller extends JeecgController { + @Autowired + private ITjbbSf8Service tjbbSf8Service; + + /** + * 分页列表查询 + * + * @param tjbbSf8 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf8-分页列表查询") + @ApiOperation(value="tjbb_sf8-分页列表查询", notes="tjbb_sf8-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf8 tjbbSf8, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf8, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf8Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf8 + * @return + */ + @AutoLog(value = "tjbb_sf8-添加") + @ApiOperation(value="tjbb_sf8-添加", notes="tjbb_sf8-添加") + @RequiresPermissions("tjbbSf8:tjbb_sf8:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf8 tjbbSf8) { + tjbbSf8Service.save(tjbbSf8); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf8 + * @return + */ + @AutoLog(value = "tjbb_sf8-编辑") + @ApiOperation(value="tjbb_sf8-编辑", notes="tjbb_sf8-编辑") + @RequiresPermissions("tjbbSf8:tjbb_sf8:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf8 tjbbSf8) { + tjbbSf8Service.updateById(tjbbSf8); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf8-通过id删除") + @ApiOperation(value="tjbb_sf8-通过id删除", notes="tjbb_sf8-通过id删除") + @RequiresPermissions("tjbbSf8:tjbb_sf8:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf8Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf8-批量删除") + @ApiOperation(value="tjbb_sf8-批量删除", notes="tjbb_sf8-批量删除") + @RequiresPermissions("tjbbSf8:tjbb_sf8:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf8Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf8-通过id查询") + @ApiOperation(value="tjbb_sf8-通过id查询", notes="tjbb_sf8-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf8 tjbbSf8 = tjbbSf8Service.getById(id); + if(tjbbSf8==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf8); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf8 + */ + @RequiresPermissions("tjbbSf8:tjbb_sf8:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf8 tjbbSf8) { + return super.exportXls(request, tjbbSf8, TjbbSf8.class, "tjbb_sf8"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf8Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf8.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/entity/TjbbSf8.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/entity/TjbbSf8.java new file mode 100644 index 0000000..cb7aa16 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/entity/TjbbSf8.java @@ -0,0 +1,88 @@ +package org.jeecg.modules.tjbb.tjbbSf8.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf8 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf8") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf8对象", description="tjbb_sf8") +public class TjbbSf8 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**指导教师工号*/ + @Excel(name = "指导教师工号", width = 15) + @ApiModelProperty(value = "指导教师工号") + private java.lang.String zdjsgh; + /**指导教师姓名*/ + @Excel(name = "指导教师姓名", width = 15) + @ApiModelProperty(value = "指导教师姓名") + private java.lang.String zdjsxm; + /**指导本专业参加教育实践师范生数*/ + @Excel(name = "指导本专业参加教育实践师范生数", width = 15) + @ApiModelProperty(value = "指导本专业参加教育实践师范生数") + private java.lang.String sfss; + /**实践类型*/ + @Excel(name = "实践类型", width = 15) + @ApiModelProperty(value = "实践类型") + private java.lang.String sjlx; + /**年级*/ + @Excel(name = "年级", width = 15) + @ApiModelProperty(value = "年级") + private java.lang.String nj; + /**周数*/ + @Excel(name = "周数", width = 15) + @ApiModelProperty(value = "周数") + private java.lang.String zs; + + @TableField(exist = false) + private String count; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/TjbbSf8Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/TjbbSf8Mapper.java new file mode 100644 index 0000000..e9ca0da --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/TjbbSf8Mapper.java @@ -0,0 +1,20 @@ +package org.jeecg.modules.tjbb.tjbbSf8.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf8.entity.TjbbSf8; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf8 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf8Mapper extends BaseMapper { + + List getJsAllList(); + + List getJsJzjsList(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/xml/TjbbSf8Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/xml/TjbbSf8Mapper.xml new file mode 100644 index 0000000..1847f81 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/mapper/xml/TjbbSf8Mapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/ITjbbSf8Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/ITjbbSf8Service.java new file mode 100644 index 0000000..c40eaf3 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/ITjbbSf8Service.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf8.service; + +import org.jeecg.modules.tjbb.tjbbSf8.entity.TjbbSf8; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + * @Description: tjbb_sf8 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf8Service extends IService { + + List getJsAllList(); + + List getJsJzjsList(); +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/impl/TjbbSf8ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/impl/TjbbSf8ServiceImpl.java new file mode 100644 index 0000000..e8dc6ed --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf8/service/impl/TjbbSf8ServiceImpl.java @@ -0,0 +1,31 @@ +package org.jeecg.modules.tjbb.tjbbSf8.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf8.entity.TjbbSf8; +import org.jeecg.modules.tjbb.tjbbSf8.mapper.TjbbSf8Mapper; +import org.jeecg.modules.tjbb.tjbbSf8.service.ITjbbSf8Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import java.util.Collections; +import java.util.List; + +/** + * @Description: tjbb_sf8 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf8ServiceImpl extends ServiceImpl implements ITjbbSf8Service { + + @Override + public List getJsAllList() { + return baseMapper.getJsAllList(); + } + + @Override + public List getJsJzjsList() { + return baseMapper.getJsJzjsList(); + } +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/controller/TjbbSf9Controller.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/controller/TjbbSf9Controller.java new file mode 100644 index 0000000..70d7c2e --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/controller/TjbbSf9Controller.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.tjbb.tjbbSf9.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.tjbb.tjbbSf9.entity.TjbbSf9; +import org.jeecg.modules.tjbb.tjbbSf9.service.ITjbbSf9Service; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: tjbb_sf9 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Api(tags="tjbb_sf9") +@RestController +@RequestMapping("/tjbbSf9/tjbbSf9") +@Slf4j +public class TjbbSf9Controller extends JeecgController { + @Autowired + private ITjbbSf9Service tjbbSf9Service; + + /** + * 分页列表查询 + * + * @param tjbbSf9 + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "tjbb_sf9-分页列表查询") + @ApiOperation(value="tjbb_sf9-分页列表查询", notes="tjbb_sf9-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(TjbbSf9 tjbbSf9, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(tjbbSf9, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = tjbbSf9Service.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param tjbbSf9 + * @return + */ + @AutoLog(value = "tjbb_sf9-添加") + @ApiOperation(value="tjbb_sf9-添加", notes="tjbb_sf9-添加") + @RequiresPermissions("tjbbSf9:tjbb_sf9:add") + @PostMapping(value = "/add") + public Result add(@RequestBody TjbbSf9 tjbbSf9) { + tjbbSf9Service.save(tjbbSf9); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param tjbbSf9 + * @return + */ + @AutoLog(value = "tjbb_sf9-编辑") + @ApiOperation(value="tjbb_sf9-编辑", notes="tjbb_sf9-编辑") + @RequiresPermissions("tjbbSf9:tjbb_sf9:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody TjbbSf9 tjbbSf9) { + tjbbSf9Service.updateById(tjbbSf9); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "tjbb_sf9-通过id删除") + @ApiOperation(value="tjbb_sf9-通过id删除", notes="tjbb_sf9-通过id删除") + @RequiresPermissions("tjbbSf9:tjbb_sf9:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + tjbbSf9Service.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "tjbb_sf9-批量删除") + @ApiOperation(value="tjbb_sf9-批量删除", notes="tjbb_sf9-批量删除") + @RequiresPermissions("tjbbSf9:tjbb_sf9:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.tjbbSf9Service.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "tjbb_sf9-通过id查询") + @ApiOperation(value="tjbb_sf9-通过id查询", notes="tjbb_sf9-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TjbbSf9 tjbbSf9 = tjbbSf9Service.getById(id); + if(tjbbSf9==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(tjbbSf9); + } + + /** + * 导出excel + * + * @param request + * @param tjbbSf9 + */ + @RequiresPermissions("tjbbSf9:tjbb_sf9:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TjbbSf9 tjbbSf9) { + return super.exportXls(request, tjbbSf9, TjbbSf9.class, "tjbb_sf9"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + tjbbSf9Service.remove(new QueryWrapper<>()); + return super.importExcel2(request, response, TjbbSf9.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/entity/TjbbSf9.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/entity/TjbbSf9.java new file mode 100644 index 0000000..233400d --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/entity/TjbbSf9.java @@ -0,0 +1,115 @@ +package org.jeecg.modules.tjbb.tjbbSf9.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: tjbb_sf9 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Data +@TableName("tjbb_sf9") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="tjbb_sf9对象", description="tjbb_sf9") +public class TjbbSf9 implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**校内专业代码*/ + @Excel(name = "校内专业代码", width = 15) + @ApiModelProperty(value = "校内专业代码") + private java.lang.String xnzydm; + /**校内专业名称*/ + @Excel(name = "校内专业名称", width = 15) + @ApiModelProperty(value = "校内专业名称") + private java.lang.String xnzymc; + /**普通高职(含专科)学生数*/ + @Excel(name = "普通高职(含专科)学生数", width = 15) + @ApiModelProperty(value = "普通高职(含专科)学生数") + private java.lang.String ptgzxss; + /**硕士研究生数*/ + @Excel(name = "硕士研究生数", width = 15) + @ApiModelProperty(value = "硕士研究生数") + private java.lang.String ssyjss; + /**博士研究生数*/ + @Excel(name = "博士研究生数", width = 15) + @ApiModelProperty(value = "博士研究生数") + private java.lang.String bsyjss; + /**本专科留学生数*/ + @Excel(name = "本专科留学生数", width = 15) + @ApiModelProperty(value = "本专科留学生数") + private java.lang.String bzklxss; + /**硕士留学生数*/ + @Excel(name = "硕士留学生数", width = 15) + @ApiModelProperty(value = "硕士留学生数") + private java.lang.String sslxss; + /**博士留学生数*/ + @Excel(name = "博士留学生数", width = 15) + @ApiModelProperty(value = "博士留学生数") + private java.lang.String bslxss; + /**普通预科生数*/ + @Excel(name = "普通预科生数", width = 15) + @ApiModelProperty(value = "普通预科生数") + private java.lang.String ptykss; + /**中职在校生数*/ + @Excel(name = "中职在校生数", width = 15) + @ApiModelProperty(value = "中职在校生数") + private java.lang.String zzzxss; + /**进修生数*/ + @Excel(name = "进修生数", width = 15) + @ApiModelProperty(value = "进修生数") + private java.lang.String jxss; + /**成人脱产学生数*/ + @Excel(name = "成人脱产学生数", width = 15) + @ApiModelProperty(value = "成人脱产学生数") + private java.lang.String crtcxss; + /**夜大(业余)学生数*/ + @Excel(name = "夜大(业余)学生数", width = 15) + @ApiModelProperty(value = "夜大(业余)学生数") + private java.lang.String ydxss; + /**函授学生数*/ + @Excel(name = "函授学生数", width = 15) + @ApiModelProperty(value = "函授学生数") + private java.lang.String hsxss; + /**网络教育学生数*/ + @Excel(name = "网络教育学生数", width = 15) + @ApiModelProperty(value = "网络教育学生数") + private java.lang.String wljxsxs; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/TjbbSf9Mapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/TjbbSf9Mapper.java new file mode 100644 index 0000000..a38729a --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/TjbbSf9Mapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.tjbb.tjbbSf9.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.tjbb.tjbbSf9.entity.TjbbSf9; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: tjbb_sf9 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface TjbbSf9Mapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/xml/TjbbSf9Mapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/xml/TjbbSf9Mapper.xml new file mode 100644 index 0000000..ec0f8e6 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/mapper/xml/TjbbSf9Mapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/ITjbbSf9Service.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/ITjbbSf9Service.java new file mode 100644 index 0000000..c19a244 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/ITjbbSf9Service.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.tjbb.tjbbSf9.service; + +import org.jeecg.modules.tjbb.tjbbSf9.entity.TjbbSf9; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: tjbb_sf9 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +public interface ITjbbSf9Service extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/impl/TjbbSf9ServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/impl/TjbbSf9ServiceImpl.java new file mode 100644 index 0000000..ca0ee94 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/tjbb/tjbbSf9/service/impl/TjbbSf9ServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.tjbb.tjbbSf9.service.impl; + +import org.jeecg.modules.tjbb.tjbbSf9.entity.TjbbSf9; +import org.jeecg.modules.tjbb.tjbbSf9.mapper.TjbbSf9Mapper; +import org.jeecg.modules.tjbb.tjbbSf9.service.ITjbbSf9Service; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: tjbb_sf9 + * @Author: jeecg-boot + * @Date: 2024-11-04 + * @Version: V1.0 + */ +@Service +public class TjbbSf9ServiceImpl extends ServiceImpl implements ITjbbSf9Service { + +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/Tjbb.api.ts b/jeecgboot-vue3/src/views/tjbbVue/Tjbb.api.ts new file mode 100644 index 0000000..8c5120d --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/Tjbb.api.ts @@ -0,0 +1,15 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf11/tjbbSf11/list', + save='/tjbbSf11/tjbbSf11/add', + edit='/tjbbSf11/tjbbSf11/edit', + deleteOne = '/tjbbSf11/tjbbSf11/delete', + deleteBatch = '/tjbbSf11/tjbbSf11/deleteBatch', + importExcel = '/tjbbSf11/tjbbSf11/importExcel', + exportXls = '/tjbbSf11/tjbbSf11/exportXls', +} + diff --git a/jeecgboot-vue3/src/views/tjbbVue/TjbbList.vue b/jeecgboot-vue3/src/views/tjbbVue/TjbbList.vue new file mode 100644 index 0000000..ca91f69 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/TjbbList.vue @@ -0,0 +1,240 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.api.ts new file mode 100644 index 0000000..b443a5a --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb141/tjbb_141/list', + save='/tjbb141/tjbb_141/add', + edit='/tjbb141/tjbb_141/edit', + deleteOne = '/tjbb141/tjbb_141/delete', + deleteBatch = '/tjbb141/tjbb_141/deleteBatch', + importExcel = '/tjbb141/tjbb_141/importExcel', + exportXls = '/tjbb141/tjbb_141/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.data.ts new file mode 100644 index 0000000..9a67371 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141.data.ts @@ -0,0 +1,90 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '专业名称', + align: "center", + dataIndex: 'zymc' + }, + { + title: '专业代码', + align: "center", + dataIndex: 'zydm' + }, + { + title: '所属单位名称', + align: "center", + dataIndex: 'ssdwmc' + }, + { + title: '所属单位号', + align: "center", + dataIndex: 'ssdwh' + }, + { + title: '专业设置年份', + align: "center", + dataIndex: 'zysznf' + }, + { + title: '学制', + align: "center", + dataIndex: 'xz' + }, + { + title: '允许修业年限', + align: "center", + dataIndex: 'rxxynx' + }, + { + title: '授予学位门类', + align: "center", + dataIndex: 'syxwml' + }, + { + title: '招生状态', + align: "center", + dataIndex: 'zszt' + }, + { + title: '是否新专业', + align: "center", + dataIndex: 'sfxzy' + }, + { + title: '是否师范类专业', + align: "center", + dataIndex: 'sfsflzy' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + zymc: {title: '专业名称',order: 2,view: 'text', type: 'string',}, + zydm: {title: '专业代码',order: 3,view: 'text', type: 'string',}, + ssdwmc: {title: '所属单位名称',order: 4,view: 'text', type: 'string',}, + ssdwh: {title: '所属单位号',order: 5,view: 'text', type: 'string',}, + zysznf: {title: '专业设置年份',order: 6,view: 'text', type: 'string',}, + xz: {title: '学制',order: 7,view: 'text', type: 'string',}, + rxxynx: {title: '允许修业年限',order: 8,view: 'text', type: 'string',}, + syxwml: {title: '授予学位门类',order: 9,view: 'text', type: 'string',}, + zszt: {title: '招生状态',order: 10,view: 'text', type: 'string',}, + sfxzy: {title: '是否新专业',order: 11,view: 'text', type: 'string',}, + sfsflzy: {title: '是否师范类专业',order: 12,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141List.vue new file mode 100644 index 0000000..16d813c --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/Tjbb_141List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Form.vue new file mode 100644 index 0000000..a691855 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Form.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Modal.vue new file mode 100644 index 0000000..aa545e8 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb141/components/Tjbb_141Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.api.ts new file mode 100644 index 0000000..91d3df8 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb151/tjbb_151/list', + save='/tjbb151/tjbb_151/add', + edit='/tjbb151/tjbb_151/edit', + deleteOne = '/tjbb151/tjbb_151/delete', + deleteBatch = '/tjbb151/tjbb_151/deleteBatch', + importExcel = '/tjbb151/tjbb_151/importExcel', + exportXls = '/tjbb151/tjbb_151/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.data.ts new file mode 100644 index 0000000..34430e2 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151.data.ts @@ -0,0 +1,102 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '工号', + align: "center", + dataIndex: 'gh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '性别', + align: "center", + dataIndex: 'xb' + }, + { + title: '出生年月', + align: "center", + dataIndex: 'csny' + }, + { + title: '入校时间', + align: "center", + dataIndex: 'rxsj' + }, + { + title: '任职状态', + align: "center", + dataIndex: 'rzzt' + }, + { + title: '单位号', + align: "center", + dataIndex: 'dwh' + }, + { + title: '单位名称', + align: "center", + dataIndex: 'dwmc' + }, + { + title: '学历', + align: "center", + dataIndex: 'xl' + }, + { + title: '最高学位', + align: "center", + dataIndex: 'zgxw' + }, + { + title: '学缘', + align: "center", + dataIndex: 'xy' + }, + { + title: '专业技术职称', + align: "center", + dataIndex: 'zyjszc' + }, + { + title: '学科类别', + align: "center", + dataIndex: 'xklb' + }, + { + title: '政治面貌', + align: "center", + dataIndex: 'zzmm' + }, + { + title: '国籍', + align: "center", + dataIndex: 'gj' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + gh: {title: '工号',order: 0,view: 'text', type: 'string',}, + xm: {title: '姓名',order: 1,view: 'text', type: 'string',}, + xb: {title: '性别',order: 2,view: 'text', type: 'string',}, + csny: {title: '出生年月',order: 3,view: 'text', type: 'string',}, + rxsj: {title: '入校时间',order: 4,view: 'text', type: 'string',}, + rzzt: {title: '任职状态',order: 5,view: 'text', type: 'string',}, + dwh: {title: '单位号',order: 6,view: 'text', type: 'string',}, + dwmc: {title: '单位名称',order: 7,view: 'text', type: 'string',}, + xl: {title: '学历',order: 8,view: 'text', type: 'string',}, + zgxw: {title: '最高学位',order: 9,view: 'text', type: 'string',}, + xy: {title: '学缘',order: 10,view: 'text', type: 'string',}, + zyjszc: {title: '专业技术职称',order: 11,view: 'text', type: 'string',}, + xklb: {title: '学科类别',order: 12,view: 'text', type: 'string',}, + zzmm: {title: '政治面貌',order: 13,view: 'text', type: 'string',}, + gj: {title: '国籍',order: 14,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151List.vue new file mode 100644 index 0000000..73045fa --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/Tjbb_151List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Form.vue new file mode 100644 index 0000000..74c46f4 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Form.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Modal.vue new file mode 100644 index 0000000..51223af --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb151/components/Tjbb_151Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.api.ts new file mode 100644 index 0000000..5802643 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb152/tjbb_152/list', + save='/tjbb152/tjbb_152/add', + edit='/tjbb152/tjbb_152/edit', + deleteOne = '/tjbb152/tjbb_152/delete', + deleteBatch = '/tjbb152/tjbb_152/deleteBatch', + importExcel = '/tjbb152/tjbb_152/importExcel', + exportXls = '/tjbb152/tjbb_152/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.data.ts new file mode 100644 index 0000000..587989c --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152.data.ts @@ -0,0 +1,78 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '工号', + align: "center", + dataIndex: 'gh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '任教类型', + align: "center", + dataIndex: 'rjlx' + }, + { + title: '任教专业名称', + align: "center", + dataIndex: 'rjzymc' + }, + { + title: '任教专业代码', + align: "center", + dataIndex: 'rjzydm' + }, + { + title: '专业任教时间', + align: "center", + dataIndex: 'zyrjsj' + }, + { + title: '是否实验技术人员', + align: "center", + dataIndex: 'sfsyjsry' + }, + { + title: '是否双师双能型', + align: "center", + dataIndex: 'sfsssnx' + }, + { + title: '是否工程背景', + align: "center", + dataIndex: 'sfgcbj' + }, + { + title: '是否行业背景', + align: "center", + dataIndex: 'sfhybj' + }, + { + title: '是否具有国(境)外一年及以上经历', + align: "center", + dataIndex: 'ynysjl' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + gh: {title: '工号',order: 0,view: 'text', type: 'string',}, + xm: {title: '姓名',order: 1,view: 'text', type: 'string',}, + rjlx: {title: '任教类型',order: 2,view: 'text', type: 'string',}, + rjzymc: {title: '任教专业名称',order: 3,view: 'text', type: 'string',}, + rjzydm: {title: '任教专业代码',order: 4,view: 'text', type: 'string',}, + zyrjsj: {title: '专业任教时间',order: 5,view: 'text', type: 'string',}, + sfsyjsry: {title: '是否实验技术人员',order: 6,view: 'text', type: 'string',}, + sfsssnx: {title: '是否双师双能型',order: 7,view: 'text', type: 'string',}, + sfgcbj: {title: '是否工程背景',order: 8,view: 'text', type: 'string',}, + sfhybj: {title: '是否行业背景',order: 9,view: 'text', type: 'string',}, + ynysjl: {title: '是否具有国(境)外一年及以上经历',order: 10,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152List.vue new file mode 100644 index 0000000..bb26ec3 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/Tjbb_152List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Form.vue new file mode 100644 index 0000000..a897d2b --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Form.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Modal.vue new file mode 100644 index 0000000..385f0dd --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb152/components/Tjbb_152Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.api.ts new file mode 100644 index 0000000..4c63cd8 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb153/tjbb_153/list', + save='/tjbb153/tjbb_153/add', + edit='/tjbb153/tjbb_153/edit', + deleteOne = '/tjbb153/tjbb_153/delete', + deleteBatch = '/tjbb153/tjbb_153/deleteBatch', + importExcel = '/tjbb153/tjbb_153/importExcel', + exportXls = '/tjbb153/tjbb_153/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.data.ts new file mode 100644 index 0000000..0ddfd24 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153.data.ts @@ -0,0 +1,102 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '工号', + align: "center", + dataIndex: 'gh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '性别', + align: "center", + dataIndex: 'xb' + }, + { + title: '出生年月', + align: "center", + dataIndex: 'csny' + }, + { + title: '聘任时间', + align: "center", + dataIndex: 'prsj' + }, + { + title: '任职状态', + align: "center", + dataIndex: 'rzzt' + }, + { + title: '聘期', + align: "center", + dataIndex: 'pq' + }, + { + title: '单位号', + align: "center", + dataIndex: 'dwh' + }, + { + title: '单位名称', + align: "center", + dataIndex: 'dwmc' + }, + { + title: '学历', + align: "center", + dataIndex: 'xl' + }, + { + title: '最高学位', + align: "center", + dataIndex: 'zgxw' + }, + { + title: '专业技术职称', + align: "center", + dataIndex: 'zyjszc' + }, + { + title: '工作单位类别', + align: "center", + dataIndex: 'gzdwlb' + }, + { + title: '承担本科教学任务', + align: "center", + dataIndex: 'cdbkjxrw' + }, + { + title: '地区', + align: "center", + dataIndex: 'dq' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + gh: {title: '工号',order: 0,view: 'text', type: 'string',}, + xm: {title: '姓名',order: 1,view: 'text', type: 'string',}, + xb: {title: '性别',order: 2,view: 'text', type: 'string',}, + csny: {title: '出生年月',order: 3,view: 'text', type: 'string',}, + prsj: {title: '聘任时间',order: 4,view: 'text', type: 'string',}, + rzzt: {title: '任职状态',order: 5,view: 'text', type: 'string',}, + pq: {title: '聘期',order: 6,view: 'text', type: 'string',}, + dwh: {title: '单位号',order: 7,view: 'text', type: 'string',}, + dwmc: {title: '单位名称',order: 8,view: 'text', type: 'string',}, + xl: {title: '学历',order: 9,view: 'text', type: 'string',}, + zgxw: {title: '最高学位',order: 10,view: 'text', type: 'string',}, + zyjszc: {title: '专业技术职称',order: 11,view: 'text', type: 'string',}, + gzdwlb: {title: '工作单位类别',order: 12,view: 'text', type: 'string',}, + cdbkjxrw: {title: '承担本科教学任务',order: 13,view: 'text', type: 'string',}, + dq: {title: '地区',order: 14,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153List.vue new file mode 100644 index 0000000..7ae720b --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/Tjbb_153List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Form.vue new file mode 100644 index 0000000..c008be7 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Form.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Modal.vue new file mode 100644 index 0000000..6602a88 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb153/components/Tjbb_153Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.api.ts new file mode 100644 index 0000000..bcc3ed6 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb16/tjbb_16/list', + save='/tjbb16/tjbb_16/add', + edit='/tjbb16/tjbb_16/edit', + deleteOne = '/tjbb16/tjbb_16/delete', + deleteBatch = '/tjbb16/tjbb_16/deleteBatch', + importExcel = '/tjbb16/tjbb_16/importExcel', + exportXls = '/tjbb16/tjbb_16/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.data.ts new file mode 100644 index 0000000..9b45b08 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16.data.ts @@ -0,0 +1,66 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '学号', + align: "center", + dataIndex: 'xh' + }, + { + title: '学生姓名', + align: "center", + dataIndex: 'xsxm' + }, + { + title: '性别', + align: "center", + dataIndex: 'xb' + }, + { + title: '校内专业(大类)名称', + align: "center", + dataIndex: 'xnzydlmc' + }, + { + title: '校内专业(大类)代码', + align: "center", + dataIndex: 'xnzydldm' + }, + { + title: '生源类别', + align: "center", + dataIndex: 'sylb' + }, + { + title: '学生类别', + align: "center", + dataIndex: 'xslb' + }, + { + title: '年级', + align: "center", + dataIndex: 'nj' + }, + { + title: '入学年份', + align: "center", + dataIndex: 'rxnf' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xh: {title: '学号',order: 0,view: 'text', type: 'string',}, + xsxm: {title: '学生姓名',order: 1,view: 'text', type: 'string',}, + xb: {title: '性别',order: 2,view: 'text', type: 'string',}, + xnzydlmc: {title: '校内专业(大类)名称',order: 3,view: 'text', type: 'string',}, + xnzydldm: {title: '校内专业(大类)代码',order: 4,view: 'text', type: 'string',}, + sylb: {title: '生源类别',order: 5,view: 'text', type: 'string',}, + xslb: {title: '学生类别',order: 6,view: 'text', type: 'string',}, + nj: {title: '年级',order: 7,view: 'text', type: 'string',}, + rxnf: {title: '入学年份',order: 8,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16List.vue new file mode 100644 index 0000000..c51f38c --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/Tjbb_16List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Form.vue new file mode 100644 index 0000000..f5d40e3 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Form.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Modal.vue new file mode 100644 index 0000000..1728c92 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb16/components/Tjbb_16Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.api.ts new file mode 100644 index 0000000..869013b --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbb24/tjbb_24/list', + save='/tjbb24/tjbb_24/add', + edit='/tjbb24/tjbb_24/edit', + deleteOne = '/tjbb24/tjbb_24/delete', + deleteBatch = '/tjbb24/tjbb_24/deleteBatch', + importExcel = '/tjbb24/tjbb_24/importExcel', + exportXls = '/tjbb24/tjbb_24/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.data.ts new file mode 100644 index 0000000..b4340d6 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24.data.ts @@ -0,0 +1,66 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '基地名称', + align: "center", + dataIndex: 'jdmc' + }, + { + title: '地点', + align: "center", + dataIndex: 'dd' + }, + { + title: '建立时间', + align: "center", + dataIndex: 'zlsj' + }, + { + title: '面向校内专业', + align: "center", + dataIndex: 'mxxnzy' + }, + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '是否是创业实习基地', + align: "center", + dataIndex: 'sfscysxjd' + }, + { + title: '是否是示范性教育实践基地', + align: "center", + dataIndex: 'sfjyjd' + }, + { + title: '当年接纳学生总数(人次)', + align: "center", + dataIndex: 'jnxszs' + }, + { + title: '是否与行业企业共建', + align: "center", + dataIndex: 'sfyhyqygj' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + jdmc: {title: '基地名称',order: 0,view: 'text', type: 'string',}, + dd: {title: '地点',order: 1,view: 'text', type: 'string',}, + zlsj: {title: '建立时间',order: 2,view: 'text', type: 'string',}, + mxxnzy: {title: '面向校内专业',order: 3,view: 'text', type: 'string',}, + xnzydm: {title: '校内专业代码',order: 4,view: 'text', type: 'string',}, + sfscysxjd: {title: '是否是创业实习基地',order: 5,view: 'text', type: 'string',}, + sfjyjd: {title: '是否是示范性教育实践基地',order: 6,view: 'text', type: 'string',}, + jnxszs: {title: '当年接纳学生总数(人次)',order: 7,view: 'text', type: 'string',}, + sfyhyqygj: {title: '是否与行业企业共建',order: 8,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24List.vue new file mode 100644 index 0000000..4391f79 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/Tjbb_24List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Form.vue new file mode 100644 index 0000000..ced3c96 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Form.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Modal.vue new file mode 100644 index 0000000..96c96d8 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbb24/components/Tjbb_24Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.api.ts new file mode 100644 index 0000000..81f576f --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf11/tjbbSf11/list', + save='/tjbbSf11/tjbbSf11/add', + edit='/tjbbSf11/tjbbSf11/edit', + deleteOne = '/tjbbSf11/tjbbSf11/delete', + deleteBatch = '/tjbbSf11/tjbbSf11/deleteBatch', + importExcel = '/tjbbSf11/tjbbSf11/importExcel', + exportXls = '/tjbbSf11/tjbbSf11/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.data.ts new file mode 100644 index 0000000..d9d96d3 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11.data.ts @@ -0,0 +1,66 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '普通话水平测试一级甲等人数', + align: "center", + dataIndex: 'yjj' + }, + { + title: '普通话水平测试一级乙等人数', + align: "center", + dataIndex: 'yjy' + }, + { + title: '普通话水平测试二级甲等人数', + align: "center", + dataIndex: 'ejj' + }, + { + title: '普通话水平测试二级乙等人数', + align: "center", + dataIndex: 'ejy' + }, + { + title: '普通话水平测试三级甲等人数', + align: "center", + dataIndex: 'sjj' + }, + { + title: '普通话水平测试三级乙等人数', + align: "center", + dataIndex: 'sjy' + }, + { + title: '通过教师资格证考试人数', + align: "center", + dataIndex: 'jszgz' + }, + { + title: '毕业从事教育工作人数', + align: "center", + dataIndex: 'jygz' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzymc: {title: '校内专业名称',order: 0,view: 'text', type: 'string',}, + yjj: {title: '普通话水平测试一级甲等人数',order: 1,view: 'text', type: 'string',}, + yjy: {title: '普通话水平测试一级乙等人数',order: 2,view: 'text', type: 'string',}, + ejj: {title: '普通话水平测试二级甲等人数',order: 3,view: 'text', type: 'string',}, + ejy: {title: '普通话水平测试二级乙等人数',order: 4,view: 'text', type: 'string',}, + sjj: {title: '普通话水平测试三级甲等人数',order: 5,view: 'text', type: 'string',}, + sjy: {title: '普通话水平测试三级乙等人数',order: 6,view: 'text', type: 'string',}, + jszgz: {title: '通过教师资格证考试人数',order: 7,view: 'text', type: 'string',}, + jygz: {title: '毕业从事教育工作人数',order: 8,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11List.vue new file mode 100644 index 0000000..087a72d --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/TjbbSf11List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Form.vue new file mode 100644 index 0000000..bb0b39d --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Form.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Modal.vue new file mode 100644 index 0000000..e04a9a7 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf11/components/TjbbSf11Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.api.ts new file mode 100644 index 0000000..1dbffd8 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf3/tjbbSf3/list', + save='/tjbbSf3/tjbbSf3/add', + edit='/tjbbSf3/tjbbSf3/edit', + deleteOne = '/tjbbSf3/tjbbSf3/delete', + deleteBatch = '/tjbbSf3/tjbbSf3/deleteBatch', + importExcel = '/tjbbSf3/tjbbSf3/importExcel', + exportXls = '/tjbbSf3/tjbbSf3/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.data.ts new file mode 100644 index 0000000..8de1215 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3.data.ts @@ -0,0 +1,78 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '教学日常运行支出', + align: "center", + dataIndex: 'jxrcyxzc' + }, + { + title: '教育实践经费', + align: "center", + dataIndex: 'jysjjf' + }, + { + title: '生均拨款总额', + align: "center", + dataIndex: 'sjbkze' + }, + { + title: '学费收入之和', + align: "center", + dataIndex: 'xfsrzh' + }, + { + title: '纸质图书数量', + align: "center", + dataIndex: 'zztssl' + }, + { + title: '其中:中文图书', + align: "center", + dataIndex: 'zwts' + }, + { + title: '其中:教材或教师教材参考书', + align: "center", + dataIndex: 'cks' + }, + { + title: '电子图书数量', + align: "center", + dataIndex: 'dzts' + }, + { + title: '教学案例数量', + align: "center", + dataIndex: 'jxalsl' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + jxrcyxzc: {title: '教学日常运行支出',order: 2,view: 'text', type: 'string',}, + jysjjf: {title: '教育实践经费',order: 3,view: 'text', type: 'string',}, + sjbkze: {title: '生均拨款总额',order: 4,view: 'text', type: 'string',}, + xfsrzh: {title: '学费收入之和',order: 5,view: 'text', type: 'string',}, + zztssl: {title: '纸质图书数量',order: 6,view: 'text', type: 'string',}, + zwts: {title: '其中:中文图书',order: 7,view: 'text', type: 'string',}, + cks: {title: '其中:教材或教师教材参考书',order: 8,view: 'text', type: 'string',}, + dzts: {title: '电子图书数量',order: 9,view: 'text', type: 'string',}, + jxalsl: {title: '教学案例数量',order: 10,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3List.vue new file mode 100644 index 0000000..00c58dd --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/TjbbSf3List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Form.vue new file mode 100644 index 0000000..1b73d12 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Form.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Modal.vue new file mode 100644 index 0000000..2f7f701 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf3/components/TjbbSf3Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.api.ts new file mode 100644 index 0000000..ce150ad --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.api.ts @@ -0,0 +1,64 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf5/tjbbSf5/list', + save='/tjbbSf5/tjbbSf5/add', + edit='/tjbbSf5/tjbbSf5/edit', + deleteOne = '/tjbbSf5/tjbbSf5/delete', + deleteBatch = '/tjbbSf5/tjbbSf5/deleteBatch', + importExcel = '/tjbbSf5/tjbbSf5/importExcel', + exportXls = '/tjbbSf5/tjbbSf5/exportXls', +} +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.data.ts new file mode 100644 index 0000000..33bd9a6 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5.data.ts @@ -0,0 +1,210 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align:"center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align:"center", + dataIndex: 'xnzymc' + }, + { + title: '专业类别', + align:"center", + dataIndex: 'zylb' + }, + { + title: '学分总计', + align:"center", + dataIndex: 'xfzj' + }, + { + title: '人文社会与科学素养课程', + align:"center", + dataIndex: 'rwshykxsykc' + }, + { + title: '其中学科专业课程', + align:"center", + dataIndex: 'xkzykc' + }, + { + title: '教师教育课程小计', + align:"center", + dataIndex: 'jsjykcxj' + }, + { + title: '教师教育课程必修', + align:"center", + dataIndex: 'jsjykcbx' + }, + { + title: '其中师德教育类课程', + align:"center", + dataIndex: 'sdjylkc' + }, + { + title: '其中信息素养类课程', + align:"center", + dataIndex: 'xxsylkc' + }, + { + title: '教育实践时间总计', + align:"center", + dataIndex: 'jysjsjzj' + }, + { + title: '教育实践时间见习', + align:"center", + dataIndex: 'jysjsjjx' + }, + { + title: '教育实践时间研习', + align:"center", + dataIndex: 'jysjsjyx' + }, + { + title: '教育实践时间实习', + align:"center", + dataIndex: 'jysjsjsx' + }, + { + title: '参加教育实践师范生总计', + align:"center", + dataIndex: 'cjjysjsfszj' + }, + { + title: '参加教育实践师范生实习生数', + align:"center", + dataIndex: 'cjjysjsfssxzs' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '校内专业代码', + field: 'xnzydm', + component: 'Input', + }, + { + label: '校内专业名称', + field: 'xnzymc', + component: 'Input', + }, + { + label: '专业类别', + field: 'zylb', + component: 'Input', + }, + { + label: '学分总计', + field: 'xfzj', + component: 'Input', + }, + { + label: '人文社会与科学素养课程', + field: 'rwshykxsykc', + component: 'Input', + }, + { + label: '其中学科专业课程', + field: 'xkzykc', + component: 'Input', + }, + { + label: '教师教育课程小计', + field: 'jsjykcxj', + component: 'Input', + }, + { + label: '教师教育课程必修', + field: 'jsjykcbx', + component: 'Input', + }, + { + label: '其中师德教育类课程', + field: 'sdjylkc', + component: 'Input', + }, + { + label: '其中信息素养类课程', + field: 'xxsylkc', + component: 'Input', + }, + { + label: '教育实践时间总计', + field: 'jysjsjzj', + component: 'Input', + }, + { + label: '教育实践时间见习', + field: 'jysjsjjx', + component: 'Input', + }, + { + label: '教育实践时间研习', + field: 'jysjsjyx', + component: 'Input', + }, + { + label: '教育实践时间实习', + field: 'jysjsjsx', + component: 'Input', + }, + { + label: '参加教育实践师范生总计', + field: 'cjjysjsfszj', + component: 'Input', + }, + { + label: '参加教育实践师范生实习生数', + field: 'cjjysjsfssxzs', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + zylb: {title: '专业类别',order: 2,view: 'text', type: 'string',}, + xfzj: {title: '学分总计',order: 3,view: 'text', type: 'string',}, + rwshykxsykc: {title: '人文社会与科学素养课程',order: 4,view: 'text', type: 'string',}, + xkzykc: {title: '其中学科专业课程',order: 5,view: 'text', type: 'string',}, + jsjykcxj: {title: '教师教育课程小计',order: 6,view: 'text', type: 'string',}, + jsjykcbx: {title: '教师教育课程必修',order: 7,view: 'text', type: 'string',}, + sdjylkc: {title: '其中师德教育类课程',order: 8,view: 'text', type: 'string',}, + xxsylkc: {title: '其中信息素养类课程',order: 9,view: 'text', type: 'string',}, + jysjsjzj: {title: '教育实践时间总计',order: 10,view: 'text', type: 'string',}, + jysjsjjx: {title: '教育实践时间见习',order: 11,view: 'text', type: 'string',}, + jysjsjyx: {title: '教育实践时间研习',order: 12,view: 'text', type: 'string',}, + jysjsjsx: {title: '教育实践时间实习',order: 13,view: 'text', type: 'string',}, + cjjysjsfszj: {title: '参加教育实践师范生总计',order: 14,view: 'text', type: 'string',}, + cjjysjsfssxzs: {title: '参加教育实践师范生实习生数',order: 15,view: 'text', type: 'string',}, +}; + +/** +* 流程表单调用这个方法获取formSchema +* @param param +*/ +export function getBpmFormSchema(_formData): FormSchema[]{ + // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema + return formSchema; +} \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5List.vue new file mode 100644 index 0000000..2a16a05 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/TjbbSf5List.vue @@ -0,0 +1,190 @@ + + + + + \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Form.vue new file mode 100644 index 0000000..2aa4485 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Form.vue @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Modal.vue new file mode 100644 index 0000000..1d1bffb --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf5/components/TjbbSf5Modal.vue @@ -0,0 +1,76 @@ + + + + + \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.api.ts new file mode 100644 index 0000000..1cff7e0 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf6/tjbbSf6/list', + save='/tjbbSf6/tjbbSf6/add', + edit='/tjbbSf6/tjbbSf6/edit', + deleteOne = '/tjbbSf6/tjbbSf6/delete', + deleteBatch = '/tjbbSf6/tjbbSf6/deleteBatch', + importExcel = '/tjbbSf6/tjbbSf6/importExcel', + exportXls = '/tjbbSf6/tjbbSf6/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.data.ts new file mode 100644 index 0000000..52a7137 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6.data.ts @@ -0,0 +1,66 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '开课号', + align: "center", + dataIndex: 'kkh' + }, + { + title: '课程名称', + align: "center", + dataIndex: 'kcmc' + }, + { + title: '课程性质', + align: "center", + dataIndex: 'kcxz' + }, + { + title: '授课教师', + align: "center", + dataIndex: 'skjs' + }, + { + title: '授课教师工号', + align: "center", + dataIndex: 'skjsgh' + }, + { + title: '学分', + align: "center", + dataIndex: 'xf' + }, + { + title: '年级', + align: "center", + dataIndex: 'nj' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + kkh: {title: '开课号',order: 2,view: 'text', type: 'string',}, + kcmc: {title: '课程名称',order: 3,view: 'text', type: 'string',}, + kcxz: {title: '课程性质',order: 4,view: 'text', type: 'string',}, + skjs: {title: '授课教师',order: 5,view: 'textarea', type: 'string',}, + skjsgh: {title: '授课教师工号',order: 6,view: 'textarea', type: 'string',}, + xf: {title: '学分',order: 7,view: 'text', type: 'string',}, + nj: {title: '年级',order: 8,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6List.vue new file mode 100644 index 0000000..a1e8351 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/TjbbSf6List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Form.vue new file mode 100644 index 0000000..1655d22 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Form.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Modal.vue new file mode 100644 index 0000000..ed3d43a --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf6/components/TjbbSf6Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.api.ts new file mode 100644 index 0000000..b9381b7 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf8/tjbbSf8/list', + save='/tjbbSf8/tjbbSf8/add', + edit='/tjbbSf8/tjbbSf8/edit', + deleteOne = '/tjbbSf8/tjbbSf8/delete', + deleteBatch = '/tjbbSf8/tjbbSf8/deleteBatch', + importExcel = '/tjbbSf8/tjbbSf8/importExcel', + exportXls = '/tjbbSf8/tjbbSf8/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.data.ts new file mode 100644 index 0000000..0a18ec6 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8.data.ts @@ -0,0 +1,60 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '指导教师工号', + align: "center", + dataIndex: 'zdjsgh' + }, + { + title: '指导教师姓名', + align: "center", + dataIndex: 'zdjsxm' + }, + { + title: '指导本专业参加教育实践师范生数', + align: "center", + dataIndex: 'sfss' + }, + { + title: '实践类型', + align: "center", + dataIndex: 'sjlx' + }, + { + title: '年级', + align: "center", + dataIndex: 'nj' + }, + { + title: '周数', + align: "center", + dataIndex: 'zs' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + zdjsgh: {title: '指导教师工号',order: 2,view: 'textarea', type: 'string',}, + zdjsxm: {title: '指导教师姓名',order: 3,view: 'textarea', type: 'string',}, + sfss: {title: '指导本专业参加教育实践师范生数',order: 4,view: 'text', type: 'string',}, + sjlx: {title: '实践类型',order: 5,view: 'text', type: 'string',}, + nj: {title: '年级',order: 6,view: 'text', type: 'string',}, + zs: {title: '周数',order: 7,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8List.vue new file mode 100644 index 0000000..56e1e8f --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/TjbbSf8List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Form.vue new file mode 100644 index 0000000..b5854ed --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Form.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Modal.vue new file mode 100644 index 0000000..2c036ea --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf8/components/TjbbSf8Modal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.api.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.api.ts new file mode 100644 index 0000000..9472a4f --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/tjbbSf9/tjbbSf9/list', + save='/tjbbSf9/tjbbSf9/add', + edit='/tjbbSf9/tjbbSf9/edit', + deleteOne = '/tjbbSf9/tjbbSf9/delete', + deleteBatch = '/tjbbSf9/tjbbSf9/deleteBatch', + importExcel = '/tjbbSf9/tjbbSf9/importExcel', + exportXls = '/tjbbSf9/tjbbSf9/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.data.ts b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.data.ts new file mode 100644 index 0000000..6b4df89 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9.data.ts @@ -0,0 +1,102 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '校内专业代码', + align: "center", + dataIndex: 'xnzydm' + }, + { + title: '校内专业名称', + align: "center", + dataIndex: 'xnzymc' + }, + { + title: '普通高职(含专科)学生数', + align: "center", + dataIndex: 'ptgzxss' + }, + { + title: '硕士研究生数', + align: "center", + dataIndex: 'ssyjss' + }, + { + title: '博士研究生数', + align: "center", + dataIndex: 'bsyjss' + }, + { + title: '本专科留学生数', + align: "center", + dataIndex: 'bzklxss' + }, + { + title: '硕士留学生数', + align: "center", + dataIndex: 'sslxss' + }, + { + title: '博士留学生数', + align: "center", + dataIndex: 'bslxss' + }, + { + title: '普通预科生数', + align: "center", + dataIndex: 'ptykss' + }, + { + title: '中职在校生数', + align: "center", + dataIndex: 'zzzxss' + }, + { + title: '进修生数', + align: "center", + dataIndex: 'jxss' + }, + { + title: '成人脱产学生数', + align: "center", + dataIndex: 'crtcxss' + }, + { + title: '夜大(业余)学生数', + align: "center", + dataIndex: 'ydxss' + }, + { + title: '函授学生数', + align: "center", + dataIndex: 'hsxss' + }, + { + title: '网络教育学生数', + align: "center", + dataIndex: 'wljxsxs' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + xnzydm: {title: '校内专业代码',order: 0,view: 'text', type: 'string',}, + xnzymc: {title: '校内专业名称',order: 1,view: 'text', type: 'string',}, + ptgzxss: {title: '普通高职(含专科)学生数',order: 2,view: 'text', type: 'string',}, + ssyjss: {title: '硕士研究生数',order: 3,view: 'text', type: 'string',}, + bsyjss: {title: '博士研究生数',order: 4,view: 'text', type: 'string',}, + bzklxss: {title: '本专科留学生数',order: 5,view: 'text', type: 'string',}, + sslxss: {title: '硕士留学生数',order: 6,view: 'text', type: 'string',}, + bslxss: {title: '博士留学生数',order: 7,view: 'text', type: 'string',}, + ptykss: {title: '普通预科生数',order: 8,view: 'text', type: 'string',}, + zzzxss: {title: '中职在校生数',order: 9,view: 'text', type: 'string',}, + jxss: {title: '进修生数',order: 10,view: 'text', type: 'string',}, + crtcxss: {title: '成人脱产学生数',order: 11,view: 'text', type: 'string',}, + ydxss: {title: '夜大(业余)学生数',order: 12,view: 'text', type: 'string',}, + hsxss: {title: '函授学生数',order: 13,view: 'text', type: 'string',}, + wljxsxs: {title: '网络教育学生数',order: 14,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9List.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9List.vue new file mode 100644 index 0000000..c5b82c7 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/TjbbSf9List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Form.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Form.vue new file mode 100644 index 0000000..91130ae --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Form.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Modal.vue b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Modal.vue new file mode 100644 index 0000000..c890158 --- /dev/null +++ b/jeecgboot-vue3/src/views/tjbbVue/tjbbSf9/components/TjbbSf9Modal.vue @@ -0,0 +1,77 @@ + + + + + +