This commit is contained in:
samunohito 2024-02-29 07:50:19 +09:00
parent da13426b89
commit 9289d013b6
2 changed files with 8 additions and 4 deletions

View file

@ -464,11 +464,11 @@ export class CustomEmojiService implements OnApplicationShutdown {
const q = params.query;
if (q.updatedAtFrom) {
// noIndexScan
builder.andWhere('emoji.updatedAt >= :updateAtFrom', { updateAtFrom: q.updatedAtFrom });
builder.andWhere('CAST(emoji.updatedAt AS DATE) >= :updateAtFrom', { updateAtFrom: q.updatedAtFrom });
}
if (q.updatedAtTo) {
// noIndexScan
builder.andWhere('emoji.updatedAt <= :updateAtTo', { updateAtTo: q.updatedAtTo });
builder.andWhere('CAST(emoji.updatedAt AS DATE) <= :updateAtTo', { updateAtTo: q.updatedAtTo });
}
if (q.name) {
multipleWordsToQuery(q.name, builder, (qb, idx, word) => {

View file

@ -148,7 +148,9 @@ export async function pasteToGridFromClipboard(
// 単独文字列の場合は選択範囲全体に同じテキストを貼り付ける
const ranges = context.rangedCells;
for (const cell of ranges) {
callback(cell.row, cell.column, parseValue(lines[0][0], cell.column.setting));
if (cell.column.setting.editable) {
callback(cell.row, cell.column, parseValue(lines[0][0], cell.column.setting));
}
}
} else {
// 表形式文字列の場合は表形式にパースし、選択範囲に合うように貼り付ける
@ -170,7 +172,9 @@ export async function pasteToGridFromClipboard(
break;
}
callback(rows[row], columns[col], parseValue(items[colIdx], columns[col].setting));
if (columns[col].setting.editable) {
callback(rows[row], columns[col], parseValue(items[colIdx], columns[col].setting));
}
}
}
}