1.0.2 add客户信息、联系人

dev
yinq 4 months ago
parent 44a3fc98f5
commit b4eaa03923

@ -67,4 +67,14 @@ public class RemoteWorkflowServiceMock implements RemoteWorkflowService {
log.warn("服务调用异常 -> 降级处理");
return false;
}
@Override
public boolean completeTask(Long taskId, String message) {
return false;
}
@Override
public boolean startCompleteTask(RemoteStartProcess startProcess) {
return false;
}
}

@ -100,8 +100,8 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
#end
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#if($column.isPk==1)
.orderByAsc(${ClassName}::get$AttrName);
#end
.orderByAsc(${ClassName}::get$AttrName)
#end;
return lqw;
}

@ -0,0 +1,116 @@
package org.dromara.oa.crm.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.crm.domain.vo.CrmCustomerContactVo;
import org.dromara.oa.crm.domain.bo.CrmCustomerContactBo;
import org.dromara.oa.crm.service.ICrmCustomerContactService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/oa/crm/customerContact
*
* @author Yinq
* @date 2025-09-25
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/crm/customerContact")
public class CrmCustomerContactController extends BaseController {
private final ICrmCustomerContactService crmCustomerContactService;
/**
*
*/
@SaCheckPermission("oa/crm:customerContact:list")
@GetMapping("/list")
public TableDataInfo<CrmCustomerContactVo> list(CrmCustomerContactBo bo, PageQuery pageQuery) {
return crmCustomerContactService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("oa/crm:customerContact:export")
@Log(title = "客户联系人信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(CrmCustomerContactBo bo, HttpServletResponse response) {
List<CrmCustomerContactVo> list = crmCustomerContactService.queryList(bo);
ExcelUtil.exportExcel(list, "客户联系人信息", CrmCustomerContactVo.class, response);
}
/**
*
*
* @param contactId
*/
@SaCheckPermission("oa/crm:customerContact:query")
@GetMapping("/{contactId}")
public R<CrmCustomerContactVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable("contactId") Long contactId) {
return R.ok(crmCustomerContactService.queryById(contactId));
}
/**
*
*/
@SaCheckPermission("oa/crm:customerContact:add")
@Log(title = "客户联系人信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody CrmCustomerContactBo bo) {
return toAjax(crmCustomerContactService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("oa/crm:customerContact:edit")
@Log(title = "客户联系人信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody CrmCustomerContactBo bo) {
return toAjax(crmCustomerContactService.updateByBo(bo));
}
/**
*
*
* @param contactIds
*/
@SaCheckPermission("oa/crm:customerContact:remove")
@Log(title = "客户联系人信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{contactIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable("contactIds") Long[] contactIds) {
return toAjax(crmCustomerContactService.deleteWithValidByIds(List.of(contactIds), true));
}
/**
*
*/
@GetMapping("/getCrmCustomerContactList")
public R<List<CrmCustomerContactVo>> getCrmCustomerContactList(CrmCustomerContactBo bo) {
List<CrmCustomerContactVo> list = crmCustomerContactService.queryList(bo);
return R.ok(list);
}
}

@ -1,4 +1,4 @@
package org.dromara.oa.controller;
package org.dromara.oa.crm.controller;
import java.util.List;
@ -17,44 +17,44 @@ 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.oa.crm.domain.vo.CrmCustomerInfoVo;
import org.dromara.oa.crm.domain.bo.CrmCustomerInfoBo;
import org.dromara.oa.crm.service.ICrmCustomerInfoService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/oa/baseCustomer
* 访:/oa/crm/customerInfo
*
* @author Yinq
* @date 2025-09-15
* @date 2025-09-25
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/baseCustomer")
public class BaseCustomerController extends BaseController {
@RequestMapping("/crm/customerInfo")
public class CrmCustomerInfoController extends BaseController {
private final IBaseCustomerService baseCustomerService;
private final ICrmCustomerInfoService crmCustomerInfoService;
/**
*
*/
@SaCheckPermission("oa:baseCustomer:list")
@SaCheckPermission("oa/crm:customerInfo:list")
@GetMapping("/list")
public TableDataInfo<BaseCustomerVo> list(BaseCustomerBo bo, PageQuery pageQuery) {
return baseCustomerService.queryPageList(bo, pageQuery);
public TableDataInfo<CrmCustomerInfoVo> list(CrmCustomerInfoBo bo, PageQuery pageQuery) {
return crmCustomerInfoService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:export")
@SaCheckPermission("oa/crm:customerInfo: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);
public void export(CrmCustomerInfoBo bo, HttpServletResponse response) {
List<CrmCustomerInfoVo> list = crmCustomerInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "客户信息", CrmCustomerInfoVo.class, response);
}
/**
@ -62,33 +62,33 @@ public class BaseCustomerController extends BaseController {
*
* @param customerId
*/
@SaCheckPermission("oa:baseCustomer:query")
@SaCheckPermission("oa/crm:customerInfo:query")
@GetMapping("/{customerId}")
public R<BaseCustomerVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable("customerId") Long customerId) {
return R.ok(baseCustomerService.queryById(customerId));
public R<CrmCustomerInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable("customerId") Long customerId) {
return R.ok(crmCustomerInfoService.queryById(customerId));
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:add")
@SaCheckPermission("oa/crm:customerInfo:add")
@Log(title = "客户信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody BaseCustomerBo bo) {
return toAjax(baseCustomerService.insertByBo(bo));
public R<Void> add(@Validated(AddGroup.class) @RequestBody CrmCustomerInfoBo bo) {
return toAjax(crmCustomerInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("oa:baseCustomer:edit")
@SaCheckPermission("oa/crm:customerInfo:edit")
@Log(title = "客户信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody BaseCustomerBo bo) {
return toAjax(baseCustomerService.updateByBo(bo));
public R<Void> edit(@Validated(EditGroup.class) @RequestBody CrmCustomerInfoBo bo) {
return toAjax(crmCustomerInfoService.updateByBo(bo));
}
/**
@ -96,20 +96,20 @@ public class BaseCustomerController extends BaseController {
*
* @param customerIds
*/
@SaCheckPermission("oa:baseCustomer:remove")
@SaCheckPermission("oa/crm:customerInfo: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));
return toAjax(crmCustomerInfoService.deleteWithValidByIds(List.of(customerIds), true));
}
/**
*
*/
@GetMapping("/getBaseCustomerList")
public R<List<BaseCustomerVo>> getBaseCustomerList(BaseCustomerBo bo) {
List<BaseCustomerVo> list = baseCustomerService.queryList(bo);
@GetMapping("/getCrmCustomerInfoList")
public R<List<CrmCustomerInfoVo>> getCrmCustomerInfoList(CrmCustomerInfoBo bo) {
List<CrmCustomerInfoVo> list = crmCustomerInfoService.queryList(bo);
return R.ok(list);
}

@ -0,0 +1,119 @@
package org.dromara.oa.crm.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
/**
* crm_customer_contact
*
* @author Yinq
* @date 2025-09-25
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("crm_customer_contact")
public class CrmCustomerContact extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
* ID
*/
@TableId(value = "contact_id", type = IdType.AUTO)
private Long contactId;
/**
* ID
*/
private Long customerId;
/**
*
*/
private String contactName;
/**
* 0 1 2
*/
private String sexType;
/**
* 1 2 3 4 5 6使 7
*/
private Long roleType;
/**
* 0 1
*/
private String firstFlag;
/**
*
*/
private Date birthday;
/**
*
*/
private String departmentPosition;
/**
*
*/
private String detailedAddress;
/**
*
*/
private String phoneNumber;
/**
*
*/
private String landlineNumber;
/**
*
*/
private String facsimileNumber;
/**
*
*/
private String email;
/**
*
*/
private String wechatAccount;
/**
* QQ
*/
private String qqNumber;
/**
*
*/
private String remark;
/**
* 1 0
*/
private String activeFlag;
/**
* 0 1
*/
@TableLogic
private String delFlag;
}

@ -1,4 +1,4 @@
package org.dromara.oa.domain;
package org.dromara.oa.crm.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
@ -8,15 +8,15 @@ import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* base_customer
* crm_customer_info
*
* @author Yinq
* @date 2025-09-12
* @date 2025-09-25
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("base_customer")
public class BaseCustomer extends TenantEntity {
@TableName("crm_customer_info")
public class CrmCustomerInfo extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
@ -82,6 +82,11 @@ public class BaseCustomer extends TenantEntity {
*/
private Long parentCustomerId;
/**
*
*/
private String customerRelationship;
/**
*
*/
@ -92,15 +97,25 @@ public class BaseCustomer extends TenantEntity {
*/
private String businessLicenseNumber;
/**
*
*/
private String taxNumber;
/**
*
*/
private String bankAccountOpening;
/**
*
*
*/
private String taxNumber;
private String bankNumber;
/**
* ID
*/
private String ossId;
/**
*

@ -0,0 +1,111 @@
package org.dromara.oa.crm.domain.bo;
import org.dromara.oa.crm.domain.CrmCustomerContact;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* crm_customer_contact
*
* @author Yinq
* @date 2025-09-25
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CrmCustomerContact.class, reverseConvertGenerate = false)
public class CrmCustomerContactBo extends BaseEntity {
/**
* ID
*/
private Long contactId;
/**
* ID
*/
private Long customerId;
/**
*
*/
private String contactName;
/**
* 0 1 2
*/
private String sexType;
/**
* 1 2 3 4 5 6使 7
*/
private Long roleType;
/**
* 0 1
*/
private String firstFlag;
/**
*
*/
private Date birthday;
/**
*
*/
private String departmentPosition;
/**
*
*/
private String detailedAddress;
/**
*
*/
private String phoneNumber;
/**
*
*/
private String landlineNumber;
/**
*
*/
private String facsimileNumber;
/**
*
*/
private String email;
/**
*
*/
private String wechatAccount;
/**
* QQ
*/
private String qqNumber;
/**
*
*/
private String remark;
/**
* 1 0
*/
private String activeFlag;
}

@ -1,21 +1,24 @@
package org.dromara.oa.domain.bo;
package org.dromara.oa.crm.domain.bo;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.crm.domain.CrmCustomerInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* base_customer
* crm_customer_info
*
* @author Yinq
* @date 2025-09-12
* @date 2025-09-25
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseCustomer.class, reverseConvertGenerate = false)
public class BaseCustomerBo extends BaseEntity {
@AutoMapper(target = CrmCustomerInfo.class, reverseConvertGenerate = false)
public class CrmCustomerInfoBo extends BaseEntity {
/**
* ID
@ -77,6 +80,11 @@ public class BaseCustomerBo extends BaseEntity {
*/
private Long parentCustomerId;
/**
*
*/
private String customerRelationship;
/**
*
*/
@ -87,15 +95,25 @@ public class BaseCustomerBo extends BaseEntity {
*/
private String businessLicenseNumber;
/**
*
*/
private String taxNumber;
/**
*
*/
private String bankAccountOpening;
/**
*
*
*/
private String taxNumber;
private String bankNumber;
/**
* ID
*/
private String ossId;
/**
*

@ -0,0 +1,140 @@
package org.dromara.oa.crm.domain.vo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.oa.crm.domain.CrmCustomerContact;
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;
/**
* crm_customer_contact
*
* @author Yinq
* @date 2025-09-25
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CrmCustomerContact.class)
public class CrmCustomerContactVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* ID
*/
@ExcelProperty(value = "联系人ID")
private Long contactId;
/**
* ID
*/
@ExcelProperty(value = "所属客户ID")
private Long customerId;
/**
*
*/
@ExcelProperty(value = "联系人姓名")
private String contactName;
/**
* 0 1 2
*/
@ExcelProperty(value = "尊称", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "sex_type")
private String sexType;
/**
* 1 2 3 4 5 6使 7
*/
@ExcelProperty(value = "角色", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "role_type")
private Long roleType;
/**
* 0 1
*/
@ExcelProperty(value = "是否首要联系人", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "first_flag")
private String firstFlag;
/**
*
*/
@ExcelProperty(value = "生日")
private Date birthday;
/**
*
*/
@ExcelProperty(value = "部门职务")
private String departmentPosition;
/**
*
*/
@ExcelProperty(value = "详细地址")
private String detailedAddress;
/**
*
*/
@ExcelProperty(value = "手机号码")
private String phoneNumber;
/**
*
*/
@ExcelProperty(value = "固定电话")
private String landlineNumber;
/**
*
*/
@ExcelProperty(value = "传真号码")
private String facsimileNumber;
/**
*
*/
@ExcelProperty(value = "电子邮箱")
private String email;
/**
*
*/
@ExcelProperty(value = "微信账号")
private String wechatAccount;
/**
* QQ
*/
@ExcelProperty(value = "QQ号码")
private String qqNumber;
/**
*
*/
@ExcelProperty(value = "备注")
private String remark;
/**
* 1 0
*/
@ExcelProperty(value = "激活标识", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "1=是,0=否")
private String activeFlag;
}

@ -1,6 +1,6 @@
package org.dromara.oa.domain.vo;
package org.dromara.oa.crm.domain.vo;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.crm.domain.CrmCustomerInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
@ -15,15 +15,15 @@ import java.util.Date;
/**
* base_customer
* crm_customer_info
*
* @author Yinq
* @date 2025-09-12
* @date 2025-09-25
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseCustomer.class)
public class BaseCustomerVo implements Serializable {
@AutoMapper(target = CrmCustomerInfo.class)
public class CrmCustomerInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@ -106,6 +106,12 @@ public class BaseCustomerVo implements Serializable {
@ExcelProperty(value = "下级客户")
private Long parentCustomerId;
/**
*
*/
@ExcelProperty(value = "客户关系")
private String customerRelationship;
/**
*
*/
@ -118,6 +124,12 @@ public class BaseCustomerVo implements Serializable {
@ExcelProperty(value = "营业执照号码")
private String businessLicenseNumber;
/**
*
*/
@ExcelProperty(value = "税号")
private String taxNumber;
/**
*
*/
@ -125,10 +137,16 @@ public class BaseCustomerVo implements Serializable {
private String bankAccountOpening;
/**
*
*
*/
@ExcelProperty(value = "税号")
private String taxNumber;
@ExcelProperty(value = "银行账号")
private String bankNumber;
/**
* ID
*/
@ExcelProperty(value = "附件ID")
private String ossId;
/**
*
@ -143,35 +161,5 @@ public class BaseCustomerVo implements Serializable {
@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.crm.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.crm.domain.CrmCustomerContact;
import org.dromara.oa.crm.domain.vo.CrmCustomerContactVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author Yinq
* @date 2025-09-25
*/
public interface CrmCustomerContactMapper extends BaseMapperPlus<CrmCustomerContact, CrmCustomerContactVo> {
/**
*
*
* @param page
* @param queryWrapper
* @return
*/
public Page<CrmCustomerContactVo> selectCustomCrmCustomerContactVoList(@Param("page") Page<CrmCustomerContactVo> page, @Param(Constants.WRAPPER) MPJLambdaWrapper<CrmCustomerContact> queryWrapper);
/**
*
*
* @param queryWrapper
* @return
*/
public List<CrmCustomerContactVo> selectCustomCrmCustomerContactVoList(@Param(Constants.WRAPPER) MPJLambdaWrapper<CrmCustomerContact> queryWrapper);
}

@ -1,21 +1,21 @@
package org.dromara.oa.mapper;
package org.dromara.oa.crm.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.oa.crm.domain.CrmCustomerInfo;
import org.dromara.oa.crm.domain.vo.CrmCustomerInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author Yinq
* @date 2025-09-15
* @date 2025-09-25
*/
public interface BaseCustomerMapper extends BaseMapperPlus<BaseCustomer, BaseCustomerVo> {
public interface CrmCustomerInfoMapper extends BaseMapperPlus<CrmCustomerInfo, CrmCustomerInfoVo> {
/**
*
@ -24,7 +24,7 @@ public interface BaseCustomerMapper extends BaseMapperPlus<BaseCustomer, BaseCus
* @param queryWrapper
* @return
*/
public Page<BaseCustomerVo> selectCustomBaseCustomerVoList(@Param("page") Page<BaseCustomerVo> page, @Param(Constants.WRAPPER) MPJLambdaWrapper<BaseCustomer> queryWrapper);
public Page<CrmCustomerInfoVo> selectCustomCrmCustomerInfoVoList(@Param("page") Page<CrmCustomerInfoVo> page, @Param(Constants.WRAPPER) MPJLambdaWrapper<CrmCustomerInfo> queryWrapper);
/**
*
@ -32,6 +32,6 @@ public interface BaseCustomerMapper extends BaseMapperPlus<BaseCustomer, BaseCus
* @param queryWrapper
* @return
*/
public List<BaseCustomerVo> selectCustomBaseCustomerVoList(@Param(Constants.WRAPPER) MPJLambdaWrapper<BaseCustomer> queryWrapper);
public List<CrmCustomerInfoVo> selectCustomCrmCustomerInfoVoList(@Param(Constants.WRAPPER) MPJLambdaWrapper<CrmCustomerInfo> queryWrapper);
}

@ -0,0 +1,69 @@
package org.dromara.oa.crm.service;
import org.dromara.oa.crm.domain.CrmCustomerContact;
import org.dromara.oa.crm.domain.vo.CrmCustomerContactVo;
import org.dromara.oa.crm.domain.bo.CrmCustomerContactBo;
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-25
*/
public interface ICrmCustomerContactService {
/**
*
*
* @param contactId
* @return
*/
CrmCustomerContactVo queryById(Long contactId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<CrmCustomerContactVo> queryPageList(CrmCustomerContactBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<CrmCustomerContactVo> queryList(CrmCustomerContactBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(CrmCustomerContactBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(CrmCustomerContactBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -1,8 +1,8 @@
package org.dromara.oa.service;
package org.dromara.oa.crm.service;
import org.dromara.oa.domain.BaseCustomer;
import org.dromara.oa.domain.vo.BaseCustomerVo;
import org.dromara.oa.domain.bo.BaseCustomerBo;
import org.dromara.oa.crm.domain.CrmCustomerInfo;
import org.dromara.oa.crm.domain.vo.CrmCustomerInfoVo;
import org.dromara.oa.crm.domain.bo.CrmCustomerInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
@ -13,9 +13,9 @@ import java.util.List;
* Service
*
* @author Yinq
* @date 2025-09-12
* @date 2025-09-25
*/
public interface IBaseCustomerService {
public interface ICrmCustomerInfoService {
/**
*
@ -23,7 +23,7 @@ public interface IBaseCustomerService {
* @param customerId
* @return
*/
BaseCustomerVo queryById(Long customerId);
CrmCustomerInfoVo queryById(Long customerId);
/**
*
@ -32,7 +32,7 @@ public interface IBaseCustomerService {
* @param pageQuery
* @return
*/
TableDataInfo<BaseCustomerVo> queryPageList(BaseCustomerBo bo, PageQuery pageQuery);
TableDataInfo<CrmCustomerInfoVo> queryPageList(CrmCustomerInfoBo bo, PageQuery pageQuery);
/**
*
@ -40,7 +40,7 @@ public interface IBaseCustomerService {
* @param bo
* @return
*/
List<BaseCustomerVo> queryList(BaseCustomerBo bo);
List<CrmCustomerInfoVo> queryList(CrmCustomerInfoBo bo);
/**
*
@ -48,7 +48,7 @@ public interface IBaseCustomerService {
* @param bo
* @return
*/
Boolean insertByBo(BaseCustomerBo bo);
Boolean insertByBo(CrmCustomerInfoBo bo);
/**
*
@ -56,7 +56,7 @@ public interface IBaseCustomerService {
* @param bo
* @return
*/
Boolean updateByBo(BaseCustomerBo bo);
Boolean updateByBo(CrmCustomerInfoBo bo);
/**
*

@ -0,0 +1,145 @@
package org.dromara.oa.crm.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.crm.domain.bo.CrmCustomerContactBo;
import org.dromara.oa.crm.domain.vo.CrmCustomerContactVo;
import org.dromara.oa.crm.domain.CrmCustomerContact;
import org.dromara.oa.crm.mapper.CrmCustomerContactMapper;
import org.dromara.oa.crm.service.ICrmCustomerContactService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author Yinq
* @date 2025-09-25
*/
@RequiredArgsConstructor
@Service
public class CrmCustomerContactServiceImpl implements ICrmCustomerContactService {
private final CrmCustomerContactMapper baseMapper;
/**
*
*
* @param contactId
* @return
*/
@Override
public CrmCustomerContactVo queryById(Long contactId) {
return baseMapper.selectVoById(contactId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<CrmCustomerContactVo> queryPageList(CrmCustomerContactBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<CrmCustomerContact> lqw = buildQueryWrapper(bo);
Page<CrmCustomerContactVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<CrmCustomerContactVo> queryList(CrmCustomerContactBo bo) {
MPJLambdaWrapper<CrmCustomerContact> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<CrmCustomerContact> buildQueryWrapper(CrmCustomerContactBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<CrmCustomerContact> lqw = JoinWrappers.lambda(CrmCustomerContact.class)
.selectAll(CrmCustomerContact.class)
.eq(bo.getCustomerId() != null, CrmCustomerContact::getCustomerId, bo.getCustomerId())
.like(StringUtils.isNotBlank(bo.getContactName()), CrmCustomerContact::getContactName, bo.getContactName())
.eq(StringUtils.isNotBlank(bo.getSexType()), CrmCustomerContact::getSexType, bo.getSexType())
.eq(bo.getRoleType() != null, CrmCustomerContact::getRoleType, bo.getRoleType())
.eq(StringUtils.isNotBlank(bo.getFirstFlag()), CrmCustomerContact::getFirstFlag, bo.getFirstFlag())
.eq(bo.getBirthday() != null, CrmCustomerContact::getBirthday, bo.getBirthday())
.eq(StringUtils.isNotBlank(bo.getDepartmentPosition()), CrmCustomerContact::getDepartmentPosition, bo.getDepartmentPosition())
.eq(StringUtils.isNotBlank(bo.getDetailedAddress()), CrmCustomerContact::getDetailedAddress, bo.getDetailedAddress())
.eq(StringUtils.isNotBlank(bo.getPhoneNumber()), CrmCustomerContact::getPhoneNumber, bo.getPhoneNumber())
.eq(StringUtils.isNotBlank(bo.getLandlineNumber()), CrmCustomerContact::getLandlineNumber, bo.getLandlineNumber())
.eq(StringUtils.isNotBlank(bo.getFacsimileNumber()), CrmCustomerContact::getFacsimileNumber, bo.getFacsimileNumber())
.eq(StringUtils.isNotBlank(bo.getEmail()), CrmCustomerContact::getEmail, bo.getEmail())
.eq(StringUtils.isNotBlank(bo.getWechatAccount()), CrmCustomerContact::getWechatAccount, bo.getWechatAccount())
.eq(StringUtils.isNotBlank(bo.getQqNumber()), CrmCustomerContact::getQqNumber, bo.getQqNumber())
.eq(StringUtils.isNotBlank(bo.getActiveFlag()), CrmCustomerContact::getActiveFlag, bo.getActiveFlag());
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(CrmCustomerContactBo bo) {
CrmCustomerContact add = MapstructUtils.convert(bo, CrmCustomerContact.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setContactId(add.getContactId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(CrmCustomerContactBo bo) {
CrmCustomerContact update = MapstructUtils.convert(bo, CrmCustomerContact.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(CrmCustomerContact 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,149 @@
package org.dromara.oa.crm.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.crm.domain.bo.CrmCustomerInfoBo;
import org.dromara.oa.crm.domain.vo.CrmCustomerInfoVo;
import org.dromara.oa.crm.domain.CrmCustomerInfo;
import org.dromara.oa.crm.mapper.CrmCustomerInfoMapper;
import org.dromara.oa.crm.service.ICrmCustomerInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author Yinq
* @date 2025-09-25
*/
@RequiredArgsConstructor
@Service
public class CrmCustomerInfoServiceImpl implements ICrmCustomerInfoService {
private final CrmCustomerInfoMapper baseMapper;
/**
*
*
* @param customerId
* @return
*/
@Override
public CrmCustomerInfoVo queryById(Long customerId){
return baseMapper.selectVoById(customerId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<CrmCustomerInfoVo> queryPageList(CrmCustomerInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<CrmCustomerInfo> lqw = buildQueryWrapper(bo);
Page<CrmCustomerInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<CrmCustomerInfoVo> queryList(CrmCustomerInfoBo bo) {
MPJLambdaWrapper<CrmCustomerInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<CrmCustomerInfo> buildQueryWrapper(CrmCustomerInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<CrmCustomerInfo> lqw = JoinWrappers.lambda(CrmCustomerInfo.class)
.selectAll(CrmCustomerInfo.class)
.like(StringUtils.isNotBlank(bo.getCustomerName()), CrmCustomerInfo::getCustomerName, bo.getCustomerName())
.like(StringUtils.isNotBlank(bo.getMnemonicName()), CrmCustomerInfo::getMnemonicName, bo.getMnemonicName())
.eq(bo.getIndustryId() != null, CrmCustomerInfo::getIndustryId, bo.getIndustryId())
.eq(bo.getCustomerType() != null, CrmCustomerInfo::getCustomerType, bo.getCustomerType())
.eq(bo.getCustomerStatus() != null, CrmCustomerInfo::getCustomerStatus, bo.getCustomerStatus())
.eq(bo.getCustomerLevel() != null, CrmCustomerInfo::getCustomerLevel, bo.getCustomerLevel())
.eq(bo.getCustomerSource() != null, CrmCustomerInfo::getCustomerSource, bo.getCustomerSource())
.eq(bo.getOwnerId() != null, CrmCustomerInfo::getOwnerId, bo.getOwnerId())
.eq(StringUtils.isNotBlank(bo.getDetailedAddress()), CrmCustomerInfo::getDetailedAddress, bo.getDetailedAddress())
.eq(bo.getCustomerScale() != null, CrmCustomerInfo::getCustomerScale, bo.getCustomerScale())
.eq(bo.getParentCustomerId() != null, CrmCustomerInfo::getParentCustomerId, bo.getParentCustomerId())
.eq(StringUtils.isNotBlank(bo.getCustomerRelationship()), CrmCustomerInfo::getCustomerRelationship, bo.getCustomerRelationship())
.eq(StringUtils.isNotBlank(bo.getLegalRepresentative()), CrmCustomerInfo::getLegalRepresentative, bo.getLegalRepresentative())
.eq(StringUtils.isNotBlank(bo.getBusinessLicenseNumber()), CrmCustomerInfo::getBusinessLicenseNumber, bo.getBusinessLicenseNumber())
.eq(StringUtils.isNotBlank(bo.getTaxNumber()), CrmCustomerInfo::getTaxNumber, bo.getTaxNumber())
.eq(StringUtils.isNotBlank(bo.getBankAccountOpening()), CrmCustomerInfo::getBankAccountOpening, bo.getBankAccountOpening())
.eq(StringUtils.isNotBlank(bo.getBankNumber()), CrmCustomerInfo::getBankNumber, bo.getBankNumber())
.eq(StringUtils.isNotBlank(bo.getOssId()), CrmCustomerInfo::getOssId, bo.getOssId())
.eq(StringUtils.isNotBlank(bo.getActiveFlag()), CrmCustomerInfo::getActiveFlag, bo.getActiveFlag());
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(CrmCustomerInfoBo bo) {
CrmCustomerInfo add = MapstructUtils.convert(bo, CrmCustomerInfo.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setCustomerId(add.getCustomerId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(CrmCustomerInfoBo bo) {
CrmCustomerInfo update = MapstructUtils.convert(bo, CrmCustomerInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(CrmCustomerInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -1,147 +0,0 @@
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;
}
}

@ -1,39 +0,0 @@
<?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>

@ -0,0 +1,14 @@
<?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.crm.mapper.CrmCustomerContactMapper">
<resultMap type="org.dromara.oa.crm.domain.vo.CrmCustomerContactVo" id="CrmCustomerContactResult">
</resultMap>
<select id="selectCustomCrmCustomerContactVoList" resultMap="CrmCustomerContactResult">
select contact_id, tenant_id, customer_id, contact_name, sex_type, role_type, first_flag, birthday, department_position, detailed_address, phone_number, landline_number, facsimile_number, email, wechat_account, qq_number, remark, active_flag, del_flag, create_dept, create_by, create_time, update_by, update_time from crm_customer_contact t
${ew.getCustomSqlSegment}
</select>
</mapper>

@ -0,0 +1,14 @@
<?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.crm.mapper.CrmCustomerInfoMapper">
<resultMap type="org.dromara.oa.crm.domain.vo.CrmCustomerInfoVo" id="CrmCustomerInfoResult">
</resultMap>
<select id="selectCustomCrmCustomerInfoVoList" resultMap="CrmCustomerInfoResult">
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, customer_relationship, legal_representative, business_license_number, tax_number, bank_account_opening, bank_number, oss_id, remark, active_flag, del_flag, create_dept, create_by, create_time, update_by, update_time from crm_customer_info t
${ew.getCustomSqlSegment}
</select>
</mapper>
Loading…
Cancel
Save