parent
d33617b120
commit
31052de266
@ -0,0 +1,13 @@
|
|||||||
|
package com.zbkj.service.dao;
|
||||||
|
|
||||||
|
import com.zbkj.common.model.system.SysDept;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门表 DAO 映射层
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SysDeptDao extends BaseMapper<SysDept> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
package com.zbkj.service.dao;
|
||||||
|
|
||||||
|
import com.zbkj.common.model.system.SysDeptUser;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户和部门关联表 DAO 映射层
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SysDeptUserDao extends BaseMapper<SysDeptUser> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
package com.zbkj.service.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.zbkj.common.model.system.SysDeptUser;
|
||||||
|
import com.zbkj.common.request.PageParamRequest;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户和部门关联表 业务接口
|
||||||
|
* +----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
public interface SysDeptUserService extends IService<SysDeptUser> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SysDeptUser 列表查询
|
||||||
|
* @param queryWrapper 查询条件
|
||||||
|
* @param pageParamRequest 分页参数对象
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<SysDeptUser> pageList(LambdaQueryWrapper<SysDeptUser> queryWrapper, PageParamRequest pageParamRequest);
|
||||||
|
}
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
package com.zbkj.service.service.impl;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.zbkj.service.dao.SysDeptUserDao;
|
||||||
|
import com.zbkj.common.model.system.SysDeptUser;
|
||||||
|
import com.zbkj.service.service.SysDeptUserService;
|
||||||
|
import com.zbkj.common.page.CommonPage;
|
||||||
|
import com.zbkj.common.request.PageParamRequest;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("sysDeptUserService")
|
||||||
|
public class SysDeptUserServiceImpl extends ServiceImpl<SysDeptUserDao, SysDeptUser> implements SysDeptUserService {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SysDeptUserDao dao;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 带分页参数的列表查询实现
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SysDeptUser> pageList(LambdaQueryWrapper<SysDeptUser> queryWrapper, PageParamRequest pageParamRequest) {
|
||||||
|
|
||||||
|
PageHelper.startPage(pageParamRequest.getPage(), pageParamRequest.getLimit());
|
||||||
|
|
||||||
|
return dao.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zbkj.service.dao.SysDeptDao">
|
||||||
|
|
||||||
|
<!-- 根据包名 模块名 以及类名 生成Mapper XML 配置文件 -->
|
||||||
|
<resultMap type="com.zbkj.common.model.system.SysDept" id="sysDeptMap">
|
||||||
|
<result property="deptId" column="dept_id"/>
|
||||||
|
<result property="parentId" column="parent_id"/>
|
||||||
|
<result property="ancestors" column="ancestors"/>
|
||||||
|
<result property="deptName" column="dept_name"/>
|
||||||
|
<result property="orderNum" column="order_num"/>
|
||||||
|
<result property="leader" column="leader"/>
|
||||||
|
<result property="phone" column="phone"/>
|
||||||
|
<result property="email" column="email"/>
|
||||||
|
<result property="isWorkArea" column="is_work_area"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createDept" column="create_dept"/>
|
||||||
|
<result property="createBy" column="create_by"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="updateBy" column="update_by"/>
|
||||||
|
<result property="updateTime" column="update_time"/>
|
||||||
|
<result property="remark" column="remark"/>
|
||||||
|
<result property="delFlag" column="del_flag"/>
|
||||||
|
<result property="tenantId" column="tenant_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zbkj.service.dao.SysDeptUserDao">
|
||||||
|
|
||||||
|
<!-- 根据包名 模块名 以及类名 生成Mapper XML 配置文件 -->
|
||||||
|
<resultMap type="com.zbkj.common.model.system.SysDeptUser" id="sysDeptUserMap">
|
||||||
|
<result property="userId" column="user_id"/>
|
||||||
|
<result property="deptId" column="dept_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,160 @@
|
|||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:42:00.485",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-22",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:46:00.176",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-28",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:51:00.204",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-3",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:52:10.330",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-16",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:53:00.114",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-28",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 08:54:00.112",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-23",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:01:00.226",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-12",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:04:11.092",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-28",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:05:00.175",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-18",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:06:00.129",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-25",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:10:00.115",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-12",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:13:11.736",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-4",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:16:00.122",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-27",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:25:00.118",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-12",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:37:22.186",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "main",
|
||||||
|
"class": "o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext",
|
||||||
|
"message": "Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.zbkj.admin.CrmebAdminApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'sysDeptService' for bean class [com.zbkj.service.service.impl.SysDeptServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.zbkj.modules.autogencode.service.impl.SysDeptServiceImpl]" }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:40:32.241",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "main",
|
||||||
|
"class": "o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext",
|
||||||
|
"message": "Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.zbkj.admin.CrmebAdminApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'sysDeptService' for bean class [com.zbkj.service.service.impl.SysDeptServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.zbkj.modules.autogencode.service.impl.SysDeptServiceImpl]" }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:50:12.015",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "main",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.admin]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:54:41.717",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-4",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 09:55:44.120",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "main",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.admin]' package. Please check your configuration." }
|
||||||
|
|
||||||
|
{
|
||||||
|
"app": "Crmeb",
|
||||||
|
"timestamp":"2025-12-30 10:43:16.407",
|
||||||
|
"level": "WARN",
|
||||||
|
"thread": "crmeb-scheduled-task-pool-30",
|
||||||
|
"class": "o.m.spring.mapper.ClassPathMapperScanner",
|
||||||
|
"message": "No MyBatis mapper was found in '[com.zbkj.**.dao]' package. Please check your configuration." }
|
||||||
|
|
||||||
Loading…
Reference in new issue