From a6ee8c41566837fc20abd70413f843788009738d Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Wed, 12 Jul 2023 18:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=BA=9F=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProcessSmaterialsScrapController.java | 16 +++++ .../dto/ProcessMaterialsDeliveryListDTO.java | 2 + .../ProcessMaterialsDeliveryListMapper.java | 2 + .../ProcessSmaterialsScrapListMapper.java | 2 + .../ProcessMaterialsDeliveryListMapper.xml | 8 +++ .../xml/ProcessSmaterialsScrapListMapper.xml | 7 +++ .../IProcessSmaterialsScrapService.java | 5 +- .../ProcessSmaterialsScrapServiceImpl.java | 58 +++++++++++++++++++ 8 files changed, 99 insertions(+), 1 deletion(-) diff --git a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/controller/ProcessSmaterialsScrapController.java b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/controller/ProcessSmaterialsScrapController.java index 4171483..f3a4362 100644 --- a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/controller/ProcessSmaterialsScrapController.java +++ b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/controller/ProcessSmaterialsScrapController.java @@ -31,6 +31,7 @@ import org.hy.modules.process.service.IProcessSmaterialsScrapService; import org.hy.modules.process.vo.ProcessSmaterialsScrapListVO; import org.hy.modules.process.vo.ProcessSmaterialsScrapPage; import org.hy.modules.util.BacthNumber; +import org.hy.modules.wastematerials.entity.ProcessWasteMaterials; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.entity.ExportParams; @@ -96,6 +97,21 @@ public class ProcessSmaterialsScrapController { return Result.OK(pageList); } + /** + * 通过id查询 + * + * @param processWasteMateria + * @return + */ + @AutoLog(value = "账外物资库-通过id查询") + @ApiOperation(value="账外物资库-通过id查询", notes="账外物资库-通过id查询") + @GetMapping(value = "/queryByIdOwn") + public Result queryByIdOwn(ProcessWasteMaterials processWasteMateria) { + Result result = processSmaterialsScrapService.getByIdOwn(processWasteMateria); + + return result; + } + /** * 添加 * diff --git a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/dto/ProcessMaterialsDeliveryListDTO.java b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/dto/ProcessMaterialsDeliveryListDTO.java index aa2373d..90f260e 100644 --- a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/dto/ProcessMaterialsDeliveryListDTO.java +++ b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/dto/ProcessMaterialsDeliveryListDTO.java @@ -31,6 +31,8 @@ public class ProcessMaterialsDeliveryListDTO implements Serializable { private String id; /**物料组*/ private String materialGroup; + /**部门*/ + private String departId; /**器材编号*/ @Excel(name = "器材编号", width = 15) @ApiModelProperty(value = "器材编号") diff --git a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/ProcessMaterialsDeliveryListMapper.java b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/ProcessMaterialsDeliveryListMapper.java index b7f993b..80baee4 100644 --- a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/ProcessMaterialsDeliveryListMapper.java +++ b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/ProcessMaterialsDeliveryListMapper.java @@ -52,4 +52,6 @@ public interface ProcessMaterialsDeliveryListMapper extends BaseMapper selectByMainId(@Param("mainId") String mainId); List selectByMainIdVO(String mainId); + + Integer getEquipment(@Param("par") ProcessSmaterialsScrapList scrapList); } diff --git a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessMaterialsDeliveryListMapper.xml b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessMaterialsDeliveryListMapper.xml index fe86a6d..655a94e 100644 --- a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessMaterialsDeliveryListMapper.xml +++ b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessMaterialsDeliveryListMapper.xml @@ -105,4 +105,12 @@ from sys_depart where id = #{id} + + diff --git a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessSmaterialsScrapListMapper.xml b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessSmaterialsScrapListMapper.xml index 699a88f..b40bd0f 100644 --- a/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessSmaterialsScrapListMapper.xml +++ b/hy-boot-module-activiti/src/main/java/org/hy/modules/process/mapper/xml/ProcessSmaterialsScrapListMapper.xml @@ -13,6 +13,13 @@ FROM process_smaterials_scrap_list WHERE process_smaterials_scrap_id = #{mainId} +