浏览代码

模块迁移

caozj 2 年之前
父节点
当前提交
2ac295968b
共有 44 个文件被更改,包括 11 次插入1876 次删除
  1. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseArrivalController.java
  2. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseController.java
  3. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProductController.java
  4. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProductMountingsController.java
  5. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProjectController.java
  6. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseArrivalDto.java
  7. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseArrivalSelectDto.java
  8. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseDto.java
  9. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductDto.java
  10. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductMountingsDto.java
  11. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductMountingsSelectDto.java
  12. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductSelectDto.java
  13. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProjectDto.java
  14. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProjectSelectDto.java
  15. 0 36
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseSelectDto.java
  16. 0 193
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchase.java
  17. 0 48
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseArrival.java
  18. 0 92
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProduct.java
  19. 0 68
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProductMountings.java
  20. 0 44
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProject.java
  21. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseArrivalVo.java
  22. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProductMountingsVo.java
  23. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProductVo.java
  24. 0 17
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProjectVo.java
  25. 0 21
      hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseVo.java
  26. 0 26
      hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseArrivalMapper.java
  27. 0 26
      hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseMapper.java
  28. 0 36
      hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProductMapper.java
  29. 0 26
      hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProductMountingsMapper.java
  30. 0 26
      hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProjectMapper.java
  31. 0 46
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseArrivalService.java
  32. 0 46
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProductMountingsService.java
  33. 0 56
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProductService.java
  34. 0 46
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProjectService.java
  35. 0 46
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseService.java
  36. 0 57
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseArrivalServiceImpl.java
  37. 0 57
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProductMountingsServiceImpl.java
  38. 0 72
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProductServiceImpl.java
  39. 0 57
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProjectServiceImpl.java
  40. 0 80
      hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseServiceImpl.java
  41. 0 103
      hx-ehsd/src/main/java/com/fjhx/ehsd/util/CodeEnum.java
  42. 5 5
      hx-sale/src/main/java/com/fjhx/sale/flow/EhsdPurchaseFlow.java
  43. 2 2
      hx-sale/src/main/java/com/fjhx/sale/service/contract/impl/ContractServiceImpl.java
  44. 4 0
      hx-sale/src/main/java/com/fjhx/sale/util/code/CodeEnum.java

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseArrivalController.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.controller.purchase;
-
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseArrivalVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalDto;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseArrivalService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-
-/**
- * <p>
- * 采购合同-到货计划 前端控制器
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@RestController
-@RequestMapping("/ehsdPurchaseArrival")
-public class EhsdPurchaseArrivalController {
-
-    @Autowired
-    private EhsdPurchaseArrivalService ehsdPurchaseArrivalService;
-
-    /**
-     * 采购合同-到货计划分页
-     */
-    @PostMapping("/page")
-    public Page<EhsdPurchaseArrivalVo> page(@RequestBody EhsdPurchaseArrivalSelectDto dto) {
-        return ehsdPurchaseArrivalService.getPage(dto);
-    }
-
-    /**
-     * 采购合同-到货计划明细
-     */
-    @PostMapping("/detail")
-    public EhsdPurchaseArrivalVo detail(@RequestBody BaseSelectDto dto) {
-        return ehsdPurchaseArrivalService.detail(dto.getId());
-    }
-
-    /**
-     * 采购合同-到货计划新增
-     */
-    @PostMapping("/add")
-    public void add(@RequestBody EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto) {
-        ehsdPurchaseArrivalService.add(ehsdPurchaseArrivalDto);
-    }
-
-    /**
-     * 采购合同-到货计划编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto) {
-        ehsdPurchaseArrivalService.edit(ehsdPurchaseArrivalDto);
-    }
-
-    /**
-     * 采购合同-到货计划删除
-     */
-    @PostMapping("/delete")
-    public void delete(@RequestBody BaseSelectDto dto) {
-        ehsdPurchaseArrivalService.delete(dto.getId());
-    }
-
-}

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseController.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.controller.purchase;
-
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseDto;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-
-/**
- * <p>
- * ehsd采购表 前端控制器
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@RestController
-@RequestMapping("/ehsdPurchase")
-public class EhsdPurchaseController {
-
-    @Autowired
-    private EhsdPurchaseService ehsdPurchaseService;
-
-    /**
-     * ehsd采购表分页
-     */
-    @PostMapping("/page")
-    public Page<EhsdPurchaseVo> page(@RequestBody EhsdPurchaseSelectDto dto) {
-        return ehsdPurchaseService.getPage(dto);
-    }
-
-    /**
-     * ehsd采购表明细
-     */
-    @PostMapping("/detail")
-    public EhsdPurchaseVo detail(@RequestBody BaseSelectDto dto) {
-        return ehsdPurchaseService.detail(dto.getId());
-    }
-
-    /**
-     * ehsd采购表新增
-     */
-    @PostMapping("/add")
-    public void add(@RequestBody EhsdPurchaseDto ehsdPurchaseDto) {
-        ehsdPurchaseService.add(ehsdPurchaseDto);
-    }
-
-    /**
-     * ehsd采购表编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody EhsdPurchaseDto ehsdPurchaseDto) {
-        ehsdPurchaseService.edit(ehsdPurchaseDto);
-    }
-
-    /**
-     * ehsd采购表删除
-     */
-    @PostMapping("/delete")
-    public void delete(@RequestBody BaseSelectDto dto) {
-        ehsdPurchaseService.delete(dto.getId());
-    }
-
-}

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProductController.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.controller.purchase;
-
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductDto;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProductService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-
-/**
- * <p>
- * ehsd采购产品表 前端控制器
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@RestController
-@RequestMapping("/ehsdPurchaseProduct")
-public class EhsdPurchaseProductController {
-
-    @Autowired
-    private EhsdPurchaseProductService ehsdPurchaseProductService;
-
-    /**
-     * ehsd采购产品表分页
-     */
-    @PostMapping("/page")
-    public Page<EhsdPurchaseProductVo> page(@RequestBody EhsdPurchaseProductSelectDto dto) {
-        return ehsdPurchaseProductService.getPage(dto);
-    }
-
-    /**
-     * ehsd采购产品表明细
-     */
-    @PostMapping("/detail")
-    public EhsdPurchaseProductVo detail(@RequestBody BaseSelectDto dto) {
-        return ehsdPurchaseProductService.detail(dto.getId());
-    }
-
-    /**
-     * ehsd采购产品表新增
-     */
-    @PostMapping("/add")
-    public void add(@RequestBody EhsdPurchaseProductDto ehsdPurchaseProductDto) {
-        ehsdPurchaseProductService.add(ehsdPurchaseProductDto);
-    }
-
-    /**
-     * ehsd采购产品表编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody EhsdPurchaseProductDto ehsdPurchaseProductDto) {
-        ehsdPurchaseProductService.edit(ehsdPurchaseProductDto);
-    }
-
-    /**
-     * ehsd采购产品表删除
-     */
-    @PostMapping("/delete")
-    public void delete(@RequestBody BaseSelectDto dto) {
-        ehsdPurchaseProductService.delete(dto.getId());
-    }
-
-}

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProductMountingsController.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.controller.purchase;
-
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductMountingsVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsDto;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProductMountingsService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-
-/**
- * <p>
- * ehsd采购产品配件表 前端控制器
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@RestController
-@RequestMapping("/ehsdPurchaseProductMountings")
-public class EhsdPurchaseProductMountingsController {
-
-    @Autowired
-    private EhsdPurchaseProductMountingsService ehsdPurchaseProductMountingsService;
-
-    /**
-     * ehsd采购产品配件表分页
-     */
-    @PostMapping("/page")
-    public Page<EhsdPurchaseProductMountingsVo> page(@RequestBody EhsdPurchaseProductMountingsSelectDto dto) {
-        return ehsdPurchaseProductMountingsService.getPage(dto);
-    }
-
-    /**
-     * ehsd采购产品配件表明细
-     */
-    @PostMapping("/detail")
-    public EhsdPurchaseProductMountingsVo detail(@RequestBody BaseSelectDto dto) {
-        return ehsdPurchaseProductMountingsService.detail(dto.getId());
-    }
-
-    /**
-     * ehsd采购产品配件表新增
-     */
-    @PostMapping("/add")
-    public void add(@RequestBody EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto) {
-        ehsdPurchaseProductMountingsService.add(ehsdPurchaseProductMountingsDto);
-    }
-
-    /**
-     * ehsd采购产品配件表编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto) {
-        ehsdPurchaseProductMountingsService.edit(ehsdPurchaseProductMountingsDto);
-    }
-
-    /**
-     * ehsd采购产品配件表删除
-     */
-    @PostMapping("/delete")
-    public void delete(@RequestBody BaseSelectDto dto) {
-        ehsdPurchaseProductMountingsService.delete(dto.getId());
-    }
-
-}

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/controller/purchase/EhsdPurchaseProjectController.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.controller.purchase;
-
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProjectVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectDto;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProjectService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-
-/**
- * <p>
- * 采购合同-收费项目 前端控制器
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@RestController
-@RequestMapping("/ehsdPurchaseProject")
-public class EhsdPurchaseProjectController {
-
-    @Autowired
-    private EhsdPurchaseProjectService ehsdPurchaseProjectService;
-
-    /**
-     * 采购合同-收费项目分页
-     */
-    @PostMapping("/page")
-    public Page<EhsdPurchaseProjectVo> page(@RequestBody EhsdPurchaseProjectSelectDto dto) {
-        return ehsdPurchaseProjectService.getPage(dto);
-    }
-
-    /**
-     * 采购合同-收费项目明细
-     */
-    @PostMapping("/detail")
-    public EhsdPurchaseProjectVo detail(@RequestBody BaseSelectDto dto) {
-        return ehsdPurchaseProjectService.detail(dto.getId());
-    }
-
-    /**
-     * 采购合同-收费项目新增
-     */
-    @PostMapping("/add")
-    public void add(@RequestBody EhsdPurchaseProjectDto ehsdPurchaseProjectDto) {
-        ehsdPurchaseProjectService.add(ehsdPurchaseProjectDto);
-    }
-
-    /**
-     * 采购合同-收费项目编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody EhsdPurchaseProjectDto ehsdPurchaseProjectDto) {
-        ehsdPurchaseProjectService.edit(ehsdPurchaseProjectDto);
-    }
-
-    /**
-     * 采购合同-收费项目删除
-     */
-    @PostMapping("/delete")
-    public void delete(@RequestBody BaseSelectDto dto) {
-        ehsdPurchaseProjectService.delete(dto.getId());
-    }
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseArrivalDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseArrival;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-到货计划新增编辑入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseArrivalDto extends EhsdPurchaseArrival {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseArrivalSelectDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-到货计划列表查询入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseArrivalSelectDto extends BaseSelectDto {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchase;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购表新增编辑入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseDto extends EhsdPurchase {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品表新增编辑入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductDto extends EhsdPurchaseProduct {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductMountingsDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProductMountings;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品配件表新增编辑入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductMountingsDto extends EhsdPurchaseProductMountings {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductMountingsSelectDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品配件表列表查询入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductMountingsSelectDto extends BaseSelectDto {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProductSelectDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品表列表查询入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductSelectDto extends BaseSelectDto {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProjectDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProject;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-收费项目新增编辑入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProjectDto extends EhsdPurchaseProject {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseProjectSelectDto.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-收费项目列表查询入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProjectSelectDto extends BaseSelectDto {
-
-}

+ 0 - 36
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/dto/EhsdPurchaseSelectDto.java

@@ -1,36 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购表列表查询入参实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseSelectDto extends BaseSelectDto {
-
-    /**
-     * 采购状态
-     */
-    private Integer purchaseStatus;
-
-    /**
-     * 到货状态
-     */
-    private Integer arrivalStatus;
-
-    /**
-     * 付款状态
-     */
-    private Integer payStatus;
-
-    /**
-     * 供应商名称
-     */
-    private String supplyName;
-}

+ 0 - 193
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchase.java

@@ -1,193 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.po;
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.math.BigDecimal;
-import java.util.Date;
-import java.util.List;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * ehsd采购表
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-@TableName("ehsd_purchase")
-public class EhsdPurchase extends BasePo {
-
-    /**
-     * 编码
-     */
-    private String code;
-
-    /**
-     * 合同模版ID
-     */
-    private Long contractTemplateId;
-
-    /**
-     * 卖方公司ID
-     */
-    private Long sellCorporationId;
-
-    /**
-     * 卖方联系人名称
-     */
-    private String sellContactName;
-
-    /**
-     * 卖方联系人电话
-     */
-    private String sellContactNumber;
-
-    /**
-     * 卖方国家表id
-     */
-    private String sellCountryId;
-
-    /**
-     * 卖方省份id
-     */
-    private String sellProvinceId;
-
-    /**
-     * 卖方城市id
-     */
-    private String sellCityId;
-
-    /**
-     * 卖方详细地址
-     */
-    private String sellAddress;
-
-    /**
-     * 买方公司ID
-     */
-    private Long buyCorporationId;
-
-    /**
-     * 买方联系人名称
-     */
-    private String buyContactName;
-
-    /**
-     * 买方联系人电话
-     */
-    private String buyContactNumber;
-
-    /**
-     * 买方国家表id
-     */
-    private String buyCountryId;
-
-    /**
-     * 买方省份id
-     */
-    private String buyProvinceId;
-
-    /**
-     * 买方城市id
-     */
-    private String buyCityId;
-
-    /**
-     * 买方详细地址
-     */
-    private String buyAddress;
-
-    /**
-     * 买方邮编
-     */
-    private String buyPostalCode;
-
-    /**
-     * 审批状态 0草稿 10、审批中;20、驳回  30、审批通过 88:作废   99终止
-     */
-    private Integer status;
-
-    /**
-     * 付款状态 0未付款  10部分付款  20已付款
-     */
-    private Integer payStatus;
-
-    /**
-     * 采购总金额
-     */
-    private BigDecimal amount;
-
-    /**
-     * 条款内容
-     */
-    private String remark;
-
-    /**
-     * 币种(字典account_currency)
-     */
-    private String currency;
-
-    /**
-     * 交期
-     */
-    private String deliveryTime;
-
-    /**
-     * 交货类型字典(delivery_type)
-     */
-    private String deliveryType;
-
-    /**
-     * 发票类型
-     */
-    private String invoiceType;
-
-    /**
-     * 付款方式(字典funds_payment_method
-     */
-    private String paymentMethod;
-
-    /**
-     * 质保期
-     */
-    private Integer warranty;
-
-    /**
-     * 流程KEY
-     */
-    private String processInstanceId;
-
-    /**
-     * 审核通过时间
-     */
-    private Date approvedDate;
-
-    /**
-     * 创建人名称
-     */
-    private String userName;
-
-    /**
-     * 采购到货列表
-     */
-    @TableField(exist = false)
-    private List<EhsdPurchaseArrival> purchaseArrivalList;
-
-    /**
-     * 采购商品列表
-     */
-    @TableField(exist = false)
-    private List<EhsdPurchaseProduct> purchaseProductList;
-
-    /**
-     * 采购商品列表
-     */
-    @TableField(exist = false)
-    private List<EhsdPurchaseProject> purchaseProjectList;
-}

+ 0 - 48
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseArrival.java

@@ -1,48 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.po;
-
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.math.BigDecimal;
-import java.util.Date;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * 采购合同-到货计划
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-@TableName("ehsd_purchase_arrival")
-public class EhsdPurchaseArrival extends BasePo {
-
-    /**
-     * 采购合同ID
-     */
-    private Long purchaseId;
-
-    /**
-     * 商品ID
-     */
-    private Long productId;
-
-    /**
-     * 到货日期
-     */
-    private Date arrivalTime;
-
-    /**
-     * 到货数量
-     */
-    private BigDecimal quantity;
-
-    /**
-     * 备注
-     */
-    private String remark;
-
-}

+ 0 - 92
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProduct.java

@@ -1,92 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.po;
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.fjhx.file.entity.ObsFile;
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.math.BigDecimal;
-import java.util.List;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * ehsd采购产品表
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-@TableName("ehsd_purchase_product")
-public class EhsdPurchaseProduct extends BasePo {
-
-    /**
-     * 采购单ID
-     */
-    private Long purchaseId;
-
-    /**
-     * 商品ID
-     */
-    private Long productId;
-
-    /**
-     * 商品名称
-     */
-    private String productName;
-
-    /**
-     * 商品型号
-     */
-    private String productModel;
-
-    /**
-     * 商品数量
-     */
-    private BigDecimal quantity;
-
-    /**
-     * 商品单价
-     */
-    private BigDecimal price;
-
-    /**
-     * 商品金额
-     */
-    private BigDecimal amount;
-
-    /**
-     * 备注
-     */
-    private String remark;
-
-    /**
-     * 尔弘时代扩展JSON
-     */
-    private String json;
-
-    /**
-     * 业务来源 0自建  1外销合同采购
-     */
-    private Integer dataResource;
-
-    /**
-     * 业务来源ID
-     */
-    private Long dataResourceId;
-
-    /**
-     * 产品配件列表
-     */
-    @TableField(exist = false)
-    private List<EhsdPurchaseProductMountings> purchaseProductMountingsList;
-
-    /**
-     * 附件列表
-     */
-    @TableField(exist = false)
-    private List<ObsFile> fileList;
-}

+ 0 - 68
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProductMountings.java

@@ -1,68 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.po;
-
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.math.BigDecimal;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * ehsd采购产品配件表
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-@TableName("ehsd_purchase_product_mountings")
-public class EhsdPurchaseProductMountings extends BasePo {
-
-    /**
-     * 采购单ID
-     */
-    private Long purchaseProductId;
-
-    /**
-     * 商品ID
-     */
-    private Long productId;
-
-    /**
-     * 商品名称
-     */
-    private String productName;
-
-    /**
-     * 商品型号
-     */
-    private String productModel;
-
-    /**
-     * 商品数量
-     */
-    private BigDecimal quantity;
-
-    /**
-     * 商品单价
-     */
-    private BigDecimal price;
-
-    /**
-     * 商品金额
-     */
-    private BigDecimal amount;
-
-    /**
-     * 备注
-     */
-    private String remark;
-
-    /**
-     * 尔弘时代扩展JSON
-     */
-    private String json;
-
-}

+ 0 - 44
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/po/EhsdPurchaseProject.java

@@ -1,44 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.po;
-
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.math.BigDecimal;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * 采购合同-收费项目
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-@TableName("ehsd_purchase_project")
-public class EhsdPurchaseProject extends BasePo {
-
-    /**
-     * 采购单ID
-     */
-    private Long purchaseId;
-
-    /**
-     * 收费项目
-
-     */
-    private String payName;
-
-    /**
-     * 金额
-     */
-    private BigDecimal amount;
-
-    /**
-     * 备注
-     */
-    private String remark;
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseArrivalVo.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.vo;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseArrival;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-到货计划列表查询返回值实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseArrivalVo extends EhsdPurchaseArrival {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProductMountingsVo.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.vo;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProductMountings;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品配件表列表查询返回值实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductMountingsVo extends EhsdPurchaseProductMountings {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProductVo.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.vo;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购产品表列表查询返回值实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProductVo extends EhsdPurchaseProduct {
-
-}

+ 0 - 17
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseProjectVo.java

@@ -1,17 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.vo;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProject;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 采购合同-收费项目列表查询返回值实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseProjectVo extends EhsdPurchaseProject {
-
-}

+ 0 - 21
hx-ehsd/src/main/java/com/fjhx/ehsd/entity/purchase/vo/EhsdPurchaseVo.java

@@ -1,21 +0,0 @@
-package com.fjhx.ehsd.entity.purchase.vo;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchase;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * ehsd采购表列表查询返回值实体
- *
- * @author 
- * @since 2023-05-17
- */
-@Getter
-@Setter
-public class EhsdPurchaseVo extends EhsdPurchase {
-
-    /**
-     * 供应商名称
-     */
-    private String supplyName;
-}

+ 0 - 26
hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseArrivalMapper.java

@@ -1,26 +0,0 @@
-package com.fjhx.ehsd.mapper.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseArrival;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseArrivalVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 采购合同-到货计划 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseArrivalMapper extends BaseMapper<EhsdPurchaseArrival> {
-
-    /**
-     * 采购合同-到货计划分页
-     */
-    Page<EhsdPurchaseArrivalVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<EhsdPurchaseArrival> wrapper);
-
-}

+ 0 - 26
hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseMapper.java

@@ -1,26 +0,0 @@
-package com.fjhx.ehsd.mapper.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchase;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * ehsd采购表 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseMapper extends BaseMapper<EhsdPurchase> {
-
-    /**
-     * ehsd采购表分页
-     */
-    Page<EhsdPurchaseVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<EhsdPurchase> wrapper);
-
-}

+ 0 - 36
hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProductMapper.java

@@ -1,36 +0,0 @@
-package com.fjhx.ehsd.mapper.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-import java.math.BigDecimal;
-import java.util.List;
-import java.util.Map;
-
-
-/**
- * <p>
- * ehsd采购产品表 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProductMapper extends BaseMapper<EhsdPurchaseProduct> {
-
-    /**
-     * ehsd采购产品表分页
-     */
-    Page<EhsdPurchaseProductVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<EhsdPurchaseProduct> wrapper);
-
-    /**
-     * 查询采购产品总金额,通过数据来源ID
-     * @param contractIds
-     * @return
-     */
-    Map<Long, BigDecimal> getGroupSumAmount(List<Long> contractIds);
-}

+ 0 - 26
hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProductMountingsMapper.java

@@ -1,26 +0,0 @@
-package com.fjhx.ehsd.mapper.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProductMountings;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductMountingsVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * ehsd采购产品配件表 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProductMountingsMapper extends BaseMapper<EhsdPurchaseProductMountings> {
-
-    /**
-     * ehsd采购产品配件表分页
-     */
-    Page<EhsdPurchaseProductMountingsVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<EhsdPurchaseProductMountings> wrapper);
-
-}

+ 0 - 26
hx-ehsd/src/main/java/com/fjhx/ehsd/mapper/purchase/EhsdPurchaseProjectMapper.java

@@ -1,26 +0,0 @@
-package com.fjhx.ehsd.mapper.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProject;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProjectVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 采购合同-收费项目 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProjectMapper extends BaseMapper<EhsdPurchaseProject> {
-
-    /**
-     * 采购合同-收费项目分页
-     */
-    Page<EhsdPurchaseProjectVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<EhsdPurchaseProject> wrapper);
-
-}

+ 0 - 46
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseArrivalService.java

@@ -1,46 +0,0 @@
-package com.fjhx.ehsd.service.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseArrival;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseArrivalVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalDto;
-
-
-/**
- * <p>
- * 采购合同-到货计划 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseArrivalService extends BaseService<EhsdPurchaseArrival> {
-
-    /**
-     * 采购合同-到货计划分页
-     */
-    Page<EhsdPurchaseArrivalVo> getPage(EhsdPurchaseArrivalSelectDto dto);
-
-    /**
-     * 采购合同-到货计划明细
-     */
-    EhsdPurchaseArrivalVo detail(Long id);
-
-    /**
-     * 采购合同-到货计划新增
-     */
-    void add(EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto);
-
-    /**
-     * 采购合同-到货计划编辑
-     */
-    void edit(EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto);
-
-    /**
-     * 采购合同-到货计划删除
-     */
-    void delete(Long id);
-
-}

+ 0 - 46
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProductMountingsService.java

@@ -1,46 +0,0 @@
-package com.fjhx.ehsd.service.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProductMountings;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductMountingsVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsDto;
-
-
-/**
- * <p>
- * ehsd采购产品配件表 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProductMountingsService extends BaseService<EhsdPurchaseProductMountings> {
-
-    /**
-     * ehsd采购产品配件表分页
-     */
-    Page<EhsdPurchaseProductMountingsVo> getPage(EhsdPurchaseProductMountingsSelectDto dto);
-
-    /**
-     * ehsd采购产品配件表明细
-     */
-    EhsdPurchaseProductMountingsVo detail(Long id);
-
-    /**
-     * ehsd采购产品配件表新增
-     */
-    void add(EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto);
-
-    /**
-     * ehsd采购产品配件表编辑
-     */
-    void edit(EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto);
-
-    /**
-     * ehsd采购产品配件表删除
-     */
-    void delete(Long id);
-
-}

+ 0 - 56
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProductService.java

@@ -1,56 +0,0 @@
-package com.fjhx.ehsd.service.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductDto;
-
-import java.math.BigDecimal;
-import java.util.List;
-import java.util.Map;
-
-
-/**
- * <p>
- * ehsd采购产品表 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProductService extends BaseService<EhsdPurchaseProduct> {
-
-    /**
-     * ehsd采购产品表分页
-     */
-    Page<EhsdPurchaseProductVo> getPage(EhsdPurchaseProductSelectDto dto);
-
-    /**
-     * ehsd采购产品表明细
-     */
-    EhsdPurchaseProductVo detail(Long id);
-
-    /**
-     * ehsd采购产品表新增
-     */
-    void add(EhsdPurchaseProductDto ehsdPurchaseProductDto);
-
-    /**
-     * ehsd采购产品表编辑
-     */
-    void edit(EhsdPurchaseProductDto ehsdPurchaseProductDto);
-
-    /**
-     * ehsd采购产品表删除
-     */
-    void delete(Long id);
-
-    /**
-     * 查询采购产品总金额,通过数据来源ID
-     * @param contractIds
-     * @return
-     */
-    Map<Long, BigDecimal> getGroupSumAmount(List<Long> contractIds);
-}

+ 0 - 46
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseProjectService.java

@@ -1,46 +0,0 @@
-package com.fjhx.ehsd.service.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProject;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProjectVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectDto;
-
-
-/**
- * <p>
- * 采购合同-收费项目 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseProjectService extends BaseService<EhsdPurchaseProject> {
-
-    /**
-     * 采购合同-收费项目分页
-     */
-    Page<EhsdPurchaseProjectVo> getPage(EhsdPurchaseProjectSelectDto dto);
-
-    /**
-     * 采购合同-收费项目明细
-     */
-    EhsdPurchaseProjectVo detail(Long id);
-
-    /**
-     * 采购合同-收费项目新增
-     */
-    void add(EhsdPurchaseProjectDto ehsdPurchaseProjectDto);
-
-    /**
-     * 采购合同-收费项目编辑
-     */
-    void edit(EhsdPurchaseProjectDto ehsdPurchaseProjectDto);
-
-    /**
-     * 采购合同-收费项目删除
-     */
-    void delete(Long id);
-
-}

+ 0 - 46
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/EhsdPurchaseService.java

@@ -1,46 +0,0 @@
-package com.fjhx.ehsd.service.purchase;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchase;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseSelectDto;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseDto;
-
-
-/**
- * <p>
- * ehsd采购表 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-public interface EhsdPurchaseService extends BaseService<EhsdPurchase> {
-
-    /**
-     * ehsd采购表分页
-     */
-    Page<EhsdPurchaseVo> getPage(EhsdPurchaseSelectDto dto);
-
-    /**
-     * ehsd采购表明细
-     */
-    EhsdPurchaseVo detail(Long id);
-
-    /**
-     * ehsd采购表新增
-     */
-    void add(EhsdPurchaseDto ehsdPurchaseDto);
-
-    /**
-     * ehsd采购表编辑
-     */
-    void edit(EhsdPurchaseDto ehsdPurchaseDto);
-
-    /**
-     * ehsd采购表删除
-     */
-    void delete(Long id);
-
-}

+ 0 - 57
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseArrivalServiceImpl.java

@@ -1,57 +0,0 @@
-package com.fjhx.ehsd.service.purchase.impl;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseArrival;
-import com.fjhx.ehsd.mapper.purchase.EhsdPurchaseArrivalMapper;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseArrivalService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseArrivalVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalSelectDto;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseArrivalDto;
-import cn.hutool.core.bean.BeanUtil;
-
-
-/**
- * <p>
- * 采购合同-到货计划 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Service
-public class EhsdPurchaseArrivalServiceImpl extends ServiceImpl<EhsdPurchaseArrivalMapper, EhsdPurchaseArrival> implements EhsdPurchaseArrivalService {
-
-    @Override
-    public Page<EhsdPurchaseArrivalVo> getPage(EhsdPurchaseArrivalSelectDto dto) {
-        IWrapper<EhsdPurchaseArrival> wrapper = getWrapper();
-        wrapper.orderByDesc("epa", EhsdPurchaseArrival::getId);
-        Page<EhsdPurchaseArrivalVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public EhsdPurchaseArrivalVo detail(Long id) {
-        EhsdPurchaseArrival EhsdPurchaseArrival = this.getById(id);
-        EhsdPurchaseArrivalVo result = BeanUtil.toBean(EhsdPurchaseArrival, EhsdPurchaseArrivalVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto) {
-        this.save(ehsdPurchaseArrivalDto);
-    }
-
-    @Override
-    public void edit(EhsdPurchaseArrivalDto ehsdPurchaseArrivalDto) {
-        this.updateById(ehsdPurchaseArrivalDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}

+ 0 - 57
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProductMountingsServiceImpl.java

@@ -1,57 +0,0 @@
-package com.fjhx.ehsd.service.purchase.impl;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProductMountings;
-import com.fjhx.ehsd.mapper.purchase.EhsdPurchaseProductMountingsMapper;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProductMountingsService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductMountingsVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsSelectDto;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductMountingsDto;
-import cn.hutool.core.bean.BeanUtil;
-
-
-/**
- * <p>
- * ehsd采购产品配件表 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Service
-public class EhsdPurchaseProductMountingsServiceImpl extends ServiceImpl<EhsdPurchaseProductMountingsMapper, EhsdPurchaseProductMountings> implements EhsdPurchaseProductMountingsService {
-
-    @Override
-    public Page<EhsdPurchaseProductMountingsVo> getPage(EhsdPurchaseProductMountingsSelectDto dto) {
-        IWrapper<EhsdPurchaseProductMountings> wrapper = getWrapper();
-        wrapper.orderByDesc("eppm", EhsdPurchaseProductMountings::getId);
-        Page<EhsdPurchaseProductMountingsVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public EhsdPurchaseProductMountingsVo detail(Long id) {
-        EhsdPurchaseProductMountings EhsdPurchaseProductMountings = this.getById(id);
-        EhsdPurchaseProductMountingsVo result = BeanUtil.toBean(EhsdPurchaseProductMountings, EhsdPurchaseProductMountingsVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto) {
-        this.save(ehsdPurchaseProductMountingsDto);
-    }
-
-    @Override
-    public void edit(EhsdPurchaseProductMountingsDto ehsdPurchaseProductMountingsDto) {
-        this.updateById(ehsdPurchaseProductMountingsDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}

+ 0 - 72
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProductServiceImpl.java

@@ -1,72 +0,0 @@
-package com.fjhx.ehsd.service.purchase.impl;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import com.fjhx.ehsd.mapper.purchase.EhsdPurchaseProductMapper;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProductService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProductVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductSelectDto;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProductDto;
-import cn.hutool.core.bean.BeanUtil;
-
-import java.math.BigDecimal;
-import java.util.List;
-import java.util.Map;
-
-
-/**
- * <p>
- * ehsd采购产品表 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Service
-public class EhsdPurchaseProductServiceImpl extends ServiceImpl<EhsdPurchaseProductMapper, EhsdPurchaseProduct> implements EhsdPurchaseProductService {
-
-    @Override
-    public Page<EhsdPurchaseProductVo> getPage(EhsdPurchaseProductSelectDto dto) {
-        IWrapper<EhsdPurchaseProduct> wrapper = getWrapper();
-        wrapper.orderByDesc("epp", EhsdPurchaseProduct::getId);
-        Page<EhsdPurchaseProductVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public EhsdPurchaseProductVo detail(Long id) {
-        EhsdPurchaseProduct EhsdPurchaseProduct = this.getById(id);
-        EhsdPurchaseProductVo result = BeanUtil.toBean(EhsdPurchaseProduct, EhsdPurchaseProductVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(EhsdPurchaseProductDto ehsdPurchaseProductDto) {
-        this.save(ehsdPurchaseProductDto);
-    }
-
-    @Override
-    public void edit(EhsdPurchaseProductDto ehsdPurchaseProductDto) {
-        this.updateById(ehsdPurchaseProductDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-    /**
-     * 查询采购产品总金额,通过数据来源ID
-     * @param contractIds
-     * @return
-     */
-    @Override
-    public Map<Long, BigDecimal> getGroupSumAmount(List<Long> contractIds) {
-        return baseMapper.getGroupSumAmount(contractIds);
-    }
-
-
-}

