From da7145a1a1fa7f7be1f750e5c66135d8894b2508 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Fri, 5 Jan 2024 10:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88other=20mq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/HeadController.java | 2 - .../datasource/system/DatajurMapper.java | 37 ------------ .../zcloud/service/system/DatajurService.java | 37 ------------ .../system/impl/DatajurServiceImpl.java | 56 ------------------- 4 files changed, 132 deletions(-) delete mode 100644 src/main/java/com/zcloud/mapper/datasource/system/DatajurMapper.java delete mode 100644 src/main/java/com/zcloud/service/system/DatajurService.java delete mode 100644 src/main/java/com/zcloud/service/system/impl/DatajurServiceImpl.java diff --git a/src/main/java/com/zcloud/controller/system/HeadController.java b/src/main/java/com/zcloud/controller/system/HeadController.java index 82eb385..8a5fd6b 100644 --- a/src/main/java/com/zcloud/controller/system/HeadController.java +++ b/src/main/java/com/zcloud/controller/system/HeadController.java @@ -39,8 +39,6 @@ public class HeadController extends BaseController { private PhotoService photoService; @Autowired private FhsmsService fhsmsService; - @Autowired - private DatajurService datajurService; /**保存用户皮肤 * @return diff --git a/src/main/java/com/zcloud/mapper/datasource/system/DatajurMapper.java b/src/main/java/com/zcloud/mapper/datasource/system/DatajurMapper.java deleted file mode 100644 index 7406330..0000000 --- a/src/main/java/com/zcloud/mapper/datasource/system/DatajurMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zcloud.mapper.datasource.system; - -import com.zcloud.entity.PageData; - -/** - * 说明: 组织数据权限Mapper - * 作者:luoxiaobao - * 官网:www.qdkjchina.com - */ -public interface DatajurMapper{ - - /**新增 - * @param pd - * @throws Exception - */ - public void save(PageData pd)throws Exception; - - /**修改 - * @param pd - * @throws Exception - */ - public void edit(PageData pd)throws Exception; - - /**通过id获取数据 - * @param pd - * @throws Exception - */ - public PageData findById(PageData pd)throws Exception; - - /**取出某用户的组织数据权限 - * @param pd - * @throws Exception - */ - public PageData getDEPARTMENT_IDS(String USERNAME)throws Exception; - -} - diff --git a/src/main/java/com/zcloud/service/system/DatajurService.java b/src/main/java/com/zcloud/service/system/DatajurService.java deleted file mode 100644 index 8789b02..0000000 --- a/src/main/java/com/zcloud/service/system/DatajurService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zcloud.service.system; - -import com.zcloud.entity.PageData; - -/** - * 说明: 组织数据权限接口 - * 作者:luoxiaobao - * 官网:www.qdkjchina.com - */ -public interface DatajurService{ - - /**新增 - * @param pd - * @throws Exception - */ - public void save(PageData pd)throws Exception; - - /**修改 - * @param pd - * @throws Exception - */ - public void edit(PageData pd)throws Exception; - - /**通过id获取数据 - * @param pd - * @throws Exception - */ - public PageData findById(PageData pd)throws Exception; - - /**取出某用户的组织数据权限 - * @param pd - * @throws Exception - */ - public PageData getDEPARTMENT_IDS(String USERNAME)throws Exception; - -} - diff --git a/src/main/java/com/zcloud/service/system/impl/DatajurServiceImpl.java b/src/main/java/com/zcloud/service/system/impl/DatajurServiceImpl.java deleted file mode 100644 index 6868cad..0000000 --- a/src/main/java/com/zcloud/service/system/impl/DatajurServiceImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.zcloud.service.system.impl; - -import com.zcloud.entity.PageData; -import com.zcloud.mapper.datasource.system.DatajurMapper; -import com.zcloud.service.system.DatajurService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -/** - * 说明: 组织数据权限表 - * 作者:luoxiaobao - * 官网:www.qdkjchina.com - */ -@Service(value="datajurService") -@Transactional //开启事物 -public class DatajurServiceImpl implements DatajurService { - - @Autowired - private DatajurMapper datajurMapper; - - /**新增 - * @param pd - * @throws Exception - */ - public void save(PageData pd)throws Exception{ - datajurMapper.save( pd); - } - - /**修改 - * @param pd - * @throws Exception - */ - public void edit(PageData pd)throws Exception{ - datajurMapper.edit(pd); - } - - - /**通过id获取数据 - * @param pd - * @throws Exception - */ - public PageData findById(PageData pd)throws Exception{ - return (PageData)datajurMapper.findById(pd); - } - - /**取出某用户的组织数据权限 - * @param pd - * @throws Exception - */ - public PageData getDEPARTMENT_IDS(String USERNAME)throws Exception{ - return (PageData)datajurMapper.getDEPARTMENT_IDS(USERNAME); - } - -} -