style: format changed files with prettier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-04-13 12:35:31 +08:00
parent b95f12fca1
commit 32931cecad
5 changed files with 180 additions and 164 deletions

View File

@@ -64,7 +64,12 @@ export function registerCleanerHistoryHandlers(): void {
*/
ipcMain.handle(
IPC_CHANNELS.CLEANER_HISTORY_GET_BATCH_DETAILS,
async (_event, batchId: string): Promise<IpcResult<{ executions: CleanerExecutionRecord[]; orders: CleanerOrderRecord[] }>> => {
async (
_event,
batchId: string
): Promise<
IpcResult<{ executions: CleanerExecutionRecord[]; orders: CleanerOrderRecord[] }>
> => {
return withErrorHandling(async () => {
const currentUser = SessionManager.getInstance().getUserInfo()
@@ -94,7 +99,12 @@ export function registerCleanerHistoryHandlers(): void {
*/
ipcMain.handle(
IPC_CHANNELS.CLEANER_HISTORY_GET_MATERIAL_DETAILS,
async (_event, batchId: string, attemptNumber: number, orderNumber: string): Promise<IpcResult<CleanerMaterialRecord[]>> => {
async (
_event,
batchId: string,
attemptNumber: number,
orderNumber: string
): Promise<IpcResult<CleanerMaterialRecord[]>> => {
return withErrorHandling(async () => {
const currentUser = SessionManager.getInstance().getUserInfo()

View File

@@ -481,8 +481,7 @@ export class CleanerApplicationService {
: 'success'
// Build error message from execution-level errors (excluding per-order errors)
const execErrorMessage =
result.errors.length > 0 ? result.errors.join('\n') : undefined
const execErrorMessage = result.errors.length > 0 ? result.errors.join('\n') : undefined
// Update execution status
await historyDao.updateExecutionStatus(

View File

@@ -752,8 +752,15 @@ export class CleanerOperationHistoryDAO {
attemptNumber: row.AttemptNumber as number,
userId: row.UserId as number,
username: row.Username as string,
operationTime: row.OperationTime instanceof Date ? row.OperationTime : new Date(row.OperationTime as string),
endTime: row.EndTime ? (row.EndTime instanceof Date ? row.EndTime : new Date(row.EndTime as string)) : null,
operationTime:
row.OperationTime instanceof Date
? row.OperationTime
: new Date(row.OperationTime as string),
endTime: row.EndTime
? row.EndTime instanceof Date
? row.EndTime
: new Date(row.EndTime as string)
: null,
status: row.Status as string,
isDryRun: !!(row.IsDryRun as number),
totalOrders: row.TotalOrders as number,