增加字符串兼容性;去除国外开源地图软件代码;批次发布后仍可编辑;
This commit is contained in:
@@ -102,7 +102,7 @@ object TraceabilityDao {
|
||||
|
||||
fun listPreviewPages(): List<TracePreviewPageSummaryResponse> = transaction {
|
||||
TraceabilityPreviewPagesTable.selectAll()
|
||||
.orderBy(TraceabilityPreviewPagesTable.updatedAt, SortOrder.DESC)
|
||||
.orderBy(TraceabilityPreviewPagesTable.createdAt, SortOrder.DESC)
|
||||
.map {
|
||||
val code = it[TraceabilityPreviewPagesTable.previewCode]
|
||||
TracePreviewPageSummaryResponse(
|
||||
@@ -353,7 +353,7 @@ object TraceabilityDao {
|
||||
fun listNodeLibrary(): List<TraceNodeLibraryResponse> = transaction {
|
||||
ensureDefaultNodeLibrarySeeded()
|
||||
TraceabilityNodeLibraryTable.selectAll()
|
||||
.orderBy(TraceabilityNodeLibraryTable.updatedAt, SortOrder.DESC)
|
||||
.orderBy(TraceabilityNodeLibraryTable.createdAt, SortOrder.DESC)
|
||||
.map {
|
||||
TraceNodeLibraryResponse(
|
||||
id = it[TraceabilityNodeLibraryTable.id].value.toString(),
|
||||
@@ -482,7 +482,7 @@ object TraceabilityDao {
|
||||
.mapValues { (_, rows) -> rows.size }
|
||||
|
||||
TraceabilityTemplatesTable.selectAll()
|
||||
.orderBy(TraceabilityTemplatesTable.updatedAt, SortOrder.DESC)
|
||||
.orderBy(TraceabilityTemplatesTable.createdAt, SortOrder.DESC)
|
||||
.map {
|
||||
TraceTemplateSummaryResponse(
|
||||
id = it[TraceabilityTemplatesTable.id].value.toString(),
|
||||
@@ -613,7 +613,7 @@ object TraceabilityDao {
|
||||
.associate { it[TraceabilityTemplatesTable.id].value to it[TraceabilityTemplatesTable.name] }
|
||||
|
||||
TraceabilityBatchesTable.selectAll()
|
||||
.orderBy(TraceabilityBatchesTable.updatedAt, SortOrder.DESC)
|
||||
.orderBy(TraceabilityBatchesTable.createdAt, SortOrder.DESC)
|
||||
.map {
|
||||
val code = it[TraceabilityBatchesTable.batchCode]
|
||||
TraceBatchSummaryResponse(
|
||||
|
||||
Reference in New Issue
Block a user