|
@ -15,6 +15,9 @@ public interface TestMapper { |
|
|
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id") |
|
|
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id") |
|
|
int insert(MdbTest test); |
|
|
int insert(MdbTest test); |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT COUNT(id) FROM bdt_tests WHERE startedAt >= #{start} AND startedAt <= #{end}") |
|
|
|
|
|
int countByTimeRange(Long start, Long end); |
|
|
|
|
|
|
|
|
@Update("UPDATE bdt_tests SET status = #{status} WHERE id = #{id}") |
|
|
@Update("UPDATE bdt_tests SET status = #{status} WHERE id = #{id}") |
|
|
int statusUpdate(MdbTest test); |
|
|
int statusUpdate(MdbTest test); |
|
|
|
|
|
|
|
@ -31,6 +34,9 @@ public interface TestMapper { |
|
|
Integer count(ParamTestSearch param); |
|
|
Integer count(ParamTestSearch param); |
|
|
|
|
|
|
|
|
@Update("UPDATE bdt_tests SET " + |
|
|
@Update("UPDATE bdt_tests SET " + |
|
|
|
|
|
"barCode = #{barCode}, " + |
|
|
|
|
|
"serialCode = #{serialCode}, " + |
|
|
|
|
|
"tubeIndex = #{tubeIndex}, " + |
|
|
"incubateStartedAt = #{incubateStartedAt}, " + |
|
|
"incubateStartedAt = #{incubateStartedAt}, " + |
|
|
"incubateTime = #{incubateTime}, " + |
|
|
"incubateTime = #{incubateTime}, " + |
|
|
"incubateSlotIndex = #{incubateSlotIndex} " + |
|
|
"incubateSlotIndex = #{incubateSlotIndex} " + |
|
|