+ 0 - 57
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseProjectServiceImpl.java

@@ -1,57 +0,0 @@
-package com.fjhx.ehsd.service.purchase.impl;
-
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProject;
-import com.fjhx.ehsd.mapper.purchase.EhsdPurchaseProjectMapper;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProjectService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseProjectVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectSelectDto;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseProjectDto;
-import cn.hutool.core.bean.BeanUtil;
-
-
-/**
- * <p>
- * 采购合同-收费项目 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Service
-public class EhsdPurchaseProjectServiceImpl extends ServiceImpl<EhsdPurchaseProjectMapper, EhsdPurchaseProject> implements EhsdPurchaseProjectService {
-
-    @Override
-    public Page<EhsdPurchaseProjectVo> getPage(EhsdPurchaseProjectSelectDto dto) {
-        IWrapper<EhsdPurchaseProject> wrapper = getWrapper();
-        wrapper.orderByDesc("epp", EhsdPurchaseProject::getId);
-        Page<EhsdPurchaseProjectVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public EhsdPurchaseProjectVo detail(Long id) {
-        EhsdPurchaseProject EhsdPurchaseProject = this.getById(id);
-        EhsdPurchaseProjectVo result = BeanUtil.toBean(EhsdPurchaseProject, EhsdPurchaseProjectVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(EhsdPurchaseProjectDto ehsdPurchaseProjectDto) {
-        this.save(ehsdPurchaseProjectDto);
-    }
-
-    @Override
-    public void edit(EhsdPurchaseProjectDto ehsdPurchaseProjectDto) {
-        this.updateById(ehsdPurchaseProjectDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}

+ 0 - 80
hx-ehsd/src/main/java/com/fjhx/ehsd/service/purchase/impl/EhsdPurchaseServiceImpl.java

@@ -1,80 +0,0 @@
-package com.fjhx.ehsd.service.purchase.impl;
-
-import com.baomidou.dynamic.datasource.annotation.DS;
-import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
-import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchase;
-import com.fjhx.ehsd.mapper.purchase.EhsdPurchaseMapper;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.purchase.entity.purchase.po.Purchase;
-import com.ruoyi.common.utils.wrapper.SqlField;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.ehsd.entity.purchase.vo.EhsdPurchaseVo;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseSelectDto;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import com.fjhx.ehsd.entity.purchase.dto.EhsdPurchaseDto;
-import cn.hutool.core.bean.BeanUtil;
-
-
-/**
- * <p>
- * ehsd采购表 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-17
- */
-@Service
-@DS(SourceConstant.EHSD)
-public class EhsdPurchaseServiceImpl extends ServiceImpl<EhsdPurchaseMapper, EhsdPurchase> implements EhsdPurchaseService {
-
-    /**
-     * 分页
-     * @param dto
-     * @return
-     */
-    @Override
-    public Page<EhsdPurchaseVo> getPage(EhsdPurchaseSelectDto dto) {
-        IWrapper<EhsdPurchase> wrapper = getWrapper();
-        wrapper.orderByDesc("t1", EhsdPurchase::getCreateTime);
-        if (ObjectUtils.isNotEmpty(dto.getPurchaseStatus())) {
-            wrapper.eq("t1", EhsdPurchase::getStatus, dto.getPurchaseStatus());
-        }
-        if (ObjectUtils.isNotEmpty(dto.getArrivalStatus())) {
-            wrapper.eq("t1", EhsdPurchase::getArrivalStatus, dto.getArrivalStatus());
-        }
-        if (ObjectUtils.isNotEmpty(dto.getPayStatus())) {
-            wrapper.eq("t1", EhsdPurchase::getPayStatus, dto.getPayStatus());
-        }
-        if (ObjectUtils.isNotEmpty(dto.getKeyword())) {
-            wrapper.keyword(dto.getKeyword(),new SqlField("t2.name"),new SqlField("t1.`code`"));
-        }
-        Page<EhsdPurchaseVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public EhsdPurchaseVo detail(Long id) {
-        EhsdPurchase EhsdPurchase = this.getById(id);
-        EhsdPurchaseVo result = BeanUtil.toBean(EhsdPurchase, EhsdPurchaseVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(EhsdPurchaseDto ehsdPurchaseDto) {
-        this.save(ehsdPurchaseDto);
-    }
-
-    @Override
-    public void edit(EhsdPurchaseDto ehsdPurchaseDto) {
-        this.updateById(ehsdPurchaseDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}

+ 0 - 103
hx-ehsd/src/main/java/com/fjhx/ehsd/util/CodeEnum.java

@@ -1,103 +0,0 @@
-package com.fjhx.ehsd.util;
-
-import cn.hutool.core.convert.Convert;
-import cn.hutool.core.date.DateUtil;
-import cn.hutool.core.text.CharSequenceUtil;
-import cn.hutool.core.util.ObjectUtil;
-import cn.hutool.extra.spring.SpringUtil;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseService;
-import com.fjhx.purchase.service.arrival.ArrivalService;
-import com.fjhx.purchase.service.purchase.PurchaseService;
-import com.fjhx.purchase.service.quality.QualityService;
-import com.fjhx.purchase.service.sales.SalesReturnService;
-import com.fjhx.purchase.service.subscribe.SubscribeService;
-import com.obs.services.internal.ServiceException;
-import lombok.Getter;
-
-import java.util.Date;
-import java.util.Map;
-
-@Getter
-public enum CodeEnum {
-
-    //采购
-    PURCHASE("PO", "yyMM-", "code", 3, EhsdPurchaseService.class),
-    ;
-
-    CodeEnum(String prefix, String dateFormat, String codeFieldName, Integer length, Class<? extends IService<?>> serviceCls) {
-        this.prefix = prefix;
-        this.dateFormat = dateFormat;
-        this.length = length;
-        this.codeFieldName = codeFieldName;
-        this.service = SpringUtil.getBean(serviceCls);
-    }
-
-    // 编码前缀
-    private final String prefix;
-    // 编码加日期规则
-    private final String dateFormat;
-    // 长度
-    private final Integer length;
-    // 编码字段名
-    private final String codeFieldName;
-    // service
-    private final IService<?> service;
-
-    /**
-     * 获取键值对
-     */
-    public String getCode() {
-        String itemPrefix;
-
-        if (ObjectUtil.isNotEmpty(dateFormat)) {
-            Date date = new Date();
-            String format = DateUtil.format(date, dateFormat);
-            itemPrefix = prefix + format;
-        } else {
-            itemPrefix = prefix;
-        }
-
-        Object obj = service.query()
-                .likeRight(codeFieldName, itemPrefix)
-                .orderByDesc(codeFieldName)
-                .last("limit 1")
-                .one();
-
-        if (obj == null) {
-            return itemPrefix + autoGenericCode(length, 0);
-        }
-
-        Map<String, Object> map = Convert.toMap(String.class, Object.class, obj);
-
-        String code = Convert.toStr(map.get(CharSequenceUtil.toCamelCase(codeFieldName)));
-        Integer codeNum = Convert.toInt(code.substring(itemPrefix.length()));
-        if (ObjectUtil.isEmpty(codeNum)) {
-            throw new ServiceException("自定义编码与系统编码生成规则冲突,暂时无法生成编码,请联系管理员");
-        }
-
-        return itemPrefix + autoGenericCode(length, codeNum);
-    }
-
-    /**
-     * 获取键值对
-     */
-    public String getCode(String code) {
-        if (ObjectUtil.isNotEmpty(code)) {
-            Long count = service.query().eq(codeFieldName, code).count();
-            if (count != 0) {
-                throw new ServiceException("编码已存在");
-            }
-            return code;
-        } else {
-            return getCode();
-        }
-    }
-    /**
-     * 不够位数的在前面补0,保留num的长度位数字
-     */
-    private static String autoGenericCode(int length, Integer codeNum) {
-        return String.format("%0" + length + "d", codeNum + 1);
-    }
-
-}

+ 5 - 5
hx-ehsd/src/main/java/com/fjhx/ehsd/flow/EhsdPurchaseFlow.java → hx-sale/src/main/java/com/fjhx/sale/flow/EhsdPurchaseFlow.java

@@ -1,4 +1,4 @@
-package com.fjhx.ehsd.flow;
+package com.fjhx.sale.flow;
 
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.dynamic.datasource.annotation.DS;
@@ -8,9 +8,9 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.ehsd.entity.purchase.po.*;
-import com.fjhx.ehsd.service.purchase.*;
-import com.fjhx.ehsd.util.CodeEnum;
+import com.fjhx.sale.entity.purchase.po.*;
+import com.fjhx.sale.service.purchase.*;
+import com.fjhx.sale.util.code.CodeEnum;
 import com.fjhx.file.utils.ObsFileUtil;
 import com.fjhx.flow.core.FlowDelegate;
 import com.fjhx.purchase.entity.purchase.enums.PurchaseDataResourceEnum;
@@ -37,7 +37,7 @@ import java.util.List;
  * @DATE:2023/4/3 17:38
  */
 @Component
-@DS(SourceConstant.EHSD)
+@DS(SourceConstant.SALE)
 public class EhsdPurchaseFlow extends FlowDelegate {
 
     @Autowired

+ 2 - 2
hx-sale/src/main/java/com/fjhx/sale/service/contract/impl/ContractServiceImpl.java

@@ -26,8 +26,8 @@ import com.fjhx.common.service.documentary.GetDocumentaryBusinessTemplate;
 import com.fjhx.customer.entity.customer.dto.CustomerDto;
 import com.fjhx.customer.entity.customer.po.Customer;
 import com.fjhx.customer.service.customer.CustomerService;
-import com.fjhx.ehsd.entity.purchase.po.EhsdPurchaseProduct;
-import com.fjhx.ehsd.service.purchase.EhsdPurchaseProductService;
+import com.fjhx.sale.entity.purchase.po.EhsdPurchaseProduct;
+import com.fjhx.sale.service.purchase.EhsdPurchaseProductService;
 import com.fjhx.file.entity.FileInfoVo;
 import com.fjhx.file.utils.ObsFileUtil;
 import com.fjhx.item.entity.product.dto.ProductInfoSelectDto;

+ 4 - 0
hx-sale/src/main/java/com/fjhx/sale/util/code/CodeEnum.java

@@ -10,6 +10,7 @@ import com.fjhx.sale.entity.serviceContract.po.ServiceContract;
 import com.fjhx.sale.flow.SaleQuotationFlow;
 import com.fjhx.sale.service.contract.ContractService;
 import com.fjhx.sale.service.pack.PackService;
+import com.fjhx.sale.service.purchase.EhsdPurchaseService;
 import com.fjhx.sale.service.sale.SaleQuotationService;
 import com.fjhx.sale.service.sample.SampleService;
 import com.fjhx.sale.service.serviceContract.ServiceContractService;
@@ -32,6 +33,9 @@ public enum CodeEnum {
     SERVICE_CONTRACT("PO-", "yyMM-", "code", 3, ServiceContractService.class),
     //样品单
     SAMPLE_CODE("YP-", "yyMM-", "code", 3, SampleService.class),
+    //采购
+    PURCHASE("PO", "yyMM-", "code", 3, EhsdPurchaseService.class),
+    ;
     ;
 
     CodeEnum(String prefix, String dateFormat, String codeFieldName, Integer length, Class<? extends IService<?>> serviceCls) {