点检计划、保养计划合二为一

This commit is contained in:
JinLu.Yin
2022-06-19 17:23:27 +08:00
parent 1e1cc2fd09
commit 917f34db7c
4 changed files with 59 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkMachineryUnique" parameterType="DvCheckMachinery" resultMap="DvCheckMachineryResult">
<include refid="selectDvCheckMachineryVo"/>
where machinery_id = #{machineryId} limit 1
where machinery_id = #{machineryId} and plan_type = #{planType} limit 1
</select>
<insert id="insertDvCheckMachinery" parameterType="DvCheckMachinery" useGeneratedKeys="true" keyProperty="recordId">