소스 검색

临时计划导出添加时间

wyyay 1 년 전
부모
커밋
4860f81750
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      purchase-system/src/main/java/com/ozs/plan/service/impl/ProvisionalPlanServiceImpl.java

+ 4 - 1
purchase-system/src/main/java/com/ozs/plan/service/impl/ProvisionalPlanServiceImpl.java

@@ -812,8 +812,11 @@ public class ProvisionalPlanServiceImpl extends ServiceImpl<ProvisionalPlanMappe
                 }
 
             }
-
             BeanUtils.copyProperties(provisionalPlan, provisionalPlanResVo);
+            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
+            provisionalPlanResVo.setPlanDemandSubTimeStr(sdf.format(provisionalPlanResVo.getPlanDemandSubTime()));
+            provisionalPlanResVo.setPlanPurchaseFinishTimeStr(sdf.format(provisionalPlanResVo.getPlanPurchaseFinishTime()));
+            provisionalPlanResVo.setPlanDeliverTimeStr(sdf.format(provisionalPlanResVo.getPlanDeliverTime()));
             //状态在采购需求对接和流废标退回之间的项目可以进行催告---已发函不可再次发函
             provisionalPlanResVo.setSendLetterDo("false");
             if (!ObjectUtils.isEmpty(demand)) {