diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/mapper/CompanyStaffMapper.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/mapper/CompanyStaffMapper.java deleted file mode 100644 index d48dd391..00000000 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/mapper/CompanyStaffMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package cn.iocoder.yudao.module.company.mapper; - -import cn.iocoder.yudao.module.company.entity.CompanyStaff; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import org.apache.ibatis.annotations.Mapper; - -import java.util.List; - -/** - * 企业管理-员工信息表 - * @author 小李 - * @date 16:26 2024/8/6 - **/ -@Mapper -public interface CompanyStaffMapper extends BaseMapper { - - IPage selectStaffListPage(); - - List selectList(); -} diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/controller/admin/CompanyStaffController.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/controller/admin/CompanyStaffController.java similarity index 94% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/controller/admin/CompanyStaffController.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/controller/admin/CompanyStaffController.java index d77d74c3..3df25b2c 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/controller/admin/CompanyStaffController.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/controller/admin/CompanyStaffController.java @@ -1,14 +1,14 @@ -package cn.iocoder.yudao.module.company.controller.admin; +package cn.iocoder.yudao.module.staff.controller.admin; import cn.hutool.core.util.StrUtil; import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.util.object.BeanUtils; import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; -import cn.iocoder.yudao.module.company.entity.CompanyStaff; -import cn.iocoder.yudao.module.company.service.CompanyStaffService; -import cn.iocoder.yudao.module.company.vo.CompanyStaffReqVO; -import cn.iocoder.yudao.module.company.vo.CompanyStaffRespVO; +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.service.CompanyStaffService; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffRespVO; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io.swagger.v3.oas.annotations.Operation; diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/entity/CompanyStaff.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/entity/CompanyStaff.java similarity index 97% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/entity/CompanyStaff.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/entity/CompanyStaff.java index af0d559f..a9b64c98 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/entity/CompanyStaff.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/entity/CompanyStaff.java @@ -1,4 +1,4 @@ -package cn.iocoder.yudao.module.company.entity; +package cn.iocoder.yudao.module.staff.entity; import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/mapper/CompanyStaffMapper.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/mapper/CompanyStaffMapper.java new file mode 100644 index 00000000..9c460e39 --- /dev/null +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/mapper/CompanyStaffMapper.java @@ -0,0 +1,22 @@ +package cn.iocoder.yudao.module.staff.mapper; + +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 企业管理-员工信息表 + * @author 小李 + * @date 16:26 2024/8/6 + **/ +@Mapper +public interface CompanyStaffMapper extends BaseMapper { + + IPage selectListPage(@Param("map") CompanyStaffReqVO companyStaffReqVO, Page page); +} diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/CompanyStaffService.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/CompanyStaffService.java similarity index 83% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/CompanyStaffService.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/CompanyStaffService.java index 330c99a0..2112e331 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/CompanyStaffService.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/CompanyStaffService.java @@ -1,8 +1,8 @@ -package cn.iocoder.yudao.module.company.service; +package cn.iocoder.yudao.module.staff.service; -import cn.iocoder.yudao.module.company.entity.CompanyStaff; -import cn.iocoder.yudao.module.company.vo.CompanyStaffReqVO; -import cn.iocoder.yudao.module.company.vo.CompanyStaffRespVO; +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffRespVO; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/impl/CompanyStaffServiceImpl.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/impl/CompanyStaffServiceImpl.java similarity index 70% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/impl/CompanyStaffServiceImpl.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/impl/CompanyStaffServiceImpl.java index fa59087e..e81a9372 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/service/impl/CompanyStaffServiceImpl.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/service/impl/CompanyStaffServiceImpl.java @@ -1,10 +1,10 @@ -package cn.iocoder.yudao.module.company.service.impl; +package cn.iocoder.yudao.module.staff.service.impl; -import cn.iocoder.yudao.module.company.entity.CompanyStaff; -import cn.iocoder.yudao.module.company.mapper.CompanyStaffMapper; -import cn.iocoder.yudao.module.company.service.CompanyStaffService; -import cn.iocoder.yudao.module.company.vo.CompanyStaffReqVO; -import cn.iocoder.yudao.module.company.vo.CompanyStaffRespVO; +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.mapper.CompanyStaffMapper; +import cn.iocoder.yudao.module.staff.service.CompanyStaffService; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO; +import cn.iocoder.yudao.module.staff.vo.CompanyStaffRespVO; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -32,8 +32,7 @@ public class CompanyStaffServiceImpl extends ServiceImpl queryListPage(CompanyStaffReqVO pageReqVO, Page page) { - staffMapper.selectList(); - return staffMapper.selectStaffListPage(); + return staffMapper.selectListPage(pageReqVO, page); } @Override diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffReqVO.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffReqVO.java similarity index 59% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffReqVO.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffReqVO.java index a93c7312..77a0e8c3 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffReqVO.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffReqVO.java @@ -1,6 +1,6 @@ -package cn.iocoder.yudao.module.company.vo; +package cn.iocoder.yudao.module.staff.vo; -import cn.iocoder.yudao.module.company.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; import lombok.Data; /** diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffRespVO.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffRespVO.java similarity index 71% rename from dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffRespVO.java rename to dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffRespVO.java index 6a7a45cc..d2cc6852 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/company/vo/CompanyStaffRespVO.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/staff/vo/CompanyStaffRespVO.java @@ -1,6 +1,6 @@ -package cn.iocoder.yudao.module.company.vo; +package cn.iocoder.yudao.module.staff.vo; -import cn.iocoder.yudao.module.company.entity.CompanyStaff; +import cn.iocoder.yudao.module.staff.entity.CompanyStaff; import lombok.Data; import java.util.List; diff --git a/dl-module-company/src/main/resources/mapper/company/CompanyStaffMapper.xml b/dl-module-company/src/main/resources/mapper/company/CompanyStaffMapper.xml index 845a1cd1..e69de29b 100644 --- a/dl-module-company/src/main/resources/mapper/company/CompanyStaffMapper.xml +++ b/dl-module-company/src/main/resources/mapper/company/CompanyStaffMapper.xml @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select - id,corp_id,user_id, - dept_id,work_no,name, - tel,sex,address, - work_date,work_year,joined_date, - joined_year,education,content, - unique_code,file_ids,tenant_id, - deleted,creator,create_time, - updater,update_time - from company_staff - - - - - - \ No newline at end of file diff --git a/dl-module-company/src/main/resources/mapper/staff/CompanyStaffMapper.xml b/dl-module-company/src/main/resources/mapper/staff/CompanyStaffMapper.xml new file mode 100644 index 00000000..b956f97d --- /dev/null +++ b/dl-module-company/src/main/resources/mapper/staff/CompanyStaffMapper.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 186234fa..7676f900 100644 --- a/pom.xml +++ b/pom.xml @@ -15,16 +15,17 @@ yudao-module-infra yudao-module-bpm - yudao-module-report + yudao-module-crm yudao-module-erp dl-module-base + dl-module-company yudao-server - dl-module-company + diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml index 19053428..d0233305 100644 --- a/yudao-dependencies/pom.xml +++ b/yudao-dependencies/pom.xml @@ -502,7 +502,7 @@ com.google.inject guice - ${guice.version} + diff --git a/yudao-server/pom.xml b/yudao-server/pom.xml index e2cf2bbc..33dea56d 100644 --- a/yudao-server/pom.xml +++ b/yudao-server/pom.xml @@ -51,11 +51,11 @@ - - cn.iocoder.boot - yudao-module-report-biz - ${revision} - + + + + + cn.iocoder.boot diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml index d23fdee7..efcf0b37 100644 --- a/yudao-server/src/main/resources/application.yaml +++ b/yudao-server/src/main/resources/application.yaml @@ -80,7 +80,9 @@ mybatis-plus: type-aliases-package: - ${yudao.info.base-package}.module.*.dal.dataobject - ${yudao.info.base-package}.module.*.entity - mapper-locations: classpath:/mapper/*/*.xml + mapper-locations: + - classpath*:mapper/*/*.xml # 扫描子模块下的 mapper.xml文件 + - classpath:mapper/*/*.xml # 扫描当前模块下的 mapper.xml 文件 encryptor: password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成