浏览代码

2/8 陈宇

chendayu 2 年之前
父节点
当前提交
5e4d5d35fb

+ 1 - 1
RMS/src/main/java/cn/cslg/report/common/model/vo/ProductIncludeFilesVO.java

@@ -8,7 +8,7 @@ import java.util.Date;
 import java.util.List;
 
 /**
- * 产品关联产品附件的标准查询VO类
+ * 产品产品附件的标准查询VO类
  *
  * @Author chenyu
  * @Data 2022/12/20

+ 5 - 5
RMS/src/main/java/cn/cslg/report/mapper/ProductMapper.java

@@ -13,7 +13,7 @@ import org.springframework.stereotype.Repository;
 @Repository
 public interface ProductMapper {
     /**
-     * 插入产品表数据
+     * 插入数据
      *
      * @param product 产品数据对象
      * @return 返回受影响的行数
@@ -21,7 +21,7 @@ public interface ProductMapper {
     int insert(Product product);
 
     /**
-     * 根据id修改产品表数据
+     * 根据id修改数据
      *
      * @param product 产品数据对象
      * @return 返回受影响的行数
@@ -29,7 +29,7 @@ public interface ProductMapper {
     int update(Product product);
 
     /**
-     * 根据报告reportId统计产品数量
+     * 根据报告reportId统计数量
      *
      * @param reportId 报告id
      * @return 返回统计到的数量
@@ -37,7 +37,7 @@ public interface ProductMapper {
     int countByReportId(Integer reportId);
 
     /**
-     * 根据报告reportId关联查询产品和产品附件数据(产品表、产品文件关联表、报告系统文件表)
+     * 根据报告reportId关联产品表、产品文件关联表、报告系统文件表查询产品和产品附件数据
      *
      * @param reportId 报告id
      * @return 返回查询到的数据
@@ -45,7 +45,7 @@ public interface ProductMapper {
     ProductIncludeFilesVO getWholeByReportId(Integer reportId);
 
     /**
-     * 根据报告reportId删除产品表数据
+     * 根据报告reportId删除数据
      *
      * @param reportId 报告id
      * @return 返回受影响的行数

+ 5 - 6
RMS/src/main/resources/mapper/ProductMapper.xml

@@ -3,8 +3,7 @@
 
 
 <mapper namespace="cn.cslg.report.mapper.ProductMapper">
-
-    <!--插入产品表数据-->
+    <!--插入数据-->
     <!--int insert(Product product);-->
     <insert id="insert" useGeneratedKeys="true" keyProperty="id">
         insert into PRODUCT (PRODUCT_NAME, PRODUCT_IDENTIFY, PRODUCT_DESCRIPTION, SURVEY_AREA, PRODUCT_IMAGE,
@@ -15,7 +14,7 @@
                 #{createPersonId})
     </insert>
 
-    <!--根据id修改产品表数据-->
+    <!--根据id修改数据-->
     <!--int update(Product product);-->
     <update id="update">
         update PRODUCT
@@ -55,7 +54,7 @@
         where ID = #{id}
     </update>
 
-    <!--根据报告reportId统计产品数量-->
+    <!--根据报告reportId统计数量-->
     <!--int countByReportId(Integer reportId);-->
     <select id="countByReportId" resultType="int">
         select count(*)
@@ -63,7 +62,7 @@
         where REPORT_ID = #{reportId}
     </select>
 
-    <!--根据报告reportId关联查询产品和产品附件数据(产品表、产品文件关联表、报告系统文件表)-->
+    <!--根据报告reportId关联产品表、产品文件关联表、报告系统文件表查询产品和产品附件数据-->
     <!--ProductIncludeFilesVO getWholeByReportId(Integer reportId);-->
     <select id="getWholeByReportId" resultMap="WholeResultMap">
         select p.ID  p_ID,
@@ -124,7 +123,7 @@
         </collection>
     </resultMap>
 
-    <!--根据报告reportId删除产品表数据-->
+    <!--根据报告reportId删除数据-->
     <!--int deleteByReportId(Integer reportId);-->
     <delete id="deleteByReportId">
         delete