天眼接口查询下载接口等完善

zhairh
anthonywj 2 years ago
parent 5a00ea8b6a
commit d7d16c2f52

@ -3,16 +3,29 @@ package com.glxp.udidl.admin.controller.tyapi;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.udidl.admin.annotation.AuthRuleAnnotation;
import com.glxp.udidl.admin.dto.udplat.UdplatManufactureModel;
import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity;
import com.glxp.udidl.admin.entity.tyapi.TyCompanySearchEntity; import com.glxp.udidl.admin.entity.tyapi.TyCompanySearchEntity;
import com.glxp.udidl.admin.entity.tyapi.TySupplierEntity;
import com.glxp.udidl.admin.req.tyapi.TyBaseInfoRequest;
import com.glxp.udidl.admin.res.BaseResponse; import com.glxp.udidl.admin.res.BaseResponse;
import com.glxp.udidl.admin.res.tyapi.TyBatchDlResponse;
import com.glxp.udidl.admin.res.tyapi.TyContactResponse;
import com.glxp.udidl.admin.service.tyapi.TyCompanyDetailService;
import com.glxp.udidl.admin.service.tyapi.TyCompanySearchService; import com.glxp.udidl.admin.service.tyapi.TyCompanySearchService;
import com.glxp.udidl.admin.service.tyapi.TyContactInfoService;
import com.glxp.udidl.admin.service.tyapi.TySupplierService;
import com.glxp.udidl.admin.util.ResultVOUtils; import com.glxp.udidl.admin.util.ResultVOUtils;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
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.ArrayList;
import java.util.List; import java.util.List;
@Api(tags = "天眼查API接口") @Api(tags = "天眼查API接口")
@ -21,6 +34,12 @@ public class TySearchController {
@Resource @Resource
TyCompanySearchService tyCompanySearchService; TyCompanySearchService tyCompanySearchService;
@Resource
TySupplierService tySupplierService;
@Resource
TyCompanyDetailService tyCompanyDetailService;
@Resource
TyContactInfoService tyContactInfoService;
@ApiOperation(value = "天眼查企业信息查询", response = TyCompanySearchEntity.class) @ApiOperation(value = "天眼查企业信息查询", response = TyCompanySearchEntity.class)
@GetMapping("udidl/ty/company/findBycCeditCode") @GetMapping("udidl/ty/company/findBycCeditCode")
@ -37,4 +56,53 @@ public class TySearchController {
} }
} }
@ApiOperation(value = "天眼查批量下载供应商列表接口")
@PostMapping("/udidl/ty/company/batch/supplier")
public BaseResponse imports(@RequestBody String hospitals) {
if (StrUtil.isEmpty(hospitals)) {
return ResultVOUtils.error(500, "医院名称列表不能为空");
}
String[] hospAarray = hospitals.split(",");
TyBatchDlResponse tyBatchDlResponse = new TyBatchDlResponse();
List<TyCompanyDetailEntity> mTyCompanyDetailEntities = new ArrayList<>();
List<TyContactResponse> mTyContactResponses = new ArrayList<>();
List<TySupplierEntity> mTySupplierEntities = new ArrayList<>();
for (int i = 0; i < hospAarray.length; i++) {
tySupplierService.download(hospAarray[i]);
List<TySupplierEntity> tySupplierEntities = tySupplierService.list(new QueryWrapper<TySupplierEntity>().eq("hospName", hospAarray[i]));
if (CollUtil.isNotEmpty(tySupplierEntities)) {
mTySupplierEntities.addAll(tySupplierEntities);
for (TySupplierEntity tySupplierEntity : tySupplierEntities) {
TyCompanyDetailEntity tyCompanyDetailEntity = tyCompanyDetailService.download(tySupplierEntity.getSupplier_name());
if (tyCompanyDetailEntity != null)
mTyCompanyDetailEntities.add(tyCompanyDetailEntity);
List<TyContactResponse> tyContactResponses = tyContactInfoService.download(tySupplierEntity.getSupplier_name());
if (CollUtil.isNotEmpty(tyContactResponses)) {
mTyContactResponses.addAll(tyContactResponses);
}
}
}
}
tyBatchDlResponse.setTyContactResponses(mTyContactResponses);
tyBatchDlResponse.setTyCompanyDetailEntities(mTyCompanyDetailEntities);
tyBatchDlResponse.setTySupplierEntities(mTySupplierEntities);
return ResultVOUtils.success(tyBatchDlResponse);
}
@ApiOperation(value = "天眼查批量下载企业详细信息接口")
@GetMapping("/udidl/ty/company/getBaseInfo")
public BaseResponse getCompanyInfo(TyBaseInfoRequest tyBaseInfoRequest) {
if (StrUtil.isEmpty(tyBaseInfoRequest.getName()) && StrUtil.isEmpty(tyBaseInfoRequest.getCreditCode())) {
return ResultVOUtils.error(500, "请输入企业名称或统一社会信用代码");
}
String keyWord = "";
if (StrUtil.isNotEmpty(tyBaseInfoRequest.getCreditCode())) {
keyWord = tyBaseInfoRequest.getCreditCode();
} else
keyWord = tyBaseInfoRequest.getName();
TyCompanyDetailEntity tyCompanyDetailEntity = tyCompanyDetailService.download(keyWord);
return ResultVOUtils.success(tyCompanyDetailEntity);
}
} }

