Commit ebaebb99 authored by lcl's avatar lcl

供应商

parent a6231c14
package com.dsk.cscec.controller; package com.dsk.cscec.controller;
import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.hutool.core.bean.BeanUtil;
import com.dsk.common.core.controller.BaseController; import com.dsk.common.core.controller.BaseController;
import com.dsk.common.core.domain.PageQuery;
import com.dsk.common.core.domain.R;
import com.dsk.common.core.page.TableDataInfo;
import com.dsk.cscec.domain.DCustomer;
import com.dsk.cscec.domain.bo.DCustomerSearchBo;
import com.dsk.cscec.service.IDCustomerService; import com.dsk.cscec.service.IDCustomerService;
import com.dsk.system.domain.SysDept;
import com.dsk.system.domain.vo.SysDeptVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
/** /**
* 组织维表(DCustomer)表控制层 * 组织维表(DCustomer)表控制层
...@@ -14,14 +26,22 @@ import javax.annotation.Resource; ...@@ -14,14 +26,22 @@ import javax.annotation.Resource;
* @author lcl * @author lcl
* @since 2023-12-08 14:57:22 * @since 2023-12-08 14:57:22
*/ */
@RequiredArgsConstructor
@RestController @RestController
@RequestMapping("/customer") @RequestMapping("/customer")
public class DCustomerController extends BaseController { public class DCustomerController extends BaseController {
/** /**
* 服务对象 * 服务对象
*/ */
@Resource private final IDCustomerService baseService;
private IDCustomerService baseService;
/**
* 供应商总台账筛选
*/
@GetMapping("/all/searchList")
public TableDataInfo<DCustomer> allSearchList(DCustomerSearchBo bo, PageQuery query) {
return baseService.allSearchList(bo,query);
}
} }
......
...@@ -2,6 +2,7 @@ package com.dsk.cscec.domain; ...@@ -2,6 +2,7 @@ package com.dsk.cscec.domain;
import java.util.Date; import java.util.Date;
import java.io.Serializable; import java.io.Serializable;
import lombok.Data; import lombok.Data;
/** /**
...@@ -14,518 +15,518 @@ import lombok.Data; ...@@ -14,518 +15,518 @@ import lombok.Data;
public class DCustomer implements Serializable { public class DCustomer implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 客商主键 * 客商主键
*/ */
private Long customerKey; private Long customerKey;
/** /**
* ipm供应商id * ipm供应商id
*/ */
private String customerId; private String customerId;
/** /**
* ipm供应商名称 * ipm供应商名称
*/ */
private String cusomerName; private String cusomerName;
/** /**
* 财务客商编码 * 财务客商编码
*/ */
private String finCustomerCode; private String finCustomerCode;
/** /**
* 财务客商名称 * 财务客商名称
*/ */
private String finCustomerName; private String finCustomerName;
/** /**
* 税号 * 税号
*/ */
private String taxNumber; private String taxNumber;
/** /**
* 是否有效 Y 有效 N 无效 * 是否有效 Y 有效 N 无效
*/ */
private String isvalid; private String isvalid;
/** /**
* 供应商编号 * 供应商编号
*/ */
private String customerCode; private String customerCode;
/** /**
* 供应商名称 * 供应商名称
*/ */
private String customerName; private String customerName;
/** /**
* 供应商状态 * 供应商状态
*/ */
private String customerState; private String customerState;
/** /**
* 推荐公司ID * 推荐公司ID
*/ */
private String recommendOrgId; private String recommendOrgId;
/** /**
* 推荐公司 * 推荐公司
*/ */
private String recommendOrg; private String recommendOrg;
/** /**
* 准入时间 * 准入时间
*/ */
private Date approveDate2; private Date approveDate2;
/** /**
* 版本 * 版本
*/ */
private Long version; private Long version;
/** /**
* 供应商id * 供应商id
*/ */
private String supplierId; private String supplierId;
/** /**
* 供应商类别编码 * 供应商类别编码
*/ */
private String customerCategoryCode; private String customerCategoryCode;
/** /**
* 法人代表 * 法人代表
*/ */
private String representative; private String representative;
/** /**
* 工商注册号 * 工商注册号
*/ */
private String registerNo; private String registerNo;
/** /**
* 统一社会信用代码 * 统一社会信用代码
*/ */
private String unifySocialCode; private String unifySocialCode;
/** /**
* 税务登记号 * 税务登记号
*/ */
private String businessLicense; private String businessLicense;
/** /**
* 组织机构代码号 * 组织机构代码号
*/ */
private String orgnizationCode; private String orgnizationCode;
/** /**
* 注册资金 * 注册资金
*/ */
private Double registerCapital; private Double registerCapital;
/** /**
* 主营业务 * 主营业务
*/ */
private String primaryBusiness; private String primaryBusiness;
/** /**
* 资质等级 * 资质等级
*/ */
private String credential; private String credential;
/** /**
* 品牌 * 品牌
*/ */
private String brand; private String brand;
/** /**
* 地址 * 地址
*/ */
private String address; private String address;
/** /**
* 城市id * 城市id
*/ */
private String registerCityId; private String registerCityId;
/** /**
* 注册地区域 * 注册地区域
*/ */
private String registerRegion; private String registerRegion;
/** /**
* 省份 * 省份
*/ */
private String registerProvince; private String registerProvince;
/** /**
* 城市 * 城市
*/ */
private String registerCity; private String registerCity;
/** /**
* 开户行 * 开户行
*/ */
private String openBank; private String openBank;
/** /**
* 银行账号 * 银行账号
*/ */
private String bankAccount; private String bankAccount;
/** /**
* 联系人 * 联系人
*/ */
private String contactPerson; private String contactPerson;
/** /**
* 电话 * 电话
*/ */
private String contactPhone; private String contactPhone;
/** /**
* 手机 * 手机
*/ */
private String mobile; private String mobile;
/** /**
* 邮编 * 邮编
*/ */
private String zipcode; private String zipcode;
/** /**
* email * email
*/ */
private String email; private String email;
/** /**
* 网址 * 网址
*/ */
private String website; private String website;
/** /**
* 备注说明 * 备注说明
*/ */
private String remark; private String remark;
/** /**
* 地区编号 * 地区编号
*/ */
private String areaCode; private String areaCode;
/** /**
* 货币种类 * 货币种类
*/ */
private String currency; private String currency;
/** /**
* 所属组织机构id * 所属组织机构id
*/ */
private String orgnizationId; private String orgnizationId;
/** /**
* 类型 * 类型
*/ */
private String customerType; private String customerType;
/** /**
* 企业信用情况 * 企业信用情况
*/ */
private String creditSituation; private String creditSituation;
/** /**
* 创建者id * 创建者id
*/ */
private String employeeId; private String employeeId;
/** /**
* 成立日期 * 成立日期
*/ */
private String establishDate; private String establishDate;
/** /**
* 区号 * 区号
*/ */
private String phoneCode; private String phoneCode;
/** /**
* 企业性质 * 企业性质
*/ */
private String customerProperty; private String customerProperty;
/** /**
* 职务 * 职务
*/ */
private String sectorPosition; private String sectorPosition;
/** /**
* 鉴别字段 * 鉴别字段
*/ */
private String scope; private String scope;
/** /**
* 传真 * 传真
*/ */
private String fax; private String fax;
/** /**
* 供应商类别 * 供应商类别
*/ */
private String customerClass; private String customerClass;
/** /**
* 身份证号 * 身份证号
*/ */
private String idCard; private String idCard;
/** /**
* 附属子公司名称 * 附属子公司名称
*/ */
private String subCompany; private String subCompany;
/** /**
* 联营公司名称 * 联营公司名称
*/ */
private String alliedCompany; private String alliedCompany;
/** /**
* 营业额 * 营业额
*/ */
private Double turnOver; private Double turnOver;
/** /**
* 主要客户 * 主要客户
*/ */
private String mainCustomer; private String mainCustomer;
/** /**
* 主要货源 * 主要货源
*/ */
private String mainResource; private String mainResource;
/** /**
* 主要经营区域 * 主要经营区域
*/ */
private String mainRegion; private String mainRegion;
/** /**
* 原材料供应情况 * 原材料供应情况
*/ */
private String rawMaterial; private String rawMaterial;
/** /**
* 生产线及产能情况 * 生产线及产能情况
*/ */
private String productline; private String productline;
/** /**
* 客商类型 * 客商类型
*/ */
private String customerCategoryType; private String customerCategoryType;
/** /**
* 所属母公司名称 * 所属母公司名称
*/ */
private String customerFirm; private String customerFirm;
/** /**
* 客商类型id * 客商类型id
*/ */
private String customertypeId; private String customertypeId;
/** /**
* 供应商类别id * 供应商类别id
*/ */
private String customerCategoryTypeId; private String customerCategoryTypeId;
/** /**
* 企业注册地 * 企业注册地
*/ */
private String registerAddress; private String registerAddress;
/** /**
* 工厂仓库所在地 * 工厂仓库所在地
*/ */
private String warehouseAddress; private String warehouseAddress;
/** /**
* 合作产品 * 合作产品
*/ */
private String teamworkProduct; private String teamworkProduct;
/** /**
* 供方类型 * 供方类型
*/ */
private String isfactoryorfranchise; private String isfactoryorfranchise;
/** /**
* 营业执照到期时间1 * 营业执照到期时间1
*/ */
private Date expireDate1; private Date expireDate1;
/** /**
* 组织机构代码证到期时间2 * 组织机构代码证到期时间2
*/ */
private Date expireDate2; private Date expireDate2;
/** /**
* 税务登记证到期时间3 * 税务登记证到期时间3
*/ */
private Date expireDate3; private Date expireDate3;
/** /**
* 资质证书到期时间4 * 资质证书到期时间4
*/ */
private Date expireDate4; private Date expireDate4;
/** /**
* 安全生产许可证到期时间5 * 安全生产许可证到期时间5
*/ */
private Date expireDate5; private Date expireDate5;
/** /**
* 队长名称 * 队长名称
*/ */
private String leaderName; private String leaderName;
/** /**
* 专业类别id * 专业类别id
*/ */
private String groupSpecialtyId; private String groupSpecialtyId;
/** /**
* 集团专业类别 * 集团专业类别
*/ */
private String groupSpecialty; private String groupSpecialty;
/** /**
* 经营管理能力 * 经营管理能力
*/ */
private String manageAbility; private String manageAbility;
/** /**
* 产品质量保证能力 * 产品质量保证能力
*/ */
private String productQualityAbility; private String productQualityAbility;
/** /**
* 施工承包范围 * 施工承包范围
*/ */
private String constructJobScope; private String constructJobScope;
/** /**
* 经办人 * 经办人
*/ */
private String responsiblePerson; private String responsiblePerson;
/** /**
* 签字时间 * 签字时间
*/ */
private Date approveDate1; private Date approveDate1;
/** /**
* 是否同意准入 * 是否同意准入
*/ */
private String isagree; private String isagree;
/** /**
* 商务经理 * 商务经理
*/ */
private String businessManager; private String businessManager;
/** /**
* 项目经理 * 项目经理
*/ */
private String projectManager; private String projectManager;
/** /**
* 采购部门负责人 * 采购部门负责人
*/ */
private String purchasePrincipal; private String purchasePrincipal;
/** /**
* 上级公司代码 * 上级公司代码
*/ */
private String upperCompanyCode; private String upperCompanyCode;
/** /**
* 劳务队伍标志 * 劳务队伍标志
*/ */
private String serviceTeamLogo; private String serviceTeamLogo;
/** /**
* 劳务队长身份证号 * 劳务队长身份证号
*/ */
private String laborCaptainIdcard; private String laborCaptainIdcard;
/** /**
* 劳务队长联系电话 * 劳务队长联系电话
*/ */
private String laborCaptainPhone; private String laborCaptainPhone;
/** /**
* 队伍规模人数 * 队伍规模人数
*/ */
private Double serviceTeamPersonnum; private Double serviceTeamPersonnum;
/** /**
* 专业特长 * 专业特长
*/ */
private String serviceTeamSpeciality; private String serviceTeamSpeciality;
/** /**
* 二级市场企业编码 * 二级市场企业编码
*/ */
private String secondaryCode; private String secondaryCode;
/** /**
* 商务经理签字时间 * 商务经理签字时间
*/ */
private Date approveDate3; private Date approveDate3;
/** /**
* 项目经理签字时间 * 项目经理签字时间
*/ */
private Date approveDate4; private Date approveDate4;
/** /**
* 业务流程状态 * 业务流程状态
*/ */
private String flowState; private String flowState;
/** /**
* 是否为进京劳务企业 * 是否为进京劳务企业
*/ */
private String isenterbjlaborcomany; private String isenterbjlaborcomany;
/** /**
* 施工队长资格证到期时间6 * 施工队长资格证到期时间6
*/ */
private String expireDate6; private String expireDate6;
/** /**
* 授权委托书到期时间7 * 授权委托书到期时间7
*/ */
private String expireDate7; private String expireDate7;
/** /**
* 考评等级 * 考评等级
*/ */
private String creditLevel; private String creditLevel;
/** /**
* 数据标志 * 数据标志
*/ */
private String baseLogo; private String baseLogo;
/** /**
* 推荐项目 * 推荐项目
*/ */
private String recommendProject; private String recommendProject;
/** /**
* 推荐项目ID * 推荐项目ID
*/ */
private String recommendProjectId; private String recommendProjectId;
/** /**
* 客商推荐时间 * 客商推荐时间
*/ */
private Date recommendDate; private Date recommendDate;
/** /**
* 资质证书号 * 资质证书号
*/ */
private String aptitudeCard; private String aptitudeCard;
/** /**
* 安全生产许可证号 * 安全生产许可证号
*/ */
private String workSafetyLicense; private String workSafetyLicense;
/** /**
* 主表 * 主表
*/ */
private String masterId; private String masterId;
/** /**
* 纳税人身份 * 纳税人身份
*/ */
private String paytaxType; private String paytaxType;
/** /**
* 纳税人税率 * 纳税人税率
*/ */
private String taxRate; private String taxRate;
/** /**
* 身份信息选择 * 身份信息选择
*/ */
private String cardType; private String cardType;
/** /**
* 客商分数 * 客商分数
*/ */
private Double customerScore; private Double customerScore;
/** /**
* 客商名称2 * 客商名称2
*/ */
private String customerName2; private String customerName2;
/** /**
* 客商名称3 * 客商名称3
*/ */
private String customerName3; private String customerName3;
/** /**
* 客商名称4 * 客商名称4
*/ */
private String customerName4; private String customerName4;
/** /**
* 国家 * 国家
*/ */
private String country; private String country;
/** /**
* 一体化客商类型 * 一体化客商类型
*/ */
private String finCustomerType; private String finCustomerType;
/** /**
* 公司编码 * 公司编码
*/ */
private String companyCode; private String companyCode;
/** /**
* 业主性质 * 业主性质
*/ */
private String ownerKind; private String ownerKind;
/** /**
* 客商性质 * 客商性质
*/ */
private String customerKind; private String customerKind;
/** /**
* 数据来源 * 数据来源
*/ */
private String dataSource; private String dataSource;
/** /**
* 是否业主 * 是否业主
*/ */
private String isowner; private String isowner;
/** /**
* 是否供应商 * 是否供应商
*/ */
private String iscustomer; private String iscustomer;
/** /**
* 地址1 * 地址1
*/ */
private String abbrName1; private String abbrName1;
/** /**
* 地址2 * 地址2
*/ */
private String abbrName2; private String abbrName2;
/** /**
* 税率类型 * 税率类型
*/ */
private String taxType; private String taxType;
/** /**
* 是否冻结 * 是否冻结
*/ */
private String isfreeze; private String isfreeze;
/** /**
* 数据变化时间 * 数据变化时间
*/ */
private String updateDate; private String updateDate;
/** /**
* 数据更新时间 * 数据更新时间
*/ */
private Date loadTime; private Date loadTime;
} }
package com.dsk.cscec.domain.bo;
import lombok.Data;
/**
* @Author lcl
* @Data 2023/12/8 16:07
*/
@Data
public class DCustomerSearchBo {
/**
* 供应商名称
*/
private String customerName;
/**
* 区域
*/
private String[] region;
/**
* 省
*/
private String[] province;
/**
* 市
*/
private String[] city;
/**
* 供应商类别
*/
private String[] customerClass;
/**
* 供应商状态
*/
private String[] customerState;
/**
* 评价等级
*/
private String[] creditLevel;
/**
* 资质等级
*/
private String[] credential;
}
...@@ -2,7 +2,13 @@ package com.dsk.cscec.mapper; ...@@ -2,7 +2,13 @@ package com.dsk.cscec.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsk.cscec.domain.DCustomer; import com.dsk.cscec.domain.DCustomer;
import com.dsk.cscec.domain.bo.DCustomerSearchBo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 组织维表(DCustomer)表数据库访问层 * 组织维表(DCustomer)表数据库访问层
...@@ -12,5 +18,7 @@ import com.dsk.cscec.domain.DCustomer; ...@@ -12,5 +18,7 @@ import com.dsk.cscec.domain.DCustomer;
*/ */
public interface DCustomerMapper extends BaseMapper<DCustomer> { public interface DCustomerMapper extends BaseMapper<DCustomer> {
Page<DCustomer> allSearchList(IPage<DCustomerSearchBo> build, @Param("bo") DCustomerSearchBo bo);
} }
package com.dsk.cscec.service; package com.dsk.cscec.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.dsk.common.core.domain.PageQuery;
import com.dsk.common.core.page.TableDataInfo;
import com.dsk.cscec.domain.DCustomer; import com.dsk.cscec.domain.DCustomer;
import com.dsk.cscec.domain.bo.DCustomerSearchBo;
/** /**
* 组织维表(DCustomer)表服务接口 * 组织维表(DCustomer)表服务接口
...@@ -11,5 +14,7 @@ import com.dsk.cscec.domain.DCustomer; ...@@ -11,5 +14,7 @@ import com.dsk.cscec.domain.DCustomer;
*/ */
public interface IDCustomerService extends IService<DCustomer> { public interface IDCustomerService extends IService<DCustomer> {
TableDataInfo<DCustomer> allSearchList(DCustomerSearchBo bo, PageQuery query);
} }
package com.dsk.cscec.service.impl; package com.dsk.cscec.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsk.common.core.domain.PageQuery;
import com.dsk.common.core.page.TableDataInfo;
import com.dsk.cscec.domain.bo.DCustomerSearchBo;
import com.dsk.cscec.mapper.DCustomerMapper; import com.dsk.cscec.mapper.DCustomerMapper;
import com.dsk.cscec.domain.DCustomer; import com.dsk.cscec.domain.DCustomer;
import com.dsk.cscec.service.IDCustomerService; import com.dsk.cscec.service.IDCustomerService;
...@@ -15,5 +18,9 @@ import org.springframework.stereotype.Service; ...@@ -15,5 +18,9 @@ import org.springframework.stereotype.Service;
@Service @Service
public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer> implements IDCustomerService { public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer> implements IDCustomerService {
@Override
public TableDataInfo<DCustomer> allSearchList(DCustomerSearchBo bo, PageQuery query) {
return TableDataInfo.build(baseMapper.allSearchList(query.build(),bo));
}
} }
...@@ -4,5 +4,15 @@ ...@@ -4,5 +4,15 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsk.cscec.mapper.DCustomerMapper"> <mapper namespace="com.dsk.cscec.mapper.DCustomerMapper">
<select id="allSearchList" resultType="com.dsk.cscec.domain.DCustomer">
select
customer_code, customer_name, recommend_org, register_region, register_province, register_city, customer_class, primary_business, paytax_type, tax_rate,
customer_state, leader_name, labor_captain_phone, labor_captain_idcard, service_team_personnum, service_team_speciality, construct_job_scope, credential,
register_capital, contact_person, contact_phone, approve_date2, credit_level
from d_customer
where recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475'
<if test="bo.customerName != null and bo.customerName != '' "> and customer_name like concat('%',#{bo.customerName},'%')</if>
order by approve_date2 desc
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment