Ver Fonte

基础档案

yuansh há 3 meses atrás
pai
commit
aabc593000
49 ficheiros alterados com 3224 adições e 2 exclusões
  1. 9 2
      srm-module-code/src/main/java/com/cuidian/srm/baseCode/controller/BaseShipArchiveRelateCustomerController.java
  2. 5 0
      srm-module-code/src/main/java/com/cuidian/srm/baseCode/entity/BaseShipArchive.java
  3. 274 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspCustomerProfileController.java
  4. 180 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspIntermediatorController.java
  5. 275 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspSupplierEvaluationController.java
  6. 297 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspSupplierProfileController.java
  7. 153 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspCustomerProfile.java
  8. 83 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspCustomerProfileMan.java
  9. 110 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspIntermediator.java
  10. 91 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierEvaluation.java
  11. 99 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierEvaluationScore.java
  12. 161 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfile.java
  13. 83 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfileMan.java
  14. 91 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfileQualification.java
  15. 31 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspCustomerProfileManMapper.java
  16. 17 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspCustomerProfileMapper.java
  17. 17 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspIntermediatorMapper.java
  18. 17 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierEvaluationMapper.java
  19. 31 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierEvaluationScoreMapper.java
  20. 31 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileManMapper.java
  21. 17 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileMapper.java
  22. 31 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileQualificationMapper.java
  23. 16 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspCustomerProfileManMapper.xml
  24. 5 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspCustomerProfileMapper.xml
  25. 5 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspIntermediatorMapper.xml
  26. 5 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierEvaluationMapper.xml
  27. 16 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierEvaluationScoreMapper.xml
  28. 16 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileManMapper.xml
  29. 5 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileMapper.xml
  30. 16 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileQualificationMapper.xml
  31. 22 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspCustomerProfileManService.java
  32. 48 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspCustomerProfileService.java
  33. 14 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspIntermediatorService.java
  34. 22 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierEvaluationScoreService.java
  35. 48 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierEvaluationService.java
  36. 22 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileManService.java
  37. 22 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileQualificationService.java
  38. 51 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileService.java
  39. 27 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspCustomerProfileManServiceImpl.java
  40. 77 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspCustomerProfileServiceImpl.java
  41. 19 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspIntermediatorServiceImpl.java
  42. 27 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierEvaluationScoreServiceImpl.java
  43. 77 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierEvaluationServiceImpl.java
  44. 27 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileManServiceImpl.java
  45. 27 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileQualificationServiceImpl.java
  46. 98 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileServiceImpl.java
  47. 153 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspCustomerProfilePage.java
  48. 91 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspSupplierEvaluationPage.java
  49. 165 0
      srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspSupplierProfilePage.java

+ 9 - 2
srm-module-code/src/main/java/com/cuidian/srm/baseCode/controller/BaseShipArchiveRelateCustomerController.java

@@ -10,6 +10,9 @@ import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+
+import com.cuidian.srm.baseCode.entity.BaseShipArchive;
+import com.cuidian.srm.baseCode.service.IBaseShipArchiveService;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.system.query.QueryGenerator;
 import org.jeecg.common.system.query.QueryRuleEnum;
