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
84393494
Commit
84393494
authored
Jun 29, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料主数据变更和扩展
parent
8c816fd0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
17 deletions
+52
-17
nonProdApplyList.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
+3
-0
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+2
-1
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+42
-14
NonProdApplyController.java
...n/sap/nonProdApply/controller/NonProdApplyController.java
+2
-1
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+1
-0
SapNonProdApplyDept.java
...u/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
+2
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
View file @
84393494
...
@@ -97,6 +97,9 @@ function loadNonProdApplyListGrid() {
...
@@ -97,6 +97,9 @@ function loadNonProdApplyListGrid() {
{
display
:
"维护类型"
,
name
:
"maintenanceTypeTextView"
,
width
:
130
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
{
display
:
"维护类型"
,
name
:
"maintenanceTypeTextView"
,
width
:
130
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
){
render
:
function
(
item
){
var
result
=
item
.
maintenanceTypeTextView
+
"-待处理基本信息"
;
var
result
=
item
.
maintenanceTypeTextView
+
"-待处理基本信息"
;
if
(
item
.
status
==
"1"
){
result
=
item
.
maintenanceTypeTextView
+
"-待审批"
;
}
if
(
item
.
distribute
==
"1"
){
if
(
item
.
distribute
==
"1"
){
result
=
item
.
maintenanceTypeTextView
+
"-待分发"
;
result
=
item
.
maintenanceTypeTextView
+
"-待分发"
;
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
84393494
...
@@ -220,10 +220,11 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
...
@@ -220,10 +220,11 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
//审批通过
//审批通过
if
(
ObjectUtils
.
equals
(
parameter
.
getHandleResult
(),
1
))
{
//同意
if
(
ObjectUtils
.
equals
(
parameter
.
getHandleResult
(),
1
))
{
//同意
//SapNonProdApplyDept nonProdApplyDept=nonProdApplyDeptApplication.getNonProdApplyDeptByBaseInfoId(nonProdApplyBaseInfo.getSourceId());
//SapNonProdApplyDept nonProdApplyDept=nonProdApplyDeptApplication.getNonProdApplyDeptByBaseInfoId(nonProdApplyBaseInfo.getSourceId());
//
SapNonProdApplyDept newNonProdApplyDept=nonProdApplyDeptApplication.getNonProdApplyDeptByBaseInfoId(nonProdApplyBaseInfo.getId());
//
SapNonProdApplyDept newNonProdApplyDept=nonProdApplyDeptApplication.getNonProdApplyDeptByBaseInfoId(nonProdApplyBaseInfo.getId());
//publishHyzyMessage(nonProdApplyBaseInfo);
//publishHyzyMessage(nonProdApplyBaseInfo);
Map
backMap
=
new
HashMap
();
Map
backMap
=
new
HashMap
();
backMap
.
put
(
"TYPE"
,
"C"
);
backMap
.
put
(
"TYPE"
,
"C"
);
backMap
.
put
(
"title"
,
""
);
nonProdApplyDeptApplication
.
saveBsnMessageData
(
nonProdApplyBaseInfo
,
backMap
);
nonProdApplyDeptApplication
.
saveBsnMessageData
(
nonProdApplyBaseInfo
,
backMap
);
}
}
// }
// }
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
84393494
...
@@ -75,6 +75,8 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -75,6 +75,8 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
if
(
parentBaseInfo
!=
null
)
{
if
(
parentBaseInfo
!=
null
)
{
if
(
baseInfo
.
getId
().
equals
(
parentBaseInfo
.
getId
())
//表示是当前单据 忽略掉
if
(
baseInfo
.
getId
().
equals
(
parentBaseInfo
.
getId
())
//表示是当前单据 忽略掉
||
parentBaseInfo
.
getStatusId
()
==
5
//排除终止的
||
parentBaseInfo
.
getStatusId
()
==
5
//排除终止的
||
baseInfo
.
getSourceId
().
equals
(
parentBaseInfo
.
getId
())
||
baseInfo
.
getSourceId
().
equals
(
parentBaseInfo
.
getSourceId
())
//扩展与变更
)
{
)
{
}
else
{
}
else
{
throw
new
RuntimeException
(
"汉语品名:"
+
sdo
.
getString
(
"maktx"
)
+
"已经存在!请检查输入"
);
throw
new
RuntimeException
(
"汉语品名:"
+
sdo
.
getString
(
"maktx"
)
+
"已经存在!请检查输入"
);
...
@@ -102,13 +104,17 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -102,13 +104,17 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
baseInfo
.
setMaterialUsage
(
sdo
.
getString
(
"materialUsage"
));
baseInfo
.
setMaterialUsage
(
sdo
.
getString
(
"materialUsage"
));
baseInfo
.
setItemAttributes
(
sdo
.
getString
(
"itemAttributes"
));
baseInfo
.
setItemAttributes
(
sdo
.
getString
(
"itemAttributes"
));
}
if
(
""
.
equals
(
businessCode
)){
//基本信息维护
baseInfo
.
setMaktxRemZh
(
sdo
.
getString
(
"maktxRemZh"
));
baseInfo
.
setMaktxRemEn
(
sdo
.
getString
(
"maktxRemEn"
));
baseInfo
.
setTextDescription
(
sdo
.
getString
(
"textDescription"
));
}
}
if
(
"V"
.
equals
(
businessCode
))
{
//销售视图
if
(
"V"
.
equals
(
businessCode
))
{
//销售视图
baseInfo
.
setBrand
(
sdo
.
getString
(
"brand"
));
baseInfo
.
setBrand
(
sdo
.
getString
(
"brand"
));
baseInfo
.
setBrand
(
sdo
.
getString
(
"brandName"
));
baseInfo
.
setBrand
(
sdo
.
getString
(
"brandName"
));
}
}
baseInfo
.
setMaktxRemZh
(
sdo
.
getString
(
"maktxRemZh"
));
baseInfo
.
setMaktxRemEn
(
sdo
.
getString
(
"maktxRemEn"
));
nonProdApplyBaseInfoRepository
.
save
(
baseInfo
);
nonProdApplyBaseInfoRepository
.
save
(
baseInfo
);
NonProdApplyDeptVo
deptVo
=
null
;
NonProdApplyDeptVo
deptVo
=
null
;
...
@@ -160,7 +166,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -160,7 +166,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
nonProdApplyDept
=
this
.
save
(
nonProdApplyDept
);
nonProdApplyDept
=
this
.
save
(
nonProdApplyDept
);
String
applyDeptId
=
sdo
.
getString
(
"applyDeptId"
);
String
applyDeptId
=
sdo
.
getString
(
"applyDeptId"
);
//分发操作
if
((
StringUtil
.
isBlank
(
businessCode
)||
"INIT_DPT"
.
equals
(
businessCode
))&&
"2"
.
equals
(
sdo
.
getString
(
"distribute"
)))
{
//业务类型为空 ,表示是基本信息进入的 才保存分发信息
if
((
StringUtil
.
isBlank
(
businessCode
)||
"INIT_DPT"
.
equals
(
businessCode
))&&
"2"
.
equals
(
sdo
.
getString
(
"distribute"
)))
{
//业务类型为空 ,表示是基本信息进入的 才保存分发信息
//保存部门分发任务
//保存部门分发任务
//获取分发的部门与人员信息
//获取分发的部门与人员信息
...
@@ -178,6 +184,25 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -178,6 +184,25 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
}
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
}
}
//不是分发的
if
(
StringUtil
.
isBlank
(
businessCode
)&&
active
==
1
&&
StringUtil
.
isBlank
(
sdo
.
getString
(
"distribute"
))){
//基本信息提交后 发送待分发的待办消息
//先结束 基本信息的待办
BsnMessageSponsor
bsnMessageSponsor2
=
bsnMessageSponsorRepository
.
findByBusinessId
(
baseInfo
.
getId
());
if
(
bsnMessageSponsor2
!=
null
){
List
<
BsnMessageExecute
>
bsnMsgList2
=
bsnMessageExecuteRepository
.
findAllByMessageSponsorId
(
bsnMessageSponsor2
.
getId
());
for
(
BsnMessageExecute
bsnMessageExecute
:
bsnMsgList2
)
{
if
(
"HYZY"
.
equals
(
bsnMessageExecute
.
getBusinessCode
()))
{
bsnMessageApplication
.
submitTask
(
bsnMessageExecute
.
getId
());
}
}
}
//产生待分发的待办信息
Map
backMap
=
new
HashMap
();
backMap
.
put
(
"TYPE"
,
"D"
);
backMap
.
put
(
"title"
,
nonProdApplyDept
.
getMaktx
());
//汉语品名
saveBsnMessageData
(
baseInfo
,
backMap
);
}
if
(
active
!=
null
&&
active
==
2
&&
opstatus
.
equals
(
"1"
)){
//各部门都提交后,隐藏消息
if
(
active
!=
null
&&
active
==
2
&&
opstatus
.
equals
(
"1"
)){
//各部门都提交后,隐藏消息
bsnMessageApplication
.
submitTask
(
meId
);
bsnMessageApplication
.
submitTask
(
meId
);
//如果所有的业务部门处理完 ,则推送SAP
//如果所有的业务部门处理完 ,则推送SAP
...
@@ -272,7 +297,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -272,7 +297,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
//结束分发任务的待办信息
//结束分发任务的待办信息
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
//SapNonProdApplyDept sapNonProdApplyDept=nonProdApplyDeptRepository.findByBaseInfoId(sdo.getString("id"));
//SapNonProdApplyDept sapNonProdApplyDept=nonProdApplyDeptRepository.findByBaseInfoId(sdo.getString("id"));
if
(
nonProdApplyBaseInfo
.
getMaintenanceType
().
equals
(
"new"
))
{
//新申请的 分发后结束分发人的待办信息 06.17
//
if(nonProdApplyBaseInfo.getMaintenanceType().equals("new")) { //新申请的 分发后结束分发人的待办信息 06.17
BsnMessageSponsor
bsnMessageSponsor
=
bsnMessageSponsorRepository
.
findByBusinessId
(
nonProdApplyBaseInfo
.
getId
());
BsnMessageSponsor
bsnMessageSponsor
=
bsnMessageSponsorRepository
.
findByBusinessId
(
nonProdApplyBaseInfo
.
getId
());
if
(
bsnMessageSponsor
!=
null
){
if
(
bsnMessageSponsor
!=
null
){
List
<
BsnMessageExecute
>
bsnMsgList
=
bsnMessageExecuteRepository
.
findAllByMessageSponsorId
(
bsnMessageSponsor
.
getId
());
List
<
BsnMessageExecute
>
bsnMsgList
=
bsnMessageExecuteRepository
.
findAllByMessageSponsorId
(
bsnMessageSponsor
.
getId
());
...
@@ -282,8 +307,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -282,8 +307,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
}
}
}
}
}
// }
}
//发布各业务人员待处理的任务
//发布各业务人员待处理的任务
bsnMessageApplication
.
publishTasks
((
String
)
map
.
get
(
"applyDeptId"
));
bsnMessageApplication
.
publishTasks
((
String
)
map
.
get
(
"applyDeptId"
));
...
@@ -418,6 +442,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -418,6 +442,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
backMap
);
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
backMap
);
//Operator operator = operatorApplication.createOperatorByPersonMemberId(baseInfo.getPersonMemberId());
//Operator operator = operatorApplication.createOperatorByPersonMemberId(baseInfo.getPersonMemberId());
//向货源专员 发重新分发的消息
//向货源专员 发重新分发的消息
backMap
.
put
(
"title"
,
applyDept
.
getMaktx
());
//汉语品名
saveBsnMessageData
(
baseInfo
,
backMap
);
saveBsnMessageData
(
baseInfo
,
backMap
);
return
backStr
;
return
backStr
;
...
@@ -469,20 +494,23 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -469,20 +494,23 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
messageExecute
.
setBusinessCode
(
map
.
get
(
"positionCode"
).
toString
());
//HYZY
messageExecute
.
setBusinessCode
(
map
.
get
(
"positionCode"
).
toString
());
//HYZY
messageExecute
.
setActive
(
ActiveStatus
.
UNFINISHED
.
getValue
());
messageExecute
.
setActive
(
ActiveStatus
.
UNFINISHED
.
getValue
());
messageExecute
.
setUpdateDate
(
new
Date
());
messageExecute
.
setUpdateDate
(
new
Date
());
String
sign
=
"-."
;
String
title
=
backMap
.
get
(
"title"
)!=
null
?
backMap
.
get
(
"title"
).
toString
():
""
;
if
(
"S"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
if
(
"S"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
messageExecute
.
setTaskDescribe
(
""
+
backMap
.
get
(
"MESSAGE"
).
toString
());
messageExecute
.
setTaskDescribe
(
title
+
sign
+
backMap
.
get
(
"MESSAGE"
).
toString
());
}
else
if
(
"E"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
}
else
if
(
"E"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
messageExecute
.
setTaskDescribe
(
""
+
backMap
.
get
(
"MESSAGE"
).
toString
());
messageExecute
.
setTaskDescribe
(
title
+
sign
+
backMap
.
get
(
"MESSAGE"
).
toString
());
}
else
if
(
"C"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
//审批完成 推送待办的基本信息处理信息
}
else
if
(
"C"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
//审批完成 推送待办的基本信息处理信息
String
mess
=
"-.
物料维护("
;
String
mess
=
sign
+
"
物料维护("
;
if
(
baseInfo
.
getMaintenanceType
().
equals
(
"modify"
))
{
if
(
baseInfo
.
getMaintenanceType
().
equals
(
"modify"
))
{
mess
=
"-.
物料变更("
;
mess
=
sign
+
"
物料变更("
;
}
}
if
(
baseInfo
.
getMaintenanceType
().
equals
(
"extend"
))
{
if
(
baseInfo
.
getMaintenanceType
().
equals
(
"extend"
))
{
mess
=
"-.
物料扩展("
;
mess
=
sign
+
"
物料扩展("
;
}
}
messageExecute
.
setTaskDescribe
(
baseInfo
.
getGenericName
()
+
mess
+
map
.
get
(
"deptName"
).
toString
()
+
")"
);
messageExecute
.
setTaskDescribe
(
baseInfo
.
getGenericName
()
+
mess
+
title
+
")"
);
}
else
if
(
"D"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
// 推送待分发的待办信息
messageExecute
.
setTaskDescribe
(
baseInfo
.
getGenericName
()
+
sign
+
"待分发("
+
title
+
")"
);
}
}
bsnMessageApplication
.
saveBsnMessageSponsor
(
bsnMessageSponsor
);
bsnMessageApplication
.
saveBsnMessageSponsor
(
bsnMessageSponsor
);
messageExecute
.
setMessageSponsorId
(
bsnMessageSponsor
.
getId
());
messageExecute
.
setMessageSponsorId
(
bsnMessageSponsor
.
getId
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyController.java
View file @
84393494
...
@@ -81,6 +81,7 @@ public class NonProdApplyController extends CommonController {
...
@@ -81,6 +81,7 @@ public class NonProdApplyController extends CommonController {
sdo
.
setProperties
(
map
);
sdo
.
setProperties
(
map
);
nonProdApplyBaseInfo
.
setFullId
(
""
);
nonProdApplyBaseInfo
.
setFullId
(
""
);
nonProdApplyBaseInfo
.
setSourceId
(
bizId
);
nonProdApplyBaseInfo
.
setSourceId
(
bizId
);
Map
<
String
,
String
>
dictMapUsage
=
DictUtil
.
getDictionary
(
"serviceusage"
);
Map
<
String
,
String
>
dictMapUsage
=
DictUtil
.
getDictionary
(
"serviceusage"
);
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
//for (Map maps:mapUsage){
//for (Map maps:mapUsage){
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
84393494
...
@@ -396,6 +396,7 @@ public void getBaseInfoAttrs(NonProdApplyBaseInfo baseInfo,SapNonProdApplyDept n
...
@@ -396,6 +396,7 @@ public void getBaseInfoAttrs(NonProdApplyBaseInfo baseInfo,SapNonProdApplyDept n
nonProdApplyDept
.
setMaktxRemEn
(
baseInfo
.
getMaktxRemEn
());
nonProdApplyDept
.
setMaktxRemEn
(
baseInfo
.
getMaktxRemEn
());
nonProdApplyDept
.
setMaktxRemZh
(
baseInfo
.
getMaktxRemZh
());
nonProdApplyDept
.
setMaktxRemZh
(
baseInfo
.
getMaktxRemZh
());
nonProdApplyDept
.
setTextDescription
(
baseInfo
.
getTextDescription
());
}
}
// @EasySearch(queryName = "userNameSelect")
// @EasySearch(queryName = "userNameSelect")
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
View file @
84393494
...
@@ -956,7 +956,8 @@ public class SapNonProdApplyDept implements Serializable {
...
@@ -956,7 +956,8 @@ public class SapNonProdApplyDept implements Serializable {
private
String
maktxRemZh
;
private
String
maktxRemZh
;
@Transient
@Transient
private
String
maktxRemEn
;
private
String
maktxRemEn
;
@Transient
private
String
textDescription
;
@Transient
@Transient
private
Date
createdDate
;
private
Date
createdDate
;
...
...
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