From df09d0444e0dcfd7d0c420baee0800d0fa97ea87 Mon Sep 17 00:00:00 2001 From: Augcl <17674666882@163.com> Date: Sun, 25 Aug 2024 16:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=89=E5=B1=82=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/AtActorCollectionController.java | 171 ++++++++++++++++ .../entity/AtActorCollection.java | 66 ++++++ .../mapper/AtActorCollectionMapper.java | 17 ++ .../mapper/xml/AtActorCollectionMapper.xml | 5 + .../service/IAtActorCollectionService.java | 14 ++ .../service/impl/AtActorCollectionServiceImpl.java | 19 ++ .../vue/AtActorCollectionList.vue | 190 +++++++++++++++++ .../vue/modules/AtActorCollectionForm.vue | 119 +++++++++++ .../AtActorCollectionModal.Style#Drawer.vue | 84 ++++++++ .../vue/modules/AtActorCollectionModal.vue | 60 ++++++ .../vue3/AtActorCollection.api.ts | 61 ++++++ .../vue3/AtActorCollection.data.ts | 56 +++++ .../vue3/AtActorCollectionList.vue | 162 +++++++++++++++ .../vue3/components/AtActorCollectionModal.vue | 58 ++++++ .../controller/AtMasterPieceController.java | 171 ++++++++++++++++ .../atMasterPiece/entity/AtMasterPiece.java | 62 ++++++ .../atMasterPiece/mapper/AtMasterPieceMapper.java | 17 ++ .../mapper/xml/AtMasterPieceMapper.xml | 5 + .../service/IAtMasterPieceService.java | 14 ++ .../service/impl/AtMasterPieceServiceImpl.java | 19 ++ .../atMasterPiece/vue/AtMasterPieceList.vue | 184 +++++++++++++++++ .../vue/modules/AtMasterPieceForm.vue | 114 +++++++++++ .../modules/AtMasterPieceModal.Style#Drawer.vue | 84 ++++++++ .../vue/modules/AtMasterPieceModal.vue | 60 ++++++ .../atMasterPiece/vue3/AtMasterPiece.api.ts | 61 ++++++ .../atMasterPiece/vue3/AtMasterPiece.data.ts | 46 +++++ .../atMasterPiece/vue3/AtMasterPieceList.vue | 162 +++++++++++++++ .../vue3/components/AtMasterPieceModal.vue | 58 ++++++ .../controller/AtPerformerController.java | 171 ++++++++++++++++ .../modules/atPerformer/entity/AtPerformer.java | 90 ++++++++ .../atPerformer/mapper/AtPerformerMapper.java | 17 ++ .../atPerformer/mapper/xml/AtPerformerMapper.xml | 5 + .../atPerformer/service/IAtPerformerService.java | 14 ++ .../service/impl/AtPerformerServiceImpl.java | 19 ++ .../modules/atPerformer/vue/AtPerformerList.vue | 227 +++++++++++++++++++++ .../atPerformer/vue/modules/AtPerformerForm.vue | 149 ++++++++++++++ .../vue/modules/AtPerformerModal.Style#Drawer.vue | 84 ++++++++ .../atPerformer/vue/modules/AtPerformerModal.vue | 60 ++++++ .../modules/atPerformer/vue3/AtPerformer.api.ts | 61 ++++++ .../modules/atPerformer/vue3/AtPerformer.data.ts | 119 +++++++++++ .../modules/atPerformer/vue3/AtPerformerList.vue | 162 +++++++++++++++ .../vue3/components/AtPerformerModal.vue | 58 ++++++ .../controller/AtPromotionController.java | 171 ++++++++++++++++ .../modules/atPromotion/entity/AtPromotion.java | 66 ++++++ .../atPromotion/mapper/AtPromotionMapper.java | 17 ++ .../atPromotion/mapper/xml/AtPromotionMapper.xml | 5 + .../atPromotion/service/IAtPromotionService.java | 14 ++ .../service/impl/AtPromotionServiceImpl.java | 19 ++ .../modules/atPromotion/vue/AtPromotionList.vue | 190 +++++++++++++++++ .../atPromotion/vue/modules/AtPromotionForm.vue | 119 +++++++++++ .../vue/modules/AtPromotionModal.Style#Drawer.vue | 84 ++++++++ .../atPromotion/vue/modules/AtPromotionModal.vue | 60 ++++++ .../modules/atPromotion/vue3/AtPromotion.api.ts | 61 ++++++ .../modules/atPromotion/vue3/AtPromotion.data.ts | 56 +++++ .../modules/atPromotion/vue3/AtPromotionList.vue | 162 +++++++++++++++ .../vue3/components/AtPromotionModal.vue | 58 ++++++ .../atTrends/controller/AtTrendsController.java | 171 ++++++++++++++++ .../jeecg/modules/atTrends/entity/AtTrends.java | 66 ++++++ .../modules/atTrends/mapper/AtTrendsMapper.java | 17 ++ .../modules/atTrends/mapper/xml/AtTrendsMapper.xml | 5 + .../modules/atTrends/service/IAtTrendsService.java | 14 ++ .../atTrends/service/impl/AtTrendsServiceImpl.java | 19 ++ .../jeecg/modules/atTrends/vue/AtTrendsList.vue | 190 +++++++++++++++++ .../modules/atTrends/vue/modules/AtTrendsForm.vue | 119 +++++++++++ .../vue/modules/AtTrendsModal.Style#Drawer.vue | 84 ++++++++ .../modules/atTrends/vue/modules/AtTrendsModal.vue | 60 ++++++ .../jeecg/modules/atTrends/vue3/AtTrends.api.ts | 61 ++++++ .../jeecg/modules/atTrends/vue3/AtTrends.data.ts | 56 +++++ .../jeecg/modules/atTrends/vue3/AtTrendsList.vue | 162 +++++++++++++++ .../atTrends/vue3/components/AtTrendsModal.vue | 58 ++++++ .../controller/HanHaiBankController.java | 171 ++++++++++++++++ .../modules/hanHaiBank/entity/HanHaiBank.java | 62 ++++++ .../hanHaiBank/mapper/HanHaiBankMapper.java | 17 ++ .../hanHaiBank/mapper/xml/HanHaiBankMapper.xml | 5 + .../hanHaiBank/service/IHanHaiBankService.java | 14 ++ .../service/impl/HanHaiBankServiceImpl.java | 19 ++ .../modules/hanHaiBank/vue/HanHaiBankList.vue | 183 +++++++++++++++++ .../hanHaiBank/vue/modules/HanHaiBankForm.vue | 114 +++++++++++ .../vue/modules/HanHaiBankModal.Style#Drawer.vue | 84 ++++++++ .../hanHaiBank/vue/modules/HanHaiBankModal.vue | 60 ++++++ .../modules/hanHaiBank/vue3/HanHaiBank.api.ts | 61 ++++++ .../modules/hanHaiBank/vue3/HanHaiBank.data.ts | 43 ++++ .../modules/hanHaiBank/vue3/HanHaiBankList.vue | 162 +++++++++++++++ .../hanHaiBank/vue3/components/HanHaiBankModal.vue | 58 ++++++ .../controller/HanHaiConfController.java | 171 ++++++++++++++++ .../modules/hanHaiConf/entity/HanHaiConf.java | 65 ++++++ .../hanHaiConf/mapper/HanHaiConfMapper.java | 17 ++ .../hanHaiConf/mapper/xml/HanHaiConfMapper.xml | 5 + .../hanHaiConf/service/IHanHaiConfService.java | 14 ++ .../service/impl/HanHaiConfServiceImpl.java | 19 ++ .../modules/hanHaiConf/vue/HanHaiConfList.vue | 183 +++++++++++++++++ .../hanHaiConf/vue/modules/HanHaiConfForm.vue | 114 +++++++++++ .../vue/modules/HanHaiConfModal.Style#Drawer.vue | 84 ++++++++ .../hanHaiConf/vue/modules/HanHaiConfModal.vue | 60 ++++++ .../modules/hanHaiConf/vue3/HanHaiConf.api.ts | 61 ++++++ .../modules/hanHaiConf/vue3/HanHaiConf.data.ts | 43 ++++ .../modules/hanHaiConf/vue3/HanHaiConfList.vue | 162 +++++++++++++++ .../hanHaiConf/vue3/components/HanHaiConfModal.vue | 58 ++++++ .../controller/HanHaiRealEnterpriseController.java | 171 ++++++++++++++++ .../entity/HanHaiRealEnterprise.java | 69 +++++++ .../mapper/HanHaiRealEnterpriseMapper.java | 17 ++ .../mapper/xml/HanHaiRealEnterpriseMapper.xml | 5 + .../service/IHanHaiRealEnterpriseService.java | 14 ++ .../impl/HanHaiRealEnterpriseServiceImpl.java | 19 ++ .../vue/HanHaiRealEnterpriseList.vue | 191 +++++++++++++++++ .../vue/modules/HanHaiRealEnterpriseForm.vue | 119 +++++++++++ .../HanHaiRealEnterpriseModal.Style#Drawer.vue | 84 ++++++++ .../vue/modules/HanHaiRealEnterpriseModal.vue | 60 ++++++ .../vue3/HanHaiRealEnterprise.api.ts | 61 ++++++ .../vue3/HanHaiRealEnterprise.data.ts | 59 ++++++ .../vue3/HanHaiRealEnterpriseList.vue | 162 +++++++++++++++ .../vue3/components/HanHaiRealEnterpriseModal.vue | 58 ++++++ .../controller/HanHaiRealNameController.java | 171 ++++++++++++++++ .../hanHaiRealName/entity/HanHaiRealName.java | 70 +++++++ .../mapper/HanHaiRealNameMapper.java | 17 ++ .../mapper/xml/HanHaiRealNameMapper.xml | 5 + .../service/IHanHaiRealNameService.java | 14 ++ .../service/impl/HanHaiRealNameServiceImpl.java | 19 ++ .../hanHaiRealName/vue/HanHaiRealNameList.vue | 197 ++++++++++++++++++ .../vue/modules/HanHaiRealNameForm.vue | 124 +++++++++++ .../modules/HanHaiRealNameModal.Style#Drawer.vue | 84 ++++++++ .../vue/modules/HanHaiRealNameModal.vue | 60 ++++++ .../hanHaiRealName/vue3/HanHaiRealName.api.ts | 61 ++++++ .../hanHaiRealName/vue3/HanHaiRealName.data.ts | 69 +++++++ .../hanHaiRealName/vue3/HanHaiRealNameList.vue | 162 +++++++++++++++ .../vue3/components/HanHaiRealNameModal.vue | 58 ++++++ .../controller/HanHaiWaterController.java | 171 ++++++++++++++++ .../modules/hanHaiWater/entity/HanHaiWater.java | 58 ++++++ .../hanHaiWater/mapper/HanHaiWaterMapper.java | 17 ++ .../hanHaiWater/mapper/xml/HanHaiWaterMapper.xml | 5 + .../hanHaiWater/service/IHanHaiWaterService.java | 14 ++ .../service/impl/HanHaiWaterServiceImpl.java | 19 ++ .../modules/hanHaiWater/vue/HanHaiWaterList.vue | 177 ++++++++++++++++ .../hanHaiWater/vue/modules/HanHaiWaterForm.vue | 109 ++++++++++ .../vue/modules/HanHaiWaterModal.Style#Drawer.vue | 84 ++++++++ .../hanHaiWater/vue/modules/HanHaiWaterModal.vue | 60 ++++++ .../modules/hanHaiWater/vue3/HanHaiWater.api.ts | 61 ++++++ .../modules/hanHaiWater/vue3/HanHaiWater.data.ts | 33 +++ .../modules/hanHaiWater/vue3/HanHaiWaterList.vue | 162 +++++++++++++++ .../vue3/components/HanHaiWaterModal.vue | 58 ++++++ .../controller/HanHaiBannerController.java | 171 ++++++++++++++++ .../modules/hanHanBanner/entity/HanHaiBanner.java | 58 ++++++ .../hanHanBanner/mapper/HanHaiBannerMapper.java | 17 ++ .../hanHanBanner/mapper/xml/HanHaiBannerMapper.xml | 5 + .../hanHanBanner/service/IHanHaiBannerService.java | 14 ++ .../service/impl/HanHaiBannerServiceImpl.java | 19 ++ .../modules/hanHanBanner/vue/HanHaiBannerList.vue | 178 ++++++++++++++++ .../hanHanBanner/vue/modules/HanHaiBannerForm.vue | 109 ++++++++++ .../vue/modules/HanHaiBannerModal.Style#Drawer.vue | 84 ++++++++ .../hanHanBanner/vue/modules/HanHaiBannerModal.vue | 60 ++++++ .../modules/hanHanBanner/vue3/HanHaiBanner.api.ts | 61 ++++++ .../modules/hanHanBanner/vue3/HanHaiBanner.data.ts | 36 ++++ .../modules/hanHanBanner/vue3/HanHaiBannerList.vue | 162 +++++++++++++++ .../vue3/components/HanHaiBannerModal.vue | 58 ++++++ 154 files changed, 11908 insertions(+) create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/controller/AtActorCollectionController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/entity/AtActorCollection.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/AtActorCollectionMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/xml/AtActorCollectionMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/IAtActorCollectionService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/impl/AtActorCollectionServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/AtActorCollectionList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollectionList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/components/AtActorCollectionModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/controller/AtMasterPieceController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/entity/AtMasterPiece.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/AtMasterPieceMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/xml/AtMasterPieceMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/IAtMasterPieceService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/impl/AtMasterPieceServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/AtMasterPieceList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPieceList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/components/AtMasterPieceModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/controller/AtPerformerController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/entity/AtPerformer.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/AtPerformerMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/xml/AtPerformerMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/IAtPerformerService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/impl/AtPerformerServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/AtPerformerList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformerList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/components/AtPerformerModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/controller/AtPromotionController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/entity/AtPromotion.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/AtPromotionMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/xml/AtPromotionMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/IAtPromotionService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/impl/AtPromotionServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/AtPromotionList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotionList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/components/AtPromotionModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/controller/AtTrendsController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/entity/AtTrends.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/AtTrendsMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/xml/AtTrendsMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/IAtTrendsService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/impl/AtTrendsServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/AtTrendsList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrendsList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/components/AtTrendsModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/controller/HanHaiBankController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/entity/HanHaiBank.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/HanHaiBankMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/xml/HanHaiBankMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/IHanHaiBankService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/impl/HanHaiBankServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/HanHaiBankList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBankList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/components/HanHaiBankModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/controller/HanHaiConfController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/entity/HanHaiConf.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/HanHaiConfMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/xml/HanHaiConfMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/IHanHaiConfService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/impl/HanHaiConfServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/HanHaiConfList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConfList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/components/HanHaiConfModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/controller/HanHaiRealEnterpriseController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/entity/HanHaiRealEnterprise.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/HanHaiRealEnterpriseMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/xml/HanHaiRealEnterpriseMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/IHanHaiRealEnterpriseService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/impl/HanHaiRealEnterpriseServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/HanHaiRealEnterpriseList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterpriseList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/components/HanHaiRealEnterpriseModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/controller/HanHaiRealNameController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/entity/HanHaiRealName.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/HanHaiRealNameMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/xml/HanHaiRealNameMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/IHanHaiRealNameService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/impl/HanHaiRealNameServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/HanHaiRealNameList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealNameList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/components/HanHaiRealNameModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/controller/HanHaiWaterController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/entity/HanHaiWater.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/HanHaiWaterMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/xml/HanHaiWaterMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/IHanHaiWaterService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/impl/HanHaiWaterServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/HanHaiWaterList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWaterList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/components/HanHaiWaterModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/controller/HanHaiBannerController.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/entity/HanHaiBanner.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/HanHaiBannerMapper.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/xml/HanHaiBannerMapper.xml create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/IHanHaiBannerService.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/impl/HanHaiBannerServiceImpl.java create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/HanHaiBannerList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerForm.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.Style#Drawer.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.api.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.data.ts create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBannerList.vue create mode 100644 jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/components/HanHaiBannerModal.vue diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/controller/AtActorCollectionController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/controller/AtActorCollectionController.java new file mode 100644 index 0000000..d1e81a9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/controller/AtActorCollectionController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.atActorCollection.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.atActorCollection.entity.AtActorCollection; +import org.jeecg.modules.atActorCollection.service.IAtActorCollectionService; + +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; + + /** + * @Description: 演员集表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="演员集表") +@RestController +@RequestMapping("/atActorCollection/atActorCollection") +@Slf4j +public class AtActorCollectionController extends JeecgController { + @Autowired + private IAtActorCollectionService atActorCollectionService; + + /** + * 分页列表查询 + * + * @param atActorCollection + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "演员集表-分页列表查询") + @ApiOperation(value="演员集表-分页列表查询", notes="演员集表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(AtActorCollection atActorCollection, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(atActorCollection, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = atActorCollectionService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param atActorCollection + * @return + */ + @AutoLog(value = "演员集表-添加") + @ApiOperation(value="演员集表-添加", notes="演员集表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody AtActorCollection atActorCollection) { + atActorCollectionService.save(atActorCollection); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param atActorCollection + * @return + */ + @AutoLog(value = "演员集表-编辑") + @ApiOperation(value="演员集表-编辑", notes="演员集表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody AtActorCollection atActorCollection) { + atActorCollectionService.updateById(atActorCollection); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "演员集表-通过id删除") + @ApiOperation(value="演员集表-通过id删除", notes="演员集表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + atActorCollectionService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "演员集表-批量删除") + @ApiOperation(value="演员集表-批量删除", notes="演员集表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.atActorCollectionService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "演员集表-通过id查询") + @ApiOperation(value="演员集表-通过id查询", notes="演员集表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + AtActorCollection atActorCollection = atActorCollectionService.getById(id); + if(atActorCollection==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(atActorCollection); + } + + /** + * 导出excel + * + * @param request + * @param atActorCollection + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, AtActorCollection atActorCollection) { + return super.exportXls(request, atActorCollection, AtActorCollection.class, "演员集表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, AtActorCollection.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/entity/AtActorCollection.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/entity/AtActorCollection.java new file mode 100644 index 0000000..ce54146 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/entity/AtActorCollection.java @@ -0,0 +1,66 @@ +package org.jeecg.modules.atActorCollection.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 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: 演员集表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("at_actor_collection") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="at_actor_collection对象", description="演员集表") +public class AtActorCollection implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**演员名称*/ + @Excel(name = "演员名称", width = 15) + @ApiModelProperty(value = "演员名称") + private java.lang.String name; + /**摄影师名称*/ + @Excel(name = "摄影师名称", width = 15) + @ApiModelProperty(value = "摄影师名称") + private java.lang.String photographerName; + /**图*/ + @Excel(name = "图", width = 15) + @ApiModelProperty(value = "图") + private java.lang.String image; + /**用户标识*/ + @Excel(name = "用户标识", width = 15) + @ApiModelProperty(value = "用户标识") + private java.lang.String userId; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/AtActorCollectionMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/AtActorCollectionMapper.java new file mode 100644 index 0000000..b44f6a6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/AtActorCollectionMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.atActorCollection.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.atActorCollection.entity.AtActorCollection; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 演员集表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface AtActorCollectionMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/xml/AtActorCollectionMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/xml/AtActorCollectionMapper.xml new file mode 100644 index 0000000..ba32396 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/mapper/xml/AtActorCollectionMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/IAtActorCollectionService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/IAtActorCollectionService.java new file mode 100644 index 0000000..015428b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/IAtActorCollectionService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.atActorCollection.service; + +import org.jeecg.modules.atActorCollection.entity.AtActorCollection; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 演员集表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IAtActorCollectionService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/impl/AtActorCollectionServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/impl/AtActorCollectionServiceImpl.java new file mode 100644 index 0000000..e7e842d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/service/impl/AtActorCollectionServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.atActorCollection.service.impl; + +import org.jeecg.modules.atActorCollection.entity.AtActorCollection; +import org.jeecg.modules.atActorCollection.mapper.AtActorCollectionMapper; +import org.jeecg.modules.atActorCollection.service.IAtActorCollectionService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 演员集表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class AtActorCollectionServiceImpl extends ServiceImpl implements IAtActorCollectionService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/AtActorCollectionList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/AtActorCollectionList.vue new file mode 100644 index 0000000..2a62e52 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/AtActorCollectionList.vue @@ -0,0 +1,190 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionForm.vue new file mode 100644 index 0000000..131dd51 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionForm.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.Style#Drawer.vue new file mode 100644 index 0000000..8e96527 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.vue new file mode 100644 index 0000000..1f1a8d2 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue/modules/AtActorCollectionModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.api.ts new file mode 100644 index 0000000..f15b70c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/atActorCollection/atActorCollection/list', + save='/atActorCollection/atActorCollection/add', + edit='/atActorCollection/atActorCollection/edit', + deleteOne = '/atActorCollection/atActorCollection/delete', + deleteBatch = '/atActorCollection/atActorCollection/deleteBatch', + importExcel = '/atActorCollection/atActorCollection/importExcel', + exportXls = '/atActorCollection/atActorCollection/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.data.ts new file mode 100644 index 0000000..06785c2 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollection.data.ts @@ -0,0 +1,56 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '演员名称', + align:"center", + dataIndex: 'name' + }, + { + title: '摄影师名称', + align:"center", + dataIndex: 'photographerName' + }, + { + title: '图', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, + { + title: '用户标识', + align:"center", + dataIndex: 'userId' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '演员名称', + field: 'name', + component: 'Input', + }, + { + label: '摄影师名称', + field: 'photographerName', + component: 'Input', + }, + { + label: '图', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '用户标识', + field: 'userId', + component: 'Input', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollectionList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollectionList.vue new file mode 100644 index 0000000..e19fb82 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/AtActorCollectionList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/components/AtActorCollectionModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/components/AtActorCollectionModal.vue new file mode 100644 index 0000000..a8fba37 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atActorCollection/vue3/components/AtActorCollectionModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/controller/AtMasterPieceController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/controller/AtMasterPieceController.java new file mode 100644 index 0000000..fee7f5f --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/controller/AtMasterPieceController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.atMasterPiece.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.atMasterPiece.entity.AtMasterPiece; +import org.jeecg.modules.atMasterPiece.service.IAtMasterPieceService; + +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; + + /** + * @Description: 代表作品表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="代表作品表") +@RestController +@RequestMapping("/atMasterPiece/atMasterPiece") +@Slf4j +public class AtMasterPieceController extends JeecgController { + @Autowired + private IAtMasterPieceService atMasterPieceService; + + /** + * 分页列表查询 + * + * @param atMasterPiece + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "代表作品表-分页列表查询") + @ApiOperation(value="代表作品表-分页列表查询", notes="代表作品表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(AtMasterPiece atMasterPiece, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(atMasterPiece, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = atMasterPieceService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param atMasterPiece + * @return + */ + @AutoLog(value = "代表作品表-添加") + @ApiOperation(value="代表作品表-添加", notes="代表作品表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody AtMasterPiece atMasterPiece) { + atMasterPieceService.save(atMasterPiece); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param atMasterPiece + * @return + */ + @AutoLog(value = "代表作品表-编辑") + @ApiOperation(value="代表作品表-编辑", notes="代表作品表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody AtMasterPiece atMasterPiece) { + atMasterPieceService.updateById(atMasterPiece); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "代表作品表-通过id删除") + @ApiOperation(value="代表作品表-通过id删除", notes="代表作品表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + atMasterPieceService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "代表作品表-批量删除") + @ApiOperation(value="代表作品表-批量删除", notes="代表作品表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.atMasterPieceService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "代表作品表-通过id查询") + @ApiOperation(value="代表作品表-通过id查询", notes="代表作品表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + AtMasterPiece atMasterPiece = atMasterPieceService.getById(id); + if(atMasterPiece==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(atMasterPiece); + } + + /** + * 导出excel + * + * @param request + * @param atMasterPiece + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, AtMasterPiece atMasterPiece) { + return super.exportXls(request, atMasterPiece, AtMasterPiece.class, "代表作品表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, AtMasterPiece.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/entity/AtMasterPiece.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/entity/AtMasterPiece.java new file mode 100644 index 0000000..d9acb07 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/entity/AtMasterPiece.java @@ -0,0 +1,62 @@ +package org.jeecg.modules.atMasterPiece.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 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: 代表作品表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("at_masterpiece") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="at_masterpiece对象", description="代表作品表") +public class AtMasterPiece implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**用户*/ + @Excel(name = "用户", width = 15) + @ApiModelProperty(value = "用户") + private java.lang.String userId; + /**作品图片*/ + @Excel(name = "作品图片", width = 15) + @ApiModelProperty(value = "作品图片") + private java.lang.String image; + /**作品标题*/ + @Excel(name = "作品标题", width = 15) + @ApiModelProperty(value = "作品标题") + private java.lang.String title; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/AtMasterPieceMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/AtMasterPieceMapper.java new file mode 100644 index 0000000..f3620d1 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/AtMasterPieceMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.atMasterPiece.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.atMasterPiece.entity.AtMasterPiece; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 代表作品表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface AtMasterPieceMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/xml/AtMasterPieceMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/xml/AtMasterPieceMapper.xml new file mode 100644 index 0000000..2b73f45 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/mapper/xml/AtMasterPieceMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/IAtMasterPieceService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/IAtMasterPieceService.java new file mode 100644 index 0000000..a7d2efd --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/IAtMasterPieceService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.atMasterPiece.service; + +import org.jeecg.modules.atMasterPiece.entity.AtMasterPiece; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 代表作品表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IAtMasterPieceService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/impl/AtMasterPieceServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/impl/AtMasterPieceServiceImpl.java new file mode 100644 index 0000000..b57bf05 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/service/impl/AtMasterPieceServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.atMasterPiece.service.impl; + +import org.jeecg.modules.atMasterPiece.entity.AtMasterPiece; +import org.jeecg.modules.atMasterPiece.mapper.AtMasterPieceMapper; +import org.jeecg.modules.atMasterPiece.service.IAtMasterPieceService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 代表作品表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class AtMasterPieceServiceImpl extends ServiceImpl implements IAtMasterPieceService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/AtMasterPieceList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/AtMasterPieceList.vue new file mode 100644 index 0000000..22916bb --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/AtMasterPieceList.vue @@ -0,0 +1,184 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceForm.vue new file mode 100644 index 0000000..8c1ce0c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceForm.vue @@ -0,0 +1,114 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.Style#Drawer.vue new file mode 100644 index 0000000..2ea2aaa --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.vue new file mode 100644 index 0000000..d0276e3 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue/modules/AtMasterPieceModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.api.ts new file mode 100644 index 0000000..52f99f0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/atMasterPiece/atMasterPiece/list', + save='/atMasterPiece/atMasterPiece/add', + edit='/atMasterPiece/atMasterPiece/edit', + deleteOne = '/atMasterPiece/atMasterPiece/delete', + deleteBatch = '/atMasterPiece/atMasterPiece/deleteBatch', + importExcel = '/atMasterPiece/atMasterPiece/importExcel', + exportXls = '/atMasterPiece/atMasterPiece/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.data.ts new file mode 100644 index 0000000..7ca7ac6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPiece.data.ts @@ -0,0 +1,46 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '用户', + align:"center", + dataIndex: 'userId' + }, + { + title: '作品图片', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, + { + title: '作品标题', + align:"center", + dataIndex: 'title' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '用户', + field: 'userId', + component: 'Input', + }, + { + label: '作品图片', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '作品标题', + field: 'title', + component: 'Input', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPieceList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPieceList.vue new file mode 100644 index 0000000..a872f6b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/AtMasterPieceList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/components/AtMasterPieceModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/components/AtMasterPieceModal.vue new file mode 100644 index 0000000..97a7305 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atMasterPiece/vue3/components/AtMasterPieceModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/controller/AtPerformerController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/controller/AtPerformerController.java new file mode 100644 index 0000000..45002c9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/controller/AtPerformerController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.atPerformer.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.atPerformer.entity.AtPerformer; +import org.jeecg.modules.atPerformer.service.IAtPerformerService; + +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; + + /** + * @Description: 认证演员表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="认证演员表") +@RestController +@RequestMapping("/atPerformer/atPerformer") +@Slf4j +public class AtPerformerController extends JeecgController { + @Autowired + private IAtPerformerService atPerformerService; + + /** + * 分页列表查询 + * + * @param atPerformer + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "认证演员表-分页列表查询") + @ApiOperation(value="认证演员表-分页列表查询", notes="认证演员表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(AtPerformer atPerformer, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(atPerformer, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = atPerformerService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param atPerformer + * @return + */ + @AutoLog(value = "认证演员表-添加") + @ApiOperation(value="认证演员表-添加", notes="认证演员表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody AtPerformer atPerformer) { + atPerformerService.save(atPerformer); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param atPerformer + * @return + */ + @AutoLog(value = "认证演员表-编辑") + @ApiOperation(value="认证演员表-编辑", notes="认证演员表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody AtPerformer atPerformer) { + atPerformerService.updateById(atPerformer); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "认证演员表-通过id删除") + @ApiOperation(value="认证演员表-通过id删除", notes="认证演员表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + atPerformerService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "认证演员表-批量删除") + @ApiOperation(value="认证演员表-批量删除", notes="认证演员表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.atPerformerService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "认证演员表-通过id查询") + @ApiOperation(value="认证演员表-通过id查询", notes="认证演员表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + AtPerformer atPerformer = atPerformerService.getById(id); + if(atPerformer==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(atPerformer); + } + + /** + * 导出excel + * + * @param request + * @param atPerformer + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, AtPerformer atPerformer) { + return super.exportXls(request, atPerformer, AtPerformer.class, "认证演员表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, AtPerformer.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/entity/AtPerformer.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/entity/AtPerformer.java new file mode 100644 index 0000000..1a578d9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/entity/AtPerformer.java @@ -0,0 +1,90 @@ +package org.jeecg.modules.atPerformer.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 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: 认证演员表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("at_performer") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="at_performer对象", description="认证演员表") +public class AtPerformer implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**认证logo*/ + @Excel(name = "认证logo", width = 15) + @ApiModelProperty(value = "认证logo") + private java.lang.String logo; + /**演员名称*/ + @Excel(name = "演员名称", width = 15) + @ApiModelProperty(value = "演员名称") + private java.lang.String name; + /**创作标题*/ + @Excel(name = "创作标题", width = 15) + @ApiModelProperty(value = "创作标题") + private java.lang.String title; + /**创作图片*/ + @Excel(name = "创作图片", width = 15) + @ApiModelProperty(value = "创作图片") + private java.lang.String image; + /**介绍*/ + @Excel(name = "介绍", width = 15) + @ApiModelProperty(value = "介绍") + private java.lang.String introduce; + /**联系方式*/ + @Excel(name = "联系方式", width = 15) + @ApiModelProperty(value = "联系方式") + private java.lang.String phone; + /**价格*/ + @Excel(name = "价格", width = 15) + @ApiModelProperty(value = "价格") + private java.math.BigDecimal price; + /**是否认证*/ + @Excel(name = "是否认证", width = 15) + @ApiModelProperty(value = "是否认证") + private java.lang.String authenticationNo; + /**用户*/ + @Excel(name = "用户", width = 15) + @ApiModelProperty(value = "用户") + private java.lang.String userId; + /**踩*/ + @Excel(name = "踩", width = 15) + @ApiModelProperty(value = "踩") + private java.lang.Integer stepOnNum; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/AtPerformerMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/AtPerformerMapper.java new file mode 100644 index 0000000..b7d7330 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/AtPerformerMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.atPerformer.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.atPerformer.entity.AtPerformer; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 认证演员表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface AtPerformerMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/xml/AtPerformerMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/xml/AtPerformerMapper.xml new file mode 100644 index 0000000..b3a8e60 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/mapper/xml/AtPerformerMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/IAtPerformerService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/IAtPerformerService.java new file mode 100644 index 0000000..db8118a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/IAtPerformerService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.atPerformer.service; + +import org.jeecg.modules.atPerformer.entity.AtPerformer; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 认证演员表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IAtPerformerService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/impl/AtPerformerServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/impl/AtPerformerServiceImpl.java new file mode 100644 index 0000000..c2fd708 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/service/impl/AtPerformerServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.atPerformer.service.impl; + +import org.jeecg.modules.atPerformer.entity.AtPerformer; +import org.jeecg.modules.atPerformer.mapper.AtPerformerMapper; +import org.jeecg.modules.atPerformer.service.IAtPerformerService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 认证演员表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class AtPerformerServiceImpl extends ServiceImpl implements IAtPerformerService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/AtPerformerList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/AtPerformerList.vue new file mode 100644 index 0000000..57bd245 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/AtPerformerList.vue @@ -0,0 +1,227 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerForm.vue new file mode 100644 index 0000000..43d0042 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerForm.vue @@ -0,0 +1,149 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.Style#Drawer.vue new file mode 100644 index 0000000..23282d3 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.vue new file mode 100644 index 0000000..a704b31 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue/modules/AtPerformerModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.api.ts new file mode 100644 index 0000000..9ff6680 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/atPerformer/atPerformer/list', + save='/atPerformer/atPerformer/add', + edit='/atPerformer/atPerformer/edit', + deleteOne = '/atPerformer/atPerformer/delete', + deleteBatch = '/atPerformer/atPerformer/deleteBatch', + importExcel = '/atPerformer/atPerformer/importExcel', + exportXls = '/atPerformer/atPerformer/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.data.ts new file mode 100644 index 0000000..e2ba2aa --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformer.data.ts @@ -0,0 +1,119 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '认证logo', + align:"center", + dataIndex: 'logo', + customRender:render.renderAvatar, + }, + { + title: '演员名称', + align:"center", + dataIndex: 'name' + }, + { + title: '创作标题', + align:"center", + dataIndex: 'title' + }, + { + title: '创作图片', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, + { + title: '介绍', + align:"center", + dataIndex: 'introduce' + }, + { + title: '联系方式', + align:"center", + dataIndex: 'phone' + }, + { + title: '价格', + align:"center", + dataIndex: 'price' + }, + { + title: '是否认证', + align:"center", + dataIndex: 'authenticationNo' + }, + { + title: '用户', + align:"center", + dataIndex: 'userId' + }, + { + title: '踩', + align:"center", + dataIndex: 'stepOnNum' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '认证logo', + field: 'logo', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '演员名称', + field: 'name', + component: 'Input', + }, + { + label: '创作标题', + field: 'title', + component: 'Input', + }, + { + label: '创作图片', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '介绍', + field: 'introduce', + component: 'Input', + }, + { + label: '联系方式', + field: 'phone', + component: 'Input', + }, + { + label: '价格', + field: 'price', + component: 'InputNumber', + }, + { + label: '是否认证', + field: 'authenticationNo', + component: 'Input', + }, + { + label: '用户', + field: 'userId', + component: 'Input', + }, + { + label: '踩', + field: 'stepOnNum', + component: 'InputNumber', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformerList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformerList.vue new file mode 100644 index 0000000..ebac6cc --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/AtPerformerList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/components/AtPerformerModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/components/AtPerformerModal.vue new file mode 100644 index 0000000..b087982 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPerformer/vue3/components/AtPerformerModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/controller/AtPromotionController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/controller/AtPromotionController.java new file mode 100644 index 0000000..43dfce7 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/controller/AtPromotionController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.atPromotion.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.atPromotion.entity.AtPromotion; +import org.jeecg.modules.atPromotion.service.IAtPromotionService; + +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; + + /** + * @Description: 推广记录表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="推广记录表") +@RestController +@RequestMapping("/atPromotion/atPromotion") +@Slf4j +public class AtPromotionController extends JeecgController { + @Autowired + private IAtPromotionService atPromotionService; + + /** + * 分页列表查询 + * + * @param atPromotion + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "推广记录表-分页列表查询") + @ApiOperation(value="推广记录表-分页列表查询", notes="推广记录表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(AtPromotion atPromotion, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(atPromotion, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = atPromotionService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param atPromotion + * @return + */ + @AutoLog(value = "推广记录表-添加") + @ApiOperation(value="推广记录表-添加", notes="推广记录表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody AtPromotion atPromotion) { + atPromotionService.save(atPromotion); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param atPromotion + * @return + */ + @AutoLog(value = "推广记录表-编辑") + @ApiOperation(value="推广记录表-编辑", notes="推广记录表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody AtPromotion atPromotion) { + atPromotionService.updateById(atPromotion); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "推广记录表-通过id删除") + @ApiOperation(value="推广记录表-通过id删除", notes="推广记录表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + atPromotionService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "推广记录表-批量删除") + @ApiOperation(value="推广记录表-批量删除", notes="推广记录表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.atPromotionService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "推广记录表-通过id查询") + @ApiOperation(value="推广记录表-通过id查询", notes="推广记录表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + AtPromotion atPromotion = atPromotionService.getById(id); + if(atPromotion==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(atPromotion); + } + + /** + * 导出excel + * + * @param request + * @param atPromotion + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, AtPromotion atPromotion) { + return super.exportXls(request, atPromotion, AtPromotion.class, "推广记录表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, AtPromotion.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/entity/AtPromotion.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/entity/AtPromotion.java new file mode 100644 index 0000000..ba439c0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/entity/AtPromotion.java @@ -0,0 +1,66 @@ +package org.jeecg.modules.atPromotion.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 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: 推广记录表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("at_promotion") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="at_promotion对象", description="推广记录表") +public class AtPromotion implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**标题*/ + @Excel(name = "标题", width = 15) + @ApiModelProperty(value = "标题") + private java.lang.String title; + /**价格*/ + @Excel(name = "价格", width = 15) + @ApiModelProperty(value = "价格") + private java.lang.String price; + /**图片*/ + @Excel(name = "图片", width = 15) + @ApiModelProperty(value = "图片") + private java.lang.String image; + /**推广时效*/ + @Excel(name = "推广时效", width = 15) + @ApiModelProperty(value = "推广时效") + private java.lang.Integer goTiime; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/AtPromotionMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/AtPromotionMapper.java new file mode 100644 index 0000000..edd8cb6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/AtPromotionMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.atPromotion.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.atPromotion.entity.AtPromotion; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 推广记录表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface AtPromotionMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/xml/AtPromotionMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/xml/AtPromotionMapper.xml new file mode 100644 index 0000000..2f8c71c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/mapper/xml/AtPromotionMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/IAtPromotionService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/IAtPromotionService.java new file mode 100644 index 0000000..27dcb89 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/IAtPromotionService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.atPromotion.service; + +import org.jeecg.modules.atPromotion.entity.AtPromotion; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 推广记录表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IAtPromotionService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/impl/AtPromotionServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/impl/AtPromotionServiceImpl.java new file mode 100644 index 0000000..a326c4b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/service/impl/AtPromotionServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.atPromotion.service.impl; + +import org.jeecg.modules.atPromotion.entity.AtPromotion; +import org.jeecg.modules.atPromotion.mapper.AtPromotionMapper; +import org.jeecg.modules.atPromotion.service.IAtPromotionService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 推广记录表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class AtPromotionServiceImpl extends ServiceImpl implements IAtPromotionService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/AtPromotionList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/AtPromotionList.vue new file mode 100644 index 0000000..3b5d7b9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/AtPromotionList.vue @@ -0,0 +1,190 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionForm.vue new file mode 100644 index 0000000..a8d5e7b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionForm.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.Style#Drawer.vue new file mode 100644 index 0000000..592ebfd --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.vue new file mode 100644 index 0000000..28803e5 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue/modules/AtPromotionModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.api.ts new file mode 100644 index 0000000..69ee64a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/atPromotion/atPromotion/list', + save='/atPromotion/atPromotion/add', + edit='/atPromotion/atPromotion/edit', + deleteOne = '/atPromotion/atPromotion/delete', + deleteBatch = '/atPromotion/atPromotion/deleteBatch', + importExcel = '/atPromotion/atPromotion/importExcel', + exportXls = '/atPromotion/atPromotion/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.data.ts new file mode 100644 index 0000000..ffafad9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotion.data.ts @@ -0,0 +1,56 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '标题', + align:"center", + dataIndex: 'title' + }, + { + title: '价格', + align:"center", + dataIndex: 'price' + }, + { + title: '图片', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, + { + title: '推广时效', + align:"center", + dataIndex: 'goTiime' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '标题', + field: 'title', + component: 'Input', + }, + { + label: '价格', + field: 'price', + component: 'Input', + }, + { + label: '图片', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '推广时效', + field: 'goTiime', + component: 'InputNumber', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotionList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotionList.vue new file mode 100644 index 0000000..326e50a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/AtPromotionList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/components/AtPromotionModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/components/AtPromotionModal.vue new file mode 100644 index 0000000..5d75f34 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atPromotion/vue3/components/AtPromotionModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/controller/AtTrendsController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/controller/AtTrendsController.java new file mode 100644 index 0000000..55a4021 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/controller/AtTrendsController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.atTrends.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.atTrends.entity.AtTrends; +import org.jeecg.modules.atTrends.service.IAtTrendsService; + +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; + + /** + * @Description: 动态帖子表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="动态帖子表") +@RestController +@RequestMapping("/atTrends/atTrends") +@Slf4j +public class AtTrendsController extends JeecgController { + @Autowired + private IAtTrendsService atTrendsService; + + /** + * 分页列表查询 + * + * @param atTrends + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "动态帖子表-分页列表查询") + @ApiOperation(value="动态帖子表-分页列表查询", notes="动态帖子表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(AtTrends atTrends, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(atTrends, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = atTrendsService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param atTrends + * @return + */ + @AutoLog(value = "动态帖子表-添加") + @ApiOperation(value="动态帖子表-添加", notes="动态帖子表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody AtTrends atTrends) { + atTrendsService.save(atTrends); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param atTrends + * @return + */ + @AutoLog(value = "动态帖子表-编辑") + @ApiOperation(value="动态帖子表-编辑", notes="动态帖子表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody AtTrends atTrends) { + atTrendsService.updateById(atTrends); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "动态帖子表-通过id删除") + @ApiOperation(value="动态帖子表-通过id删除", notes="动态帖子表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + atTrendsService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "动态帖子表-批量删除") + @ApiOperation(value="动态帖子表-批量删除", notes="动态帖子表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.atTrendsService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "动态帖子表-通过id查询") + @ApiOperation(value="动态帖子表-通过id查询", notes="动态帖子表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + AtTrends atTrends = atTrendsService.getById(id); + if(atTrends==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(atTrends); + } + + /** + * 导出excel + * + * @param request + * @param atTrends + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, AtTrends atTrends) { + return super.exportXls(request, atTrends, AtTrends.class, "动态帖子表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, AtTrends.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/entity/AtTrends.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/entity/AtTrends.java new file mode 100644 index 0000000..a06a467 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/entity/AtTrends.java @@ -0,0 +1,66 @@ +package org.jeecg.modules.atTrends.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 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: 动态帖子表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("at_trends") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="at_trends对象", description="动态帖子表") +public class AtTrends implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**标题*/ + @Excel(name = "标题", width = 15) + @ApiModelProperty(value = "标题") + private java.lang.String title; + /**图片*/ + @Excel(name = "图片", width = 15) + @ApiModelProperty(value = "图片") + private java.lang.String image; + /**发布人*/ + @Excel(name = "发布人", width = 15) + @ApiModelProperty(value = "发布人") + private java.lang.String userId; + /**点赞数*/ + @Excel(name = "点赞数", width = 15) + @ApiModelProperty(value = "点赞数") + private java.lang.Integer dropNum; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/AtTrendsMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/AtTrendsMapper.java new file mode 100644 index 0000000..86924ff --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/AtTrendsMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.atTrends.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.atTrends.entity.AtTrends; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 动态帖子表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface AtTrendsMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/xml/AtTrendsMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/xml/AtTrendsMapper.xml new file mode 100644 index 0000000..e09979c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/mapper/xml/AtTrendsMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/IAtTrendsService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/IAtTrendsService.java new file mode 100644 index 0000000..f298050 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/IAtTrendsService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.atTrends.service; + +import org.jeecg.modules.atTrends.entity.AtTrends; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 动态帖子表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IAtTrendsService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/impl/AtTrendsServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/impl/AtTrendsServiceImpl.java new file mode 100644 index 0000000..2a66b34 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/service/impl/AtTrendsServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.atTrends.service.impl; + +import org.jeecg.modules.atTrends.entity.AtTrends; +import org.jeecg.modules.atTrends.mapper.AtTrendsMapper; +import org.jeecg.modules.atTrends.service.IAtTrendsService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 动态帖子表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class AtTrendsServiceImpl extends ServiceImpl implements IAtTrendsService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/AtTrendsList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/AtTrendsList.vue new file mode 100644 index 0000000..a8d66f6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/AtTrendsList.vue @@ -0,0 +1,190 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsForm.vue new file mode 100644 index 0000000..10b9b52 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsForm.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.Style#Drawer.vue new file mode 100644 index 0000000..f26bb17 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.vue new file mode 100644 index 0000000..bb56803 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue/modules/AtTrendsModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.api.ts new file mode 100644 index 0000000..e91e6bf --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/atTrends/atTrends/list', + save='/atTrends/atTrends/add', + edit='/atTrends/atTrends/edit', + deleteOne = '/atTrends/atTrends/delete', + deleteBatch = '/atTrends/atTrends/deleteBatch', + importExcel = '/atTrends/atTrends/importExcel', + exportXls = '/atTrends/atTrends/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.data.ts new file mode 100644 index 0000000..0b42285 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrends.data.ts @@ -0,0 +1,56 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '标题', + align:"center", + dataIndex: 'title' + }, + { + title: '图片', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, + { + title: '发布人', + align:"center", + dataIndex: 'userId' + }, + { + title: '点赞数', + align:"center", + dataIndex: 'dropNum' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '标题', + field: 'title', + component: 'Input', + }, + { + label: '图片', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '发布人', + field: 'userId', + component: 'Input', + }, + { + label: '点赞数', + field: 'dropNum', + component: 'InputNumber', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrendsList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrendsList.vue new file mode 100644 index 0000000..03d6b58 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/AtTrendsList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/components/AtTrendsModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/components/AtTrendsModal.vue new file mode 100644 index 0000000..b515939 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/atTrends/vue3/components/AtTrendsModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/controller/HanHaiBankController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/controller/HanHaiBankController.java new file mode 100644 index 0000000..745f04e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/controller/HanHaiBankController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHaiBank.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.hanHaiBank.entity.HanHaiBank; +import org.jeecg.modules.hanHaiBank.service.IHanHaiBankService; + +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; + + /** + * @Description: 银行卡列表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="银行卡列表") +@RestController +@RequestMapping("/hanHaiBank/hanHaiBank") +@Slf4j +public class HanHaiBankController extends JeecgController { + @Autowired + private IHanHaiBankService hanHaiBankService; + + /** + * 分页列表查询 + * + * @param hanHaiBank + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "银行卡列表-分页列表查询") + @ApiOperation(value="银行卡列表-分页列表查询", notes="银行卡列表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiBank hanHaiBank, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiBank, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiBankService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiBank + * @return + */ + @AutoLog(value = "银行卡列表-添加") + @ApiOperation(value="银行卡列表-添加", notes="银行卡列表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiBank hanHaiBank) { + hanHaiBankService.save(hanHaiBank); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiBank + * @return + */ + @AutoLog(value = "银行卡列表-编辑") + @ApiOperation(value="银行卡列表-编辑", notes="银行卡列表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiBank hanHaiBank) { + hanHaiBankService.updateById(hanHaiBank); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "银行卡列表-通过id删除") + @ApiOperation(value="银行卡列表-通过id删除", notes="银行卡列表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiBankService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "银行卡列表-批量删除") + @ApiOperation(value="银行卡列表-批量删除", notes="银行卡列表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiBankService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "银行卡列表-通过id查询") + @ApiOperation(value="银行卡列表-通过id查询", notes="银行卡列表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiBank hanHaiBank = hanHaiBankService.getById(id); + if(hanHaiBank==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiBank); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiBank + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiBank hanHaiBank) { + return super.exportXls(request, hanHaiBank, HanHaiBank.class, "银行卡列表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiBank.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/entity/HanHaiBank.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/entity/HanHaiBank.java new file mode 100644 index 0000000..65f5dba --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/entity/HanHaiBank.java @@ -0,0 +1,62 @@ +package org.jeecg.modules.hanHaiBank.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 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: 银行卡列表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_bank") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_bank对象", description="银行卡列表") +public class HanHaiBank implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**卡号*/ + @Excel(name = "卡号", width = 15) + @ApiModelProperty(value = "卡号") + private java.lang.String bankId; + /**姓名*/ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private java.lang.String name; + /**身份证号码*/ + @Excel(name = "身份证号码", width = 15) + @ApiModelProperty(value = "身份证号码") + private java.lang.String card; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/HanHaiBankMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/HanHaiBankMapper.java new file mode 100644 index 0000000..17fbc5d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/HanHaiBankMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHaiBank.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHaiBank.entity.HanHaiBank; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 银行卡列表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiBankMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/xml/HanHaiBankMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/xml/HanHaiBankMapper.xml new file mode 100644 index 0000000..74127c3 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/mapper/xml/HanHaiBankMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/IHanHaiBankService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/IHanHaiBankService.java new file mode 100644 index 0000000..b761b8a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/IHanHaiBankService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHaiBank.service; + +import org.jeecg.modules.hanHaiBank.entity.HanHaiBank; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 银行卡列表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiBankService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/impl/HanHaiBankServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/impl/HanHaiBankServiceImpl.java new file mode 100644 index 0000000..364b02a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/service/impl/HanHaiBankServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHaiBank.service.impl; + +import org.jeecg.modules.hanHaiBank.entity.HanHaiBank; +import org.jeecg.modules.hanHaiBank.mapper.HanHaiBankMapper; +import org.jeecg.modules.hanHaiBank.service.IHanHaiBankService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 银行卡列表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiBankServiceImpl extends ServiceImpl implements IHanHaiBankService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/HanHaiBankList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/HanHaiBankList.vue new file mode 100644 index 0000000..306b6b0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/HanHaiBankList.vue @@ -0,0 +1,183 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankForm.vue new file mode 100644 index 0000000..46721e3 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankForm.vue @@ -0,0 +1,114 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.Style#Drawer.vue new file mode 100644 index 0000000..199787c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.vue new file mode 100644 index 0000000..bdfe986 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue/modules/HanHaiBankModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.api.ts new file mode 100644 index 0000000..a600ded --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHaiBank/hanHaiBank/list', + save='/hanHaiBank/hanHaiBank/add', + edit='/hanHaiBank/hanHaiBank/edit', + deleteOne = '/hanHaiBank/hanHaiBank/delete', + deleteBatch = '/hanHaiBank/hanHaiBank/deleteBatch', + importExcel = '/hanHaiBank/hanHaiBank/importExcel', + exportXls = '/hanHaiBank/hanHaiBank/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.data.ts new file mode 100644 index 0000000..1831f7a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBank.data.ts @@ -0,0 +1,43 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '卡号', + align:"center", + dataIndex: 'bankId' + }, + { + title: '姓名', + align:"center", + dataIndex: 'name' + }, + { + title: '身份证号码', + align:"center", + dataIndex: 'card' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '卡号', + field: 'bankId', + component: 'Input', + }, + { + label: '姓名', + field: 'name', + component: 'Input', + }, + { + label: '身份证号码', + field: 'card', + component: 'Input', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBankList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBankList.vue new file mode 100644 index 0000000..2f4e7b6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/HanHaiBankList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/components/HanHaiBankModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/components/HanHaiBankModal.vue new file mode 100644 index 0000000..ef5f06e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiBank/vue3/components/HanHaiBankModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/controller/HanHaiConfController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/controller/HanHaiConfController.java new file mode 100644 index 0000000..170a58d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/controller/HanHaiConfController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHaiConf.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.hanHaiConf.entity.HanHaiConf; +import org.jeecg.modules.hanHaiConf.service.IHanHaiConfService; + +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; + + /** + * @Description: 配置表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="配置表") +@RestController +@RequestMapping("/hanHaiConf/hanHaiConf") +@Slf4j +public class HanHaiConfController extends JeecgController { + @Autowired + private IHanHaiConfService hanHaiConfService; + + /** + * 分页列表查询 + * + * @param hanHaiConf + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "配置表-分页列表查询") + @ApiOperation(value="配置表-分页列表查询", notes="配置表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiConf hanHaiConf, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiConf, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiConfService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiConf + * @return + */ + @AutoLog(value = "配置表-添加") + @ApiOperation(value="配置表-添加", notes="配置表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiConf hanHaiConf) { + hanHaiConfService.save(hanHaiConf); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiConf + * @return + */ + @AutoLog(value = "配置表-编辑") + @ApiOperation(value="配置表-编辑", notes="配置表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiConf hanHaiConf) { + hanHaiConfService.updateById(hanHaiConf); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "配置表-通过id删除") + @ApiOperation(value="配置表-通过id删除", notes="配置表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiConfService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "配置表-批量删除") + @ApiOperation(value="配置表-批量删除", notes="配置表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiConfService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "配置表-通过id查询") + @ApiOperation(value="配置表-通过id查询", notes="配置表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiConf hanHaiConf = hanHaiConfService.getById(id); + if(hanHaiConf==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiConf); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiConf + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiConf hanHaiConf) { + return super.exportXls(request, hanHaiConf, HanHaiConf.class, "配置表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiConf.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/entity/HanHaiConf.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/entity/HanHaiConf.java new file mode 100644 index 0000000..ddcb525 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/entity/HanHaiConf.java @@ -0,0 +1,65 @@ +package org.jeecg.modules.hanHaiConf.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 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: 配置表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_conf") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_conf对象", description="配置表") +public class HanHaiConf implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + /**键*/ + @Excel(name = "键", width = 15) + @ApiModelProperty(value = "键") + private java.lang.String keyValue; + /**内容*/ + @Excel(name = "内容", width = 15) + @ApiModelProperty(value = "内容") + private java.lang.String content; + /**标题备注*/ + @Excel(name = "标题备注", width = 15) + @ApiModelProperty(value = "标题备注") + private java.lang.String title; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/HanHaiConfMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/HanHaiConfMapper.java new file mode 100644 index 0000000..e8c088a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/HanHaiConfMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHaiConf.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHaiConf.entity.HanHaiConf; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 配置表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiConfMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/xml/HanHaiConfMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/xml/HanHaiConfMapper.xml new file mode 100644 index 0000000..cdf4f91 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/mapper/xml/HanHaiConfMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/IHanHaiConfService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/IHanHaiConfService.java new file mode 100644 index 0000000..e65da65 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/IHanHaiConfService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHaiConf.service; + +import org.jeecg.modules.hanHaiConf.entity.HanHaiConf; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 配置表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiConfService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/impl/HanHaiConfServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/impl/HanHaiConfServiceImpl.java new file mode 100644 index 0000000..bd0e2f1 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/service/impl/HanHaiConfServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHaiConf.service.impl; + +import org.jeecg.modules.hanHaiConf.entity.HanHaiConf; +import org.jeecg.modules.hanHaiConf.mapper.HanHaiConfMapper; +import org.jeecg.modules.hanHaiConf.service.IHanHaiConfService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 配置表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiConfServiceImpl extends ServiceImpl implements IHanHaiConfService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/HanHaiConfList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/HanHaiConfList.vue new file mode 100644 index 0000000..c0f8e69 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/HanHaiConfList.vue @@ -0,0 +1,183 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfForm.vue new file mode 100644 index 0000000..0bcb52d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfForm.vue @@ -0,0 +1,114 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.Style#Drawer.vue new file mode 100644 index 0000000..2219f4d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.vue new file mode 100644 index 0000000..169bd5b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue/modules/HanHaiConfModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.api.ts new file mode 100644 index 0000000..ab6507a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHaiConf/hanHaiConf/list', + save='/hanHaiConf/hanHaiConf/add', + edit='/hanHaiConf/hanHaiConf/edit', + deleteOne = '/hanHaiConf/hanHaiConf/delete', + deleteBatch = '/hanHaiConf/hanHaiConf/deleteBatch', + importExcel = '/hanHaiConf/hanHaiConf/importExcel', + exportXls = '/hanHaiConf/hanHaiConf/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.data.ts new file mode 100644 index 0000000..83b837d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConf.data.ts @@ -0,0 +1,43 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '键', + align:"center", + dataIndex: 'keyValue' + }, + { + title: '内容', + align:"center", + dataIndex: 'content' + }, + { + title: '标题备注', + align:"center", + dataIndex: 'title' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '键', + field: 'keyValue', + component: 'Input', + }, + { + label: '内容', + field: 'content', + component: 'Input', + }, + { + label: '标题备注', + field: 'title', + component: 'Input', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConfList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConfList.vue new file mode 100644 index 0000000..e808541 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/HanHaiConfList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/components/HanHaiConfModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/components/HanHaiConfModal.vue new file mode 100644 index 0000000..8a7b00a --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiConf/vue3/components/HanHaiConfModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/controller/HanHaiRealEnterpriseController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/controller/HanHaiRealEnterpriseController.java new file mode 100644 index 0000000..d0eecf7 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/controller/HanHaiRealEnterpriseController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHaiRealEnterprise.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.hanHaiRealEnterprise.entity.HanHaiRealEnterprise; +import org.jeecg.modules.hanHaiRealEnterprise.service.IHanHaiRealEnterpriseService; + +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; + + /** + * @Description: 企业认证表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="企业认证表") +@RestController +@RequestMapping("/hanHaiRealEnterprise/hanHaiRealEnterprise") +@Slf4j +public class HanHaiRealEnterpriseController extends JeecgController { + @Autowired + private IHanHaiRealEnterpriseService hanHaiRealEnterpriseService; + + /** + * 分页列表查询 + * + * @param hanHaiRealEnterprise + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "企业认证表-分页列表查询") + @ApiOperation(value="企业认证表-分页列表查询", notes="企业认证表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiRealEnterprise hanHaiRealEnterprise, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiRealEnterprise, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiRealEnterpriseService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiRealEnterprise + * @return + */ + @AutoLog(value = "企业认证表-添加") + @ApiOperation(value="企业认证表-添加", notes="企业认证表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiRealEnterprise hanHaiRealEnterprise) { + hanHaiRealEnterpriseService.save(hanHaiRealEnterprise); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiRealEnterprise + * @return + */ + @AutoLog(value = "企业认证表-编辑") + @ApiOperation(value="企业认证表-编辑", notes="企业认证表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiRealEnterprise hanHaiRealEnterprise) { + hanHaiRealEnterpriseService.updateById(hanHaiRealEnterprise); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "企业认证表-通过id删除") + @ApiOperation(value="企业认证表-通过id删除", notes="企业认证表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiRealEnterpriseService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "企业认证表-批量删除") + @ApiOperation(value="企业认证表-批量删除", notes="企业认证表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiRealEnterpriseService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "企业认证表-通过id查询") + @ApiOperation(value="企业认证表-通过id查询", notes="企业认证表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiRealEnterprise hanHaiRealEnterprise = hanHaiRealEnterpriseService.getById(id); + if(hanHaiRealEnterprise==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiRealEnterprise); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiRealEnterprise + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiRealEnterprise hanHaiRealEnterprise) { + return super.exportXls(request, hanHaiRealEnterprise, HanHaiRealEnterprise.class, "企业认证表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiRealEnterprise.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/entity/HanHaiRealEnterprise.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/entity/HanHaiRealEnterprise.java new file mode 100644 index 0000000..c1580d0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/entity/HanHaiRealEnterprise.java @@ -0,0 +1,69 @@ +package org.jeecg.modules.hanHaiRealEnterprise.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 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: 企业认证表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_real_enterprise") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_real_enterprise对象", description="企业认证表") +public class HanHaiRealEnterprise implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + /**法人姓名*/ + @Excel(name = "法人姓名", width = 15) + @ApiModelProperty(value = "法人姓名") + private java.lang.String name; + /**法人身份证*/ + @Excel(name = "法人身份证", width = 15) + @ApiModelProperty(value = "法人身份证") + private java.lang.String card; + /**营业执照*/ + @Excel(name = "营业执照", width = 15) + @ApiModelProperty(value = "营业执照") + private java.lang.String tradeImage; + /**其他资质*/ + @Excel(name = "其他资质", width = 15) + @ApiModelProperty(value = "其他资质") + private java.lang.String otherImage; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/HanHaiRealEnterpriseMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/HanHaiRealEnterpriseMapper.java new file mode 100644 index 0000000..63fb297 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/HanHaiRealEnterpriseMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHaiRealEnterprise.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHaiRealEnterprise.entity.HanHaiRealEnterprise; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 企业认证表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiRealEnterpriseMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/xml/HanHaiRealEnterpriseMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/xml/HanHaiRealEnterpriseMapper.xml new file mode 100644 index 0000000..6500d53 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/mapper/xml/HanHaiRealEnterpriseMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/IHanHaiRealEnterpriseService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/IHanHaiRealEnterpriseService.java new file mode 100644 index 0000000..55fae49 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/IHanHaiRealEnterpriseService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHaiRealEnterprise.service; + +import org.jeecg.modules.hanHaiRealEnterprise.entity.HanHaiRealEnterprise; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 企业认证表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiRealEnterpriseService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/impl/HanHaiRealEnterpriseServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/impl/HanHaiRealEnterpriseServiceImpl.java new file mode 100644 index 0000000..d411edd --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/service/impl/HanHaiRealEnterpriseServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHaiRealEnterprise.service.impl; + +import org.jeecg.modules.hanHaiRealEnterprise.entity.HanHaiRealEnterprise; +import org.jeecg.modules.hanHaiRealEnterprise.mapper.HanHaiRealEnterpriseMapper; +import org.jeecg.modules.hanHaiRealEnterprise.service.IHanHaiRealEnterpriseService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 企业认证表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiRealEnterpriseServiceImpl extends ServiceImpl implements IHanHaiRealEnterpriseService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/HanHaiRealEnterpriseList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/HanHaiRealEnterpriseList.vue new file mode 100644 index 0000000..46e6fc5 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/HanHaiRealEnterpriseList.vue @@ -0,0 +1,191 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseForm.vue new file mode 100644 index 0000000..f5a8b4e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseForm.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.Style#Drawer.vue new file mode 100644 index 0000000..c1bcf4e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.vue new file mode 100644 index 0000000..45f796e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue/modules/HanHaiRealEnterpriseModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.api.ts new file mode 100644 index 0000000..6f5bb73 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHaiRealEnterprise/hanHaiRealEnterprise/list', + save='/hanHaiRealEnterprise/hanHaiRealEnterprise/add', + edit='/hanHaiRealEnterprise/hanHaiRealEnterprise/edit', + deleteOne = '/hanHaiRealEnterprise/hanHaiRealEnterprise/delete', + deleteBatch = '/hanHaiRealEnterprise/hanHaiRealEnterprise/deleteBatch', + importExcel = '/hanHaiRealEnterprise/hanHaiRealEnterprise/importExcel', + exportXls = '/hanHaiRealEnterprise/hanHaiRealEnterprise/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.data.ts new file mode 100644 index 0000000..4748a32 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterprise.data.ts @@ -0,0 +1,59 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '法人姓名', + align:"center", + dataIndex: 'name' + }, + { + title: '法人身份证', + align:"center", + dataIndex: 'card' + }, + { + title: '营业执照', + align:"center", + dataIndex: 'tradeImage', + customRender:render.renderAvatar, + }, + { + title: '其他资质', + align:"center", + dataIndex: 'otherImage', + customRender:render.renderAvatar, + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '法人姓名', + field: 'name', + component: 'Input', + }, + { + label: '法人身份证', + field: 'card', + component: 'Input', + }, + { + label: '营业执照', + field: 'tradeImage', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '其他资质', + field: 'otherImage', + component: 'JImageUpload', + componentProps:{ + }, + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterpriseList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterpriseList.vue new file mode 100644 index 0000000..6200951 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/HanHaiRealEnterpriseList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/components/HanHaiRealEnterpriseModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/components/HanHaiRealEnterpriseModal.vue new file mode 100644 index 0000000..93cb591 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealEnterprise/vue3/components/HanHaiRealEnterpriseModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/controller/HanHaiRealNameController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/controller/HanHaiRealNameController.java new file mode 100644 index 0000000..0d3b3cc --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/controller/HanHaiRealNameController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHaiRealName.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.hanHaiRealName.entity.HanHaiRealName; +import org.jeecg.modules.hanHaiRealName.service.IHanHaiRealNameService; + +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; + + /** + * @Description: 个人实名表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="个人实名表") +@RestController +@RequestMapping("/hanHaiRealName/hanHaiRealName") +@Slf4j +public class HanHaiRealNameController extends JeecgController { + @Autowired + private IHanHaiRealNameService hanHaiRealNameService; + + /** + * 分页列表查询 + * + * @param hanHaiRealName + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "个人实名表-分页列表查询") + @ApiOperation(value="个人实名表-分页列表查询", notes="个人实名表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiRealName hanHaiRealName, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiRealName, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiRealNameService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiRealName + * @return + */ + @AutoLog(value = "个人实名表-添加") + @ApiOperation(value="个人实名表-添加", notes="个人实名表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiRealName hanHaiRealName) { + hanHaiRealNameService.save(hanHaiRealName); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiRealName + * @return + */ + @AutoLog(value = "个人实名表-编辑") + @ApiOperation(value="个人实名表-编辑", notes="个人实名表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiRealName hanHaiRealName) { + hanHaiRealNameService.updateById(hanHaiRealName); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "个人实名表-通过id删除") + @ApiOperation(value="个人实名表-通过id删除", notes="个人实名表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiRealNameService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "个人实名表-批量删除") + @ApiOperation(value="个人实名表-批量删除", notes="个人实名表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiRealNameService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "个人实名表-通过id查询") + @ApiOperation(value="个人实名表-通过id查询", notes="个人实名表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiRealName hanHaiRealName = hanHaiRealNameService.getById(id); + if(hanHaiRealName==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiRealName); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiRealName + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiRealName hanHaiRealName) { + return super.exportXls(request, hanHaiRealName, HanHaiRealName.class, "个人实名表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiRealName.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/entity/HanHaiRealName.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/entity/HanHaiRealName.java new file mode 100644 index 0000000..05fab0b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/entity/HanHaiRealName.java @@ -0,0 +1,70 @@ +package org.jeecg.modules.hanHaiRealName.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 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: 个人实名表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_real_name") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_real_name对象", description="个人实名表") +public class HanHaiRealName implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**正面*/ + @Excel(name = "正面", width = 15) + @ApiModelProperty(value = "正面") + private java.lang.String imageStraight; + /**反面*/ + @Excel(name = "反面", width = 15) + @ApiModelProperty(value = "反面") + private java.lang.String imageReverseSide; + /**姓名*/ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private java.lang.String name; + /**证件号码*/ + @Excel(name = "证件号码", width = 15) + @ApiModelProperty(value = "证件号码") + private java.lang.String card; + /**用户标识*/ + @Excel(name = "用户标识", width = 15) + @ApiModelProperty(value = "用户标识") + private java.lang.String userId; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/HanHaiRealNameMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/HanHaiRealNameMapper.java new file mode 100644 index 0000000..cf6a39c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/HanHaiRealNameMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHaiRealName.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHaiRealName.entity.HanHaiRealName; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 个人实名表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiRealNameMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/xml/HanHaiRealNameMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/xml/HanHaiRealNameMapper.xml new file mode 100644 index 0000000..09c85b0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/mapper/xml/HanHaiRealNameMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/IHanHaiRealNameService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/IHanHaiRealNameService.java new file mode 100644 index 0000000..78c89ff --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/IHanHaiRealNameService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHaiRealName.service; + +import org.jeecg.modules.hanHaiRealName.entity.HanHaiRealName; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 个人实名表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiRealNameService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/impl/HanHaiRealNameServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/impl/HanHaiRealNameServiceImpl.java new file mode 100644 index 0000000..be16d8e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/service/impl/HanHaiRealNameServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHaiRealName.service.impl; + +import org.jeecg.modules.hanHaiRealName.entity.HanHaiRealName; +import org.jeecg.modules.hanHaiRealName.mapper.HanHaiRealNameMapper; +import org.jeecg.modules.hanHaiRealName.service.IHanHaiRealNameService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 个人实名表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiRealNameServiceImpl extends ServiceImpl implements IHanHaiRealNameService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/HanHaiRealNameList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/HanHaiRealNameList.vue new file mode 100644 index 0000000..097fa11 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/HanHaiRealNameList.vue @@ -0,0 +1,197 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameForm.vue new file mode 100644 index 0000000..6d8354b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameForm.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.Style#Drawer.vue new file mode 100644 index 0000000..dfe86b2 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.vue new file mode 100644 index 0000000..0e03cd3 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue/modules/HanHaiRealNameModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.api.ts new file mode 100644 index 0000000..fc87889 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHaiRealName/hanHaiRealName/list', + save='/hanHaiRealName/hanHaiRealName/add', + edit='/hanHaiRealName/hanHaiRealName/edit', + deleteOne = '/hanHaiRealName/hanHaiRealName/delete', + deleteBatch = '/hanHaiRealName/hanHaiRealName/deleteBatch', + importExcel = '/hanHaiRealName/hanHaiRealName/importExcel', + exportXls = '/hanHaiRealName/hanHaiRealName/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.data.ts new file mode 100644 index 0000000..985dcbd --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealName.data.ts @@ -0,0 +1,69 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '正面', + align:"center", + dataIndex: 'imageStraight', + customRender:render.renderAvatar, + }, + { + title: '反面', + align:"center", + dataIndex: 'imageReverseSide', + customRender:render.renderAvatar, + }, + { + title: '姓名', + align:"center", + dataIndex: 'name' + }, + { + title: '证件号码', + align:"center", + dataIndex: 'card' + }, + { + title: '用户标识', + align:"center", + dataIndex: 'userId' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '正面', + field: 'imageStraight', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '反面', + field: 'imageReverseSide', + component: 'JImageUpload', + componentProps:{ + }, + }, + { + label: '姓名', + field: 'name', + component: 'Input', + }, + { + label: '证件号码', + field: 'card', + component: 'Input', + }, + { + label: '用户标识', + field: 'userId', + component: 'Input', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealNameList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealNameList.vue new file mode 100644 index 0000000..902026e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/HanHaiRealNameList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/components/HanHaiRealNameModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/components/HanHaiRealNameModal.vue new file mode 100644 index 0000000..ba74d4c --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiRealName/vue3/components/HanHaiRealNameModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/controller/HanHaiWaterController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/controller/HanHaiWaterController.java new file mode 100644 index 0000000..1d9f03e --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/controller/HanHaiWaterController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHaiWater.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.hanHaiWater.entity.HanHaiWater; +import org.jeecg.modules.hanHaiWater.service.IHanHaiWaterService; + +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; + + /** + * @Description: 流水信息表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="流水信息表") +@RestController +@RequestMapping("/hanHaiWater/hanHaiWater") +@Slf4j +public class HanHaiWaterController extends JeecgController { + @Autowired + private IHanHaiWaterService hanHaiWaterService; + + /** + * 分页列表查询 + * + * @param hanHaiWater + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "流水信息表-分页列表查询") + @ApiOperation(value="流水信息表-分页列表查询", notes="流水信息表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiWater hanHaiWater, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiWater, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiWaterService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiWater + * @return + */ + @AutoLog(value = "流水信息表-添加") + @ApiOperation(value="流水信息表-添加", notes="流水信息表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiWater hanHaiWater) { + hanHaiWaterService.save(hanHaiWater); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiWater + * @return + */ + @AutoLog(value = "流水信息表-编辑") + @ApiOperation(value="流水信息表-编辑", notes="流水信息表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiWater hanHaiWater) { + hanHaiWaterService.updateById(hanHaiWater); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "流水信息表-通过id删除") + @ApiOperation(value="流水信息表-通过id删除", notes="流水信息表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiWaterService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "流水信息表-批量删除") + @ApiOperation(value="流水信息表-批量删除", notes="流水信息表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiWaterService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "流水信息表-通过id查询") + @ApiOperation(value="流水信息表-通过id查询", notes="流水信息表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiWater hanHaiWater = hanHaiWaterService.getById(id); + if(hanHaiWater==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiWater); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiWater + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiWater hanHaiWater) { + return super.exportXls(request, hanHaiWater, HanHaiWater.class, "流水信息表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiWater.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/entity/HanHaiWater.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/entity/HanHaiWater.java new file mode 100644 index 0000000..4caa536 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/entity/HanHaiWater.java @@ -0,0 +1,58 @@ +package org.jeecg.modules.hanHaiWater.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 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: 流水信息表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_water") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_water对象", description="流水信息表") +public class HanHaiWater implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**用户标识*/ + @Excel(name = "用户标识", width = 15) + @ApiModelProperty(value = "用户标识") + private java.lang.String userId; + /**金额*/ + @Excel(name = "金额", width = 15) + @ApiModelProperty(value = "金额") + private java.math.BigDecimal price; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/HanHaiWaterMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/HanHaiWaterMapper.java new file mode 100644 index 0000000..d159852 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/HanHaiWaterMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHaiWater.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHaiWater.entity.HanHaiWater; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 流水信息表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiWaterMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/xml/HanHaiWaterMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/xml/HanHaiWaterMapper.xml new file mode 100644 index 0000000..d91da68 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/mapper/xml/HanHaiWaterMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/IHanHaiWaterService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/IHanHaiWaterService.java new file mode 100644 index 0000000..761a550 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/IHanHaiWaterService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHaiWater.service; + +import org.jeecg.modules.hanHaiWater.entity.HanHaiWater; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 流水信息表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiWaterService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/impl/HanHaiWaterServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/impl/HanHaiWaterServiceImpl.java new file mode 100644 index 0000000..e958fff --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/service/impl/HanHaiWaterServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHaiWater.service.impl; + +import org.jeecg.modules.hanHaiWater.entity.HanHaiWater; +import org.jeecg.modules.hanHaiWater.mapper.HanHaiWaterMapper; +import org.jeecg.modules.hanHaiWater.service.IHanHaiWaterService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 流水信息表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiWaterServiceImpl extends ServiceImpl implements IHanHaiWaterService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/HanHaiWaterList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/HanHaiWaterList.vue new file mode 100644 index 0000000..225657d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/HanHaiWaterList.vue @@ -0,0 +1,177 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterForm.vue new file mode 100644 index 0000000..62abb22 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterForm.vue @@ -0,0 +1,109 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.Style#Drawer.vue new file mode 100644 index 0000000..25d67e7 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.vue new file mode 100644 index 0000000..3ff7a45 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue/modules/HanHaiWaterModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.api.ts new file mode 100644 index 0000000..0d1ba2d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHaiWater/hanHaiWater/list', + save='/hanHaiWater/hanHaiWater/add', + edit='/hanHaiWater/hanHaiWater/edit', + deleteOne = '/hanHaiWater/hanHaiWater/delete', + deleteBatch = '/hanHaiWater/hanHaiWater/deleteBatch', + importExcel = '/hanHaiWater/hanHaiWater/importExcel', + exportXls = '/hanHaiWater/hanHaiWater/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.data.ts new file mode 100644 index 0000000..8aa407d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWater.data.ts @@ -0,0 +1,33 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '用户标识', + align:"center", + dataIndex: 'userId' + }, + { + title: '金额', + align:"center", + dataIndex: 'price' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '用户标识', + field: 'userId', + component: 'Input', + }, + { + label: '金额', + field: 'price', + component: 'InputNumber', + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWaterList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWaterList.vue new file mode 100644 index 0000000..9896323 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/HanHaiWaterList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/components/HanHaiWaterModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/components/HanHaiWaterModal.vue new file mode 100644 index 0000000..ddb55ed --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHaiWater/vue3/components/HanHaiWaterModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/controller/HanHaiBannerController.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/controller/HanHaiBannerController.java new file mode 100644 index 0000000..3c17355 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/controller/HanHaiBannerController.java @@ -0,0 +1,171 @@ +package org.jeecg.modules.hanHanBanner.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.hanHanBanner.entity.HanHaiBanner; +import org.jeecg.modules.hanHanBanner.service.IHanHaiBannerService; + +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; + + /** + * @Description: banner表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Api(tags="banner表") +@RestController +@RequestMapping("/hanHanBanner/hanHaiBanner") +@Slf4j +public class HanHaiBannerController extends JeecgController { + @Autowired + private IHanHaiBannerService hanHaiBannerService; + + /** + * 分页列表查询 + * + * @param hanHaiBanner + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "banner表-分页列表查询") + @ApiOperation(value="banner表-分页列表查询", notes="banner表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(HanHaiBanner hanHaiBanner, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(hanHaiBanner, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = hanHaiBannerService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param hanHaiBanner + * @return + */ + @AutoLog(value = "banner表-添加") + @ApiOperation(value="banner表-添加", notes="banner表-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody HanHaiBanner hanHaiBanner) { + hanHaiBannerService.save(hanHaiBanner); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param hanHaiBanner + * @return + */ + @AutoLog(value = "banner表-编辑") + @ApiOperation(value="banner表-编辑", notes="banner表-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody HanHaiBanner hanHaiBanner) { + hanHaiBannerService.updateById(hanHaiBanner); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "banner表-通过id删除") + @ApiOperation(value="banner表-通过id删除", notes="banner表-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + hanHaiBannerService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "banner表-批量删除") + @ApiOperation(value="banner表-批量删除", notes="banner表-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.hanHaiBannerService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "banner表-通过id查询") + @ApiOperation(value="banner表-通过id查询", notes="banner表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + HanHaiBanner hanHaiBanner = hanHaiBannerService.getById(id); + if(hanHaiBanner==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(hanHaiBanner); + } + + /** + * 导出excel + * + * @param request + * @param hanHaiBanner + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, HanHaiBanner hanHaiBanner) { + return super.exportXls(request, hanHaiBanner, HanHaiBanner.class, "banner表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, HanHaiBanner.class); + } + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/entity/HanHaiBanner.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/entity/HanHaiBanner.java new file mode 100644 index 0000000..fdda84b --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/entity/HanHaiBanner.java @@ -0,0 +1,58 @@ +package org.jeecg.modules.hanHanBanner.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 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: banner表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Data +@TableName("han_hai_banner") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="han_hai_banner对象", description="banner表") +public class HanHaiBanner implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**备注名称*/ + @Excel(name = "备注名称", width = 15) + @ApiModelProperty(value = "备注名称") + private java.lang.String name; + /**图片*/ + @Excel(name = "图片", width = 15) + @ApiModelProperty(value = "图片") + private java.lang.String image; +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/HanHaiBannerMapper.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/HanHaiBannerMapper.java new file mode 100644 index 0000000..b4faf23 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/HanHaiBannerMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.hanHanBanner.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.hanHanBanner.entity.HanHaiBanner; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: banner表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface HanHaiBannerMapper extends BaseMapper { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/xml/HanHaiBannerMapper.xml b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/xml/HanHaiBannerMapper.xml new file mode 100644 index 0000000..2a7dbb9 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/mapper/xml/HanHaiBannerMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/IHanHaiBannerService.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/IHanHaiBannerService.java new file mode 100644 index 0000000..b9fd1d7 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/IHanHaiBannerService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.hanHanBanner.service; + +import org.jeecg.modules.hanHanBanner.entity.HanHaiBanner; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: banner表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +public interface IHanHaiBannerService extends IService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/impl/HanHaiBannerServiceImpl.java b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/impl/HanHaiBannerServiceImpl.java new file mode 100644 index 0000000..4e153a6 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/service/impl/HanHaiBannerServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.hanHanBanner.service.impl; + +import org.jeecg.modules.hanHanBanner.entity.HanHaiBanner; +import org.jeecg.modules.hanHanBanner.mapper.HanHaiBannerMapper; +import org.jeecg.modules.hanHanBanner.service.IHanHaiBannerService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: banner表 + * @Author: jeecg-boot + * @Date: 2024-08-25 + * @Version: V1.0 + */ +@Service +public class HanHaiBannerServiceImpl extends ServiceImpl implements IHanHaiBannerService { + +} diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/HanHaiBannerList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/HanHaiBannerList.vue new file mode 100644 index 0000000..93dfea0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/HanHaiBannerList.vue @@ -0,0 +1,178 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerForm.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerForm.vue new file mode 100644 index 0000000..97fc9a0 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerForm.vue @@ -0,0 +1,109 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.Style#Drawer.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.Style#Drawer.vue new file mode 100644 index 0000000..1aeaac1 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.vue new file mode 100644 index 0000000..58d6efd --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue/modules/HanHaiBannerModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.api.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.api.ts new file mode 100644 index 0000000..6ba6487 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.api.ts @@ -0,0 +1,61 @@ +import {defHttp} from '/@/utils/http/axios'; +import {Modal} from 'ant-design-vue'; + +enum Api { + list = '/hanHanBanner/hanHaiBanner/list', + save='/hanHanBanner/hanHaiBanner/add', + edit='/hanHanBanner/hanHaiBanner/edit', + deleteOne = '/hanHanBanner/hanHaiBanner/delete', + deleteBatch = '/hanHanBanner/hanHaiBanner/deleteBatch', + importExcel = '/hanHanBanner/hanHaiBanner/importExcel', + exportXls = '/hanHanBanner/hanHaiBanner/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) => { + Modal.confirm({ + 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/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.data.ts b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.data.ts new file mode 100644 index 0000000..7fb3a9d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBanner.data.ts @@ -0,0 +1,36 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '备注名称', + align:"center", + dataIndex: 'name' + }, + { + title: '图片', + align:"center", + dataIndex: 'image', + customRender:render.renderAvatar, + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '备注名称', + field: 'name', + component: 'Input', + }, + { + label: '图片', + field: 'image', + component: 'JImageUpload', + componentProps:{ + }, + }, +]; diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBannerList.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBannerList.vue new file mode 100644 index 0000000..1c20b6d --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/HanHaiBannerList.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/components/HanHaiBannerModal.vue b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/components/HanHaiBannerModal.vue new file mode 100644 index 0000000..696e2e8 --- /dev/null +++ b/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/hanHanBanner/vue3/components/HanHaiBannerModal.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file