Commit c31e231e authored by 王晓倩's avatar 王晓倩

mapper修改

parent c4ee8561
......@@ -19,6 +19,14 @@ public interface TInspectionDataMapper
*/
public TInspectionData selectTInspectionDataById(int dataId);
/**
* 查询巡检记录
*
* @param deviceCode 设备编号
* @return 巡检记录
*/
public TInspectionData selectTInspectionDataByCode(String deviceCode);
/**
* 查询巡检记录
*
......
......@@ -39,6 +39,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where data_id = #{dataId}
</select>
<select id="selectTInspectionDataByCode" parameterType="String" resultMap="TInspectionDataResult">
<include refid="selectTInspectionDataVo"/>
where device_code = #{deviceCode}
</select>
<insert id="insertTInspectionData" parameterType="TInspectionData">
insert into t_inspection_data
<trim prefix="(" suffix=")" suffixOverrides=",">
......
......@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectTInspectionPlanById" parameterType="Long" resultMap="TInspectionPlanResult">
<select id="selectTInspectionPlanById" parameterType="int" resultMap="TInspectionPlanResult">
<include refid="selectTInspectionPlanVo"/>
where plan_id = #{planId}
</select>
......
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