Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
af0a77df
Commit
af0a77df
authored
Feb 25, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客供料根据计划订单查询,如果没有就新增,有就修改;SAP删除的BPM也标记删除
parent
07f77776
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
ClientMaterialsApplicationImpl.java
...ials/application/impl/ClientMaterialsApplicationImpl.java
+26
-0
CostCenterController.java
...opsun/sap/costCenter/controller/CostCenterController.java
+2
-2
No files found.
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/application/impl/ClientMaterialsApplicationImpl.java
View file @
af0a77df
...
@@ -35,9 +35,11 @@ import com.huigou.util.StringUtil;
...
@@ -35,9 +35,11 @@ import com.huigou.util.StringUtil;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* @Auther: Lxh
* @Auther: Lxh
...
@@ -137,7 +139,31 @@ public class ClientMaterialsApplicationImpl extends BaseApplication implements C
...
@@ -137,7 +139,31 @@ public class ClientMaterialsApplicationImpl extends BaseApplication implements C
List
<
Map
<
String
,
Object
>>
personMaps
=
this
.
sqlExecutorDao
.
queryToListMap
(
queryDescriptor
.
getSql
(),
null
);
List
<
Map
<
String
,
Object
>>
personMaps
=
this
.
sqlExecutorDao
.
queryToListMap
(
queryDescriptor
.
getSql
(),
null
);
//推送待办任务
//推送待办任务
this
.
pushTask
(
clientMaterialsDb
,
personMaps
);
this
.
pushTask
(
clientMaterialsDb
,
personMaps
);
}
else
{
//不为空,更新数据
BeanUtil
.
copyProperties
(
clientMaterialsVo
,
clientMaterialsDb
);
clientMaterialsRepository
.
save
(
clientMaterialsDb
);
}
}
}
//删除已关单的数据
List
<
ClientMaterials
>
clientMaterialsList
=
clientMaterialsRepository
.
findAll
();
Set
<
String
>
plnumSet
=
sapClientMaterialsList
.
stream
()
.
map
(
ClientMaterialsVo:
:
getPlnum
)
.
collect
(
Collectors
.
toSet
());
List
<
ClientMaterials
>
materialsList
=
clientMaterialsList
.
stream
()
.
filter
(
obj
->
StringUtil
.
isBlank
(
obj
.
getClosed
()))
.
filter
(
obj
->
!
plnumSet
.
contains
(
obj
.
getPlnum
()))
.
collect
(
Collectors
.
toList
());
//标记已删除
if
(!
CollectionUtils
.
isEmpty
(
materialsList
)){
materialsList
.
stream
()
.
forEach
(
obj
->
{
obj
.
setClosed
(
"1"
);
clientMaterialsRepository
.
save
(
obj
);
});
}
}
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/costCenter/controller/CostCenterController.java
View file @
af0a77df
...
@@ -170,7 +170,7 @@ public class CostCenterController extends CommonController {
...
@@ -170,7 +170,7 @@ public class CostCenterController extends CommonController {
/**
/**
* 成本中心ES查询接口
* 成本中心ES查询接口
*/
*/
/*
@EasySearch(queryName = "queryCostCenter")
@EasySearch
(
queryName
=
"queryCostCenter"
)
public
Map
<
String
,
Object
>
queryCostCenter
(
SDO
sdo
)
{
public
Map
<
String
,
Object
>
queryCostCenter
(
SDO
sdo
)
{
Integer
intPage
=
sdo
.
getInteger
(
"intPage"
,
1
);
Integer
intPage
=
sdo
.
getInteger
(
"intPage"
,
1
);
Integer
pageSize
=
sdo
.
getInteger
(
"pageSize"
,
10
);
Integer
pageSize
=
sdo
.
getInteger
(
"pageSize"
,
10
);
...
@@ -203,7 +203,7 @@ public class CostCenterController extends CommonController {
...
@@ -203,7 +203,7 @@ public class CostCenterController extends CommonController {
MemEasySearcher
<
Map
<
String
,
String
>>
memEasySearcher
=
new
MemEasySearcherImpl
<>();
MemEasySearcher
<
Map
<
String
,
String
>>
memEasySearcher
=
new
MemEasySearcherImpl
<>();
Map
<
String
,
Object
>
model
=
memEasySearcher
.
search
(
mapList
,
easySearchParse
,
pageRequest
,
null
);
Map
<
String
,
Object
>
model
=
memEasySearcher
.
search
(
mapList
,
easySearchParse
,
pageRequest
,
null
);
return
model
;
return
model
;
}
*/
}
/**
/**
* 冻结成本中心
* 冻结成本中心
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment