From 994de8bc7067afc1e32043eeeaabdda60d400ef1 Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期二, 15 七月 2025 13:01:36 +0800 Subject: [PATCH] 修改 --- multi-system/src/main/resources/mapper/system/ProductItemMapper.xml | 29 +---------------------------- multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java index 63895a3..f2886fd 100644 --- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java +++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java @@ -257,7 +257,7 @@ saveCatalogue(children,catalogue1); } } - productItemMapper.deletedByCompanyId(companyId,type); + productItemMapper.deletedByCompanyId(companyId,type.equals(2)?1:2); return CommonResult.success(); } diff --git a/multi-system/src/main/resources/mapper/system/ProductItemMapper.xml b/multi-system/src/main/resources/mapper/system/ProductItemMapper.xml index a8f39a9..ee68552 100644 --- a/multi-system/src/main/resources/mapper/system/ProductItemMapper.xml +++ b/multi-system/src/main/resources/mapper/system/ProductItemMapper.xml @@ -37,32 +37,5 @@ ORDER BY pi.create_time ASC </select> - <select id="writeProduct" resultType="com.gkhy.exam.system.domain.ProductItem"> - SELECT - pi.`id`, - pi.`catalogue_id`, - c.`mess` as catalogue_name, - pi.`company_id`, - sc.`name` as company_name, - pi.`number`, - pi.`erdact`, - pi.`file_name`, - pi.`file_path`, - pi.`del_flag`, - pi.`create_by`, - pi.`create_time`, - pi.`update_by`, - pi.`update_time` - FROM - product_item pi - LEFT JOIN sys_company sc on pi.company_id = sc.id - left join catalogue c on pi.catalogue_id = c.id - WHERE - pi.del_flag = 1 and pi.company_id = #{companyId} and pi.catalogue_id in - (<foreach collection="catalogueIds" item="catalogueId" separator=","> - #{catalogueId} - </foreach>) - ORDER BY - pi.create_time ASC - </select> + </mapper> -- Gitblit v1.9.2