REQ-2448: 处理枚举没有对应值的情况
This commit is contained in:
parent
dd1ecdf37b
commit
400a4b71e6
@ -11,8 +11,8 @@
|
||||
VALUES
|
||||
<foreach collection="records" item="i" separator=",">
|
||||
(
|
||||
#{i.id}, #{i.fromId}, #{i.toId}, #{i.personId}, #{i.type}, #{i.relationId}, #{i.moduleId}, #{i.title}, #{i.content}, #{i.receiveType}, #{i.terminalType},
|
||||
#{i.terminalId}, #{i.terminalName}, #{i.state}, #{i.bizId}, #{i.routerParams}, #{i.extra}, #{i.retryCount}, #{i.callbackUrl}, #{i.failCause},
|
||||
#{i.id}, #{i.fromId}, #{i.toId}, #{i.personId}, COALESCE(#{i.type}, 0), #{i.relationId}, #{i.moduleId}, #{i.title}, #{i.content}, COALESCE(#{i.receiveType}, 0), COALESCE(#{i.terminalType}, 0),
|
||||
#{i.terminalId}, #{i.terminalName}, COALESCE(#{i.state}, 0), #{i.bizId}, #{i.routerParams}, #{i.extra}, #{i.retryCount}, #{i.callbackUrl}, #{i.failCause},
|
||||
#{i.eventSource}, #{i.tenantId}, #{i.isDelete}, #{i.createAt}, #{i.updateAt}, #{i.oldTypeId}
|
||||
)
|
||||
</foreach>
|
||||
|
||||
@ -18,7 +18,7 @@ class MigrateOldMsgHotDataJobTest {
|
||||
|
||||
@Test @Commit
|
||||
void foo() throws Exception {
|
||||
migrateOldMsgHotDataJob.execute("{\"daysAgo\": 365}");
|
||||
migrateOldMsgHotDataJob.execute("{ \"daysAgo\": 180, \"saveBatch\": 200 }\n");
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user