From d320f67a7edbe887baac890a639c16e78432f2a3 Mon Sep 17 00:00:00 2001 From: huangjiayang <5265313@qq.com> Date: 星期二, 29 四月 2025 13:40:46 +0800 Subject: [PATCH] 【UPDATE】修改实体日期属性 --- aps-modules/aps-job/src/main/java/com/aps/job/service/impl/ApsWorkOrderJobServiceImpl.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-job/src/main/java/com/aps/job/service/impl/ApsWorkOrderJobServiceImpl.java b/aps-modules/aps-job/src/main/java/com/aps/job/service/impl/ApsWorkOrderJobServiceImpl.java index 9881784..fc2078b 100644 --- a/aps-modules/aps-job/src/main/java/com/aps/job/service/impl/ApsWorkOrderJobServiceImpl.java +++ b/aps-modules/aps-job/src/main/java/com/aps/job/service/impl/ApsWorkOrderJobServiceImpl.java @@ -1,5 +1,6 @@ package com.aps.job.service.impl; +import cn.hutool.core.util.IdUtil; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.aps.common.core.utils.DateUtils; @@ -158,7 +159,7 @@ param.setDocState(Arrays.asList(0,1,2,4)); param.setBeginDate(yesterdayMidnight.format(formatter)); param.setEndDate(today.format(formatter)); - param.setPageSize(1000); + param.setPageSize(100); while (continueFlag){ param.setPageIndex(currentPage); continueFlag= batchSaveByPager(param); @@ -178,6 +179,7 @@ jobLog.setCreateTime(DateUtils.getNowDate()); jobLog.setBizType("work_order"); jobLogMapper.insertApsWorkOrderJobLog(jobLog); + log.info("work_order_request锛歿}", JSONObject.toJSONString(jobLog)); return requestOnePage(jobLog); } /** @@ -292,13 +294,15 @@ } ApsWorkOrderJob order = result.getObject(i, ApsWorkOrderJob.class); + order.setId(IdUtil.getSnowflakeNextId()); order.setOrderId(jsonObject.getString("ID")); order.setCreateTime(DateUtils.getNowDate()); order.setPageIndex(i); order.setPageNum(pageNum); order.setDelFlag("0"); order.setProcessStatus("0"); - + order.setOpStatus(jsonObject.getString("OpStatus")); + order.setNextOpName(jsonObject.getString("NextOpName")); jobs.add(order); orderIds.add(order.getOrderId()); } catch (Exception e) { -- Gitblit v1.9.3