|
@@ -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
|