Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OZT-Integration
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许俊
OZT-Integration
Commits
f04fdc48
提交
f04fdc48
authored
4月 20, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
1c404144
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
ImsPickingListServiceImpl.java
...ules/iost/ims/service/impl/ImsPickingListServiceImpl.java
+9
-8
没有找到文件。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/ims/service/impl/ImsPickingListServiceImpl.java
浏览文件 @
f04fdc48
...
...
@@ -12,8 +12,11 @@ import org.jeecg.modules.iost.ims.entity.ImsPickingList;
import
org.jeecg.modules.iost.ims.kingdeeapi.ImsPickingListKingdeeApi
;
import
org.jeecg.modules.iost.ims.mapper.ImsPickingListMapper
;
import
org.jeecg.modules.iost.ims.service.IImsPickingListService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.util.*
;
...
...
@@ -24,6 +27,8 @@ import java.util.*;
@Service
public
class
ImsPickingListServiceImpl
extends
ServiceImpl
<
ImsPickingListMapper
,
ImsPickingList
>
implements
IImsPickingListService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
ImsPickingListServiceImpl
.
class
);
@Autowired
private
IMSApi
imsApi
;
...
...
@@ -87,9 +92,8 @@ public class ImsPickingListServiceImpl extends ServiceImpl<ImsPickingListMapper,
//记录IMS日志
flag
=
new
ImsLogUtil
().
ImsLog
(
json
,
result
,
"提料分析单"
,
"SUP_MTRL_DT_DATA"
,
null
);
if
(
anAl
(
imsList
.
get
(
0
).
get
(
"sup_mtrl_dt_anal_no"
).
toString
()))
{
System
.
out
.
println
(
"+++++++++++++++"
+
"总数以发送完"
);
/*Map<String, Object> noMap = new HashMap<>(3);
if
(!
CollectionUtils
.
isEmpty
(
imsList
)
&&
anAl
(
imsList
.
get
(
0
).
get
(
"sup_mtrl_dt_anal_no"
).
toString
()))
{
Map
<
String
,
Object
>
noMap
=
new
HashMap
<>(
3
);
map
.
put
(
"docType"
,
"SUP_MTRL_DT_DATA_ANAL"
);
map
.
put
(
"updateType"
,
"UPDATE"
);
map
.
put
(
"data"
,
new
ArrayList
<
Map
<
String
,
Object
>>().
add
(
new
HashMap
<
String
,
Object
>(
1
)
{{
...
...
@@ -98,19 +102,16 @@ public class ImsPickingListServiceImpl extends ServiceImpl<ImsPickingListMapper,
String
noJson
=
JsonUtil
.
toString
(
noMap
);
String
noResult
=
imsApi
.
add
(
noJson
,
"提料单计算"
,
"SUP_MTRL_DT_DATA_ANAL"
);
//记录IMS日志
new ImsLogUtil().ImsLog(noJson, noResult, "提料单计算", "SUP_MTRL_DT_DATA_ANAL", null);*/
}
else
{
System
.
out
.
println
(
"---------------"
+
"总数未发送完"
);
new
ImsLogUtil
().
ImsLog
(
noJson
,
noResult
,
"提料单计算"
,
"SUP_MTRL_DT_DATA_ANAL"
,
null
);
}
return
flag
;
}
public
boolean
anAl
(
String
supMtrlDtAnalNo
)
{
Integer
count
=
this
.
getBaseMapper
().
selectCount
(
new
QueryWrapper
<
ImsPickingList
>().
eq
(
"sup_mtrl_dt_anal_no"
,
supMtrlDtAnalNo
));
System
.
out
.
println
(
"count----------->"
+
count
);
Integer
pushCount
=
this
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
ImsPickingList
>().
eq
(
"sup_mtrl_dt_anal_no"
,
supMtrlDtAnalNo
).
last
(
"limit 1"
)).
getPushCount
();
System
.
out
.
println
(
"pushCount----------->"
+
pushCount
);
log
.
info
(
"分析单号为{}, 以同步数量{}条, 需要同步数量{}条"
,
supMtrlDtAnalNo
,
count
,
pushCount
);
return
pushCount
!=
0
&&
pushCount
.
equals
(
count
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论