标准清单入库 bug修复

This commit is contained in:
yuezhihang
2021-07-06 20:14:34 +08:00
parent b4c0465f18
commit 9f856079ee
6 changed files with 18 additions and 9 deletions
@@ -33,7 +33,7 @@
</if>
</where>
order by number
LIMIT #{param3} OFFSET #{param2};
LIMIT #{param3} , #{param2};
</select>
<select id="selectLawsId2" resultType="string">
@@ -45,12 +45,14 @@
</where>
order by number
</select>
<insert id="insertList">
INSERT INTO sar_laws_attr_detailed_list ( id, number, detailed_list_id, stand_id ) VALUES
<foreach collection ="list" item="list" separator =",">
<foreach collection ="sarLawsAttrDetailedLists" item="list" separator =",">
(#{list.id,jdbcType=VARCHAR}, #{list.number}, #{list.detailedListId,jdbcType=VARCHAR}, #{list.standId,jdbcType=VARCHAR})
</foreach >
</insert>
<delete id="deleteByStandId">
delete from sar_laws_attr_detailed_list where detailed_list_id=#{standId,jdbcType=VARCHAR}
</delete>