Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
EIP-Integration
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
李炎
EIP-Integration
Commits
1d777490
提交
1d777490
authored
8月 24, 2021
作者:
李炎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
7d776951
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
3 行删除
+19
-3
PurchaseorderServiceImpl.java
...dules/iost/API/service/impl/PurchaseorderServiceImpl.java
+19
-3
没有找到文件。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/API/service/impl/PurchaseorderServiceImpl.java
浏览文件 @
1d777490
...
@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
...
@@ -122,16 +123,31 @@ public class PurchaseorderServiceImpl extends ServiceImpl<PurchaseorderMapper, P
...
@@ -122,16 +123,31 @@ public class PurchaseorderServiceImpl extends ServiceImpl<PurchaseorderMapper, P
*/
*/
public
String
getTime
()
{
public
String
getTime
()
{
Purchaseorder
purchaseorder_api_time
=
this
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
Purchaseorder
>().
orderByDesc
(
"modify_Time"
).
last
(
"limit 1"
).
select
(
"modify_Time"
));
Purchaseorder
purchaseorder_api_time
=
this
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
Purchaseorder
>().
orderByDesc
(
"modify_Time"
).
last
(
"limit 1"
).
select
(
"modify_Time"
));
Date
currentTime
=
new
Date
(
0
);
Date
currentTime
=
null
;
String
dateString
=
null
;
dateString
=
beforeDayByNowDay
();
if
(
purchaseorder_api_time
!=
null
)
{
//非空判断
if
(
purchaseorder_api_time
!=
null
)
{
//非空判断
if
(
purchaseorder_api_time
.
getModifyTime
()
!=
null
)
if
(
purchaseorder_api_time
.
getModifyTime
()
!=
null
)
currentTime
=
purchaseorder_api_time
.
getModifyTime
();
currentTime
=
purchaseorder_api_time
.
getModifyTime
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
dateString
=
formatter
.
format
(
currentTime
);
}
}
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
return
dateString
;
}
}
/**
* 获取当前日期的前一天
* 需要返回的日期格式,例如:yyyy-MM-dd HH:mm:ss
*
* @return 前一天日期字符串
*/
public
String
beforeDayByNowDay
()
{
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
add
(
Calendar
.
DATE
,
-
1
);
//得到前一天
Date
date
=
calendar
.
getTime
();
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
df
.
format
(
date
);
}
/**
/**
* //将解析的国网采购订单同步至金蝶销售订单
* //将解析的国网采购订单同步至金蝶销售订单
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论