INSERT INTO proj_exception ( machine, tel, owner, errorMsg, createTime, activityTime, doneTime, doneMan, cause, solution, projNo, projName, exceptionType,mdc,simpleMsg) VALUES (#{machine}, #{tel}, #{owner}, #{errorMsg}, #{createTime}, #{activityTime}, #{doneTime}, #{doneMan}, #{cause}, #{solution}, #{projNo},#{projName}, #{exceptionType},#{mdc},#{simpleMsg}); UPDATE proj_exception doneTime = #{doneTime}, doneMan = #{doneMan}, cause = #{cause}, solution = #{solution}, projNo = #{projNo}, exceptionType = #{exceptionType}, machine = #{machine}, tel = #{tel}, owner = #{owner}, errorMsg = #{errorMsg}, createTime = #{createTime}, activityTime = #{activityTime}, projNo = #{projNo}, WHERE id=#{id} DELETE FROM proj_exception where id=#{id} delete from proj_exception where id in #{item}