You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
747 B

2 years ago
  1. package com.dreamworks.boditech.mapper;
  2. import com.dreamworks.boditech.entity.TestStepLogEntry;
  3. import org.apache.ibatis.annotations.Insert;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Options;
  6. import org.apache.ibatis.annotations.Update;
  7. @Mapper
  8. public interface TestStepMapper {
  9. @Insert("INSERT INTO bdt_test_steps (" +
  10. "testId, stepName,stepOptions, startedAt" +
  11. ") VALUES (" +
  12. "#{testId}, #{stepName}, #{stepOptions}, #{startedAt}" +
  13. ")")
  14. @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
  15. int insert(TestStepLogEntry entry);
  16. @Update("UPDATE bdt_test_steps SET finishedAt = #{finishedAt} WHERE id = #{id}")
  17. int update(TestStepLogEntry entry);
  18. }