Commit eac187bf authored by linruibiao's avatar linruibiao

接口编写

parent 833afc96
...@@ -19,4 +19,18 @@ ...@@ -19,4 +19,18 @@
<result property="recordStatus" column="record_status"/> <result property="recordStatus" column="record_status"/>
<result property="description" column="description"/> <result property="description" column="description"/>
</resultMap> </resultMap>
<delete id="batchUpdateGroupByIds">
update instrument_panel_group set record_status =#{recordStatus}
<if test="groupIds!=null">
where id IN (
<foreach collection="groupIds" item="id" separator=",">
#{id}
</foreach>
)
</if>
</delete>
<select id="selectGroupList" resultType="com.syc.slm.slmbi.vo.InstrumentPanelGroupVo">
select id,`name`,parent_id from instrument_panel_group
${ew.customSqlSegment}
</select>
</mapper> </mapper>
...@@ -21,4 +21,28 @@ ...@@ -21,4 +21,28 @@
<result property="recordStatus" column="record_status"/> <result property="recordStatus" column="record_status"/>
<result property="description" column="description"/> <result property="description" column="description"/>
</resultMap> </resultMap>
<update id="batchUpdatePanelByIds">
update instrument_panel set record_status =#{recordStatus}
<if test="panelIds!=null">
where id IN (
<foreach collection="panelIds" item="id" separator=",">
#{id}
</foreach>
)
</if>
</update>
<select id="selectInstrumentPanelList" resultType="com.syc.slm.slmbi.vo.InstrumentPanelVo">
select
p.id,
p.name,
p.group_id,
g.name group_name,
p.published,
p.creator_name,
p.updater_name,
p.update_time
from instrument_panel p
join instrument_panel_group g on p.group_id =g.id
${ew.customSqlSegment}
</select>
</mapper> </mapper>
...@@ -19,4 +19,14 @@ ...@@ -19,4 +19,14 @@
<result property="recordStatus" column="record_status"/> <result property="recordStatus" column="record_status"/>
<result property="description" column="description"/> <result property="description" column="description"/>
</resultMap> </resultMap>
<update id="batchUpdateTreeByIds">
update instrument_panel_tree set record_status =#{recordStatus}
<if test="treeIds!=null">
where id IN (
<foreach collection="treeIds" item="id" separator=",">
#{id}
</foreach>
)
</if>
</update>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment