|
@@ -6,7 +6,7 @@
|
|
<!--批量插入回避设计方向表数据-->
|
|
<!--批量插入回避设计方向表数据-->
|
|
<!--int insertBatch(List<AvoidDesignLittleDirection> avoidDesignLittleDirections);-->
|
|
<!--int insertBatch(List<AvoidDesignLittleDirection> avoidDesignLittleDirections);-->
|
|
<insert id="insertBatch" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertBatch" useGeneratedKeys="true" keyProperty="id">
|
|
- insert into AVOIDDESIGN_LITTLE_DIRECTION (REPORT_ID, FEATURE_ID, LITTLE_DIRECTION)
|
|
|
|
|
|
+ insert into avoiddesign_little_direction (REPORT_ID, FEATURE_ID, LITTLE_DIRECTION)
|
|
VALUES
|
|
VALUES
|
|
<foreach collection="list" item="n" separator=",">
|
|
<foreach collection="list" item="n" separator=",">
|
|
(#{n.reportId}, #{n.featureId}, #{n.littleDirection})
|
|
(#{n.reportId}, #{n.featureId}, #{n.littleDirection})
|
|
@@ -17,7 +17,7 @@
|
|
<!--int deleteByReportId(Integer reportId);-->
|
|
<!--int deleteByReportId(Integer reportId);-->
|
|
<delete id="deleteByReportId">
|
|
<delete id="deleteByReportId">
|
|
delete
|
|
delete
|
|
- from AVOIDDESIGN_LITTLE_DIRECTION
|
|
|
|
|
|
+ from avoiddesign_little_direction
|
|
where REPORT_ID = #{reportId}
|
|
where REPORT_ID = #{reportId}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
@@ -25,7 +25,7 @@
|
|
<!--String selectSignPatentNoByReportId(Integer reportId);-->
|
|
<!--String selectSignPatentNoByReportId(Integer reportId);-->
|
|
<select id="selectSignPatentNoByReportId" resultType="String">
|
|
<select id="selectSignPatentNoByReportId" resultType="String">
|
|
select SIGN_PATENT_NO
|
|
select SIGN_PATENT_NO
|
|
- from REPORT
|
|
|
|
|
|
+ from report
|
|
where ID = #{reportId}
|
|
where ID = #{reportId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -48,8 +48,8 @@
|
|
SPLIT_TYPE,
|
|
SPLIT_TYPE,
|
|
TASK_ID,
|
|
TASK_ID,
|
|
LITTLE_DIRECTION
|
|
LITTLE_DIRECTION
|
|
- from FEATURES f
|
|
|
|
- left join AVOIDDESIGN_LITTLE_DIRECTION l on f.ID = l.FEATURE_ID
|
|
|
|
|
|
+ from features f
|
|
|
|
+ left join avoiddesign_little_direction l on f.ID = l.FEATURE_ID
|
|
where RIGHT_ID = #{rightId}
|
|
where RIGHT_ID = #{rightId}
|
|
and f.REPORT_ID = #{reportId}
|
|
and f.REPORT_ID = #{reportId}
|
|
order by f.ID
|
|
order by f.ID
|