Explorar el Código

feat: 新增企业时匹配企业信息库

zhangying hace 11 meses
padre
commit
33cc3169e7
Se han modificado 19 ficheros con 3121 adiciones y 17 borrados
  1. 8 2
      src/main/java/com/hz/employmentsite/controller/companyService/CompanyController.java
  2. 10 1
      src/main/java/com/hz/employmentsite/controller/system/FileController.java
  3. 37 0
      src/main/java/com/hz/employmentsite/mapper/PcFirmMapper.java
  4. 253 0
      src/main/java/com/hz/employmentsite/model/PcFirm.java
  5. 1939 0
      src/main/java/com/hz/employmentsite/model/PcFirmExample.java
  6. 33 0
      src/main/java/com/hz/employmentsite/model/PcFirmWithBLOBs.java
  7. 39 6
      src/main/java/com/hz/employmentsite/services/impl/companyService/CompanyServiceImpl.java
  8. 27 0
      src/main/java/com/hz/employmentsite/services/impl/companyService/FirmServiceImpl.java
  9. 6 0
      src/main/java/com/hz/employmentsite/services/impl/companyService/IndustryServiceImpl.java
  10. 31 1
      src/main/java/com/hz/employmentsite/services/impl/system/FileServiceImpl.java
  11. 2 0
      src/main/java/com/hz/employmentsite/services/service/companyService/CompanyService.java
  12. 7 0
      src/main/java/com/hz/employmentsite/services/service/companyService/FirmService.java
  13. 3 0
      src/main/java/com/hz/employmentsite/services/service/companyService/IndustryService.java
  14. 5 1
      src/main/java/com/hz/employmentsite/services/service/system/FileService.java
  15. 664 0
      src/main/resources/mapping/PcFirmMapper.xml
  16. 10 0
      vue/src/api/companyService/company.ts
  17. 44 3
      vue/src/views/companyService/company/edit.vue
  18. 2 2
      vue/src/views/companyService/company/index.vue
  19. 1 1
      vue/src/views/jobUserManager/jobuser/edit.vue

+ 8 - 2
src/main/java/com/hz/employmentsite/controller/companyService/CompanyController.java

@@ -116,11 +116,17 @@ public class CompanyController {
     }
 
     @GetMapping("/getSiteList")
