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
19 lines
747 B
package com.dreamworks.boditech.mapper;
|
|
import com.dreamworks.boditech.entity.TestStepLogEntry;
|
|
import org.apache.ibatis.annotations.Insert;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Options;
|
|
import org.apache.ibatis.annotations.Update;
|
|
@Mapper
|
|
public interface TestStepMapper {
|
|
@Insert("INSERT INTO bdt_test_steps (" +
|
|
"testId, stepName,stepOptions, startedAt" +
|
|
") VALUES (" +
|
|
"#{testId}, #{stepName}, #{stepOptions}, #{startedAt}" +
|
|
")")
|
|
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
|
|
int insert(TestStepLogEntry entry);
|
|
|
|
@Update("UPDATE bdt_test_steps SET finishedAt = #{finishedAt} WHERE id = #{id}")
|
|
int update(TestStepLogEntry entry);
|
|
}
|