@@ -52,7 +55,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
 public class BaseShipArchiveRelateCustomerController extends JeecgController<BaseShipArchiveRelateCustomer, IBaseShipArchiveRelateCustomerService> {
 	@Autowired
 	private IBaseShipArchiveRelateCustomerService baseShipArchiveRelateCustomerService;
-	
+	 @Autowired
+	 private IBaseShipArchiveService baseShipArchiveService;
 	/**
 	 * 分页列表查询
 	 *
@@ -90,11 +94,14 @@ public class BaseShipArchiveRelateCustomerController extends JeecgController<Bas
 
 		QueryWrapper<BaseShipArchiveRelateCustomer> queryWrapper = new QueryWrapper();
 		queryWrapper.eq("head_Id",baseShipArchiveRelateCustomer.getHeadId());
-
 		BaseShipArchiveRelateCustomer baseShip = new BaseShipArchiveRelateCustomer();
 		baseShip.setStatus(0);
 		baseShipArchiveRelateCustomerService.update(baseShip,queryWrapper);
 		baseShipArchiveRelateCustomerService.save(baseShipArchiveRelateCustomer);
+		BaseShipArchive ent = new BaseShipArchive();
+		ent.setId(baseShipArchiveRelateCustomer.getHeadId());
+		ent.setRelateCustomer(baseShipArchiveRelateCustomer.getCustomerId());
+		baseShipArchiveService.updateById(ent);
 		return Result.OK("添加成功!");
 	}
 	

+ 5 - 0
srm-module-code/src/main/java/com/cuidian/srm/baseCode/entity/BaseShipArchive.java

@@ -57,6 +57,7 @@ public class BaseShipArchive implements Serializable {
 	/**状态(1-启用,0-停用)*/
 	@Excel(name = "状态(1-启用,0-停用)", width = 15)
     @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    @Dict(dicCode = "valid_status")
     private Integer status;
 	/**删除状态(0-正常,1-已删除)*/
 	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@@ -83,6 +84,10 @@ public class BaseShipArchive implements Serializable {
 	@Excel(name = "船厂", width = 15)
     @ApiModelProperty(value = "船厂")
     private String shipFactory;
+	/**关联客户*/
+	@Excel(name = "关联客户", width = 15)
+    @ApiModelProperty(value = "关联客户")
+    private String relateCustomer;
 	/**造船日期*/
 	@Excel(name = "造船日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
 	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")

+ 274 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspCustomerProfileController.java

@@ -0,0 +1,274 @@
+package com.cuidian.srm.cuspCode.controller;
+
+import java.io.UnsupportedEncodingException;
+import java.io.IOException;
+import java.net.URLDecoder;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.vo.LoginUser;
+import org.apache.shiro.SecurityUtils;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
+import com.cuidian.srm.cuspCode.vo.CuspCustomerProfilePage;
+import com.cuidian.srm.cuspCode.service.ICuspCustomerProfileService;
+import com.cuidian.srm.cuspCode.service.ICuspCustomerProfileManService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+
+ /**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Api(tags="客户档案")
+@RestController
+@RequestMapping("/cuspCode/cuspCustomerProfile")
+@Slf4j
+public class CuspCustomerProfileController {
+	@Autowired
+	private ICuspCustomerProfileService cuspCustomerProfileService;
+	@Autowired
+	private ICuspCustomerProfileManService cuspCustomerProfileManService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param cuspCustomerProfile
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "客户档案-分页列表查询")
+	@ApiOperation(value="客户档案-分页列表查询", notes="客户档案-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<CuspCustomerProfile>> queryPageList(CuspCustomerProfile cuspCustomerProfile,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+        // 自定义查询规则
+        Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
+        // 自定义多选的查询规则为:LIKE_WITH_OR
+        customeRuleMap.put("paymentTerms", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("priority", QueryRuleEnum.LIKE_WITH_OR);
+        QueryWrapper<CuspCustomerProfile> queryWrapper = QueryGenerator.initQueryWrapper(cuspCustomerProfile, req.getParameterMap(),customeRuleMap);
+		Page<CuspCustomerProfile> page = new Page<CuspCustomerProfile>(pageNo, pageSize);
+		IPage<CuspCustomerProfile> pageList = cuspCustomerProfileService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param cuspCustomerProfilePage
+	 * @return
+	 */
+	@AutoLog(value = "客户档案-添加")
+	@ApiOperation(value="客户档案-添加", notes="客户档案-添加")
+    @RequiresPermissions("cuspCode:cusp_customer_profile:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody CuspCustomerProfilePage cuspCustomerProfilePage) {
+		CuspCustomerProfile cuspCustomerProfile = new CuspCustomerProfile();
+		BeanUtils.copyProperties(cuspCustomerProfilePage, cuspCustomerProfile);
+		cuspCustomerProfileService.saveMain(cuspCustomerProfile, cuspCustomerProfilePage.getCuspCustomerProfileManList());
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param cuspCustomerProfilePage
+	 * @return
+	 */
+	@AutoLog(value = "客户档案-编辑")
+	@ApiOperation(value="客户档案-编辑", notes="客户档案-编辑")
+    @RequiresPermissions("cuspCode:cusp_customer_profile:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody CuspCustomerProfilePage cuspCustomerProfilePage) {
+		CuspCustomerProfile cuspCustomerProfile = new CuspCustomerProfile();
+		BeanUtils.copyProperties(cuspCustomerProfilePage, cuspCustomerProfile);
+		CuspCustomerProfile cuspCustomerProfileEntity = cuspCustomerProfileService.getById(cuspCustomerProfile.getId());
+		if(cuspCustomerProfileEntity==null) {
+			return Result.error("未找到对应数据");
+		}
+		cuspCustomerProfileService.updateMain(cuspCustomerProfile, cuspCustomerProfilePage.getCuspCustomerProfileManList());
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "客户档案-通过id删除")
+	@ApiOperation(value="客户档案-通过id删除", notes="客户档案-通过id删除")
+    @RequiresPermissions("cuspCode:cusp_customer_profile:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		cuspCustomerProfileService.delMain(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "客户档案-批量删除")
+	@ApiOperation(value="客户档案-批量删除", notes="客户档案-批量删除")
+    @RequiresPermissions("cuspCode:cusp_customer_profile:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.cuspCustomerProfileService.delBatchMain(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "客户档案-通过id查询")
+	@ApiOperation(value="客户档案-通过id查询", notes="客户档案-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<CuspCustomerProfile> queryById(@RequestParam(name="id",required=true) String id) {
+		CuspCustomerProfile cuspCustomerProfile = cuspCustomerProfileService.getById(id);
+		if(cuspCustomerProfile==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(cuspCustomerProfile);
+
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "客户档案-联系人通过主表ID查询")
+	@ApiOperation(value="客户档案-联系人主表ID查询", notes="客户档案-联系人-通主表ID查询")
+	@GetMapping(value = "/queryCuspCustomerProfileManByMainId")
+	public Result<List<CuspCustomerProfileMan>> queryCuspCustomerProfileManListByMainId(@RequestParam(name="id",required=true) String id) {
+		List<CuspCustomerProfileMan> cuspCustomerProfileManList = cuspCustomerProfileManService.selectByMainId(id);
+		return Result.OK(cuspCustomerProfileManList);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param cuspCustomerProfile
+    */
+    @RequiresPermissions("cuspCode:cusp_customer_profile:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, CuspCustomerProfile cuspCustomerProfile) {
+      // Step.1 组装查询条件查询数据
+      QueryWrapper<CuspCustomerProfile> queryWrapper = QueryGenerator.initQueryWrapper(cuspCustomerProfile, request.getParameterMap());
+      LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+
+      //配置选中数据查询条件
+      String selections = request.getParameter("selections");
+      if(oConvertUtils.isNotEmpty(selections)) {
+         List<String> selectionList = Arrays.asList(selections.split(","));
+         queryWrapper.in("id",selectionList);
+      }
+      //Step.2 获取导出数据
+      List<CuspCustomerProfile> cuspCustomerProfileList = cuspCustomerProfileService.list(queryWrapper);
+
+      // Step.3 组装pageList
+      List<CuspCustomerProfilePage> pageList = new ArrayList<CuspCustomerProfilePage>();
+      for (CuspCustomerProfile main : cuspCustomerProfileList) {
+          CuspCustomerProfilePage vo = new CuspCustomerProfilePage();
+          BeanUtils.copyProperties(main, vo);
+          List<CuspCustomerProfileMan> cuspCustomerProfileManList = cuspCustomerProfileManService.selectByMainId(main.getId());
+          vo.setCuspCustomerProfileManList(cuspCustomerProfileManList);
+          pageList.add(vo);
+      }
+
+      // Step.4 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      mv.addObject(NormalExcelConstants.FILE_NAME, "客户档案列表");
+      mv.addObject(NormalExcelConstants.CLASS, CuspCustomerProfilePage.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("客户档案数据", "导出人:"+sysUser.getRealname(), "客户档案"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+    }
+
+    /**
+    * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("cuspCode:cusp_customer_profile:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          // 获取上传文件对象
+          MultipartFile file = entity.getValue();
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<CuspCustomerProfilePage> list = ExcelImportUtil.importExcel(file.getInputStream(), CuspCustomerProfilePage.class, params);
+              for (CuspCustomerProfilePage page : list) {
+                  CuspCustomerProfile po = new CuspCustomerProfile();
+                  BeanUtils.copyProperties(page, po);
+                  cuspCustomerProfileService.saveMain(po, page.getCuspCustomerProfileManList());
+              }
+              return Result.OK("文件导入成功!数据行数:" + list.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.OK("文件导入失败!");
+    }
+
+}

+ 180 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspIntermediatorController.java

@@ -0,0 +1,180 @@
+package com.cuidian.srm.cuspCode.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+import com.cuidian.srm.cuspCode.entity.CuspIntermediator;
+import com.cuidian.srm.cuspCode.service.ICuspIntermediatorService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: 中间人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Api(tags="中间人")
+@RestController
+@RequestMapping("/cuspCode/cuspIntermediator")
+@Slf4j
+public class CuspIntermediatorController extends JeecgController<CuspIntermediator, ICuspIntermediatorService> {
+	@Autowired
+	private ICuspIntermediatorService cuspIntermediatorService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param cuspIntermediator
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "中间人-分页列表查询")
+	@ApiOperation(value="中间人-分页列表查询", notes="中间人-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<CuspIntermediator>> queryPageList(CuspIntermediator cuspIntermediator,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+        QueryWrapper<CuspIntermediator> queryWrapper = QueryGenerator.initQueryWrapper(cuspIntermediator, req.getParameterMap());
+		Page<CuspIntermediator> page = new Page<CuspIntermediator>(pageNo, pageSize);
+		IPage<CuspIntermediator> pageList = cuspIntermediatorService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param cuspIntermediator
+	 * @return
+	 */
+	@AutoLog(value = "中间人-添加")
+	@ApiOperation(value="中间人-添加", notes="中间人-添加")
+	@RequiresPermissions("cuspCode:cusp_intermediator:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody CuspIntermediator cuspIntermediator) {
+		cuspIntermediatorService.save(cuspIntermediator);
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param cuspIntermediator
+	 * @return
+	 */
+	@AutoLog(value = "中间人-编辑")
+	@ApiOperation(value="中间人-编辑", notes="中间人-编辑")
+	@RequiresPermissions("cuspCode:cusp_intermediator:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody CuspIntermediator cuspIntermediator) {
+		cuspIntermediatorService.updateById(cuspIntermediator);
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "中间人-通过id删除")
+	@ApiOperation(value="中间人-通过id删除", notes="中间人-通过id删除")
+	@RequiresPermissions("cuspCode:cusp_intermediator:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		cuspIntermediatorService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "中间人-批量删除")
+	@ApiOperation(value="中间人-批量删除", notes="中间人-批量删除")
+	@RequiresPermissions("cuspCode:cusp_intermediator:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.cuspIntermediatorService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "中间人-通过id查询")
+	@ApiOperation(value="中间人-通过id查询", notes="中间人-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<CuspIntermediator> queryById(@RequestParam(name="id",required=true) String id) {
+		CuspIntermediator cuspIntermediator = cuspIntermediatorService.getById(id);
+		if(cuspIntermediator==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(cuspIntermediator);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param cuspIntermediator
+    */
+    @RequiresPermissions("cuspCode:cusp_intermediator:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, CuspIntermediator cuspIntermediator) {
+        return super.exportXls(request, cuspIntermediator, CuspIntermediator.class, "中间人");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("cuspCode:cusp_intermediator:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, CuspIntermediator.class);
+    }
+
+}

+ 275 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspSupplierEvaluationController.java

@@ -0,0 +1,275 @@
+package com.cuidian.srm.cuspCode.controller;
+
+import java.io.UnsupportedEncodingException;
+import java.io.IOException;
+import java.net.URLDecoder;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.vo.LoginUser;
+import org.apache.shiro.SecurityUtils;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluation;
+import com.cuidian.srm.cuspCode.vo.CuspSupplierEvaluationPage;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierEvaluationService;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierEvaluationScoreService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+
+ /**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Api(tags="供应商考评")
+@RestController
+@RequestMapping("/cuspCode/cuspSupplierEvaluation")
+@Slf4j
+public class CuspSupplierEvaluationController {
+	@Autowired
+	private ICuspSupplierEvaluationService cuspSupplierEvaluationService;
+	@Autowired
+	private ICuspSupplierEvaluationScoreService cuspSupplierEvaluationScoreService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param cuspSupplierEvaluation
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "供应商考评-分页列表查询")
+	@ApiOperation(value="供应商考评-分页列表查询", notes="供应商考评-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<CuspSupplierEvaluation>> queryPageList(CuspSupplierEvaluation cuspSupplierEvaluation,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+        // 自定义查询规则
+        Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
+        // 自定义多选的查询规则为:LIKE_WITH_OR
+        customeRuleMap.put("supplierId", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("evaluationLevel", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("submit", QueryRuleEnum.LIKE_WITH_OR);
+        QueryWrapper<CuspSupplierEvaluation> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierEvaluation, req.getParameterMap(),customeRuleMap);
+		Page<CuspSupplierEvaluation> page = new Page<CuspSupplierEvaluation>(pageNo, pageSize);
+		IPage<CuspSupplierEvaluation> pageList = cuspSupplierEvaluationService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param cuspSupplierEvaluationPage
+	 * @return
+	 */
+	@AutoLog(value = "供应商考评-添加")
+	@ApiOperation(value="供应商考评-添加", notes="供应商考评-添加")
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody CuspSupplierEvaluationPage cuspSupplierEvaluationPage) {
+		CuspSupplierEvaluation cuspSupplierEvaluation = new CuspSupplierEvaluation();
+		BeanUtils.copyProperties(cuspSupplierEvaluationPage, cuspSupplierEvaluation);
+		cuspSupplierEvaluationService.saveMain(cuspSupplierEvaluation, cuspSupplierEvaluationPage.getCuspSupplierEvaluationScoreList());
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param cuspSupplierEvaluationPage
+	 * @return
+	 */
+	@AutoLog(value = "供应商考评-编辑")
+	@ApiOperation(value="供应商考评-编辑", notes="供应商考评-编辑")
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody CuspSupplierEvaluationPage cuspSupplierEvaluationPage) {
+		CuspSupplierEvaluation cuspSupplierEvaluation = new CuspSupplierEvaluation();
+		BeanUtils.copyProperties(cuspSupplierEvaluationPage, cuspSupplierEvaluation);
+		CuspSupplierEvaluation cuspSupplierEvaluationEntity = cuspSupplierEvaluationService.getById(cuspSupplierEvaluation.getId());
+		if(cuspSupplierEvaluationEntity==null) {
+			return Result.error("未找到对应数据");
+		}
+		cuspSupplierEvaluationService.updateMain(cuspSupplierEvaluation, cuspSupplierEvaluationPage.getCuspSupplierEvaluationScoreList());
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "供应商考评-通过id删除")
+	@ApiOperation(value="供应商考评-通过id删除", notes="供应商考评-通过id删除")
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		cuspSupplierEvaluationService.delMain(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "供应商考评-批量删除")
+	@ApiOperation(value="供应商考评-批量删除", notes="供应商考评-批量删除")
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.cuspSupplierEvaluationService.delBatchMain(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "供应商考评-通过id查询")
+	@ApiOperation(value="供应商考评-通过id查询", notes="供应商考评-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<CuspSupplierEvaluation> queryById(@RequestParam(name="id",required=true) String id) {
+		CuspSupplierEvaluation cuspSupplierEvaluation = cuspSupplierEvaluationService.getById(id);
+		if(cuspSupplierEvaluation==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(cuspSupplierEvaluation);
+
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "供应商考评-得分通过主表ID查询")
+	@ApiOperation(value="供应商考评-得分主表ID查询", notes="供应商考评-得分-通主表ID查询")
+	@GetMapping(value = "/queryCuspSupplierEvaluationScoreByMainId")
+	public Result<List<CuspSupplierEvaluationScore>> queryCuspSupplierEvaluationScoreListByMainId(@RequestParam(name="id",required=true) String id) {
+		List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList = cuspSupplierEvaluationScoreService.selectByMainId(id);
+		return Result.OK(cuspSupplierEvaluationScoreList);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param cuspSupplierEvaluation
+    */
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, CuspSupplierEvaluation cuspSupplierEvaluation) {
+      // Step.1 组装查询条件查询数据
+      QueryWrapper<CuspSupplierEvaluation> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierEvaluation, request.getParameterMap());
+      LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+
+      //配置选中数据查询条件
+      String selections = request.getParameter("selections");
+      if(oConvertUtils.isNotEmpty(selections)) {
+         List<String> selectionList = Arrays.asList(selections.split(","));
+         queryWrapper.in("id",selectionList);
+      }
+      //Step.2 获取导出数据
+      List<CuspSupplierEvaluation> cuspSupplierEvaluationList = cuspSupplierEvaluationService.list(queryWrapper);
+
+      // Step.3 组装pageList
+      List<CuspSupplierEvaluationPage> pageList = new ArrayList<CuspSupplierEvaluationPage>();
+      for (CuspSupplierEvaluation main : cuspSupplierEvaluationList) {
+          CuspSupplierEvaluationPage vo = new CuspSupplierEvaluationPage();
+          BeanUtils.copyProperties(main, vo);
+          List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList = cuspSupplierEvaluationScoreService.selectByMainId(main.getId());
+          vo.setCuspSupplierEvaluationScoreList(cuspSupplierEvaluationScoreList);
+          pageList.add(vo);
+      }
+
+      // Step.4 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      mv.addObject(NormalExcelConstants.FILE_NAME, "供应商考评列表");
+      mv.addObject(NormalExcelConstants.CLASS, CuspSupplierEvaluationPage.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("供应商考评数据", "导出人:"+sysUser.getRealname(), "供应商考评"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+    }
+
+    /**
+    * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("cuspCode:cusp_supplier_evaluation:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          // 获取上传文件对象
+          MultipartFile file = entity.getValue();
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<CuspSupplierEvaluationPage> list = ExcelImportUtil.importExcel(file.getInputStream(), CuspSupplierEvaluationPage.class, params);
+              for (CuspSupplierEvaluationPage page : list) {
+                  CuspSupplierEvaluation po = new CuspSupplierEvaluation();
+                  BeanUtils.copyProperties(page, po);
+                  cuspSupplierEvaluationService.saveMain(po, page.getCuspSupplierEvaluationScoreList());
+              }
+              return Result.OK("文件导入成功!数据行数:" + list.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.OK("文件导入失败!");
+    }
+
+}

+ 297 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/controller/CuspSupplierProfileController.java

@@ -0,0 +1,297 @@
+package com.cuidian.srm.cuspCode.controller;
+
+import java.io.UnsupportedEncodingException;
+import java.io.IOException;
+import java.net.URLDecoder;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.vo.LoginUser;
+import org.apache.shiro.SecurityUtils;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfile;
+import com.cuidian.srm.cuspCode.vo.CuspSupplierProfilePage;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileService;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileManService;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileQualificationService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+
+ /**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Api(tags="供应商档案")
+@RestController
+@RequestMapping("/cuspCode/cuspSupplierProfile")
+@Slf4j
+public class CuspSupplierProfileController {
+	@Autowired
+	private ICuspSupplierProfileService cuspSupplierProfileService;
+	@Autowired
+	private ICuspSupplierProfileManService cuspSupplierProfileManService;
+	@Autowired
+	private ICuspSupplierProfileQualificationService cuspSupplierProfileQualificationService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param cuspSupplierProfile
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "供应商档案-分页列表查询")
+	@ApiOperation(value="供应商档案-分页列表查询", notes="供应商档案-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<CuspSupplierProfile>> queryPageList(CuspSupplierProfile cuspSupplierProfile,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+        // 自定义查询规则
+        Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
+        // 自定义多选的查询规则为:LIKE_WITH_OR
+        customeRuleMap.put("status", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("supplierNature", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("country", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("originalFactory", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("temporarySupplier", QueryRuleEnum.LIKE_WITH_OR);
+        customeRuleMap.put("evaluationLevel", QueryRuleEnum.LIKE_WITH_OR);
+        QueryWrapper<CuspSupplierProfile> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierProfile, req.getParameterMap(),customeRuleMap);
+		Page<CuspSupplierProfile> page = new Page<CuspSupplierProfile>(pageNo, pageSize);
+		IPage<CuspSupplierProfile> pageList = cuspSupplierProfileService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param cuspSupplierProfilePage
+	 * @return
+	 */
+	@AutoLog(value = "供应商档案-添加")
+	@ApiOperation(value="供应商档案-添加", notes="供应商档案-添加")
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody CuspSupplierProfilePage cuspSupplierProfilePage) {
+		CuspSupplierProfile cuspSupplierProfile = new CuspSupplierProfile();
+		BeanUtils.copyProperties(cuspSupplierProfilePage, cuspSupplierProfile);
+		cuspSupplierProfileService.saveMain(cuspSupplierProfile, cuspSupplierProfilePage.getCuspSupplierProfileManList(),cuspSupplierProfilePage.getCuspSupplierProfileQualificationList());
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param cuspSupplierProfilePage
+	 * @return
+	 */
+	@AutoLog(value = "供应商档案-编辑")
+	@ApiOperation(value="供应商档案-编辑", notes="供应商档案-编辑")
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody CuspSupplierProfilePage cuspSupplierProfilePage) {
+		CuspSupplierProfile cuspSupplierProfile = new CuspSupplierProfile();
+		BeanUtils.copyProperties(cuspSupplierProfilePage, cuspSupplierProfile);
+		CuspSupplierProfile cuspSupplierProfileEntity = cuspSupplierProfileService.getById(cuspSupplierProfile.getId());
+		if(cuspSupplierProfileEntity==null) {
+			return Result.error("未找到对应数据");
+		}
+		cuspSupplierProfileService.updateMain(cuspSupplierProfile, cuspSupplierProfilePage.getCuspSupplierProfileManList(),cuspSupplierProfilePage.getCuspSupplierProfileQualificationList());
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "供应商档案-通过id删除")
+	@ApiOperation(value="供应商档案-通过id删除", notes="供应商档案-通过id删除")
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		cuspSupplierProfileService.delMain(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "供应商档案-批量删除")
+	@ApiOperation(value="供应商档案-批量删除", notes="供应商档案-批量删除")
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.cuspSupplierProfileService.delBatchMain(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "供应商档案-通过id查询")
+	@ApiOperation(value="供应商档案-通过id查询", notes="供应商档案-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<CuspSupplierProfile> queryById(@RequestParam(name="id",required=true) String id) {
+		CuspSupplierProfile cuspSupplierProfile = cuspSupplierProfileService.getById(id);
+		if(cuspSupplierProfile==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(cuspSupplierProfile);
+
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "供应商档案-联系人通过主表ID查询")
+	@ApiOperation(value="供应商档案-联系人主表ID查询", notes="供应商档案-联系人-通主表ID查询")
+	@GetMapping(value = "/queryCuspSupplierProfileManByMainId")
+	public Result<List<CuspSupplierProfileMan>> queryCuspSupplierProfileManListByMainId(@RequestParam(name="id",required=true) String id) {
+		List<CuspSupplierProfileMan> cuspSupplierProfileManList = cuspSupplierProfileManService.selectByMainId(id);
+		return Result.OK(cuspSupplierProfileManList);
+	}
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "供应商档案-资质信息通过主表ID查询")
+	@ApiOperation(value="供应商档案-资质信息主表ID查询", notes="供应商档案-资质信息-通主表ID查询")
+	@GetMapping(value = "/queryCuspSupplierProfileQualificationByMainId")
+	public Result<List<CuspSupplierProfileQualification>> queryCuspSupplierProfileQualificationListByMainId(@RequestParam(name="id",required=true) String id) {
+		List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList = cuspSupplierProfileQualificationService.selectByMainId(id);
+		return Result.OK(cuspSupplierProfileQualificationList);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param cuspSupplierProfile
+    */
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, CuspSupplierProfile cuspSupplierProfile) {
+      // Step.1 组装查询条件查询数据
+      QueryWrapper<CuspSupplierProfile> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierProfile, request.getParameterMap());
+      LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+
+      //配置选中数据查询条件
+      String selections = request.getParameter("selections");
+      if(oConvertUtils.isNotEmpty(selections)) {
+         List<String> selectionList = Arrays.asList(selections.split(","));
+         queryWrapper.in("id",selectionList);
+      }
+      //Step.2 获取导出数据
+      List<CuspSupplierProfile> cuspSupplierProfileList = cuspSupplierProfileService.list(queryWrapper);
+
+      // Step.3 组装pageList
+      List<CuspSupplierProfilePage> pageList = new ArrayList<CuspSupplierProfilePage>();
+      for (CuspSupplierProfile main : cuspSupplierProfileList) {
+          CuspSupplierProfilePage vo = new CuspSupplierProfilePage();
+          BeanUtils.copyProperties(main, vo);
+          List<CuspSupplierProfileMan> cuspSupplierProfileManList = cuspSupplierProfileManService.selectByMainId(main.getId());
+          vo.setCuspSupplierProfileManList(cuspSupplierProfileManList);
+          List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList = cuspSupplierProfileQualificationService.selectByMainId(main.getId());
+          vo.setCuspSupplierProfileQualificationList(cuspSupplierProfileQualificationList);
+          pageList.add(vo);
+      }
+
+      // Step.4 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      mv.addObject(NormalExcelConstants.FILE_NAME, "供应商档案列表");
+      mv.addObject(NormalExcelConstants.CLASS, CuspSupplierProfilePage.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("供应商档案数据", "导出人:"+sysUser.getRealname(), "供应商档案"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+    }
+
+    /**
+    * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("cuspCode:cusp_supplier_profile:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          // 获取上传文件对象
+          MultipartFile file = entity.getValue();
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<CuspSupplierProfilePage> list = ExcelImportUtil.importExcel(file.getInputStream(), CuspSupplierProfilePage.class, params);
+              for (CuspSupplierProfilePage page : list) {
+                  CuspSupplierProfile po = new CuspSupplierProfile();
+                  BeanUtils.copyProperties(page, po);
+                  cuspSupplierProfileService.saveMain(po, page.getCuspSupplierProfileManList(),page.getCuspSupplierProfileQualificationList());
+              }
+              return Result.OK("文件导入成功!数据行数:" + list.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.OK("文件导入失败!");
+    }
+
+}

+ 153 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspCustomerProfile.java

@@ -0,0 +1,153 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_customer_profile对象", description="客户档案")
+@Data
+@TableName("cusp_customer_profile")
+public class CuspCustomerProfile implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+    @ApiModelProperty(value = "编码")
+    private String code;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+    @ApiModelProperty(value = "名称")
+    private String name;
+	/**简称*/
+	@Excel(name = "简称", width = 15)
+    @ApiModelProperty(value = "简称")
+    private String abbreviation;
+	/**曾用名*/
+	@Excel(name = "曾用名", width = 15)
+    @ApiModelProperty(value = "曾用名")
+    private String nameUsedBefore;
+	/**税号*/
+	@Excel(name = "税号", width = 15)
+    @ApiModelProperty(value = "税号")
+    private String dutyParagraph;
+	/**法人*/
+	@Excel(name = "法人", width = 15)
+    @ApiModelProperty(value = "法人")
+    private String legalPerson;
+	/**联系人*/
+	@Excel(name = "联系人", width = 15)
+    @ApiModelProperty(value = "联系人")
+    private String contacts;
+	/**联系电话*/
+	@Excel(name = "联系电话", width = 15)
+    @ApiModelProperty(value = "联系电话")
+    private String phone;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+    @ApiModelProperty(value = "邮箱")
+    private String email;
+	/**注册地址*/
+	@Excel(name = "注册地址", width = 15)
+    @ApiModelProperty(value = "注册地址")
+    private String registerAddress;
+	/**办公地址*/
+	@Excel(name = "办公地址", width = 15)
+    @ApiModelProperty(value = "办公地址")
+    private String officeAddress;
+	/**发票地址*/
+	@Excel(name = "发票地址", width = 15)
+    @ApiModelProperty(value = "发票地址")
+    private String invoiceAddress;
+	/**币种*/
+	@Excel(name = "币种", width = 15)
+    @ApiModelProperty(value = "币种")
+    private String currency;
+	/**国家*/
+	@Excel(name = "国家", width = 15)
+    @ApiModelProperty(value = "国家")
+    private String country;
+	/**付款条件*/
+	@Excel(name = "付款条件", width = 15)
+    @ApiModelProperty(value = "付款条件")
+    private String paymentTerms;
+	/**信用额度*/
+	@Excel(name = "信用额度", width = 15)
+    @ApiModelProperty(value = "信用额度")
+    private java.math.BigDecimal creditLimit;
+	/**折扣*/
+	@Excel(name = "折扣", width = 15)
+    @ApiModelProperty(value = "折扣")
+    private Double discount;
+	/**佣金*/
+	@Excel(name = "佣金", width = 15)
+    @ApiModelProperty(value = "佣金")
+    private java.math.BigDecimal commission;
+	/**中间人*/
+	@Excel(name = "中间人", width = 15)
+    @ApiModelProperty(value = "中间人")
+    private String intermediator;
+	/**中间人佣金*/
+	@Excel(name = "中间人佣金", width = 15)
+    @ApiModelProperty(value = "中间人佣金")
+    private java.math.BigDecimal intermediatorCommission;
+	/**优先级*/
+	@Excel(name = "优先级", width = 15)
+    @ApiModelProperty(value = "优先级")
+    private String priority;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String notes;
+	/**文件*/
+	@Excel(name = "文件", width = 15)
+    @ApiModelProperty(value = "文件")
+    private String files;
+}

+ 83 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspCustomerProfileMan.java

@@ -0,0 +1,83 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * @Description: 客户档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_customer_profile_man对象", description="客户档案-联系人")
+@Data
+@TableName("cusp_customer_profile_man")
+public class CuspCustomerProfileMan implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**主表主键(客户档案)*/
+    @ApiModelProperty(value = "主表主键(客户档案)")
+    private String headId;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+    @ApiModelProperty(value = "编码")
+    private String code;
+	/**姓名*/
+	@Excel(name = "姓名", width = 15)
+    @ApiModelProperty(value = "姓名")
+    private String name;
+	/**电话*/
+	@Excel(name = "电话", width = 15)
+    @ApiModelProperty(value = "电话")
+    private String mobile;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+    @ApiModelProperty(value = "邮箱")
+    private String email;
+	/**职位*/
+	@Excel(name = "职位", width = 15)
+    @ApiModelProperty(value = "职位")
+    private String position;
+}

+ 110 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspIntermediator.java

@@ -0,0 +1,110 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 中间人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Data
+@TableName("cusp_intermediator")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="cusp_intermediator对象", description="中间人")
+public class CuspIntermediator implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+    @ApiModelProperty(value = "编码")
+    private String code;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+    @ApiModelProperty(value = "名称")
+    private String name;
+	/**简称*/
+	@Excel(name = "简称", width = 15)
+    @ApiModelProperty(value = "简称")
+    private String abbreviation;
+	/**税号*/
+	@Excel(name = "税号", width = 15)
+    @ApiModelProperty(value = "税号")
+    private String dutyParagraph;
+	/**法人*/
+	@Excel(name = "法人", width = 15)
+    @ApiModelProperty(value = "法人")
+    private String legalPerson;
+	/**联系人*/
+	@Excel(name = "联系人", width = 15)
+    @ApiModelProperty(value = "联系人")
+    private String contacts;
+	/**联系电话*/
+	@Excel(name = "联系电话", width = 15)
+    @ApiModelProperty(value = "联系电话")
+    private String phone;
+	/**办公地址*/
+	@Excel(name = "办公地址", width = 15)
+    @ApiModelProperty(value = "办公地址")
+    private String address;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+    @ApiModelProperty(value = "邮箱")
+    private String email;
+	/**国家*/
+	@Excel(name = "国家", width = 15)
+    @ApiModelProperty(value = "国家")
+    private String country;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String notes;
+}

+ 91 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierEvaluation.java

@@ -0,0 +1,91 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_supplier_evaluation对象", description="供应商考评")
+@Data
+@TableName("cusp_supplier_evaluation")
+public class CuspSupplierEvaluation implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**单据日期*/
+	@Excel(name = "单据日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "单据日期")
+    private Date billDate;
+	/**考评单号*/
+	@Excel(name = "考评单号", width = 15)
+    @ApiModelProperty(value = "考评单号")
+    private String billCode;
+	/**供应商*/
+	@Excel(name = "供应商", width = 15)
+    @ApiModelProperty(value = "供应商")
+    private Integer supplierId;
+	/**考评期间*/
+	@Excel(name = "考评期间", width = 15)
+    @ApiModelProperty(value = "考评期间")
+    private String evaluationPeriod;
+	/**考评等级*/
+	@Excel(name = "考评等级", width = 15)
+    @ApiModelProperty(value = "考评等级")
+    private String evaluationLevel;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String notes;
+	/**提交(1-是 ,0-否)*/
+	@Excel(name = "提交(1-是 ,0-否)", width = 15)
+    @ApiModelProperty(value = "提交(1-是 ,0-否)")
+    private Integer submit;
+}

+ 99 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierEvaluationScore.java

@@ -0,0 +1,99 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * @Description: 供应商考评-得分
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_supplier_evaluation_score对象", description="供应商考评-得分")
+@Data
+@TableName("cusp_supplier_evaluation_score")
+public class CuspSupplierEvaluationScore implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**主表主键(供应商档案)*/
+    @ApiModelProperty(value = "主表主键(供应商档案)")
+    private String headId;
+	/**价格得分*/
+	@Excel(name = "价格得分", width = 15)
+    @ApiModelProperty(value = "价格得分")
+    private Double priceScore;
+	/**质量得分*/
+	@Excel(name = "质量得分", width = 15)
+    @ApiModelProperty(value = "质量得分")
+    private Double qualityScore;
+	/**交期得分*/
+	@Excel(name = "交期得分", width = 15)
+    @ApiModelProperty(value = "交期得分")
+    private Double deliveryTimeScore;
+	/**服务得分*/
+	@Excel(name = "服务得分", width = 15)
+    @ApiModelProperty(value = "服务得分")
+    private Double serviceScore;
+	/**总计得分*/
+	@Excel(name = "总计得分", width = 15)
+    @ApiModelProperty(value = "总计得分")
+    private Double totalScore;
+	/**价格自动取数*/
+	@Excel(name = "价格自动取数", width = 15)
+    @ApiModelProperty(value = "价格自动取数")
+    private String priceAuto;
+	/**质量自动取数*/
+	@Excel(name = "质量自动取数", width = 15)
+    @ApiModelProperty(value = "质量自动取数")
+    private String qualityAuto;
+	/**交期自动取数*/
+	@Excel(name = "交期自动取数", width = 15)
+    @ApiModelProperty(value = "交期自动取数")
+    private String deliveryTimeAuto;
+	/**服务自动取数*/
+	@Excel(name = "服务自动取数", width = 15)
+    @ApiModelProperty(value = "服务自动取数")
+    private String serviceAuto;
+}

+ 161 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfile.java

@@ -0,0 +1,161 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_supplier_profile对象", description="供应商档案")
+@Data
+@TableName("cusp_supplier_profile")
+public class CuspSupplierProfile implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+    @ApiModelProperty(value = "编码")
+    private String code;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+    @ApiModelProperty(value = "名称")
+    private String name;
+	/**简称*/
+	@Excel(name = "简称", width = 15)
+    @ApiModelProperty(value = "简称")
+    private String abbreviation;
+	/**曾用名*/
+	@Excel(name = "曾用名", width = 15)
+    @ApiModelProperty(value = "曾用名")
+    private String nameUsedBefore;
+	/**税号*/
+	@Excel(name = "税号", width = 15)
+    @ApiModelProperty(value = "税号")
+    private String dutyParagraph;
+	/**法人*/
+	@Excel(name = "法人", width = 15)
+    @ApiModelProperty(value = "法人")
+    private String legalPerson;
+	/**联系人*/
+	@Excel(name = "联系人", width = 15)
+    @ApiModelProperty(value = "联系人")
+    private String contacts;
+	/**联系电话*/
+	@Excel(name = "联系电话", width = 15)
+    @ApiModelProperty(value = "联系电话")
+    private String phone;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+    @ApiModelProperty(value = "邮箱")
+    private String email;
+	/**注册地址*/
+	@Excel(name = "注册地址", width = 15)
+    @ApiModelProperty(value = "注册地址")
+    private String registerAddress;
+	/**公司地址*/
+	@Excel(name = "公司地址", width = 15)
+    @ApiModelProperty(value = "公司地址")
+    private String address;
+	/**供应商性质*/
+	@Excel(name = "供应商性质", width = 15)
+    @ApiModelProperty(value = "供应商性质")
+    private String supplierNature;
+	/**国家*/
+	@Excel(name = "国家", width = 15)
+    @ApiModelProperty(value = "国家")
+    private String country;
+	/**币种*/
+	@Excel(name = "币种", width = 15)
+    @ApiModelProperty(value = "币种")
+    private String currency;
+	/**国外供应商*/
+	@Excel(name = "国外供应商", width = 15)
+    @ApiModelProperty(value = "国外供应商")
+    private Integer abroadSupplier;
+	/**原厂*/
+	@Excel(name = "原厂", width = 15)
+    @ApiModelProperty(value = "原厂")
+    private Integer originalFactory;
+	/**开户行*/
+	@Excel(name = "开户行", width = 15)
+    @ApiModelProperty(value = "开户行")
+    private String openingBank;
+	/**付款条件*/
+	@Excel(name = "付款条件", width = 15)
+    @ApiModelProperty(value = "付款条件")
+    private String paymentTerms;
+	/**银行代码*/
+	@Excel(name = "银行代码", width = 15)
+    @ApiModelProperty(value = "银行代码")
+    private String swiftCode;
+	/**银行帐号*/
+	@Excel(name = "银行帐号", width = 15)
+    @ApiModelProperty(value = "银行帐号")
+    private String bankAccount;
+	/**营业执照*/
+	@Excel(name = "营业执照", width = 15)
+    @ApiModelProperty(value = "营业执照")
+    private String businessLicense;
+	/**其他文件*/
+	@Excel(name = "其他文件", width = 15)
+    @ApiModelProperty(value = "其他文件")
+    private String otherFiles;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String notes;
+	/**临时供应商*/
+	@Excel(name = "临时供应商", width = 15)
+    @ApiModelProperty(value = "临时供应商")
+    private Integer temporarySupplier;
+	/**供应商等级*/
+	@Excel(name = "供应商等级", width = 15)
+    @ApiModelProperty(value = "供应商等级")
+    private String evaluationLevel;
+}

+ 83 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfileMan.java

@@ -0,0 +1,83 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * @Description: 供应商档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_supplier_profile_man对象", description="供应商档案-联系人")
+@Data
+@TableName("cusp_supplier_profile_man")
+public class CuspSupplierProfileMan implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**主表主键(供应商档案)*/
+    @ApiModelProperty(value = "主表主键(供应商档案)")
+    private String headId;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+    @ApiModelProperty(value = "编码")
+    private String code;
+	/**姓名*/
+	@Excel(name = "姓名", width = 15)
+    @ApiModelProperty(value = "姓名")
+    private String name;
+	/**电话*/
+	@Excel(name = "电话", width = 15)
+    @ApiModelProperty(value = "电话")
+    private String mobile;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+    @ApiModelProperty(value = "邮箱")
+    private String email;
+	/**职位*/
+	@Excel(name = "职位", width = 15)
+    @ApiModelProperty(value = "职位")
+    private String position;
+}

+ 91 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/entity/CuspSupplierProfileQualification.java

@@ -0,0 +1,91 @@
+package com.cuidian.srm.cuspCode.entity;
+
+import java.io.Serializable;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * @Description: 供应商档案-资质信息
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@ApiModel(value="cusp_supplier_profile_qualification对象", description="供应商档案-资质信息")
+@Data
+@TableName("cusp_supplier_profile_qualification")
+public class CuspSupplierProfileQualification implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+    @ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    @TableLogic
+    private Integer delFlag;
+	/**主表主键(供应商档案)*/
+    @ApiModelProperty(value = "主表主键(供应商档案)")
+    private String headId;
+	/**资质证书名称*/
+	@Excel(name = "资质证书名称", width = 15)
+    @ApiModelProperty(value = "资质证书名称")
+    private String qualificationCertificateName;
+	/**资质证书编码*/
+	@Excel(name = "资质证书编码", width = 15)
+    @ApiModelProperty(value = "资质证书编码")
+    private String qualificationCertificateCode;
+	/**有效期始*/
+	@Excel(name = "有效期始", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "有效期始")
+    private Date validBegin;
+	/**有效期止*/
+	@Excel(name = "有效期止", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "有效期止")
+    private Date validEnd;
+	/**资质证书附件*/
+	@Excel(name = "资质证书附件", width = 15)
+    @ApiModelProperty(value = "资质证书附件")
+    private String qualificationCertificate;
+	/**临期提醒*/
+	@Excel(name = "临期提醒", width = 15)
+    @ApiModelProperty(value = "临期提醒")
+    private Integer deadlineReminder;
+}

+ 31 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspCustomerProfileManMapper.java

@@ -0,0 +1,31 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * @Description: 客户档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspCustomerProfileManMapper extends BaseMapper<CuspCustomerProfileMan> {
+
+	/**
+	 * 通过主表id删除子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return boolean
+	 */
+	public boolean deleteByMainId(@Param("mainId") String mainId);
+
+  /**
+   * 通过主表id查询子表数据
+   *
+   * @param mainId 主表id
+   * @return List<CuspCustomerProfileMan>
+   */
+	public List<CuspCustomerProfileMan> selectByMainId(@Param("mainId") String mainId);
+}

+ 17 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspCustomerProfileMapper.java

@@ -0,0 +1,17 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspCustomerProfileMapper extends BaseMapper<CuspCustomerProfile> {
+
+}

+ 17 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspIntermediatorMapper.java

@@ -0,0 +1,17 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.cuidian.srm.cuspCode.entity.CuspIntermediator;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 中间人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspIntermediatorMapper extends BaseMapper<CuspIntermediator> {
+
+}

+ 17 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierEvaluationMapper.java

@@ -0,0 +1,17 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspSupplierEvaluationMapper extends BaseMapper<CuspSupplierEvaluation> {
+
+}

+ 31 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierEvaluationScoreMapper.java

@@ -0,0 +1,31 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * @Description: 供应商考评-得分
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspSupplierEvaluationScoreMapper extends BaseMapper<CuspSupplierEvaluationScore> {
+
+	/**
+	 * 通过主表id删除子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return boolean
+	 */
+	public boolean deleteByMainId(@Param("mainId") String mainId);
+
+  /**
+   * 通过主表id查询子表数据
+   *
+   * @param mainId 主表id
+   * @return List<CuspSupplierEvaluationScore>
+   */
+	public List<CuspSupplierEvaluationScore> selectByMainId(@Param("mainId") String mainId);
+}

+ 31 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileManMapper.java

@@ -0,0 +1,31 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * @Description: 供应商档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspSupplierProfileManMapper extends BaseMapper<CuspSupplierProfileMan> {
+
+	/**
+	 * 通过主表id删除子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return boolean
+	 */
+	public boolean deleteByMainId(@Param("mainId") String mainId);
+
+  /**
+   * 通过主表id查询子表数据
+   *
+   * @param mainId 主表id
+   * @return List<CuspSupplierProfileMan>
+   */
+	public List<CuspSupplierProfileMan> selectByMainId(@Param("mainId") String mainId);
+}

+ 17 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileMapper.java

@@ -0,0 +1,17 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfile;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspSupplierProfileMapper extends BaseMapper<CuspSupplierProfile> {
+
+}

+ 31 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/CuspSupplierProfileQualificationMapper.java

@@ -0,0 +1,31 @@
+package com.cuidian.srm.cuspCode.mapper;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * @Description: 供应商档案-资质信息
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface CuspSupplierProfileQualificationMapper extends BaseMapper<CuspSupplierProfileQualification> {
+
+	/**
+	 * 通过主表id删除子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return boolean
+	 */
+	public boolean deleteByMainId(@Param("mainId") String mainId);
+
+  /**
+   * 通过主表id查询子表数据
+   *
+   * @param mainId 主表id
+   * @return List<CuspSupplierProfileQualification>
+   */
+	public List<CuspSupplierProfileQualification> selectByMainId(@Param("mainId") String mainId);
+}

+ 16 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspCustomerProfileManMapper.xml

@@ -0,0 +1,16 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspCustomerProfileManMapper">
+
+	<delete id="deleteByMainId" parameterType="java.lang.String">
+		DELETE 
+		FROM  cusp_customer_profile_man 
+		WHERE
+			 head_id = #{mainId} 	</delete>
+	
+	<select id="selectByMainId" parameterType="java.lang.String" resultType="com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan">
+		SELECT * 
+		FROM  cusp_customer_profile_man
+		WHERE
+			 head_id = #{mainId} 	</select>
+</mapper>

+ 5 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspCustomerProfileMapper.xml

@@ -0,0 +1,5 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspCustomerProfileMapper">
+
+</mapper>

+ 5 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspIntermediatorMapper.xml

@@ -0,0 +1,5 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspIntermediatorMapper">
+
+</mapper>

+ 5 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierEvaluationMapper.xml

@@ -0,0 +1,5 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspSupplierEvaluationMapper">
+
+</mapper>

+ 16 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierEvaluationScoreMapper.xml

@@ -0,0 +1,16 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspSupplierEvaluationScoreMapper">
+
+	<delete id="deleteByMainId" parameterType="java.lang.String">
+		DELETE 
+		FROM  cusp_supplier_evaluation_score 
+		WHERE
+			 head_id = #{mainId} 	</delete>
+	
+	<select id="selectByMainId" parameterType="java.lang.String" resultType="com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore">
+		SELECT * 
+		FROM  cusp_supplier_evaluation_score
+		WHERE
+			 head_id = #{mainId} 	</select>
+</mapper>

+ 16 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileManMapper.xml

@@ -0,0 +1,16 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspSupplierProfileManMapper">
+
+	<delete id="deleteByMainId" parameterType="java.lang.String">
+		DELETE 
+		FROM  cusp_supplier_profile_man 
+		WHERE
+			 head_id = #{mainId} 	</delete>
+	
+	<select id="selectByMainId" parameterType="java.lang.String" resultType="com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan">
+		SELECT * 
+		FROM  cusp_supplier_profile_man
+		WHERE
+			 head_id = #{mainId} 	</select>
+</mapper>

+ 5 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileMapper.xml

@@ -0,0 +1,5 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspSupplierProfileMapper">
+
+</mapper>

+ 16 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/mapper/xml/CuspSupplierProfileQualificationMapper.xml

@@ -0,0 +1,16 @@
+<?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.cuidian.srm.cuspCode.mapper.CuspSupplierProfileQualificationMapper">
+
+	<delete id="deleteByMainId" parameterType="java.lang.String">
+		DELETE 
+		FROM  cusp_supplier_profile_qualification 
+		WHERE
+			 head_id = #{mainId} 	</delete>
+	
+	<select id="selectByMainId" parameterType="java.lang.String" resultType="com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification">
+		SELECT * 
+		FROM  cusp_supplier_profile_qualification
+		WHERE
+			 head_id = #{mainId} 	</select>
+</mapper>

+ 22 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspCustomerProfileManService.java

@@ -0,0 +1,22 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.List;
+
+/**
+ * @Description: 客户档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspCustomerProfileManService extends IService<CuspCustomerProfileMan> {
+
+	/**
+	 * 通过主表id查询子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return List<CuspCustomerProfileMan>
+	 */
+	public List<CuspCustomerProfileMan> selectByMainId(String mainId);
+}

+ 48 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspCustomerProfileService.java

@@ -0,0 +1,48 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspCustomerProfileService extends IService<CuspCustomerProfile> {
+
+	/**
+	 * 添加一对多
+	 *
+	 * @param cuspCustomerProfile
+	 * @param cuspCustomerProfileManList
+	 */
+	public void saveMain(CuspCustomerProfile cuspCustomerProfile,List<CuspCustomerProfileMan> cuspCustomerProfileManList) ;
+	
+	/**
+	 * 修改一对多
+	 *
+   * @param cuspCustomerProfile
+   * @param cuspCustomerProfileManList
+	 */
+	public void updateMain(CuspCustomerProfile cuspCustomerProfile,List<CuspCustomerProfileMan> cuspCustomerProfileManList);
+	
+	/**
+	 * 删除一对多
+	 *
+	 * @param id
+	 */
+	public void delMain (String id);
+	
+	/**
+	 * 批量删除一对多
+	 *
+	 * @param idList
+	 */
+	public void delBatchMain (Collection<? extends Serializable> idList);
+	
+}

+ 14 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspIntermediatorService.java

@@ -0,0 +1,14 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspIntermediator;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 中间人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspIntermediatorService extends IService<CuspIntermediator> {
+
+}

+ 22 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierEvaluationScoreService.java

@@ -0,0 +1,22 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.List;
+
+/**
+ * @Description: 供应商考评-得分
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspSupplierEvaluationScoreService extends IService<CuspSupplierEvaluationScore> {
+
+	/**
+	 * 通过主表id查询子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return List<CuspSupplierEvaluationScore>
+	 */
+	public List<CuspSupplierEvaluationScore> selectByMainId(String mainId);
+}

+ 48 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierEvaluationService.java

@@ -0,0 +1,48 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluation;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspSupplierEvaluationService extends IService<CuspSupplierEvaluation> {
+
+	/**
+	 * 添加一对多
+	 *
+	 * @param cuspSupplierEvaluation
+	 * @param cuspSupplierEvaluationScoreList
+	 */
+	public void saveMain(CuspSupplierEvaluation cuspSupplierEvaluation,List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList) ;
+	
+	/**
+	 * 修改一对多
+	 *
+   * @param cuspSupplierEvaluation
+   * @param cuspSupplierEvaluationScoreList
+	 */
+	public void updateMain(CuspSupplierEvaluation cuspSupplierEvaluation,List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList);
+	
+	/**
+	 * 删除一对多
+	 *
+	 * @param id
+	 */
+	public void delMain (String id);
+	
+	/**
+	 * 批量删除一对多
+	 *
+	 * @param idList
+	 */
+	public void delBatchMain (Collection<? extends Serializable> idList);
+	
+}

+ 22 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileManService.java

@@ -0,0 +1,22 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.List;
+
+/**
+ * @Description: 供应商档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspSupplierProfileManService extends IService<CuspSupplierProfileMan> {
+
+	/**
+	 * 通过主表id查询子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return List<CuspSupplierProfileMan>
+	 */
+	public List<CuspSupplierProfileMan> selectByMainId(String mainId);
+}

+ 22 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileQualificationService.java

@@ -0,0 +1,22 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.List;
+
+/**
+ * @Description: 供应商档案-资质信息
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspSupplierProfileQualificationService extends IService<CuspSupplierProfileQualification> {
+
+	/**
+	 * 通过主表id查询子表数据
+	 *
+	 * @param mainId 主表id
+	 * @return List<CuspSupplierProfileQualification>
+	 */
+	public List<CuspSupplierProfileQualification> selectByMainId(String mainId);
+}

+ 51 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/ICuspSupplierProfileService.java

@@ -0,0 +1,51 @@
+package com.cuidian.srm.cuspCode.service;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfile;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+public interface ICuspSupplierProfileService extends IService<CuspSupplierProfile> {
+
+	/**
+	 * 添加一对多
+	 *
+	 * @param cuspSupplierProfile
+	 * @param cuspSupplierProfileManList
+	 * @param cuspSupplierProfileQualificationList
+	 */
+	public void saveMain(CuspSupplierProfile cuspSupplierProfile,List<CuspSupplierProfileMan> cuspSupplierProfileManList,List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList) ;
+	
+	/**
+	 * 修改一对多
+	 *
+   * @param cuspSupplierProfile
+   * @param cuspSupplierProfileManList
+   * @param cuspSupplierProfileQualificationList
+	 */
+	public void updateMain(CuspSupplierProfile cuspSupplierProfile,List<CuspSupplierProfileMan> cuspSupplierProfileManList,List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList);
+	
+	/**
+	 * 删除一对多
+	 *
+	 * @param id
+	 */
+	public void delMain (String id);
+	
+	/**
+	 * 批量删除一对多
+	 *
+	 * @param idList
+	 */
+	public void delBatchMain (Collection<? extends Serializable> idList);
+	
+}

+ 27 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspCustomerProfileManServiceImpl.java

@@ -0,0 +1,27 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.cuidian.srm.cuspCode.mapper.CuspCustomerProfileManMapper;
+import com.cuidian.srm.cuspCode.service.ICuspCustomerProfileManService;
+import org.springframework.stereotype.Service;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * @Description: 客户档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspCustomerProfileManServiceImpl extends ServiceImpl<CuspCustomerProfileManMapper, CuspCustomerProfileMan> implements ICuspCustomerProfileManService {
+	
+	@Autowired
+	private CuspCustomerProfileManMapper cuspCustomerProfileManMapper;
+	
+	@Override
+	public List<CuspCustomerProfileMan> selectByMainId(String mainId) {
+		return cuspCustomerProfileManMapper.selectByMainId(mainId);
+	}
+}

+ 77 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspCustomerProfileServiceImpl.java

@@ -0,0 +1,77 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import com.cuidian.srm.cuspCode.mapper.CuspCustomerProfileManMapper;
+import com.cuidian.srm.cuspCode.mapper.CuspCustomerProfileMapper;
+import com.cuidian.srm.cuspCode.service.ICuspCustomerProfileService;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Collection;
+
+/**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspCustomerProfileServiceImpl extends ServiceImpl<CuspCustomerProfileMapper, CuspCustomerProfile> implements ICuspCustomerProfileService {
+
+	@Autowired
+	private CuspCustomerProfileMapper cuspCustomerProfileMapper;
+	@Autowired
+	private CuspCustomerProfileManMapper cuspCustomerProfileManMapper;
+	
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void saveMain(CuspCustomerProfile cuspCustomerProfile, List<CuspCustomerProfileMan> cuspCustomerProfileManList) {
+		cuspCustomerProfileMapper.insert(cuspCustomerProfile);
+		if(cuspCustomerProfileManList!=null && cuspCustomerProfileManList.size()>0) {
+			for(CuspCustomerProfileMan entity:cuspCustomerProfileManList) {
+				//外键设置
+				entity.setHeadId(cuspCustomerProfile.getId());
+				cuspCustomerProfileManMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void updateMain(CuspCustomerProfile cuspCustomerProfile,List<CuspCustomerProfileMan> cuspCustomerProfileManList) {
+		cuspCustomerProfileMapper.updateById(cuspCustomerProfile);
+		
+		//1.先删除子表数据
+		cuspCustomerProfileManMapper.deleteByMainId(cuspCustomerProfile.getId());
+		
+		//2.子表数据重新插入
+		if(cuspCustomerProfileManList!=null && cuspCustomerProfileManList.size()>0) {
+			for(CuspCustomerProfileMan entity:cuspCustomerProfileManList) {
+				//外键设置
+				entity.setHeadId(cuspCustomerProfile.getId());
+				cuspCustomerProfileManMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delMain(String id) {
+		cuspCustomerProfileManMapper.deleteByMainId(id);
+		cuspCustomerProfileMapper.deleteById(id);
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delBatchMain(Collection<? extends Serializable> idList) {
+		for(Serializable id:idList) {
+			cuspCustomerProfileManMapper.deleteByMainId(id.toString());
+			cuspCustomerProfileMapper.deleteById(id);
+		}
+	}
+	
+}

+ 19 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspIntermediatorServiceImpl.java

@@ -0,0 +1,19 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspIntermediator;
+import com.cuidian.srm.cuspCode.mapper.CuspIntermediatorMapper;
+import com.cuidian.srm.cuspCode.service.ICuspIntermediatorService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 中间人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspIntermediatorServiceImpl extends ServiceImpl<CuspIntermediatorMapper, CuspIntermediator> implements ICuspIntermediatorService {
+
+}

+ 27 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierEvaluationScoreServiceImpl.java

@@ -0,0 +1,27 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierEvaluationScoreMapper;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierEvaluationScoreService;
+import org.springframework.stereotype.Service;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * @Description: 供应商考评-得分
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspSupplierEvaluationScoreServiceImpl extends ServiceImpl<CuspSupplierEvaluationScoreMapper, CuspSupplierEvaluationScore> implements ICuspSupplierEvaluationScoreService {
+	
+	@Autowired
+	private CuspSupplierEvaluationScoreMapper cuspSupplierEvaluationScoreMapper;
+	
+	@Override
+	public List<CuspSupplierEvaluationScore> selectByMainId(String mainId) {
+		return cuspSupplierEvaluationScoreMapper.selectByMainId(mainId);
+	}
+}

+ 77 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierEvaluationServiceImpl.java

@@ -0,0 +1,77 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluation;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierEvaluationScoreMapper;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierEvaluationMapper;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierEvaluationService;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Collection;
+
+/**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspSupplierEvaluationServiceImpl extends ServiceImpl<CuspSupplierEvaluationMapper, CuspSupplierEvaluation> implements ICuspSupplierEvaluationService {
+
+	@Autowired
+	private CuspSupplierEvaluationMapper cuspSupplierEvaluationMapper;
+	@Autowired
+	private CuspSupplierEvaluationScoreMapper cuspSupplierEvaluationScoreMapper;
+	
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void saveMain(CuspSupplierEvaluation cuspSupplierEvaluation, List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList) {
+		cuspSupplierEvaluationMapper.insert(cuspSupplierEvaluation);
+		if(cuspSupplierEvaluationScoreList!=null && cuspSupplierEvaluationScoreList.size()>0) {
+			for(CuspSupplierEvaluationScore entity:cuspSupplierEvaluationScoreList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierEvaluation.getId());
+				cuspSupplierEvaluationScoreMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void updateMain(CuspSupplierEvaluation cuspSupplierEvaluation,List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList) {
+		cuspSupplierEvaluationMapper.updateById(cuspSupplierEvaluation);
+		
+		//1.先删除子表数据
+		cuspSupplierEvaluationScoreMapper.deleteByMainId(cuspSupplierEvaluation.getId());
+		
+		//2.子表数据重新插入
+		if(cuspSupplierEvaluationScoreList!=null && cuspSupplierEvaluationScoreList.size()>0) {
+			for(CuspSupplierEvaluationScore entity:cuspSupplierEvaluationScoreList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierEvaluation.getId());
+				cuspSupplierEvaluationScoreMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delMain(String id) {
+		cuspSupplierEvaluationScoreMapper.deleteByMainId(id);
+		cuspSupplierEvaluationMapper.deleteById(id);
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delBatchMain(Collection<? extends Serializable> idList) {
+		for(Serializable id:idList) {
+			cuspSupplierEvaluationScoreMapper.deleteByMainId(id.toString());
+			cuspSupplierEvaluationMapper.deleteById(id);
+		}
+	}
+	
+}

+ 27 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileManServiceImpl.java

@@ -0,0 +1,27 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierProfileManMapper;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileManService;
+import org.springframework.stereotype.Service;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * @Description: 供应商档案-联系人
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspSupplierProfileManServiceImpl extends ServiceImpl<CuspSupplierProfileManMapper, CuspSupplierProfileMan> implements ICuspSupplierProfileManService {
+	
+	@Autowired
+	private CuspSupplierProfileManMapper cuspSupplierProfileManMapper;
+	
+	@Override
+	public List<CuspSupplierProfileMan> selectByMainId(String mainId) {
+		return cuspSupplierProfileManMapper.selectByMainId(mainId);
+	}
+}

+ 27 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileQualificationServiceImpl.java

@@ -0,0 +1,27 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierProfileQualificationMapper;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileQualificationService;
+import org.springframework.stereotype.Service;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * @Description: 供应商档案-资质信息
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspSupplierProfileQualificationServiceImpl extends ServiceImpl<CuspSupplierProfileQualificationMapper, CuspSupplierProfileQualification> implements ICuspSupplierProfileQualificationService {
+	
+	@Autowired
+	private CuspSupplierProfileQualificationMapper cuspSupplierProfileQualificationMapper;
+	
+	@Override
+	public List<CuspSupplierProfileQualification> selectByMainId(String mainId) {
+		return cuspSupplierProfileQualificationMapper.selectByMainId(mainId);
+	}
+}

+ 98 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/service/impl/CuspSupplierProfileServiceImpl.java

@@ -0,0 +1,98 @@
+package com.cuidian.srm.cuspCode.service.impl;
+
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfile;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierProfileManMapper;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierProfileQualificationMapper;
+import com.cuidian.srm.cuspCode.mapper.CuspSupplierProfileMapper;
+import com.cuidian.srm.cuspCode.service.ICuspSupplierProfileService;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Collection;
+
+/**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Service
+public class CuspSupplierProfileServiceImpl extends ServiceImpl<CuspSupplierProfileMapper, CuspSupplierProfile> implements ICuspSupplierProfileService {
+
+	@Autowired
+	private CuspSupplierProfileMapper cuspSupplierProfileMapper;
+	@Autowired
+	private CuspSupplierProfileManMapper cuspSupplierProfileManMapper;
+	@Autowired
+	private CuspSupplierProfileQualificationMapper cuspSupplierProfileQualificationMapper;
+	
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void saveMain(CuspSupplierProfile cuspSupplierProfile, List<CuspSupplierProfileMan> cuspSupplierProfileManList,List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList) {
+		cuspSupplierProfileMapper.insert(cuspSupplierProfile);
+		if(cuspSupplierProfileManList!=null && cuspSupplierProfileManList.size()>0) {
+			for(CuspSupplierProfileMan entity:cuspSupplierProfileManList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierProfile.getId());
+				cuspSupplierProfileManMapper.insert(entity);
+			}
+		}
+		if(cuspSupplierProfileQualificationList!=null && cuspSupplierProfileQualificationList.size()>0) {
+			for(CuspSupplierProfileQualification entity:cuspSupplierProfileQualificationList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierProfile.getId());
+				cuspSupplierProfileQualificationMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void updateMain(CuspSupplierProfile cuspSupplierProfile,List<CuspSupplierProfileMan> cuspSupplierProfileManList,List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList) {
+		cuspSupplierProfileMapper.updateById(cuspSupplierProfile);
+		
+		//1.先删除子表数据
+		cuspSupplierProfileManMapper.deleteByMainId(cuspSupplierProfile.getId());
+		cuspSupplierProfileQualificationMapper.deleteByMainId(cuspSupplierProfile.getId());
+		
+		//2.子表数据重新插入
+		if(cuspSupplierProfileManList!=null && cuspSupplierProfileManList.size()>0) {
+			for(CuspSupplierProfileMan entity:cuspSupplierProfileManList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierProfile.getId());
+				cuspSupplierProfileManMapper.insert(entity);
+			}
+		}
+		if(cuspSupplierProfileQualificationList!=null && cuspSupplierProfileQualificationList.size()>0) {
+			for(CuspSupplierProfileQualification entity:cuspSupplierProfileQualificationList) {
+				//外键设置
+				entity.setHeadId(cuspSupplierProfile.getId());
+				cuspSupplierProfileQualificationMapper.insert(entity);
+			}
+		}
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delMain(String id) {
+		cuspSupplierProfileManMapper.deleteByMainId(id);
+		cuspSupplierProfileQualificationMapper.deleteByMainId(id);
+		cuspSupplierProfileMapper.deleteById(id);
+	}
+
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public void delBatchMain(Collection<? extends Serializable> idList) {
+		for(Serializable id:idList) {
+			cuspSupplierProfileManMapper.deleteByMainId(id.toString());
+			cuspSupplierProfileQualificationMapper.deleteByMainId(id.toString());
+			cuspSupplierProfileMapper.deleteById(id);
+		}
+	}
+	
+}

+ 153 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspCustomerProfilePage.java

@@ -0,0 +1,153 @@
+package com.cuidian.srm.cuspCode.vo;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
+import com.cuidian.srm.cuspCode.entity.CuspCustomerProfileMan;
+import lombok.Data;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecgframework.poi.excel.annotation.ExcelEntity;
+import org.jeecgframework.poi.excel.annotation.ExcelCollection;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.util.Date;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 客户档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Data
+@ApiModel(value="cusp_customer_profilePage对象", description="客户档案")
+public class CuspCustomerProfilePage {
+
+	/**主键id*/
+	@ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+	@ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+	@ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+	@ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+	@ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    private Integer delFlag;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+	@ApiModelProperty(value = "编码")
+    private String code;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+	@ApiModelProperty(value = "名称")
+    private String name;
+	/**简称*/
+	@Excel(name = "简称", width = 15)
+	@ApiModelProperty(value = "简称")
+    private String abbreviation;
+	/**曾用名*/
+	@Excel(name = "曾用名", width = 15)
+	@ApiModelProperty(value = "曾用名")
+    private String nameUsedBefore;
+	/**税号*/
+	@Excel(name = "税号", width = 15)
+	@ApiModelProperty(value = "税号")
+    private String dutyParagraph;
+	/**法人*/
+	@Excel(name = "法人", width = 15)
+	@ApiModelProperty(value = "法人")
+    private String legalPerson;
+	/**联系人*/
+	@Excel(name = "联系人", width = 15)
+	@ApiModelProperty(value = "联系人")
+    private String contacts;
+	/**联系电话*/
+	@Excel(name = "联系电话", width = 15)
+	@ApiModelProperty(value = "联系电话")
+    private String phone;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+	@ApiModelProperty(value = "邮箱")
+    private String email;
+	/**注册地址*/
+	@Excel(name = "注册地址", width = 15)
+	@ApiModelProperty(value = "注册地址")
+    private String registerAddress;
+	/**办公地址*/
+	@Excel(name = "办公地址", width = 15)
+	@ApiModelProperty(value = "办公地址")
+    private String officeAddress;
+	/**发票地址*/
+	@Excel(name = "发票地址", width = 15)
+	@ApiModelProperty(value = "发票地址")
+    private String invoiceAddress;
+	/**币种*/
+	@Excel(name = "币种", width = 15)
+	@ApiModelProperty(value = "币种")
+    private String currency;
+	/**国家*/
+	@Excel(name = "国家", width = 15)
+	@ApiModelProperty(value = "国家")
+    private String country;
+	/**付款条件*/
+	@Excel(name = "付款条件", width = 15)
+	@ApiModelProperty(value = "付款条件")
+    private String paymentTerms;
+	/**信用额度*/
+	@Excel(name = "信用额度", width = 15)
+	@ApiModelProperty(value = "信用额度")
+    private java.math.BigDecimal creditLimit;
+	/**折扣*/
+	@Excel(name = "折扣", width = 15)
+	@ApiModelProperty(value = "折扣")
+    private Double discount;
+	/**佣金*/
+	@Excel(name = "佣金", width = 15)
+	@ApiModelProperty(value = "佣金")
+    private java.math.BigDecimal commission;
+	/**中间人*/
+	@Excel(name = "中间人", width = 15)
+	@ApiModelProperty(value = "中间人")
+    private String intermediator;
+	/**中间人佣金*/
+	@Excel(name = "中间人佣金", width = 15)
+	@ApiModelProperty(value = "中间人佣金")
+    private java.math.BigDecimal intermediatorCommission;
+	/**优先级*/
+	@Excel(name = "优先级", width = 15)
+	@ApiModelProperty(value = "优先级")
+    private String priority;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+	@ApiModelProperty(value = "备注")
+    private String notes;
+	/**文件*/
+	@Excel(name = "文件", width = 15)
+	@ApiModelProperty(value = "文件")
+    private String files;
+
+	@ExcelCollection(name="客户档案-联系人")
+	@ApiModelProperty(value = "客户档案-联系人")
+	private List<CuspCustomerProfileMan> cuspCustomerProfileManList;
+
+}

+ 91 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspSupplierEvaluationPage.java

@@ -0,0 +1,91 @@
+package com.cuidian.srm.cuspCode.vo;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluation;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierEvaluationScore;
+import lombok.Data;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecgframework.poi.excel.annotation.ExcelEntity;
+import org.jeecgframework.poi.excel.annotation.ExcelCollection;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.util.Date;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 供应商考评
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Data
+@ApiModel(value="cusp_supplier_evaluationPage对象", description="供应商考评")
+public class CuspSupplierEvaluationPage {
+
+	/**主键id*/
+	@ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+	@ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+	@ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+	@ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+	@ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    private Integer delFlag;
+	/**单据日期*/
+	@Excel(name = "单据日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "单据日期")
+    private Date billDate;
+	/**考评单号*/
+	@Excel(name = "考评单号", width = 15)
+	@ApiModelProperty(value = "考评单号")
+    private String billCode;
+	/**供应商*/
+	@Excel(name = "供应商", width = 15)
+	@ApiModelProperty(value = "供应商")
+    private Integer supplierId;
+	/**考评期间*/
+	@Excel(name = "考评期间", width = 15)
+	@ApiModelProperty(value = "考评期间")
+    private String evaluationPeriod;
+	/**考评等级*/
+	@Excel(name = "考评等级", width = 15)
+	@ApiModelProperty(value = "考评等级")
+    private String evaluationLevel;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+	@ApiModelProperty(value = "备注")
+    private String notes;
+	/**提交(1-是 ,0-否)*/
+	@Excel(name = "提交(1-是 ,0-否)", width = 15)
+	@ApiModelProperty(value = "提交(1-是 ,0-否)")
+    private Integer submit;
+
+	@ExcelCollection(name="供应商考评-得分")
+	@ApiModelProperty(value = "供应商考评-得分")
+	private List<CuspSupplierEvaluationScore> cuspSupplierEvaluationScoreList;
+
+}

+ 165 - 0
srm-module-code/src/main/java/com/cuidian/srm/cuspCode/vo/CuspSupplierProfilePage.java

@@ -0,0 +1,165 @@
+package com.cuidian.srm.cuspCode.vo;
+
+import java.util.List;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfile;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileMan;
+import com.cuidian.srm.cuspCode.entity.CuspSupplierProfileQualification;
+import lombok.Data;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecgframework.poi.excel.annotation.ExcelEntity;
+import org.jeecgframework.poi.excel.annotation.ExcelCollection;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.util.Date;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * @Description: 供应商档案
+ * @Author: jeecg-boot
+ * @Date:   2024-11-07
+ * @Version: V1.0
+ */
+@Data
+@ApiModel(value="cusp_supplier_profilePage对象", description="供应商档案")
+public class CuspSupplierProfilePage {
+
+	/**主键id*/
+	@ApiModelProperty(value = "主键id")
+    private String id;
+	/**创建人*/
+	@ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "创建时间")
+    private Date createTime;
+	/**更新人*/
+	@ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+	/**状态(1-启用,0-停用)*/
+	@Excel(name = "状态(1-启用,0-停用)", width = 15)
+	@ApiModelProperty(value = "状态(1-启用,0-停用)")
+    private Integer status;
+	/**删除状态(0-正常,1-已删除)*/
+	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
+	@ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
+    private Integer delFlag;
+	/**编码*/
+	@Excel(name = "编码", width = 15)
+	@ApiModelProperty(value = "编码")
+    private String code;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+	@ApiModelProperty(value = "名称")
+    private String name;
+	/**简称*/
+	@Excel(name = "简称", width = 15)
+	@ApiModelProperty(value = "简称")
+    private String abbreviation;
+	/**曾用名*/
+	@Excel(name = "曾用名", width = 15)
+	@ApiModelProperty(value = "曾用名")
+    private String nameUsedBefore;
+	/**税号*/
+	@Excel(name = "税号", width = 15)
+	@ApiModelProperty(value = "税号")
+    private String dutyParagraph;
+	/**法人*/
+	@Excel(name = "法人", width = 15)
+	@ApiModelProperty(value = "法人")
+    private String legalPerson;
+	/**联系人*/
+	@Excel(name = "联系人", width = 15)
+	@ApiModelProperty(value = "联系人")
+    private String contacts;
+	/**联系电话*/
+	@Excel(name = "联系电话", width = 15)
+	@ApiModelProperty(value = "联系电话")
+    private String phone;
+	/**邮箱*/
+	@Excel(name = "邮箱", width = 15)
+	@ApiModelProperty(value = "邮箱")
+    private String email;
+	/**注册地址*/
+	@Excel(name = "注册地址", width = 15)
+	@ApiModelProperty(value = "注册地址")
+    private String registerAddress;
+	/**公司地址*/
+	@Excel(name = "公司地址", width = 15)
+	@ApiModelProperty(value = "公司地址")
+    private String address;
+	/**供应商性质*/
+	@Excel(name = "供应商性质", width = 15)
+	@ApiModelProperty(value = "供应商性质")
+    private String supplierNature;
+	/**国家*/
+	@Excel(name = "国家", width = 15)
+	@ApiModelProperty(value = "国家")
+    private String country;
+	/**币种*/
+	@Excel(name = "币种", width = 15)
+	@ApiModelProperty(value = "币种")
+    private String currency;
+	/**国外供应商*/
+	@Excel(name = "国外供应商", width = 15)
+	@ApiModelProperty(value = "国外供应商")
+    private Integer abroadSupplier;
+	/**原厂*/
+	@Excel(name = "原厂", width = 15)
+	@ApiModelProperty(value = "原厂")
+    private Integer originalFactory;
+	/**开户行*/
+	@Excel(name = "开户行", width = 15)
+	@ApiModelProperty(value = "开户行")
+    private String openingBank;
+	/**付款条件*/
+	@Excel(name = "付款条件", width = 15)
+	@ApiModelProperty(value = "付款条件")
+    private String paymentTerms;
+	/**银行代码*/
+	@Excel(name = "银行代码", width = 15)
+	@ApiModelProperty(value = "银行代码")
+    private String swiftCode;
+	/**银行帐号*/
+	@Excel(name = "银行帐号", width = 15)
+	@ApiModelProperty(value = "银行帐号")
+    private String bankAccount;
+	/**营业执照*/
+	@Excel(name = "营业执照", width = 15)
+	@ApiModelProperty(value = "营业执照")
+    private String businessLicense;
+	/**其他文件*/
+	@Excel(name = "其他文件", width = 15)
+	@ApiModelProperty(value = "其他文件")
+    private String otherFiles;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+	@ApiModelProperty(value = "备注")
+    private String notes;
+	/**临时供应商*/
+	@Excel(name = "临时供应商", width = 15)
+	@ApiModelProperty(value = "临时供应商")
+    private Integer temporarySupplier;
+	/**供应商等级*/
+	@Excel(name = "供应商等级", width = 15)
+	@ApiModelProperty(value = "供应商等级")
+    private String evaluationLevel;
+
+	@ExcelCollection(name="供应商档案-联系人")
+	@ApiModelProperty(value = "供应商档案-联系人")
+	private List<CuspSupplierProfileMan> cuspSupplierProfileManList;
+	@ExcelCollection(name="供应商档案-资质信息")
+	@ApiModelProperty(value = "供应商档案-资质信息")
+	private List<CuspSupplierProfileQualification> cuspSupplierProfileQualificationList;
+
+}