-    public BaseResponse getSiteList(){
+    public BaseResponse getSiteList() {
         List<PcSite> siteList = companyService.getSiteList();
         return RespGenerstor.success(siteList);
     }
 
+    @GetMapping("/normalFirm")
+    public BaseResponse normalFirm(@RequestParam("companyName") String companyName) {
+        CompanyVo companyVo = companyService.normalByCompanyName(companyName);
+        return RespGenerstor.success(companyVo);
+    }
+
     @GetMapping("/export")
     public BaseResponse export(HttpServletResponse response, @RequestParam(required = false) Boolean isExport,
                                @RequestParam("pageIndex") int pageIndex, @RequestParam("pageSize") Integer pageSize,
@@ -128,7 +134,7 @@ public class CompanyController {
                                @RequestParam(required = false) String companyCode, @RequestParam(required = false) String recordStatus,
                                @RequestParam(required = false) String regionCode, @RequestParam(required = false) String streetCode
     ) throws Exception {
-        PageInfo<CompanyVo> result = companyService.getList(pageIndex, pageSize, companyIDList, companyName, companyCode, recordStatus, regionCode, streetCode, null, null,null);
+        PageInfo<CompanyVo> result = companyService.getList(pageIndex, pageSize, companyIDList, companyName, companyCode, recordStatus, regionCode, streetCode, null, null, null);
         if (isExport == null || !isExport) {
             return RespGenerstor.success(result);
         } else {

+ 10 - 1
src/main/java/com/hz/employmentsite/controller/system/FileController.java

@@ -9,12 +9,16 @@ import com.hz.employmentsite.services.service.system.FileService;
 import com.hz.employmentsite.util.BASE64DecodedMultipartFile;
 import com.hz.employmentsite.vo.system.FileModel;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.io.Resource;
+import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import java.io.*;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
 import java.net.URLEncoder;
 import java.util.Base64;
 import java.util.List;
@@ -78,6 +82,11 @@ public class FileController {
         }
     }
 
+    @GetMapping("downloadApk")
+    public ResponseEntity<Resource> downloadApk() throws IOException {
+        return fileService.downloadApk();
+    }
+
     @GetMapping("delete")
     public BaseResponse<Integer> delete(@RequestParam("fileId") String fileId) throws IOException {
         return RespGenerstor.success(fileService.delete(fileId));

+ 37 - 0
src/main/java/com/hz/employmentsite/mapper/PcFirmMapper.java

@@ -0,0 +1,37 @@
+package com.hz.employmentsite.mapper;
+
+import com.hz.employmentsite.model.PcFirm;
+import com.hz.employmentsite.model.PcFirmExample;
+import com.hz.employmentsite.model.PcFirmWithBLOBs;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PcFirmMapper {
+    long countByExample(PcFirmExample example);
+
+    int deleteByExample(PcFirmExample example);
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(PcFirmWithBLOBs row);
+
+    int insertSelective(PcFirmWithBLOBs row);
+
+    List<PcFirmWithBLOBs> selectByExampleWithBLOBs(PcFirmExample example);
+
+    List<PcFirm> selectByExample(PcFirmExample example);
+
+    PcFirmWithBLOBs selectByPrimaryKey(Integer id);
+
+    int updateByExampleSelective(@Param("row") PcFirmWithBLOBs row, @Param("example") PcFirmExample example);
+
+    int updateByExampleWithBLOBs(@Param("row") PcFirmWithBLOBs row, @Param("example") PcFirmExample example);
+
+    int updateByExample(@Param("row") PcFirm row, @Param("example") PcFirmExample example);
+
+    int updateByPrimaryKeySelective(PcFirmWithBLOBs row);
+
+    int updateByPrimaryKeyWithBLOBs(PcFirmWithBLOBs row);
+
+    int updateByPrimaryKey(PcFirm row);
+}

+ 253 - 0
src/main/java/com/hz/employmentsite/model/PcFirm.java

@@ -0,0 +1,253 @@
+package com.hz.employmentsite.model;
+
+public class PcFirm {
+    private Integer id;
+
+    private String firmName;
+
+    private String operatingStatus;
+
+    private String dbrName;
+
+    private String registeredCapital;
+
+    private String paidInCapital;
+
+    private String establishmentDate;
+
+    private String examineDate;
+
+    private String operatingTerm;
+
+    private String homeProvince;
+
+    private String homeCity;
+
+    private String homeRegion;
+
+    private String lxMobile;
+
+    private String email;
+
+    private String companyCode;
+
+    private String ratepayerCode;
+
+    private String businessSignCode;
+
+    private String orgCode;
+
+    private String insuredCount;
+
+    private String firmType;
+
+    private String industry;
+
+    private String enterpriseName;
+
+    private String signAddress;
+
+    private String latestAddress;
+
+    private String website;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getFirmName() {
+        return firmName;
+    }
+
+    public void setFirmName(String firmName) {
+        this.firmName = firmName == null ? null : firmName.trim();
+    }
+
+    public String getOperatingStatus() {
+        return operatingStatus;
+    }
+
+    public void setOperatingStatus(String operatingStatus) {
+        this.operatingStatus = operatingStatus == null ? null : operatingStatus.trim();
+    }
+
+    public String getDbrName() {
+        return dbrName;
+    }
+
+    public void setDbrName(String dbrName) {
+        this.dbrName = dbrName == null ? null : dbrName.trim();
+    }
+
+    public String getRegisteredCapital() {
+        return registeredCapital;
+    }
+
+    public void setRegisteredCapital(String registeredCapital) {
+        this.registeredCapital = registeredCapital == null ? null : registeredCapital.trim();
+    }
+
+    public String getPaidInCapital() {
+        return paidInCapital;
+    }
+
+    public void setPaidInCapital(String paidInCapital) {
+        this.paidInCapital = paidInCapital == null ? null : paidInCapital.trim();
+    }
+
+    public String getEstablishmentDate() {
+        return establishmentDate;
+    }
+
+    public void setEstablishmentDate(String establishmentDate) {
+        this.establishmentDate = establishmentDate == null ? null : establishmentDate.trim();
+    }
+
+    public String getExamineDate() {
+        return examineDate;
+    }
+
+    public void setExamineDate(String examineDate) {
+        this.examineDate = examineDate == null ? null : examineDate.trim();
+    }
+
+    public String getOperatingTerm() {
+        return operatingTerm;
+    }
+
+    public void setOperatingTerm(String operatingTerm) {
+        this.operatingTerm = operatingTerm == null ? null : operatingTerm.trim();
+    }
+
+    public String getHomeProvince() {
+        return homeProvince;
+    }
+
+    public void setHomeProvince(String homeProvince) {
+        this.homeProvince = homeProvince == null ? null : homeProvince.trim();
+    }
+
+    public String getHomeCity() {
+        return homeCity;
+    }
+
+    public void setHomeCity(String homeCity) {
+        this.homeCity = homeCity == null ? null : homeCity.trim();
+    }
+
+    public String getHomeRegion() {
+        return homeRegion;
+    }
+
+    public void setHomeRegion(String homeRegion) {
+        this.homeRegion = homeRegion == null ? null : homeRegion.trim();
+    }
+
+    public String getLxMobile() {
+        return lxMobile;
+    }
+
+    public void setLxMobile(String lxMobile) {
+        this.lxMobile = lxMobile == null ? null : lxMobile.trim();
+    }
+
+    public String getEmail() {
+        return email;
+    }
+
+    public void setEmail(String email) {
+        this.email = email == null ? null : email.trim();
+    }
+
+    public String getCompanyCode() {
+        return companyCode;
+    }
+
+    public void setCompanyCode(String companyCode) {
+        this.companyCode = companyCode == null ? null : companyCode.trim();
+    }
+
+    public String getRatepayerCode() {
+        return ratepayerCode;
+    }
+
+    public void setRatepayerCode(String ratepayerCode) {
+        this.ratepayerCode = ratepayerCode == null ? null : ratepayerCode.trim();
+    }
+
+    public String getBusinessSignCode() {
+        return businessSignCode;
+    }
+
+    public void setBusinessSignCode(String businessSignCode) {
+        this.businessSignCode = businessSignCode == null ? null : businessSignCode.trim();
+    }
+
+    public String getOrgCode() {
+        return orgCode;
+    }
+
+    public void setOrgCode(String orgCode) {
+        this.orgCode = orgCode == null ? null : orgCode.trim();
+    }
+
+    public String getInsuredCount() {
+        return insuredCount;
+    }
+
+    public void setInsuredCount(String insuredCount) {
+        this.insuredCount = insuredCount == null ? null : insuredCount.trim();
+    }
+
+    public String getFirmType() {
+        return firmType;
+    }
+
+    public void setFirmType(String firmType) {
+        this.firmType = firmType == null ? null : firmType.trim();
+    }
+
+    public String getIndustry() {
+        return industry;
+    }
+
+    public void setIndustry(String industry) {
+        this.industry = industry == null ? null : industry.trim();
+    }
+
+    public String getEnterpriseName() {
+        return enterpriseName;
+    }
+
+    public void setEnterpriseName(String enterpriseName) {
+        this.enterpriseName = enterpriseName == null ? null : enterpriseName.trim();
+    }
+
+    public String getSignAddress() {
+        return signAddress;
+    }
+
+    public void setSignAddress(String signAddress) {
+        this.signAddress = signAddress == null ? null : signAddress.trim();
+    }
+
+    public String getLatestAddress() {
+        return latestAddress;
+    }
+
+    public void setLatestAddress(String latestAddress) {
+        this.latestAddress = latestAddress == null ? null : latestAddress.trim();
+    }
+
+    public String getWebsite() {
+        return website;
+    }
+
+    public void setWebsite(String website) {
+        this.website = website == null ? null : website.trim();
+    }
+}

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1939 - 0
src/main/java/com/hz/employmentsite/model/PcFirmExample.java


+ 33 - 0
src/main/java/com/hz/employmentsite/model/PcFirmWithBLOBs.java

@@ -0,0 +1,33 @@
+package com.hz.employmentsite.model;
+
+public class PcFirmWithBLOBs extends PcFirm {
+    private String moreMobile;
+
+    private String moreEmail;
+
+    private String businessScope;
+
+    public String getMoreMobile() {
+        return moreMobile;
+    }
+
+    public void setMoreMobile(String moreMobile) {
+        this.moreMobile = moreMobile == null ? null : moreMobile.trim();
+    }
+
+    public String getMoreEmail() {
+        return moreEmail;
+    }
+
+    public void setMoreEmail(String moreEmail) {
+        this.moreEmail = moreEmail == null ? null : moreEmail.trim();
+    }
+
+    public String getBusinessScope() {
+        return businessScope;
+    }
+
+    public void setBusinessScope(String businessScope) {
+        this.businessScope = businessScope == null ? null : businessScope.trim();
+    }
+}

+ 39 - 6
src/main/java/com/hz/employmentsite/services/impl/companyService/CompanyServiceImpl.java

@@ -7,6 +7,8 @@ import com.hz.employmentsite.mapper.*;
 import com.hz.employmentsite.mapper.cquery.CompanyCQuery;
 import com.hz.employmentsite.model.*;
 import com.hz.employmentsite.services.service.companyService.CompanyService;
+import com.hz.employmentsite.services.service.companyService.FirmService;
+import com.hz.employmentsite.services.service.companyService.IndustryService;
 import com.hz.employmentsite.services.service.system.DictionaryService;
 import com.hz.employmentsite.util.StringUtils;
 import com.hz.employmentsite.vo.companyService.AppCompanyPostVo;
@@ -49,20 +51,26 @@ public class CompanyServiceImpl implements CompanyService {
     @Autowired
     private PcSiteUserMapper pcSiteUserMapper;
 
+    @Autowired
+    private FirmService firmService;
+
+    @Autowired
+    private IndustryService industryService;
+
     @Override
     public PageInfo<CompanyVo> getList(Integer pageIndex, Integer pageSize,
                                        List<String> companyIDList, String companyName,
                                        String companyCode, String recordStatus,
                                        String regionCode, String streetCode,
-                                       String createUserId, String workTime,String loginUserID) {
+                                       String createUserId, String workTime, String loginUserID) {
         PageHelper.startPage(pageIndex, pageSize);
         String curLoginUserSiteID = "";
-        if(!stringUtils.IsNullOrEmpty(loginUserID)){
+        if (!stringUtils.IsNullOrEmpty(loginUserID)) {
             PcSiteUserExample siteUserExp = new PcSiteUserExample();
             siteUserExp.or().andUserIDEqualTo(loginUserID);
             curLoginUserSiteID = pcSiteUserMapper.selectByExample(siteUserExp).get(0).getSiteID();
         }
-        List<CompanyVo> dataList = companyCQuery.getList(stringUtils.ListToInSql(companyIDList), companyName, companyCode, recordStatus, regionCode, streetCode, createUserId, workTime,curLoginUserSiteID);
+        List<CompanyVo> dataList = companyCQuery.getList(stringUtils.ListToInSql(companyIDList), companyName, companyCode, recordStatus, regionCode, streetCode, createUserId, workTime, curLoginUserSiteID);
         PageInfo<CompanyVo> result = new PageInfo(dataList);
         return result;
     }
@@ -362,14 +370,39 @@ public class CompanyServiceImpl implements CompanyService {
                 } catch (ParseException e) {
                     e.printStackTrace();
                 }
-                int r=pcPostMapper.insert(post);
-                postRows[0] +=r;
+                int r = pcPostMapper.insert(post);
+                postRows[0] += r;
             });
             return postRows[0];
         }
         return null;
     }
 
+    @Override
+    public CompanyVo normalByCompanyName(String companyName) {
+        PcFirmWithBLOBs pcFirm = firmService.selectByCompanyName(companyName);
+        if (pcFirm == null) {
+            return null;
+        }
+        CompanyVo companyVo = new CompanyVo();
+
+        // 匹配数据
+        companyVo.setFrName(pcFirm.getDbrName());
+        companyVo.setRegisteredCapital(Integer.valueOf(pcFirm.getRegisteredCapital()));
+        companyVo.setCompanyCode(pcFirm.getCompanyCode());
+        companyVo.setInsuredCount(Integer.valueOf(pcFirm.getInsuredCount()));
+        companyVo.setUserMobile(pcFirm.getLxMobile());
+        companyVo.setCompanyEmail(pcFirm.getEmail());
+        companyVo.setCompanyAddress(pcFirm.getLatestAddress());
+        companyVo.setBusinScope(pcFirm.getBusinessScope());
+        if (pcFirm.getIndustry() != null && !pcFirm.getIndustry().isBlank()) {
+            // 获取行业数据
+            List<PcIndustry> allList = industryService.getAllList();
+            PcIndustry pcIndustry = allList.stream().filter(item -> item.getIndustryName().equals(pcFirm.getIndustry())).findFirst().orElse(new PcIndustry());
+            companyVo.setIndustryID(pcIndustry.getIndustryId());
+            companyVo.setIndustryName(pcIndustry.getIndustryName());
+        }
 
-
+        return companyVo;
+    }
 }

+ 27 - 0
src/main/java/com/hz/employmentsite/services/impl/companyService/FirmServiceImpl.java

@@ -0,0 +1,27 @@
+package com.hz.employmentsite.services.impl.companyService;
+
+import com.hz.employmentsite.mapper.PcFirmMapper;
+import com.hz.employmentsite.model.PcFirmExample;
+import com.hz.employmentsite.model.PcFirmWithBLOBs;
+import com.hz.employmentsite.services.service.companyService.FirmService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service("FirmService")
+public class FirmServiceImpl implements FirmService {
+    @Autowired
+    private PcFirmMapper pcFirmMapper;
+
+    @Override
+    public PcFirmWithBLOBs selectByCompanyName(String companyName) {
+        PcFirmExample pcFirmExample = new PcFirmExample();
+        pcFirmExample.or().andFirmNameEqualTo(companyName);
+        List<PcFirmWithBLOBs> pcFirms = pcFirmMapper.selectByExampleWithBLOBs(pcFirmExample);
+        if (pcFirms.isEmpty()) {
+            return null;
+        }
+        return pcFirms.get(0);
+    }
+}

+ 6 - 0
src/main/java/com/hz/employmentsite/services/impl/companyService/IndustryServiceImpl.java

@@ -16,6 +16,12 @@ public class IndustryServiceImpl implements IndustryService {
     @Autowired
     private PcIndustryMapper pcIndustryMapper;
 
+    @Override
+    public List<PcIndustry> getAllList() {
+        PcIndustryExample industryExample = new PcIndustryExample();
+        return pcIndustryMapper.selectByExample(industryExample);
+    }
+
     @Override
     public List<SysDictionaryItem> getList() {
         List<SysDictionaryItem> list = new ArrayList<>();

+ 31 - 1
src/main/java/com/hz/employmentsite/services/impl/system/FileServiceImpl.java

@@ -14,16 +14,24 @@ import org.apache.commons.net.ftp.FTPFile;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.io.ByteArrayResource;
+import org.springframework.core.io.Resource;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Service;
 import org.springframework.web.multipart.MultipartFile;
 
 import java.io.*;
+import java.net.URLEncoder;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.time.LocalDateTime;
 import java.time.format.DateTimeFormatter;
-import java.util.*;
+import java.util.Date;
+import java.util.List;
+import java.util.UUID;
 
 @Service("FileService")
 public class FileServiceImpl implements FileService {
@@ -178,6 +186,28 @@ public class FileServiceImpl implements FileService {
         }
     }
 
+    @Override
+    public ResponseEntity<Resource> downloadApk() throws IOException {
+        // 从服务器获取APK文件
+        String apkFilePath = appConfig.staticLocations.replace("file:", "") + "apk/app.apk";
+        File apkFile = new File(apkFilePath);
+
+        // 创建文件资源对象
+        Path path = Paths.get(apkFile.getAbsolutePath());
+        ByteArrayResource resource = new ByteArrayResource(Files.readAllBytes(path));
+
+        // 设置下载响应头
+        HttpHeaders headers = new HttpHeaders();
+        headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename*=UTF-8''" + URLEncoder.encode("惠州市就业驿站管理系统.apk", "UTF-8"));
+
+        // 返回文件资源对象和响应头
+        return ResponseEntity.ok()
+                .headers(headers)
+                .contentLength(apkFile.length())
+                .contentType(MediaType.APPLICATION_OCTET_STREAM)
+                .body(resource);
+    }
+
     @Override
     public Integer delete(String fileId) throws IOException {
         CfFile cfFile = cfFileMapper.selectByPrimaryKey(fileId);

+ 2 - 0
src/main/java/com/hz/employmentsite/services/service/companyService/CompanyService.java

@@ -29,4 +29,6 @@ public interface CompanyService {
     List<PcSite> getSiteList();
 
     Integer saveAppCompanyPost(AppCompanyPostVo data, String userId);
+
+    CompanyVo normalByCompanyName(String companyName);
 }

+ 7 - 0
src/main/java/com/hz/employmentsite/services/service/companyService/FirmService.java

@@ -0,0 +1,7 @@
+package com.hz.employmentsite.services.service.companyService;
+
+import com.hz.employmentsite.model.PcFirmWithBLOBs;
+
+public interface FirmService {
+    PcFirmWithBLOBs selectByCompanyName(String companyName);
+}

+ 3 - 0
src/main/java/com/hz/employmentsite/services/service/companyService/IndustryService.java

@@ -1,10 +1,13 @@
 package com.hz.employmentsite.services.service.companyService;
 
+import com.hz.employmentsite.model.PcIndustry;
 import com.hz.employmentsite.model.SysDictionaryItem;
 
 import java.util.List;
 
 public interface IndustryService {
+    List<PcIndustry> getAllList();
+
     List<SysDictionaryItem> getList();
 
     List<SysDictionaryItem> getListByParentIndustryID(String industryID);

+ 5 - 1
src/main/java/com/hz/employmentsite/services/service/system/FileService.java

@@ -2,6 +2,8 @@ package com.hz.employmentsite.services.service.system;
 
 import com.hz.employmentsite.model.CfFile;
 import com.hz.employmentsite.vo.system.FileModel;
+import org.springframework.core.io.Resource;
+import org.springframework.http.ResponseEntity;
 import org.springframework.web.multipart.MultipartFile;
 
 import java.io.FileNotFoundException;
@@ -15,12 +17,14 @@ public interface FileService {
 
     CfFile getFileByID(String fileID);
 
-    Integer saveFile(MultipartFile[] files, String fileRefID, Integer fileType, String userId,Integer isSingle) throws Exception;
+    Integer saveFile(MultipartFile[] files, String fileRefID, Integer fileType, String userId, Integer isSingle) throws Exception;
 
     CfFile downFtpFile(String fileId, OutputStream os);
 
     void downloadTempFile(String fileName, OutputStream os) throws FileNotFoundException;
 
+    ResponseEntity<Resource> downloadApk() throws IOException;
+
     Integer delete(String fileId) throws IOException;
 
 

+ 664 - 0
src/main/resources/mapping/PcFirmMapper.xml

@@ -0,0 +1,664 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hz.employmentsite.mapper.PcFirmMapper">
+    <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcFirm">
+        <id column="id" jdbcType="INTEGER" property="id"/>
+        <result column="FirmName" jdbcType="VARCHAR" property="firmName"/>
+        <result column="OperatingStatus" jdbcType="VARCHAR" property="operatingStatus"/>
+        <result column="DbrName" jdbcType="VARCHAR" property="dbrName"/>
+        <result column="RegisteredCapital" jdbcType="VARCHAR" property="registeredCapital"/>
+        <result column="PaidInCapital" jdbcType="VARCHAR" property="paidInCapital"/>
+        <result column="EstablishmentDate" jdbcType="VARCHAR" property="establishmentDate"/>
+        <result column="ExamineDate" jdbcType="VARCHAR" property="examineDate"/>
+        <result column="OperatingTerm" jdbcType="VARCHAR" property="operatingTerm"/>
+        <result column="HomeProvince" jdbcType="VARCHAR" property="homeProvince"/>
+        <result column="HomeCity" jdbcType="VARCHAR" property="homeCity"/>
+        <result column="HomeRegion" jdbcType="VARCHAR" property="homeRegion"/>
+        <result column="LxMobile" jdbcType="VARCHAR" property="lxMobile"/>
+        <result column="Email" jdbcType="VARCHAR" property="email"/>
+        <result column="CompanyCode" jdbcType="VARCHAR" property="companyCode"/>
+        <result column="RatepayerCode" jdbcType="VARCHAR" property="ratepayerCode"/>
+        <result column="BusinessSignCode" jdbcType="VARCHAR" property="businessSignCode"/>
+        <result column="OrgCode" jdbcType="VARCHAR" property="orgCode"/>
+        <result column="InsuredCount" jdbcType="VARCHAR" property="insuredCount"/>
+        <result column="FirmType" jdbcType="VARCHAR" property="firmType"/>
+        <result column="Industry" jdbcType="VARCHAR" property="industry"/>
+        <result column="EnterpriseName" jdbcType="VARCHAR" property="enterpriseName"/>
+        <result column="SignAddress" jdbcType="VARCHAR" property="signAddress"/>
+        <result column="LatestAddress" jdbcType="VARCHAR" property="latestAddress"/>
+        <result column="Website" jdbcType="VARCHAR" property="website"/>
+    </resultMap>
+    <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hz.employmentsite.model.PcFirmWithBLOBs">
+        <result column="MoreMobile" jdbcType="LONGVARCHAR" property="moreMobile"/>
+        <result column="MoreEmail" jdbcType="LONGVARCHAR" property="moreEmail"/>
+        <result column="BusinessScope" jdbcType="LONGVARCHAR" property="businessScope"/>
+    </resultMap>
+    <sql id="Example_Where_Clause">
+        <where>
+            <foreach collection="oredCriteria" item="criteria" separator="or">
+                <if test="criteria.valid">
+                    <trim prefix="(" prefixOverrides="and" suffix=")">
+                        <foreach collection="criteria.criteria" item="criterion">
+                            <choose>
+                                <when test="criterion.noValue">
+                                    and ${criterion.condition}
+                                </when>
+                                <when test="criterion.singleValue">
+                                    and ${criterion.condition} #{criterion.value}
+                                </when>
+                                <when test="criterion.betweenValue">
+                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                                </when>
+                                <when test="criterion.listValue">
+                                    and ${criterion.condition}
+                                    <foreach close=")" collection="criterion.value" item="listItem" open="("
+                                             separator=",">
+                                        #{listItem}
+                                    </foreach>
+                                </when>
+                            </choose>
+                        </foreach>
+                    </trim>
+                </if>
+            </foreach>
+        </where>
+    </sql>
+    <sql id="Update_By_Example_Where_Clause">
+        <where>
+            <foreach collection="example.oredCriteria" item="criteria" separator="or">
+                <if test="criteria.valid">
+                    <trim prefix="(" prefixOverrides="and" suffix=")">
+                        <foreach collection="criteria.criteria" item="criterion">
+                            <choose>
+                                <when test="criterion.noValue">
+                                    and ${criterion.condition}
+                                </when>
+                                <when test="criterion.singleValue">
+                                    and ${criterion.condition} #{criterion.value}
+                                </when>
+                                <when test="criterion.betweenValue">
+                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                                </when>
+                                <when test="criterion.listValue">
+                                    and ${criterion.condition}
+                                    <foreach close=")" collection="criterion.value" item="listItem" open="("
+                                             separator=",">
+                                        #{listItem}
+                                    </foreach>
+                                </when>
+                            </choose>
+                        </foreach>
+                    </trim>
+                </if>
+            </foreach>
+        </where>
+    </sql>
+    <sql id="Base_Column_List">
+        id
+        , FirmName, OperatingStatus, DbrName, RegisteredCapital, PaidInCapital, EstablishmentDate,
+    ExamineDate, OperatingTerm, HomeProvince, HomeCity, HomeRegion, LxMobile, Email, 
+    CompanyCode, RatepayerCode, BusinessSignCode, OrgCode, InsuredCount, FirmType, Industry, 
+    EnterpriseName, SignAddress, LatestAddress, Website, BusinessScope
+    </sql>
+    <sql id="Blob_Column_List">
+        MoreMobile
+        , MoreEmail, BusinessScope
+    </sql>
+    <select id="selectByExampleWithBLOBs" parameterType="com.hz.employmentsite.model.PcFirmExample"
+            resultMap="ResultMapWithBLOBs">
+        select
+        <if test="distinct">
+            distinct
+        </if>
+        <include refid="Base_Column_List"/>
+        ,
+        <include refid="Blob_Column_List"/>
+        from pc_firm
+        <if test="_parameter != null">
+            <include refid="Example_Where_Clause"/>
+        </if>
+        <if test="orderByClause != null">
+            order by ${orderByClause}
+        </if>
+    </select>
+    <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcFirmExample" resultMap="BaseResultMap">
+        select
+        <if test="distinct">
+            distinct
+        </if>
+        <include refid="Base_Column_List"/>
+        from pc_firm
+        <if test="_parameter != null">
+            <include refid="Example_Where_Clause"/>
+        </if>
+        <if test="orderByClause != null">
+            order by ${orderByClause}
+        </if>
+    </select>
+    <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
+        select
+        <include refid="Base_Column_List"/>
+        ,
+        <include refid="Blob_Column_List"/>
+        from pc_firm
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete
+        from pc_firm
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcFirmExample">
+        delete from pc_firm
+        <if test="_parameter != null">
+            <include refid="Example_Where_Clause"/>
+        </if>
+    </delete>
+    <insert id="insert" parameterType="com.hz.employmentsite.model.PcFirmWithBLOBs">
+        insert into pc_firm (id, FirmName, OperatingStatus,
+                             DbrName, RegisteredCapital, PaidInCapital,
+                             EstablishmentDate, ExamineDate, OperatingTerm,
+                             HomeProvince, HomeCity, HomeRegion,
+                             LxMobile, Email, CompanyCode,
+                             RatepayerCode, BusinessSignCode, OrgCode,
+                             InsuredCount, FirmType, Industry,
+                             EnterpriseName, SignAddress, LatestAddress,
+                             Website, MoreMobile, MoreEmail,
+                             BusinessScope)
+        values (#{id,jdbcType=INTEGER}, #{firmName,jdbcType=VARCHAR}, #{operatingStatus,jdbcType=VARCHAR},
+                #{dbrName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=VARCHAR}, #{paidInCapital,jdbcType=VARCHAR},
+                #{establishmentDate,jdbcType=VARCHAR}, #{examineDate,jdbcType=VARCHAR},
+                #{operatingTerm,jdbcType=VARCHAR},
+                #{homeProvince,jdbcType=VARCHAR}, #{homeCity,jdbcType=VARCHAR}, #{homeRegion,jdbcType=VARCHAR},
+                #{lxMobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{companyCode,jdbcType=VARCHAR},
+                #{ratepayerCode,jdbcType=VARCHAR}, #{businessSignCode,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR},
+                #{insuredCount,jdbcType=VARCHAR}, #{firmType,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR},
+                #{enterpriseName,jdbcType=VARCHAR}, #{signAddress,jdbcType=VARCHAR}, #{latestAddress,jdbcType=VARCHAR},
+                #{website,jdbcType=VARCHAR}, #{moreMobile,jdbcType=LONGVARCHAR}, #{moreEmail,jdbcType=LONGVARCHAR},
+                #{businessScope,jdbcType=LONGVARCHAR})
+    </insert>
+    <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcFirmWithBLOBs">
+        insert into pc_firm
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                id,
+            </if>
+            <if test="firmName != null">
+                FirmName,
+            </if>
+            <if test="operatingStatus != null">
+                OperatingStatus,
+            </if>
+            <if test="dbrName != null">
+                DbrName,
+            </if>
+            <if test="registeredCapital != null">
+                RegisteredCapital,
+            </if>
+            <if test="paidInCapital != null">
+                PaidInCapital,
+            </if>
+            <if test="establishmentDate != null">
+                EstablishmentDate,
+            </if>
+            <if test="examineDate != null">
+                ExamineDate,
+            </if>
+            <if test="operatingTerm != null">
+                OperatingTerm,
+            </if>
+            <if test="homeProvince != null">
+                HomeProvince,
+            </if>
+            <if test="homeCity != null">
+                HomeCity,
+            </if>
+            <if test="homeRegion != null">
+                HomeRegion,
+            </if>
+            <if test="lxMobile != null">
+                LxMobile,
+            </if>
+            <if test="email != null">
+                Email,
+            </if>
+            <if test="companyCode != null">
+                CompanyCode,
+            </if>
+            <if test="ratepayerCode != null">
+                RatepayerCode,
+            </if>
+            <if test="businessSignCode != null">
+                BusinessSignCode,
+            </if>
+            <if test="orgCode != null">
+                OrgCode,
+            </if>
+            <if test="insuredCount != null">
+                InsuredCount,
+            </if>
+            <if test="firmType != null">
+                FirmType,
+            </if>
+            <if test="industry != null">
+                Industry,
+            </if>
+            <if test="enterpriseName != null">
+                EnterpriseName,
+            </if>
+            <if test="signAddress != null">
+                SignAddress,
+            </if>
+            <if test="latestAddress != null">
+                LatestAddress,
+            </if>
+            <if test="website != null">
+                Website,
+            </if>
+            <if test="moreMobile != null">
+                MoreMobile,
+            </if>
+            <if test="moreEmail != null">
+                MoreEmail,
+            </if>
+            <if test="businessScope != null">
+                BusinessScope,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="firmName != null">
+                #{firmName,jdbcType=VARCHAR},
+            </if>
+            <if test="operatingStatus != null">
+                #{operatingStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="dbrName != null">
+                #{dbrName,jdbcType=VARCHAR},
+            </if>
+            <if test="registeredCapital != null">
+                #{registeredCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="paidInCapital != null">
+                #{paidInCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="establishmentDate != null">
+                #{establishmentDate,jdbcType=VARCHAR},
+            </if>
+            <if test="examineDate != null">
+                #{examineDate,jdbcType=VARCHAR},
+            </if>
+            <if test="operatingTerm != null">
+                #{operatingTerm,jdbcType=VARCHAR},
+            </if>
+            <if test="homeProvince != null">
+                #{homeProvince,jdbcType=VARCHAR},
+            </if>
+            <if test="homeCity != null">
+                #{homeCity,jdbcType=VARCHAR},
+            </if>
+            <if test="homeRegion != null">
+                #{homeRegion,jdbcType=VARCHAR},
+            </if>
+            <if test="lxMobile != null">
+                #{lxMobile,jdbcType=VARCHAR},
+            </if>
+            <if test="email != null">
+                #{email,jdbcType=VARCHAR},
+            </if>
+            <if test="companyCode != null">
+                #{companyCode,jdbcType=VARCHAR},
+            </if>
+            <if test="ratepayerCode != null">
+                #{ratepayerCode,jdbcType=VARCHAR},
+            </if>
+            <if test="businessSignCode != null">
+                #{businessSignCode,jdbcType=VARCHAR},
+            </if>
+            <if test="orgCode != null">
+                #{orgCode,jdbcType=VARCHAR},
+            </if>
+            <if test="insuredCount != null">
+                #{insuredCount,jdbcType=VARCHAR},
+            </if>
+            <if test="firmType != null">
+                #{firmType,jdbcType=VARCHAR},
+            </if>
+            <if test="industry != null">
+                #{industry,jdbcType=VARCHAR},
+            </if>
+            <if test="enterpriseName != null">
+                #{enterpriseName,jdbcType=VARCHAR},
+            </if>
+            <if test="signAddress != null">
+                #{signAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="latestAddress != null">
+                #{latestAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="website != null">
+                #{website,jdbcType=VARCHAR},
+            </if>
+            <if test="moreMobile != null">
+                #{moreMobile,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="moreEmail != null">
+                #{moreEmail,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="businessScope != null">
+                #{businessScope,jdbcType=LONGVARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <select id="countByExample" parameterType="com.hz.employmentsite.model.PcFirmExample" resultType="java.lang.Long">
+        select count(*) from pc_firm
+        <if test="_parameter != null">
+            <include refid="Example_Where_Clause"/>
+        </if>
+    </select>
+    <update id="updateByExampleSelective" parameterType="map">
+        update pc_firm
+        <set>
+            <if test="row.id != null">
+                id = #{row.id,jdbcType=INTEGER},
+            </if>
+            <if test="row.firmName != null">
+                FirmName = #{row.firmName,jdbcType=VARCHAR},
+            </if>
+            <if test="row.operatingStatus != null">
+                OperatingStatus = #{row.operatingStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="row.dbrName != null">
+                DbrName = #{row.dbrName,jdbcType=VARCHAR},
+            </if>
+            <if test="row.registeredCapital != null">
+                RegisteredCapital = #{row.registeredCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="row.paidInCapital != null">
+                PaidInCapital = #{row.paidInCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="row.establishmentDate != null">
+                EstablishmentDate = #{row.establishmentDate,jdbcType=VARCHAR},
+            </if>
+            <if test="row.examineDate != null">
+                ExamineDate = #{row.examineDate,jdbcType=VARCHAR},
+            </if>
+            <if test="row.operatingTerm != null">
+                OperatingTerm = #{row.operatingTerm,jdbcType=VARCHAR},
+            </if>
+            <if test="row.homeProvince != null">
+                HomeProvince = #{row.homeProvince,jdbcType=VARCHAR},
+            </if>
+            <if test="row.homeCity != null">
+                HomeCity = #{row.homeCity,jdbcType=VARCHAR},
+            </if>
+            <if test="row.homeRegion != null">
+                HomeRegion = #{row.homeRegion,jdbcType=VARCHAR},
+            </if>
+            <if test="row.lxMobile != null">
+                LxMobile = #{row.lxMobile,jdbcType=VARCHAR},
+            </if>
+            <if test="row.email != null">
+                Email = #{row.email,jdbcType=VARCHAR},
+            </if>
+            <if test="row.companyCode != null">
+                CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
+            </if>
+            <if test="row.ratepayerCode != null">
+                RatepayerCode = #{row.ratepayerCode,jdbcType=VARCHAR},
+            </if>
+            <if test="row.businessSignCode != null">
+                BusinessSignCode = #{row.businessSignCode,jdbcType=VARCHAR},
+            </if>
+            <if test="row.orgCode != null">
+                OrgCode = #{row.orgCode,jdbcType=VARCHAR},
+            </if>
+            <if test="row.insuredCount != null">
+                InsuredCount = #{row.insuredCount,jdbcType=VARCHAR},
+            </if>
+            <if test="row.firmType != null">
+                FirmType = #{row.firmType,jdbcType=VARCHAR},
+            </if>
+            <if test="row.industry != null">
+                Industry = #{row.industry,jdbcType=VARCHAR},
+            </if>
+            <if test="row.enterpriseName != null">
+                EnterpriseName = #{row.enterpriseName,jdbcType=VARCHAR},
+            </if>
+            <if test="row.signAddress != null">
+                SignAddress = #{row.signAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="row.latestAddress != null">
+                LatestAddress = #{row.latestAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="row.website != null">
+                Website = #{row.website,jdbcType=VARCHAR},
+            </if>
+            <if test="row.moreMobile != null">
+                MoreMobile = #{row.moreMobile,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="row.moreEmail != null">
+                MoreEmail = #{row.moreEmail,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="row.businessScope != null">
+                BusinessScope = #{row.businessScope,jdbcType=LONGVARCHAR},
+            </if>
+        </set>
+        <if test="example != null">
+            <include refid="Update_By_Example_Where_Clause"/>
+        </if>
+    </update>
+    <update id="updateByExampleWithBLOBs" parameterType="map">
+        update pc_firm
+        set id = #{row.id,jdbcType=INTEGER},
+        FirmName = #{row.firmName,jdbcType=VARCHAR},
+        OperatingStatus = #{row.operatingStatus,jdbcType=VARCHAR},
+        DbrName = #{row.dbrName,jdbcType=VARCHAR},
+        RegisteredCapital = #{row.registeredCapital,jdbcType=VARCHAR},
+        PaidInCapital = #{row.paidInCapital,jdbcType=VARCHAR},
+        EstablishmentDate = #{row.establishmentDate,jdbcType=VARCHAR},
+        ExamineDate = #{row.examineDate,jdbcType=VARCHAR},
+        OperatingTerm = #{row.operatingTerm,jdbcType=VARCHAR},
+        HomeProvince = #{row.homeProvince,jdbcType=VARCHAR},
+        HomeCity = #{row.homeCity,jdbcType=VARCHAR},
+        HomeRegion = #{row.homeRegion,jdbcType=VARCHAR},
+        LxMobile = #{row.lxMobile,jdbcType=VARCHAR},
+        Email = #{row.email,jdbcType=VARCHAR},
+        CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
+        RatepayerCode = #{row.ratepayerCode,jdbcType=VARCHAR},
+        BusinessSignCode = #{row.businessSignCode,jdbcType=VARCHAR},
+        OrgCode = #{row.orgCode,jdbcType=VARCHAR},
+        InsuredCount = #{row.insuredCount,jdbcType=VARCHAR},
+        FirmType = #{row.firmType,jdbcType=VARCHAR},
+        Industry = #{row.industry,jdbcType=VARCHAR},
+        EnterpriseName = #{row.enterpriseName,jdbcType=VARCHAR},
+        SignAddress = #{row.signAddress,jdbcType=VARCHAR},
+        LatestAddress = #{row.latestAddress,jdbcType=VARCHAR},
+        Website = #{row.website,jdbcType=VARCHAR},
+        MoreMobile = #{row.moreMobile,jdbcType=LONGVARCHAR},
+        MoreEmail = #{row.moreEmail,jdbcType=LONGVARCHAR},
+        BusinessScope = #{row.businessScope,jdbcType=LONGVARCHAR}
+        <if test="example != null">
+            <include refid="Update_By_Example_Where_Clause"/>
+        </if>
+    </update>
+    <update id="updateByExample" parameterType="map">
+        update pc_firm
+        set id = #{row.id,jdbcType=INTEGER},
+        FirmName = #{row.firmName,jdbcType=VARCHAR},
+        OperatingStatus = #{row.operatingStatus,jdbcType=VARCHAR},
+        DbrName = #{row.dbrName,jdbcType=VARCHAR},
+        RegisteredCapital = #{row.registeredCapital,jdbcType=VARCHAR},
+        PaidInCapital = #{row.paidInCapital,jdbcType=VARCHAR},
+        EstablishmentDate = #{row.establishmentDate,jdbcType=VARCHAR},
+        ExamineDate = #{row.examineDate,jdbcType=VARCHAR},
+        OperatingTerm = #{row.operatingTerm,jdbcType=VARCHAR},
+        HomeProvince = #{row.homeProvince,jdbcType=VARCHAR},
+        HomeCity = #{row.homeCity,jdbcType=VARCHAR},
+        HomeRegion = #{row.homeRegion,jdbcType=VARCHAR},
+        LxMobile = #{row.lxMobile,jdbcType=VARCHAR},
+        Email = #{row.email,jdbcType=VARCHAR},
+        CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
+        RatepayerCode = #{row.ratepayerCode,jdbcType=VARCHAR},
+        BusinessSignCode = #{row.businessSignCode,jdbcType=VARCHAR},
+        OrgCode = #{row.orgCode,jdbcType=VARCHAR},
+        InsuredCount = #{row.insuredCount,jdbcType=VARCHAR},
+        FirmType = #{row.firmType,jdbcType=VARCHAR},
+        Industry = #{row.industry,jdbcType=VARCHAR},
+        EnterpriseName = #{row.enterpriseName,jdbcType=VARCHAR},
+        SignAddress = #{row.signAddress,jdbcType=VARCHAR},
+        LatestAddress = #{row.latestAddress,jdbcType=VARCHAR},
+        Website = #{row.website,jdbcType=VARCHAR}
+        <if test="example != null">
+            <include refid="Update_By_Example_Where_Clause"/>
+        </if>
+    </update>
+    <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcFirmWithBLOBs">
+        update pc_firm
+        <set>
+            <if test="firmName != null">
+                FirmName = #{firmName,jdbcType=VARCHAR},
+            </if>
+            <if test="operatingStatus != null">
+                OperatingStatus = #{operatingStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="dbrName != null">
+                DbrName = #{dbrName,jdbcType=VARCHAR},
+            </if>
+            <if test="registeredCapital != null">
+                RegisteredCapital = #{registeredCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="paidInCapital != null">
+                PaidInCapital = #{paidInCapital,jdbcType=VARCHAR},
+            </if>
+            <if test="establishmentDate != null">
+                EstablishmentDate = #{establishmentDate,jdbcType=VARCHAR},
+            </if>
+            <if test="examineDate != null">
+                ExamineDate = #{examineDate,jdbcType=VARCHAR},
+            </if>
+            <if test="operatingTerm != null">
+                OperatingTerm = #{operatingTerm,jdbcType=VARCHAR},
+            </if>
+            <if test="homeProvince != null">
+                HomeProvince = #{homeProvince,jdbcType=VARCHAR},
+            </if>
+            <if test="homeCity != null">
+                HomeCity = #{homeCity,jdbcType=VARCHAR},
+            </if>
+            <if test="homeRegion != null">
+                HomeRegion = #{homeRegion,jdbcType=VARCHAR},
+            </if>
+            <if test="lxMobile != null">
+                LxMobile = #{lxMobile,jdbcType=VARCHAR},
+            </if>
+            <if test="email != null">
+                Email = #{email,jdbcType=VARCHAR},
+            </if>
+            <if test="companyCode != null">
+                CompanyCode = #{companyCode,jdbcType=VARCHAR},
+            </if>
+            <if test="ratepayerCode != null">
+                RatepayerCode = #{ratepayerCode,jdbcType=VARCHAR},
+            </if>
+            <if test="businessSignCode != null">
+                BusinessSignCode = #{businessSignCode,jdbcType=VARCHAR},
+            </if>
+            <if test="orgCode != null">
+                OrgCode = #{orgCode,jdbcType=VARCHAR},
+            </if>
+            <if test="insuredCount != null">
+                InsuredCount = #{insuredCount,jdbcType=VARCHAR},
+            </if>
+            <if test="firmType != null">
+                FirmType = #{firmType,jdbcType=VARCHAR},
+            </if>
+            <if test="industry != null">
+                Industry = #{industry,jdbcType=VARCHAR},
+            </if>
+            <if test="enterpriseName != null">
+                EnterpriseName = #{enterpriseName,jdbcType=VARCHAR},
+            </if>
+            <if test="signAddress != null">
+                SignAddress = #{signAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="latestAddress != null">
+                LatestAddress = #{latestAddress,jdbcType=VARCHAR},
+            </if>
+            <if test="website != null">
+                Website = #{website,jdbcType=VARCHAR},
+            </if>
+            <if test="moreMobile != null">
+                MoreMobile = #{moreMobile,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="moreEmail != null">
+                MoreEmail = #{moreEmail,jdbcType=LONGVARCHAR},
+            </if>
+            <if test="businessScope != null">
+                BusinessScope = #{businessScope,jdbcType=LONGVARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hz.employmentsite.model.PcFirmWithBLOBs">
+        update pc_firm
+        set FirmName          = #{firmName,jdbcType=VARCHAR},
+            OperatingStatus   = #{operatingStatus,jdbcType=VARCHAR},
+            DbrName           = #{dbrName,jdbcType=VARCHAR},
+            RegisteredCapital = #{registeredCapital,jdbcType=VARCHAR},
+            PaidInCapital     = #{paidInCapital,jdbcType=VARCHAR},
+            EstablishmentDate = #{establishmentDate,jdbcType=VARCHAR},
+            ExamineDate       = #{examineDate,jdbcType=VARCHAR},
+            OperatingTerm     = #{operatingTerm,jdbcType=VARCHAR},
+            HomeProvince      = #{homeProvince,jdbcType=VARCHAR},
+            HomeCity          = #{homeCity,jdbcType=VARCHAR},
+            HomeRegion        = #{homeRegion,jdbcType=VARCHAR},
+            LxMobile          = #{lxMobile,jdbcType=VARCHAR},
+            Email             = #{email,jdbcType=VARCHAR},
+            CompanyCode       = #{companyCode,jdbcType=VARCHAR},
+            RatepayerCode     = #{ratepayerCode,jdbcType=VARCHAR},
+            BusinessSignCode  = #{businessSignCode,jdbcType=VARCHAR},
+            OrgCode           = #{orgCode,jdbcType=VARCHAR},
+            InsuredCount      = #{insuredCount,jdbcType=VARCHAR},
+            FirmType          = #{firmType,jdbcType=VARCHAR},
+            Industry          = #{industry,jdbcType=VARCHAR},
+            EnterpriseName    = #{enterpriseName,jdbcType=VARCHAR},
+            SignAddress       = #{signAddress,jdbcType=VARCHAR},
+            LatestAddress     = #{latestAddress,jdbcType=VARCHAR},
+            Website           = #{website,jdbcType=VARCHAR},
+            MoreMobile        = #{moreMobile,jdbcType=LONGVARCHAR},
+            MoreEmail         = #{moreEmail,jdbcType=LONGVARCHAR},
+            BusinessScope     = #{businessScope,jdbcType=LONGVARCHAR}
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcFirm">
+        update pc_firm
+        set FirmName          = #{firmName,jdbcType=VARCHAR},
+            OperatingStatus   = #{operatingStatus,jdbcType=VARCHAR},
+            DbrName           = #{dbrName,jdbcType=VARCHAR},
+            RegisteredCapital = #{registeredCapital,jdbcType=VARCHAR},
+            PaidInCapital     = #{paidInCapital,jdbcType=VARCHAR},
+            EstablishmentDate = #{establishmentDate,jdbcType=VARCHAR},
+            ExamineDate       = #{examineDate,jdbcType=VARCHAR},
+            OperatingTerm     = #{operatingTerm,jdbcType=VARCHAR},
+            HomeProvince      = #{homeProvince,jdbcType=VARCHAR},
+            HomeCity          = #{homeCity,jdbcType=VARCHAR},
+            HomeRegion        = #{homeRegion,jdbcType=VARCHAR},
+            LxMobile          = #{lxMobile,jdbcType=VARCHAR},
+            Email             = #{email,jdbcType=VARCHAR},
+            CompanyCode       = #{companyCode,jdbcType=VARCHAR},
+            RatepayerCode     = #{ratepayerCode,jdbcType=VARCHAR},
+            BusinessSignCode  = #{businessSignCode,jdbcType=VARCHAR},
+            OrgCode           = #{orgCode,jdbcType=VARCHAR},
+            InsuredCount      = #{insuredCount,jdbcType=VARCHAR},
+            FirmType          = #{firmType,jdbcType=VARCHAR},
+            Industry          = #{industry,jdbcType=VARCHAR},
+            EnterpriseName    = #{enterpriseName,jdbcType=VARCHAR},
+            SignAddress       = #{signAddress,jdbcType=VARCHAR},
+            LatestAddress     = #{latestAddress,jdbcType=VARCHAR},
+            Website           = #{website,jdbcType=VARCHAR}
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+</mapper>

+ 10 - 0
vue/src/api/companyService/company.ts

@@ -50,3 +50,13 @@ export function del(ids) {
     },
   );
 }
+
+export function normalFirmByCompanyName(companyName: string) {
+  return request({
+    url: 'companyService/company/normalFirm',
+    method: 'get',
+    params: {companyName}
+  }, {
+    isNew: true
+  })
+}

+ 44 - 3
vue/src/views/companyService/company/edit.vue

@@ -10,7 +10,12 @@
             name="companyName"
             :rules="[{ required: true, message: '请输入企业名称!' }]"
           >
-            <a-input v-model:value="dataModel.companyName" placeholder=""/>
+            <a-input v-model:value="dataModel.companyName" placeholder=""
+                     :class="{'companyNameIpt': operationType == 'add'}"/>
+            <a-button v-if="operationType == 'add'" :loading="normalBtnLoading" style="margin-left: 10px"
+                      :disabled="!dataModel.companyName"
+                      @click="normalFirm">同步信息
+            </a-button>
           </a-form-item>
         </a-col>
         <a-col :span="8">
@@ -374,7 +379,7 @@ import {useTabsViewStore} from '@/store/modules/tabsView';
 import type {SelectProps} from 'ant-design-vue';
 import BUploadFile from '@/components/file/uploadFile.vue';
 import {getRegionCodeList, getStreetCodeList} from "@/api/system/area/index";
-import {save, getCompanyById} from '@/api/companyService/company';
+import {save, getCompanyById, normalFirmByCompanyName} from '@/api/companyService/company';
 import {getSiteByID, getSiteList} from '@/api/baseSettings/siteInfo';
 import {getSysDictionaryList} from '@/api/system/dictionary';
 import {getInfo} from '@/api/account';
@@ -401,6 +406,8 @@ export default defineComponent(
       const showPicker = ref('1');
       const showDateTime = ref<any>();
       const fileList = ref();
+      const operationType = ref("");
+      const normalBtnLoading = ref(false);
       const setFileList = (files) => {
         fileList.value = files;
       };
@@ -589,6 +596,24 @@ export default defineComponent(
         }
       }
 
+      // 同步获取企业信息
+      function normalFirm() {
+        if (!formState.dataModel.companyName) {
+          return;
+        }
+        normalBtnLoading.value = true
+        normalFirmByCompanyName(formState.dataModel.companyName).then((result) => {
+          message.info('匹配完毕');
+          Object.keys(result).forEach(key => {
+            if (result[key] != null) {
+              formState.dataModel[key] = result[key];
+            }
+          })
+        }).finally(() => {
+          normalBtnLoading.value = false
+        })
+      }
+
       const loadData = (id: any) => {
         getAllSites();
         getRegionList();
@@ -634,13 +659,29 @@ export default defineComponent(
         getFirstIndustryList,
         industryChange,
         loadLevelIndustryList,
-        IndustryList
+        IndustryList,
+        operationType,
+        normalFirm,
+        normalBtnLoading
       }
     },
     mounted() {
       const id = history.state.params?.id;
+      const op = history.state.params?.op;
+      if (op == 1) {
+        this.operationType = "add"
+      }
+      if (op == 2) {
+        this.operationType = "edit"
+      }
       this.loadData(id);
     }
   })
 </script>
 
+<style lang="less" scoped>
+.companyNameIpt {
+  width: 60%;
+}
+</style>
+

+ 2 - 2
vue/src/views/companyService/company/index.vue

@@ -302,11 +302,11 @@ export default defineComponent({
     };
 
     const onAdd = () => {
-      tabsViewStore.addTabByPath('/companyService/enterprise/add', null);
+      tabsViewStore.addTabByPath('/companyService/enterprise/add', {id: null, op: 1});
     };
 
     const onEdit = (item: any) => {
-      tabsViewStore.addTabByPath('/companyService/enterprise/edit', {id: item.companyID});
+      tabsViewStore.addTabByPath('/companyService/enterprise/edit', {id: item.companyID, op: 2});
     };
 
     const onDetail = (item: any) => {

+ 1 - 1
vue/src/views/jobUserManager/jobuser/edit.vue

@@ -559,7 +559,7 @@ export default defineComponent(
           width: 120
         },
         {
-          title: '文化程度',
+          title: '最高学历',
           dataIndex: 'cultureRank',
           key: 'cultureRank',
           align: "center",