1.0.1 add客户信息

dev
yinq 4 months ago
parent a50cdefaf1
commit 44a3fc98f5

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-modules</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-oa</artifactId>
<description>
ruoyi-oa办公模块
</description>
<dependencies>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-nacos</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-service-impl</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-doc</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-web</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-dubbo</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-seata</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-idempotent</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-tenant</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-security</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-translation</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-sensitive</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-encrypt</artifactId>
</dependency>
<!-- RuoYi Api System -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-system</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-resource</artifactId>
</dependency>
<!-- RuoYi Api System -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-workflow</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,22 @@
package org.dromara.oa;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
/**
* OA
*
* @author Yinq
*/
@EnableDubbo
@SpringBootApplication
public class RuoYiOaApplication {
public static void main(String[] args) {
SpringApplication application = new SpringApplication(RuoYiOaApplication.class);
application.setApplicationStartup(new BufferingApplicationStartup(2048));
application.run(args);
System.out.println("(♥◠‿◠)ノ゙ OA模块启动成功 ლ(´ڡ`ლ)゙ ");
}
}

@ -0,0 +1,116 @@
package org.dromara.oa.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.oa.domain.vo.BaseCustomerVo;
import org.dromara.oa.domain.bo.BaseCustomerBo;
import org.dromara.oa.service.IBaseCustomerService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/oa/baseCustomer
*
* @author Yinq
* @date 2025-09-15
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/baseCustomer")
public class BaseCustomerController extends BaseController {
private final IBaseCustomerService baseCustomerService;
/**
*
*/
@SaCheckPermission("oa:baseCustomer:list")
@GetMapping("/list")
public TableDataInfo<BaseCustomerVo> list(BaseCustomerBo bo, PageQuery pageQuery) {
return baseCustomerService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:export")
@Log(title = "客户信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(BaseCustomerBo bo, HttpServletResponse response) {
List<BaseCustomerVo> list = baseCustomerService.queryList(bo);
ExcelUtil.exportExcel(list, "客户信息", BaseCustomerVo.class, response);
}
/**
*
*
* @param customerId
*/
@SaCheckPermission("oa:baseCustomer:query")
@GetMapping("/{customerId}")
public R<BaseCustomerVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable("customerId") Long customerId) {
return R.ok(baseCustomerService.queryById(customerId));
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:add")
@Log(title = "客户信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody BaseCustomerBo bo) {
return toAjax(baseCustomerService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:edit")
@Log(title = "客户信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody BaseCustomerBo bo) {
return toAjax(baseCustomerService.updateByBo(bo));
}
/**
*
*
* @param customerIds
*/
@SaCheckPermission("oa:baseCustomer:remove")
@Log(title = "客户信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{customerIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable("customerIds") Long[] customerIds) {
return toAjax(baseCustomerService.deleteWithValidByIds(List.of(customerIds), true));
}
/**
*
*/
@GetMapping("/getBaseCustomerList")
public R<List<BaseCustomerVo>> getBaseCustomerList(BaseCustomerBo bo) {
List<BaseCustomerVo> list = baseCustomerService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,122 @@
package org.dromara.oa.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* base_customer
*
* @author Yinq
* @date 2025-09-12
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("base_customer")
public class BaseCustomer extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
* ID
*/
@TableId(value = "customer_id", type = IdType.AUTO)
private Long customerId;
/**
*
*/
private String customerName;
/**
*
*/
private String mnemonicName;
/**
* 1 2
*/
private Long industryId;
/**
* 1 2
*/
private Long customerType;
/**
* 1 2 3 4 5 6 7
*/
private Long customerStatus;
/**
* 1 2 3
*/
private Long customerLevel;
/**
* 1 2 3 4 5 6 7广 8 9
*/
private Long customerSource;
/**
* ID
*/
private Long ownerId;
/**
*
*/
private String detailedAddress;
/**
* 10 10-20 21-50 51-200 201-500 500
*/
private Long customerScale;
/**
*
*/
private Long parentCustomerId;
/**
*
*/
private String legalRepresentative;
/**
*
*/
private String businessLicenseNumber;
/**
*
*/
private String bankAccountOpening;
/**
*
*/
private String taxNumber;
/**
*
*/
private String remark;
/**
* 1 0
*/
private String activeFlag;
/**
* 0 1
*/
@TableLogic
private String delFlag;
}

@ -0,0 +1,111 @@
package org.dromara.oa.domain.bo;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* base_customer
*
* @author Yinq
* @date 2025-09-12
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseCustomer.class, reverseConvertGenerate = false)
public class BaseCustomerBo extends BaseEntity {
/**
* ID
*/
private Long customerId;
/**
*
*/
private String customerName;
/**
*
*/
private String mnemonicName;
/**
* 1 2
*/
private Long industryId;
/**
* 1 2
*/
private Long customerType;
/**
* 1 2 3 4 5 6 7
*/
private Long customerStatus;
/**
* 1 2 3
*/
private Long customerLevel;
/**
* 1 2 3 4 5 6 7广 8 9
*/
private Long customerSource;
/**
* ID
*/
private Long ownerId;
/**
*
*/
private String detailedAddress;
/**
* 10 10-20 21-50 51-200 201-500 500
*/
private Long customerScale;
/**
*
*/
private Long parentCustomerId;
/**
*
*/
private String legalRepresentative;
/**
*
*/
private String businessLicenseNumber;
/**
*
*/
private String bankAccountOpening;
/**
*
*/
private String taxNumber;
/**
*
*/
private String remark;
/**
* 1 0
*/
private String activeFlag;
}

@ -0,0 +1,177 @@
package org.dromara.oa.domain.vo;
import org.dromara.oa.domain.BaseCustomer;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* base_customer
*
* @author Yinq
* @date 2025-09-12
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseCustomer.class)
public class BaseCustomerVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* ID
*/
@ExcelProperty(value = "客户ID")
private Long customerId;
/**
*
*/
@ExcelProperty(value = "客户名称")
private String customerName;
/**
*
*/
@ExcelProperty(value = "助记名称")
private String mnemonicName;
/**
* 1 2
*/
@ExcelProperty(value = "所属行业", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "industry_id")
private Long industryId;
/**
* 1 2
*/
@ExcelProperty(value = "客户类型", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "customer_type")
private Long customerType;
/**
* 1 2 3 4 5 6 7
*/
@ExcelProperty(value = "客户状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "customer_status")
private Long customerStatus;
/**
* 1 2 3
*/
@ExcelProperty(value = "客户级别", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "customer_level")
private Long customerLevel;
/**
* 1 2 3 4 5 6 7广 8 9
*/
@ExcelProperty(value = "客户来源", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "customer_source")
private Long customerSource;
/**
* ID
*/
@ExcelProperty(value = "归属人员ID")
private Long ownerId;
/**
*
*/
@ExcelProperty(value = "详细地址")
private String detailedAddress;
/**
* 10 10-20 21-50 51-200 201-500 500
*/
@ExcelProperty(value = "企业规模", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "customer_scale")
private Long customerScale;
/**
*
*/
@ExcelProperty(value = "下级客户")
private Long parentCustomerId;
/**
*
*/
@ExcelProperty(value = "法定代表人")
private String legalRepresentative;
/**
*
*/
@ExcelProperty(value = "营业执照号码")
private String businessLicenseNumber;
/**
*
*/
@ExcelProperty(value = "开户银行")
private String bankAccountOpening;
/**
*
*/
@ExcelProperty(value = "税号")
private String taxNumber;
/**
*
*/
@ExcelProperty(value = "备注")
private String remark;
/**
* 1 0
*/
@ExcelProperty(value = "激活标识", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "active_flag")
private String activeFlag;
/**
*
*/
@ExcelProperty(value = "创建部门")
private Long createDept;
/**
*
*/
@ExcelProperty(value = "创建人")
private Long createBy;
/**
*
*/
@ExcelProperty(value = "创建时间")
private Date createTime;
/**
*
*/
@ExcelProperty(value = "更新人")
private Long updateBy;
/**
*
*/
@ExcelProperty(value = "更新时间")
private Date updateTime;
}

@ -0,0 +1,37 @@
package org.dromara.oa.mapper;
import java.util.List;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.domain.vo.BaseCustomerVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author Yinq
* @date 2025-09-15
*/
public interface BaseCustomerMapper extends BaseMapperPlus<BaseCustomer, BaseCustomerVo> {
/**
*
*
* @param page
* @param queryWrapper
* @return
*/
public Page<BaseCustomerVo> selectCustomBaseCustomerVoList(@Param("page") Page<BaseCustomerVo> page, @Param(Constants.WRAPPER) MPJLambdaWrapper<BaseCustomer> queryWrapper);
/**
*
*
* @param queryWrapper
* @return
*/
public List<BaseCustomerVo> selectCustomBaseCustomerVoList(@Param(Constants.WRAPPER) MPJLambdaWrapper<BaseCustomer> queryWrapper);
}

@ -0,0 +1,69 @@
package org.dromara.oa.service;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.domain.vo.BaseCustomerVo;
import org.dromara.oa.domain.bo.BaseCustomerBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author Yinq
* @date 2025-09-12
*/
public interface IBaseCustomerService {
/**
*
*
* @param customerId
* @return
*/
BaseCustomerVo queryById(Long customerId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<BaseCustomerVo> queryPageList(BaseCustomerBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<BaseCustomerVo> queryList(BaseCustomerBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(BaseCustomerBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(BaseCustomerBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,147 @@
package org.dromara.oa.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.oa.domain.bo.BaseCustomerBo;
import org.dromara.oa.domain.vo.BaseCustomerVo;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.mapper.BaseCustomerMapper;
import org.dromara.oa.service.IBaseCustomerService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author Yinq
* @date 2025-09-15
*/
@RequiredArgsConstructor
@Service
public class BaseCustomerServiceImpl implements IBaseCustomerService {
private final BaseCustomerMapper baseMapper;
/**
*
*
* @param customerId
* @return
*/
@Override
public BaseCustomerVo queryById(Long customerId) {
return baseMapper.selectVoById(customerId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<BaseCustomerVo> queryPageList(BaseCustomerBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<BaseCustomer> lqw = buildQueryWrapper(bo);
Page<BaseCustomerVo> result = baseMapper.selectCustomBaseCustomerVoList(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<BaseCustomerVo> queryList(BaseCustomerBo bo) {
MPJLambdaWrapper<BaseCustomer> lqw = buildQueryWrapper(bo);
return baseMapper.selectCustomBaseCustomerVoList(lqw);
}
private MPJLambdaWrapper<BaseCustomer> buildQueryWrapper(BaseCustomerBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<BaseCustomer> lqw = JoinWrappers.lambda(BaseCustomer.class)
.selectAll(BaseCustomer.class)
.like(StringUtils.isNotBlank(bo.getCustomerName()), BaseCustomer::getCustomerName, bo.getCustomerName())
.like(StringUtils.isNotBlank(bo.getMnemonicName()), BaseCustomer::getMnemonicName, bo.getMnemonicName())
.eq(bo.getIndustryId() != null, BaseCustomer::getIndustryId, bo.getIndustryId())
.eq(bo.getCustomerType() != null, BaseCustomer::getCustomerType, bo.getCustomerType())
.eq(bo.getCustomerStatus() != null, BaseCustomer::getCustomerStatus, bo.getCustomerStatus())
.eq(bo.getCustomerLevel() != null, BaseCustomer::getCustomerLevel, bo.getCustomerLevel())
.eq(bo.getCustomerSource() != null, BaseCustomer::getCustomerSource, bo.getCustomerSource())
.eq(bo.getOwnerId() != null, BaseCustomer::getOwnerId, bo.getOwnerId())
.eq(StringUtils.isNotBlank(bo.getDetailedAddress()), BaseCustomer::getDetailedAddress, bo.getDetailedAddress())
.eq(bo.getCustomerScale() != null, BaseCustomer::getCustomerScale, bo.getCustomerScale())
.eq(bo.getParentCustomerId() != null, BaseCustomer::getParentCustomerId, bo.getParentCustomerId())
.eq(StringUtils.isNotBlank(bo.getLegalRepresentative()), BaseCustomer::getLegalRepresentative, bo.getLegalRepresentative())
.eq(StringUtils.isNotBlank(bo.getBusinessLicenseNumber()), BaseCustomer::getBusinessLicenseNumber, bo.getBusinessLicenseNumber())
.eq(StringUtils.isNotBlank(bo.getBankAccountOpening()), BaseCustomer::getBankAccountOpening, bo.getBankAccountOpening())
.eq(StringUtils.isNotBlank(bo.getTaxNumber()), BaseCustomer::getTaxNumber, bo.getTaxNumber())
.eq(StringUtils.isNotBlank(bo.getActiveFlag()), BaseCustomer::getActiveFlag, bo.getActiveFlag())
.orderByAsc(BaseCustomer::getCustomerId);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(BaseCustomerBo bo) {
BaseCustomer add = MapstructUtils.convert(bo, BaseCustomer.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setCustomerId(add.getCustomerId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(BaseCustomerBo bo) {
BaseCustomer update = MapstructUtils.convert(bo, BaseCustomer.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(BaseCustomer entity) {
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if (isValid) {
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,34 @@
# Tomcat
server:
port: 9301
# Spring
spring:
application:
# 应用名称
name: ruoyi-oa
profiles:
# 环境配置
active: @profiles.active@
--- # nacos 配置
spring:
cloud:
nacos:
# nacos 服务地址
server-addr: @nacos.server@
username: @nacos.username@
password: @nacos.password@
discovery:
# 注册组
group: @nacos.discovery.group@
namespace: ${spring.profiles.active}
config:
# 配置组
group: @nacos.config.group@
namespace: ${spring.profiles.active}
config:
import:
- optional:nacos:application-common.yml
- optional:nacos:datasource.yml
- optional:nacos:${spring.application.name}.yml

@ -0,0 +1,9 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _ __ __ ___ _
| | | | \ \ / / / _ \ / \
| |_| | \ \ /\ / / _____ | | | | / _ \
| _ | \ V V / |_____| | |_| | / ___ \
|_| |_| \_/\_/ \___/ /_/ \_\

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/${project.artifactId}" />
<!-- 日志输出格式 -->
<property name="console.log.pattern"
value="%cyan(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${console.log.pattern}</pattern>
<charset>utf-8</charset>
</encoder>
</appender>
<include resource="logback-common.xml" />
<include resource="logback-logstash.xml" />
<!-- 开启 skywalking 日志收集 -->
<include resource="logback-skylog.xml" />
<!--系统操作日志-->
<root level="info">
<appender-ref ref="console" />
</root>
</configuration>

@ -0,0 +1,39 @@
<?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="org.dromara.oa.mapper.BaseCustomerMapper">
<resultMap type="org.dromara.oa.domain.vo.BaseCustomerVo" id="BaseCustomerResult">
</resultMap>
<select id="selectCustomBaseCustomerVoList" resultMap="BaseCustomerResult">
select customer_id,
tenant_id,
customer_name,
mnemonic_name,
industry_id,
customer_type,
customer_status,
customer_level,
customer_source,
owner_id,
detailed_address,
customer_scale,
parent_customer_id,
legal_representative,
business_license_number,
bank_account_opening,
tax_number,
remark,
active_flag,
del_flag,
create_dept,
create_by,
create_time,
update_by,
update_time
from base_customer t
${ew.getCustomSqlSegment}
</select>
</mapper>
Loading…
Cancel
Save