@ -1,9 +1,10 @@
package com.glxp.udidl.admin.dao.tyapi; package com.glxp.udidl.admin.dao.tyapi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.udidl.admin.dao.BaseMapperPlus;
import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity; import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface TyCompanyDetailMapper extends BaseMapper<TyCompanyDetailEntity> { public interface TyCompanyDetailMapper extends BaseMapperPlus<TyCompanyDetailMapper, TyCompanyDetailEntity, TyCompanyDetailEntity> {
} }

@ -1,9 +1,9 @@
package com.glxp.udidl.admin.dao.tyapi; package com.glxp.udidl.admin.dao.tyapi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.glxp.udidl.admin.dao.BaseMapperPlus;
import com.glxp.udidl.admin.entity.tyapi.TyContactCallEntity; import com.glxp.udidl.admin.entity.tyapi.TyContactCallEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface TyContactCallMapper extends BaseMapper<TyContactCallEntity> { public interface TyContactCallMapper extends BaseMapperPlus<TyContactCallMapper, TyContactCallEntity, TyContactCallEntity> {
} }

@ -1,9 +1,17 @@
package com.glxp.udidl.admin.dao.tyapi; package com.glxp.udidl.admin.dao.tyapi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.glxp.udidl.admin.dao.BaseMapperPlus;
import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity; import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity;
import com.glxp.udidl.admin.req.tyapi.TyContactRequest;
import com.glxp.udidl.admin.res.tyapi.TyContactResponse;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper @Mapper
public interface TyContactInfoMapper extends BaseMapper<TyContactInfoEntity> { public interface TyContactInfoMapper extends BaseMapperPlus<TyContactInfoMapper, TyContactInfoEntity, TyContactInfoEntity> {
List<TyContactResponse> findGroup(TyContactRequest tyContactRequest);
} }

