|
@@ -178,11 +178,11 @@
|
|
|
INSERT INTO operate_flow_data(
|
|
|
projectId, projectItemId,
|
|
|
projectItemTargetId, projectItemTargetRoomId,
|
|
|
- deviceLevelId,deviceId, date, projectFlowId, flowUserList, state, flowData, createdByUserId, document, receiver, attachment, flowType, type)
|
|
|
+ deviceLevelId,deviceId, date, projectFlowId, flowUserList, flowData, createdByUserId, document, receiver, attachment, flowType, type)
|
|
|
VALUES
|
|
|
(#{projectId}, #{projectItemId},
|
|
|
#{projectItemTargetId}, #{projectItemTargetRoomId},
|
|
|
- #{deviceLevelId}, #{deviceId}, now(), #{projectFlowId}, #{flowUserList}, #{state}, #{flowData}, #{createdByUserId}, #{document}, #{receiver}, #{attachment}, #{flowType}, #{type})
|
|
|
+ #{deviceLevelId}, #{deviceId}, now(), #{projectFlowId}, #{flowUserList}, #{flowData}, #{createdByUserId}, #{document}, #{receiver}, #{attachment}, #{flowType}, #{type})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -219,5 +219,8 @@
|
|
|
FROM operate_flow_data WHERE deviceId = #{deviceId} and type = #{type}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="deviceCountList" resultMap="operateFlowDataResult">
|
|
|
+ <include refid="query"/>where a.deviceId = #{deviceId} and a.type = #{type}
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|