@ -6,341 +6,348 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
* *
*/ */
@ApiModel(value="com-glxp-udidl-admin-entity-tyapi-TyCompanyDetail") @ApiModel(value = "com-glxp-udidl-admin-entity-tyapi-TyCompanyDetail")
@Data @Data
@TableName(value = "ty_company_detail") @TableName(value = "ty_company_detail")
public class TyCompanyDetailEntity implements Serializable { public class TyCompanyDetailEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value="") @ApiModelProperty(value = "")
private String id; private String id;
/** /**
* *
*/ */
@TableField(value = "historyNames") @TableField(value = "historyNames")
@ApiModelProperty(value="曾用名") @ApiModelProperty(value = "曾用名")
private String historyNames; private String historyNames;
/** /**
* *
*/ */
@TableField(value = "cancelDate") @TableField(value = "cancelDate")
@ApiModelProperty(value="注销日期") @ApiModelProperty(value = "注销日期")
private String cancelDate; private String cancelDate;
/** /**
* *
*/ */
@TableField(value = "regStatus") @TableField(value = "regStatus")
@ApiModelProperty(value="企业状态") @ApiModelProperty(value = "企业状态")
private String regStatus; private String regStatus;
/** /**
* *
*/ */
@TableField(value = "regCapital") @TableField(value = "regCapital")
@ApiModelProperty(value="注册资本") @ApiModelProperty(value = "注册资本")
private String regCapital; private String regCapital;
/** /**
* *
*/ */
@TableField(value = "city") @TableField(value = "city")
@ApiModelProperty(value="市") @ApiModelProperty(value = "市")
private String city; private String city;
/** /**
* *
*/ */
@TableField(value = "staffNumRange") @TableField(value = "staffNumRange")
@ApiModelProperty(value="人员规模") @ApiModelProperty(value = "人员规模")
private String staffNumRange; private String staffNumRange;
/** /**
* *
*/ */
@TableField(value = "bondNum") @TableField(value = "bondNum")
@ApiModelProperty(value="股票名") @ApiModelProperty(value = "股票名")
private String bondNum; private String bondNum;
/** /**
* *
*/ */
@TableField(value = "historyNameList") @TableField(value = "historyNameList")
@ApiModelProperty(value="曾用名列表") @ApiModelProperty(value = "曾用名列表")
private String historyNameList; private String historyNameList;
/** /**
* *
*/ */
@TableField(value = "industry") @TableField(value = "industry")
@ApiModelProperty(value="行业") @ApiModelProperty(value = "行业")
private String industry; private String industry;
/** /**
* *
*/ */
@TableField(value = "bondName") @TableField(value = "bondName")
@ApiModelProperty(value="股票名") @ApiModelProperty(value = "股票名")
private String bondName; private String bondName;
/** /**
* *
*/ */
@TableField(value = "revokeDate") @TableField(value = "revokeDate")
@ApiModelProperty(value="吊销日期") @ApiModelProperty(value = "吊销日期")
private String revokeDate; private String revokeDate;
/** /**
* 1 2 * 1 2
*/ */
@TableField(value = "`type`") @TableField(value = "`type`")
@ApiModelProperty(value="法人类型1 人 2 公司") @ApiModelProperty(value = "法人类型1 人 2 公司")
private String type; private String type;
/** /**
* *
*/ */
@TableField(value = "updateTimes") @TableField(value = "updateTimes")
@ApiModelProperty(value="更新时间") @ApiModelProperty(value = "更新时间")
private String updateTimes; private String updateTimes;
/** /**
* *
*/ */
@TableField(value = "legalPersonName") @TableField(value = "legalPersonName")
@ApiModelProperty(value="法人") @ApiModelProperty(value = "法人")
private String legalPersonName; private String legalPersonName;
/** /**
* *
*/ */
@TableField(value = "revokeReason") @TableField(value = "revokeReason")
@ApiModelProperty(value="吊销原因") @ApiModelProperty(value = "吊销原因")
private String revokeReason; private String revokeReason;
/** /**
* *
*/ */
@TableField(value = "regNumber") @TableField(value = "regNumber")
@ApiModelProperty(value="注册号") @ApiModelProperty(value = "注册号")
private String regNumber; private String regNumber;
/** /**
* *
*/ */
@TableField(value = "creditCode") @TableField(value = "creditCode")
@ApiModelProperty(value="统一社会信用代码") @ApiModelProperty(value = "统一社会信用代码")
private String creditCode; private String creditCode;
/** /**
* *
*/ */
@TableField(value = "property3") @TableField(value = "property3")
@ApiModelProperty(value="英文名") @ApiModelProperty(value = "英文名")
private String property3; private String property3;
/** /**
* *
*/ */
@TableField(value = "usedBondName") @TableField(value = "usedBondName")
@ApiModelProperty(value="股票曾用名") @ApiModelProperty(value = "股票曾用名")
private String usedBondName; private String usedBondName;
/** /**
* *
*/ */
@TableField(value = "approvedTime") @TableField(value = "approvedTime")
@ApiModelProperty(value="核准时间") @ApiModelProperty(value = "核准时间")
private String approvedTime; private String approvedTime;
/** /**
* *
*/ */
@TableField(value = "fromTime") @TableField(value = "fromTime")
@ApiModelProperty(value="经营开始时间") @ApiModelProperty(value = "经营开始时间")
private String fromTime; private String fromTime;
/** /**
* *
*/ */
@TableField(value = "socialStaffNum") @TableField(value = "socialStaffNum")
@ApiModelProperty(value="参保人数") @ApiModelProperty(value = "参保人数")
private String socialStaffNum; private String socialStaffNum;
/** /**
* *
*/ */
@TableField(value = "actualCapitalCurrency") @TableField(value = "actualCapitalCurrency")
@ApiModelProperty(value="实收注册资本币种 人民币 美元 欧元 等") @ApiModelProperty(value = "实收注册资本币种 人民币 美元 欧元 等")
private String actualCapitalCurrency; private String actualCapitalCurrency;
/** /**
* *
*/ */
@TableField(value = "`alias`") @TableField(value = "`alias`")
@ApiModelProperty(value="简称") @ApiModelProperty(value = "简称")
private String alias; private String alias;
/** /**
* *
*/ */
@TableField(value = "companyOrgType") @TableField(value = "companyOrgType")
@ApiModelProperty(value="企业类型") @ApiModelProperty(value = "企业类型")
private String companyOrgType; private String companyOrgType;
/** /**
* *
*/ */
@TableField(value = "cancelReason") @TableField(value = "cancelReason")
@ApiModelProperty(value="注销原因") @ApiModelProperty(value = "注销原因")
private String cancelReason; private String cancelReason;
/** /**
* *
*/ */
@TableField(value = "orgNumber") @TableField(value = "orgNumber")
@ApiModelProperty(value="组织机构代码") @ApiModelProperty(value = "组织机构代码")
private String orgNumber; private String orgNumber;
/** /**
* *
*/ */
@TableField(value = "email") @TableField(value = "email")
@ApiModelProperty(value="邮箱") @ApiModelProperty(value = "邮箱")
private String email; private String email;
/** /**
* *
*/ */
@TableField(value = "toTime") @TableField(value = "toTime")
@ApiModelProperty(value="经营结束时间") @ApiModelProperty(value = "经营结束时间")
private String toTime; private String toTime;
/** /**
* *
*/ */
@TableField(value = "actualCapital") @TableField(value = "actualCapital")
@ApiModelProperty(value="实收注册资金") @ApiModelProperty(value = "实收注册资金")
private String actualCapital; private String actualCapital;
/** /**
* *
*/ */
@TableField(value = "estiblishTime") @TableField(value = "estiblishTime")
@ApiModelProperty(value="成立日期") @ApiModelProperty(value = "成立日期")
private String estiblishTime; private String estiblishTime;
/** /**
* *
*/ */
@TableField(value = "regInstitute") @TableField(value = "regInstitute")
@ApiModelProperty(value="登记机关") @ApiModelProperty(value = "登记机关")
private String regInstitute; private String regInstitute;
/** /**
* *
*/ */
@TableField(value = "businessScope") @TableField(value = "businessScope")
@ApiModelProperty(value="经营范围") @ApiModelProperty(value = "经营范围")
private String businessScope; private String businessScope;
/** /**
* *
*/ */
@TableField(value = "taxNumber") @TableField(value = "taxNumber")
@ApiModelProperty(value="纳税人识别号") @ApiModelProperty(value = "纳税人识别号")
private String taxNumber; private String taxNumber;
/** /**
* *
*/ */
@TableField(value = "regLocation") @TableField(value = "regLocation")
@ApiModelProperty(value="注册地址") @ApiModelProperty(value = "注册地址")
private String regLocation; private String regLocation;
/** /**
* *
*/ */
@TableField(value = "regCapitalCurrency") @TableField(value = "regCapitalCurrency")
@ApiModelProperty(value="注册资本币种 人民币 美元 欧元 等") @ApiModelProperty(value = "注册资本币种 人民币 美元 欧元 等")
private String regCapitalCurrency; private String regCapitalCurrency;
/** /**
* *
*/ */
@TableField(value = "tags") @TableField(value = "tags")
@ApiModelProperty(value="企业标签") @ApiModelProperty(value = "企业标签")
private String tags; private String tags;
/** /**
* *
*/ */
@TableField(value = "websiteList") @TableField(value = "websiteList")
@ApiModelProperty(value="网址") @ApiModelProperty(value = "网址")
private String websiteList; private String websiteList;
/** /**
* *
*/ */
@TableField(value = "phoneNumber") @TableField(value = "phoneNumber")
@ApiModelProperty(value="企业联系方式") @ApiModelProperty(value = "企业联系方式")
private String phoneNumber; private String phoneNumber;
/** /**
* *
*/ */
@TableField(value = "district") @TableField(value = "district")
@ApiModelProperty(value="区") @ApiModelProperty(value = "区")
private String district; private String district;
/** /**
* *
*/ */
@TableField(value = "bondType") @TableField(value = "bondType")
@ApiModelProperty(value="股票类型") @ApiModelProperty(value = "股票类型")
private String bondType; private String bondType;
/** /**
* *
*/ */
@TableField(value = "`name`") @TableField(value = "`name`")
@ApiModelProperty(value="企业名") @ApiModelProperty(value = "企业名")
private String name; private String name;
/** /**
* *
*/ */
@TableField(value = "percentileScore") @TableField(value = "percentileScore")
@ApiModelProperty(value="企业评分") @ApiModelProperty(value = "企业评分")
private String percentileScore; private String percentileScore;
/** /**
* *
*/ */
@TableField(value = "industryAll") @TableField(value = "industryAll")
@ApiModelProperty(value="国民经济行业分类") @ApiModelProperty(value = "国民经济行业分类")
private String industryAll; private String industryAll;
/** /**
* 0 1 * 0 1
*/ */
@TableField(value = "isMicroEnt") @TableField(value = "isMicroEnt")
@ApiModelProperty(value="是否是小微企业 0不是 1是") @ApiModelProperty(value = "是否是小微企业 0不是 1是")
private String isMicroEnt; private String isMicroEnt;
/** /**
* *
*/ */
@TableField(value = "base") @TableField(value = "base")
@ApiModelProperty(value="省份简称") @ApiModelProperty(value = "省份简称")
private String base; private String base;
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -6,25 +6,28 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
* *
*/ */
@ApiModel(value="com-glxp-udidl-admin-entity-tyapi-TyCompanySearch") @ApiModel(value = "com-glxp-udidl-admin-entity-tyapi-TyCompanySearch")
@Data @Data
@TableName(value = "ty_company_search") @TableName(value = "ty_company_search")
public class TyCompanySearchEntity implements Serializable { public class TyCompanySearchEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value="") @ApiModelProperty(value = "")
private String id; private String id;
/** /**
* *
*/ */
@TableField(value = "`name`") @TableField(value = "`name`")
@ApiModelProperty(value="公司名") @ApiModelProperty(value = "公司名")
private String name; private String name;
@ -32,78 +35,82 @@ public class TyCompanySearchEntity implements Serializable {
* *
*/ */
@TableField(value = "regStatus") @TableField(value = "regStatus")
@ApiModelProperty(value="经营状态") @ApiModelProperty(value = "经营状态")
private String regStatus; private String regStatus;
/** /**
* *
*/ */
@TableField(value = "estiblishTime") @TableField(value = "estiblishTime")
@ApiModelProperty(value="成立日期") @ApiModelProperty(value = "成立日期")
private String estiblishTime; private String estiblishTime;
/** /**
* *
*/ */
@TableField(value = "regCapital") @TableField(value = "regCapital")
@ApiModelProperty(value="注册资本") @ApiModelProperty(value = "注册资本")
private String regCapital; private String regCapital;
/** /**
* -1234567-;89- * -1234567-;89-
*/ */
@TableField(value = "companyType") @TableField(value = "companyType")
@ApiModelProperty(value="机构类型-1公司2香港企业3社会组织4律所5事业单位6基金会7-不存在法人、注册资本、统一社会信用代码、经营状态;8台湾企业9-新机构") @ApiModelProperty(value = "机构类型-1公司2香港企业3社会组织4律所5事业单位6基金会7-不存在法人、注册资本、统一社会信用代码、经营状态;8台湾企业9-新机构")
private String companyType; private String companyType;
/** /**
* *
*/ */
@TableField(value = "matchType") @TableField(value = "matchType")
@ApiModelProperty(value="匹配原因") @ApiModelProperty(value = "匹配原因")
private String matchType; private String matchType;
/** /**
* 1- 2- * 1- 2-
*/ */
@TableField(value = "`type`") @TableField(value = "`type`")
@ApiModelProperty(value="1-公司 2-人") @ApiModelProperty(value = "1-公司 2-人")
private String type; private String type;
/** /**
* *
*/ */
@TableField(value = "legalPersonName") @TableField(value = "legalPersonName")
@ApiModelProperty(value="法人") @ApiModelProperty(value = "法人")
private String legalPersonName; private String legalPersonName;
/** /**
* *
*/ */
@TableField(value = "regNumber") @TableField(value = "regNumber")
@ApiModelProperty(value="注册号") @ApiModelProperty(value = "注册号")
private String regNumber; private String regNumber;
/** /**
* *
*/ */
@TableField(value = "creditCode") @TableField(value = "creditCode")
@ApiModelProperty(value="统一社会信用代码") @ApiModelProperty(value = "统一社会信用代码")
private String creditCode; private String creditCode;
/** /**
* *
*/ */
@TableField(value = "orgNumber") @TableField(value = "orgNumber")
@ApiModelProperty(value="组织机构代码") @ApiModelProperty(value = "组织机构代码")
private String orgNumber; private String orgNumber;
/** /**
* *
*/ */
@TableField(value = "base") @TableField(value = "base")
@ApiModelProperty(value="省份") @ApiModelProperty(value = "省份")
private String base; private String base;
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -6,61 +6,67 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
* *
*/ */
@ApiModel(value="com-glxp-udidl-admin-entity-tyapi-TyContactCall") @ApiModel(value = "com-glxp-udidl-admin-entity-tyapi-TyContactCall")
@Data @Data
@TableName(value = "ty_contact_call") @TableName(value = "ty_contact_call")
public class TyContactCallEntity implements Serializable { public class TyContactCallEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value="") @ApiModelProperty(value = "")
private Integer id; private Integer id;
/** /**
* *
*/ */
@TableField(value = "phoneNumber") @TableField(value = "phoneNumber")
@ApiModelProperty(value="电话") @ApiModelProperty(value = "电话")
private String phoneNumber; private String phoneNumber;
/** /**
* *
*/ */
@TableField(value = "`source`") @TableField(value = "`source`")
@ApiModelProperty(value="号码来源") @ApiModelProperty(value = "号码来源")
private String source; private String source;
/** /**
* *
*/ */
@TableField(value = "tag") @TableField(value = "tag")
@ApiModelProperty(value="标签") @ApiModelProperty(value = "标签")
private String tag; private String tag;
/** /**
* ID * ID
*/ */
@TableField(value = "contactIdFk") @TableField(value = "contactIdFk")
@ApiModelProperty(value="公司ID外键") @ApiModelProperty(value = "公司ID外键")
private Integer contactIdFk; private String contactIdFk;
/** /**
* *
*/ */
@TableField(value = "creditCodeFk") @TableField(value = "creditCodeFk")
@ApiModelProperty(value="所属企业统一社会信用号外键") @ApiModelProperty(value = "所属企业统一社会信用号外键")
private String creditCodeFk; private String creditCodeFk;
/** /**
* *
*/ */
@TableField(value = "supplierName") @TableField(value = "supplierName")
@ApiModelProperty(value="所属企业名称") @ApiModelProperty(value = "所属企业名称")
private String supplierName; private String supplierName;
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -6,13 +6,16 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
* *
*/ */
@ApiModel(value="com-glxp-udidl-admin-entity-tyapi-TyContactInfo") @ApiModel(value = "com-glxp-udidl-admin-entity-tyapi-TyContactInfo")
@Data @Data
@TableName(value = "ty_contact_info") @TableName(value = "ty_contact_info")
public class TyContactInfoEntity implements Serializable { public class TyContactInfoEntity implements Serializable {
@ -20,50 +23,53 @@ public class TyContactInfoEntity implements Serializable {
* id * id
*/ */
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value="公司id") @ApiModelProperty(value = "公司id")
private String id; private String id;
/** /**
* *
*/ */
@TableField(value = "phoneNumber") @TableField(value = "phoneNumber")
@ApiModelProperty(value="电话") @ApiModelProperty(value = "电话")
private String phoneNumber; private String phoneNumber;
/** /**
* *
*/ */
@TableField(value = "regLocation") @TableField(value = "regLocation")
@ApiModelProperty(value="注册地址") @ApiModelProperty(value = "注册地址")
private String regLocation; private String regLocation;
/** /**
* *
*/ */
@TableField(value = "email") @TableField(value = "email")
@ApiModelProperty(value="邮箱") @ApiModelProperty(value = "邮箱")
private String email; private String email;
/** /**
* *
*/ */
@TableField(value = "websiteList") @TableField(value = "websiteList")
@ApiModelProperty(value="网址") @ApiModelProperty(value = "网址")
private String websiteList; private String websiteList;
/** /**
* *
*/ */
@TableField(value = "creditCodeFk") @TableField(value = "creditCodeFk")
@ApiModelProperty(value="所属企业统一社会信用号") @ApiModelProperty(value = "所属企业统一社会信用号")
private String creditCodeFk; private String creditCodeFk;
/** /**
* *
*/ */
@TableField(value = "supplierName") @TableField(value = "supplierName")
@ApiModelProperty(value="所属企业名称") @ApiModelProperty(value = "所属企业名称")
private String supplierName; private String supplierName;
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -0,0 +1,12 @@
package com.glxp.udidl.admin.req.tyapi;
import lombok.Data;
@Data
public class TyBaseInfoRequest {
//企业名称
private String name;
//统一社会信用代码
private String creditCode;
}

@ -0,0 +1,9 @@
package com.glxp.udidl.admin.req.tyapi;
import lombok.Data;
@Data
public class TyContactRequest {
private String supplierName;
private String creditCodeFk;
}

@ -23,7 +23,7 @@ public class CompanyBaseResponse {
@JsonProperty("historyNames") @JsonProperty("historyNames")
private String historyNames; private String historyNames;
@JsonProperty("cancelDate") @JsonProperty("cancelDate")
private Object cancelDate; private String cancelDate;
@JsonProperty("regStatus") @JsonProperty("regStatus")
private String regStatus; private String regStatus;
@JsonProperty("regCapital") @JsonProperty("regCapital")
@ -41,7 +41,7 @@ public class CompanyBaseResponse {
@JsonProperty("bondName") @JsonProperty("bondName")
private String bondName; private String bondName;
@JsonProperty("revokeDate") @JsonProperty("revokeDate")
private Object revokeDate; private String revokeDate;
@JsonProperty("type") @JsonProperty("type")
private Integer type; private Integer type;
@JsonProperty("updateTimes") @JsonProperty("updateTimes")
@ -79,7 +79,7 @@ public class CompanyBaseResponse {
@JsonProperty("email") @JsonProperty("email")
private String email; private String email;
@JsonProperty("toTime") @JsonProperty("toTime")
private Object toTime; private String toTime;
@JsonProperty("actualCapital") @JsonProperty("actualCapital")
private String actualCapital; private String actualCapital;
@JsonProperty("estiblishTime") @JsonProperty("estiblishTime")

@ -0,0 +1,15 @@
package com.glxp.udidl.admin.res.tyapi;
import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity;
import com.glxp.udidl.admin.entity.tyapi.TySupplierEntity;
import lombok.Data;
import java.util.List;
@Data
public class TyBatchDlResponse {
List<TyContactResponse> tyContactResponses;
List<TyCompanyDetailEntity> tyCompanyDetailEntities;
List<TySupplierEntity> tySupplierEntities;
}

@ -0,0 +1,81 @@
package com.glxp.udidl.admin.res.tyapi;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
public class TyContactResponse {
/**
*
*/
@ApiModelProperty(value = "当前电话")
private String mainPhoneNumber;
/**
*
*/
@ApiModelProperty(value = "注册地址")
private String regLocation;
/**
*
*/
@ApiModelProperty(value = "邮箱")
private String email;
/**
*
*/
@TableField(value = "websiteList")
@ApiModelProperty(value = "网址")
private String websiteList;
/**
*
*/
@TableField(value = "creditCodeFk")
@ApiModelProperty(value = "所属企业统一社会信用号")
private String creditCodeFk;
/**
*
*/
@TableField(value = "supplierName")
@ApiModelProperty(value = "所属企业名称")
private String supplierName;
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
@TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value = "")
private Integer id;
/**
*
*/
@ApiModelProperty(value = "电话")
private String phoneNumber;
/**
*
*/
@ApiModelProperty(value = "号码来源")
private String source;
/**
*
*/
@ApiModelProperty(value = "标签")
private String tag;
}

@ -1,10 +1,57 @@
package com.glxp.udidl.admin.service.tyapi; package com.glxp.udidl.admin.service.tyapi;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.udidl.admin.entity.tyapi.TyContactCallEntity;
import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity;
import com.glxp.udidl.admin.res.tyapi.CompanyBaseResponse;
import com.glxp.udidl.admin.res.tyapi.ContactResponse;
import com.glxp.udidl.admin.util.BeanCopyUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.udidl.admin.dao.tyapi.TyCompanyDetailMapper; import com.glxp.udidl.admin.dao.tyapi.TyCompanyDetailMapper;
import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity; import com.glxp.udidl.admin.entity.tyapi.TyCompanyDetailEntity;
import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class TyCompanyDetailService extends ServiceImpl<TyCompanyDetailMapper, TyCompanyDetailEntity> { public class TyCompanyDetailService extends ServiceImpl<TyCompanyDetailMapper, TyCompanyDetailEntity> {
@Resource
TyDlHttpClient tyDlHttpClient;
@Resource
TyCompanyDetailMapper tyCompanyDetailMapper;
public TyCompanyDetailEntity download(String company) {
if (tyCompanyDetailMapper.exists(new QueryWrapper<TyCompanyDetailEntity>().eq("name", company))) {
log.error(company + "企业详细信息已存在!");
} else {
CompanyBaseResponse companyBaseResponse = tyDlHttpClient.getBaseInfo(company);
if (companyBaseResponse.getErrorCode() == 0) {
CompanyBaseResponse.ResultDTO resultDTO = companyBaseResponse.getResult();
TyCompanyDetailEntity tyCompanyDetailEntity = new TyCompanyDetailEntity();
BeanUtil.copyProperties(resultDTO, tyCompanyDetailEntity);
if (CollUtil.isNotEmpty(resultDTO.getHistoryNameList())) {
tyCompanyDetailEntity.setHistoryNameList(StringUtils.join(resultDTO.getHistoryNameList(), ","));
}
CompanyBaseResponse.ResultDTO.IndustryAllDTO industryAllDTO = resultDTO.getIndustryAll();
if (industryAllDTO != null) {
tyCompanyDetailEntity.setIndustryAll(JSON.toJSONString(industryAllDTO));
}
tyCompanyDetailMapper.insert(tyCompanyDetailEntity);
} else {
log.error(company + "下载企业信息失败!");
}
}
List<TyCompanyDetailEntity> tyCompanyDetailEntities = tyCompanyDetailMapper.selectList(new QueryWrapper<TyCompanyDetailEntity>().eq("name", company));
if (CollUtil.isNotEmpty(tyCompanyDetailEntities))
return tyCompanyDetailEntities.get(0);
else
return null;
}
} }

@ -1,10 +1,62 @@
package com.glxp.udidl.admin.service.tyapi; package com.glxp.udidl.admin.service.tyapi;
import org.springframework.stereotype.Service; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity; import com.glxp.udidl.admin.dao.tyapi.TyContactCallMapper;
import com.glxp.udidl.admin.dao.tyapi.TyContactInfoMapper; import com.glxp.udidl.admin.dao.tyapi.TyContactInfoMapper;
import com.glxp.udidl.admin.entity.tyapi.TyContactCallEntity;
import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity;
import com.glxp.udidl.admin.req.tyapi.TyContactRequest;
import com.glxp.udidl.admin.res.tyapi.ContactResponse;
import com.glxp.udidl.admin.res.tyapi.TyContactResponse;
import com.glxp.udidl.admin.util.BeanCopyUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class TyContactInfoService extends ServiceImpl<TyContactInfoMapper, TyContactInfoEntity> { public class TyContactInfoService extends ServiceImpl<TyContactInfoMapper, TyContactInfoEntity> {
@Resource
TyDlHttpClient tyDlHttpClient;
@Resource
TyContactInfoMapper tyContactInfoMapper;
@Resource
TyContactCallMapper tyContactCallMapper;
public List<TyContactResponse> download(String company) {
if (tyContactInfoMapper.exists(new QueryWrapper<TyContactInfoEntity>().eq("supplierName", company))) {
log.error(company + "企业联系方式已存在重复下载!");
} else {
ContactResponse contactResponse = tyDlHttpClient.getContact(company);
if (contactResponse.getErrorCode() == 0) {
ContactResponse.ResultDTO resultDTO = contactResponse.getResult();
TyContactInfoEntity tyContactInfoEntity = new TyContactInfoEntity();
BeanUtil.copyProperties(resultDTO, tyContactInfoEntity);
tyContactInfoEntity.setSupplierName(company);
tyContactInfoMapper.insert(tyContactInfoEntity);
List<ContactResponse.ResultDTO.AllCallsDTO> allCallsDTOS = resultDTO.getAllCalls();
if (CollUtil.isNotEmpty(allCallsDTOS)) {
List<TyContactCallEntity> tyContactCallEntities = BeanCopyUtils.copyList(allCallsDTOS, TyContactCallEntity.class);
if (CollUtil.isNotEmpty(tyContactCallEntities)) {
for (TyContactCallEntity tyContactCallEntity : tyContactCallEntities) {
tyContactCallEntity.setContactIdFk(tyContactInfoEntity.getId());
tyContactCallEntity.setSupplierName(company);
}
tyContactCallMapper.insertBatch(tyContactCallEntities);
}
}
}
}
TyContactRequest tyContactRequest = new TyContactRequest();
tyContactRequest.setSupplierName(company);
List<TyContactResponse> tyContactInfoEntities = tyContactInfoMapper.findGroup(tyContactRequest);
return tyContactInfoEntities;
}
} }

@ -7,6 +7,7 @@ import com.glxp.udidl.admin.res.tyapi.ContactResponse;
import com.glxp.udidl.admin.res.tyapi.OpenSearchResponse; import com.glxp.udidl.admin.res.tyapi.OpenSearchResponse;
import com.glxp.udidl.admin.res.tyapi.SupplierResponse; import com.glxp.udidl.admin.res.tyapi.SupplierResponse;
import com.glxp.udidl.admin.util.OkHttpCli; import com.glxp.udidl.admin.util.OkHttpCli;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -14,6 +15,7 @@ import javax.annotation.Resource;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@Slf4j
@Service @Service
public class TyDlHttpClient { public class TyDlHttpClient {
@ -36,6 +38,7 @@ public class TyDlHttpClient {
params.put("pageNum", pageNum + ""); params.put("pageNum", pageNum + "");
params.put("pageSize", pageSize + ""); params.put("pageSize", pageSize + "");
String response = okHttpCli.doGet(supplyUrl, params, headers); String response = okHttpCli.doGet(supplyUrl, params, headers);
log.info(response);
SupplierResponse baseResponse = JSONObject.parseObject(response, new TypeReference<SupplierResponse>() { SupplierResponse baseResponse = JSONObject.parseObject(response, new TypeReference<SupplierResponse>() {
}); });
return baseResponse; return baseResponse;
@ -46,6 +49,7 @@ public class TyDlHttpClient {
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("keyword", company); params.put("keyword", company);
String response = okHttpCli.doGet(baseInfoUrl, params, headers); String response = okHttpCli.doGet(baseInfoUrl, params, headers);
log.info(response);
CompanyBaseResponse baseResponse = JSONObject.parseObject(response, new TypeReference<CompanyBaseResponse>() { CompanyBaseResponse baseResponse = JSONObject.parseObject(response, new TypeReference<CompanyBaseResponse>() {
}); });
return baseResponse; return baseResponse;
@ -56,6 +60,7 @@ public class TyDlHttpClient {
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("keyword", company); params.put("keyword", company);
String response = okHttpCli.doGet(contactUrl, params, headers); String response = okHttpCli.doGet(contactUrl, params, headers);
log.info(response);
ContactResponse baseResponse = JSONObject.parseObject(response, new TypeReference<ContactResponse>() { ContactResponse baseResponse = JSONObject.parseObject(response, new TypeReference<ContactResponse>() {
}); });
return baseResponse; return baseResponse;
@ -67,6 +72,7 @@ public class TyDlHttpClient {
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("keyword", company); params.put("keyword", company);
String response = okHttpCli.doGet(openSearchUrl, params, headers); String response = okHttpCli.doGet(openSearchUrl, params, headers);
log.info(response);
OpenSearchResponse baseResponse = JSONObject.parseObject(response, new TypeReference<OpenSearchResponse>() { OpenSearchResponse baseResponse = JSONObject.parseObject(response, new TypeReference<OpenSearchResponse>() {
}); });
return baseResponse; return baseResponse;

@ -2,6 +2,8 @@ package com.glxp.udidl.admin.service.tyapi;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity;
import com.glxp.udidl.admin.res.tyapi.SupplierResponse; import com.glxp.udidl.admin.res.tyapi.SupplierResponse;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -19,10 +21,12 @@ public class TySupplierService extends ServiceImpl<TySupplierMapper, TySupplierE
@Resource @Resource
TySupplierMapper tySupplierMapper; TySupplierMapper tySupplierMapper;
public void download(String hospital) { public List<TySupplierEntity> download(String hospital) {
Integer pageNum = 1; Integer pageNum = 1;
Integer pageSize = 20; Integer pageSize = 20;
if (tySupplierMapper.exists(new QueryWrapper<TySupplierEntity>().eq("hospName", hospital))) {
log.error(hospital + "供应商列表已存在重复下载!");
} else {
while (true) { while (true) {
SupplierResponse supplierResponse = tyDlHttpClient.getSupplier(hospital, pageNum, pageSize); SupplierResponse supplierResponse = tyDlHttpClient.getSupplier(hospital, pageNum, pageSize);
if (supplierResponse.getErrorCode() == 0) { if (supplierResponse.getErrorCode() == 0) {
@ -38,10 +42,13 @@ public class TySupplierService extends ServiceImpl<TySupplierMapper, TySupplierE
if (CollUtil.isNotEmpty(supplierDTOS) && supplierDTOS.size() == 20) { if (CollUtil.isNotEmpty(supplierDTOS) && supplierDTOS.size() == 20) {
pageNum = pageNum + 1; pageNum = pageNum + 1;
} else { } else {
return; break;
}
} }
} }
} }
List<TySupplierEntity> tySupplierEntities = tySupplierMapper.selectList(new QueryWrapper<TySupplierEntity>().eq("hospName", hospital));
return tySupplierEntities;
} }

@ -4,16 +4,42 @@
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity"> <resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.tyapi.TyContactInfoEntity">
<!--@mbg.generated--> <!--@mbg.generated-->
<!--@Table ty_contact_info--> <!--@Table ty_contact_info-->
<id column="id" jdbcType="VARCHAR" property="id" /> <id column="id" jdbcType="VARCHAR" property="id"/>
<result column="phoneNumber" jdbcType="VARCHAR" property="phoneNumber" /> <result column="phoneNumber" jdbcType="VARCHAR" property="phoneNumber"/>
<result column="regLocation" jdbcType="VARCHAR" property="regLocation" /> <result column="regLocation" jdbcType="VARCHAR" property="regLocation"/>
<result column="email" jdbcType="VARCHAR" property="email" /> <result column="email" jdbcType="VARCHAR" property="email"/>
<result column="websiteList" jdbcType="VARCHAR" property="websiteList" /> <result column="websiteList" jdbcType="VARCHAR" property="websiteList"/>
<result column="creditCodeFk" jdbcType="VARCHAR" property="creditCodeFk" /> <result column="creditCodeFk" jdbcType="VARCHAR" property="creditCodeFk"/>
<result column="supplierName" jdbcType="VARCHAR" property="supplierName" /> <result column="supplierName" jdbcType="VARCHAR" property="supplierName"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
id, phoneNumber, regLocation, email, websiteList, creditCodeFk, supplierName id, phoneNumber, regLocation, email, websiteList, creditCodeFk, supplierName
</sql> </sql>
<select id="findGroup" parameterType="com.glxp.udidl.admin.req.tyapi.TyContactRequest"
resultType="com.glxp.udidl.admin.res.tyapi.TyContactResponse">
SELECT tci.phoneNumber mainPhoneNumber,
tci.regLocation,
tci.email,
tci.websiteList,
tci.creditCodeFk,
tci.supplierName,
tci.updateTime,
tcc.id,
tcc.phoneNumber,
tcc.source,
tcc.tag
FROM ty_contact_info tci
inner join ty_contact_call tcc on tci.id = tcc.contactIdFk
<where>
<if test="supplierName != '' and supplierName != null">
AND supplierName = #{supplierName}
</if>
<if test="creditCodeFk != '' and creditCodeFk != null">
AND creditCodeFk = #{creditCodeFk}
</if>
</where>
</select>
</mapper> </mapper>

@ -1,7 +1,9 @@
# 字段新增 表名字段名字段类型修改方式1新增2修改3删除 # 字段新增 表名字段名字段类型修改方式1新增2修改3删除
CALL Pro_Temp_ColumnWork('ty_supplier', 'updateTime', 'date', 1); CALL Pro_Temp_ColumnWork('ty_supplier', 'updateTime', 'date', 1);
CALL Pro_Temp_ColumnWork('ty_supplier', 'updateTime', 'date', 1);
CALL Pro_Temp_ColumnWork('ty_supplier', 'updateTime', 'date', 1);
CALL Pro_Temp_ColumnWork('ty_supplier', 'updateTime', 'date', 1);

Loading…
Cancel
Save