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
f94403b2
Commit
f94403b2
authored
Jan 15, 2024
by
wanghang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主页 任务展示 3
parent
7d737fc0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
834 additions
and
305 deletions
+834
-305
nonProdApplyDeptList.js
...ebapp/biz/topsun/sap/nonProdApply/nonProdApplyDeptList.js
+110
-0
nonProdApplyDeptList.jsp
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyDeptList.jsp
+29
-0
nonProdApplyList.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
+1
-0
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+279
-73
nonProdApplyNext.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
+305
-220
WorkflowApplicationImplOverride.java
...m/huigou/topsun/base/WorkflowApplicationImplOverride.java
+2
-5
BsnMessage.java
.../com/huigou/topsun/base/bsnMessage/domain/BsnMessage.java
+8
-0
BsnMessageQueryRequest.java
.../base/bsnMessage/domain/query/BsnMessageQueryRequest.java
+5
-0
BsnMessageRepository.java
...psun/base/bsnMessage/repository/BsnMessageRepository.java
+5
-0
NonProdApplyDeptApplication.java
...nonProdApply/application/NonProdApplyDeptApplication.java
+7
-1
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+1
-0
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+30
-2
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+44
-3
SapNonProdApplyDept.java
...u/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
+8
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyDeptList.js
0 → 100644
View file @
f94403b2
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initializateUI
()
loadNonProdApplyListGrid
();
})
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
loadNonProdApplyDeptListGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
deleteHandler
:
deleteHandler
});
gridManager
=
UICtrl
.
grid
(
"#nonProdApplyDeptListGrid"
,
{
columns
:
[
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"维护类型"
,
name
:
"maintenanceTypeTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"批准人"
,
name
:
"approver"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"批准日期"
,
name
:
"approvalDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"通用品名"
,
name
:
"genericName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"适用标准"
,
name
:
"applicableStandard"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"基本计量单位"
,
name
:
"baseUnitTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"规格"
,
name
:
"specifications"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"材质"
,
name
:
"material"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"版式"
,
name
:
"design"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"尺码"
,
name
:
"size"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"品牌"
,
name
:
"brand"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"用途"
,
name
:
"materialUsage"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物品属性"
,
name
:
"itemAttributesTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务用途"
,
name
:
"businessUsageTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"文本说明"
,
name
:
"textDescription"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapNonProdApply/slicedNonProdApplyList.ajax'
,
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
async
:
false
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
);
},
onAfterShowData
:
function
(
data
){
console
.
log
(
data
)
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
action
:
'sapNonProdApply/deleteNonProdApply.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'nonProdApply'
,
text
:
"非产品/非本成品类物料主数据维护申请"
,
url
:
web_app
.
name
+
'/sapNonProdApply/forwardNonProdApplyDetail.job'
});
}
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
tabid
:
'showNonProdApply'
+
id
,
text
:
"非产品/非本成品类物料主数据维护申请详情"
,
url
:
web_app
.
name
+
'/sapNonProdApply/showNonProdApply.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
// function next(){
// UICtrl.addTabItem({
// tabid: 'showNonProdApplyNext',
// text: "非产品/非本成品类物料主数据维护申请详情",
// url: web_app.name + '/sapNonProdApply/forwardNonProdApplyNext.do?isDetailPage=true'
// });
// }
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyDeptList.jsp
0 → 100644
View file @
f94403b2
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<%-- <x:button value="next" onclick="next()" icon="fa-save"/>--%>
<div
class=
"ui-hide"
>
<x:select
name=
"processType"
dictionary=
"processType"
/>
<x:select
name=
"yesorno"
dictionary=
"yesorno"
/>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"非本成品类物料部门数据维护查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"proofingApplyNo"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"nonProdApplyDeptListGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
View file @
f94403b2
...
@@ -34,6 +34,7 @@ function loadNonProdApplyListGrid() {
...
@@ -34,6 +34,7 @@ function loadNonProdApplyListGrid() {
gridManager
=
UICtrl
.
grid
(
"#nonProdApplyListGrid"
,
{
gridManager
=
UICtrl
.
grid
(
"#nonProdApplyListGrid"
,
{
columns
:
[
columns
:
[
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
f94403b2
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
View file @
f94403b2
This diff is collapsed.
Click to expand it.
topsun/src/main/java/com/huigou/topsun/
sap/nonProdApply/controller
/WorkflowApplicationImplOverride.java
→
topsun/src/main/java/com/huigou/topsun/
base
/WorkflowApplicationImplOverride.java
View file @
f94403b2
package
com
.
huigou
.
topsun
.
sap
.
nonProdApply
.
controller
;
package
com
.
huigou
.
topsun
.
base
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.topsun.base.bsnMessage.appliction.BsnMessageApplication
;
import
com.huigou.topsun.base.bsnMessage.appliction.BsnMessageApplication
;
...
@@ -24,14 +24,11 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -24,14 +24,11 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* 优先注入此类
* 优先注入此类
替换huigou包下该类型bean
*/
*/
@Primary
@Primary
@Service
@Service
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/domain/BsnMessage.java
View file @
f94403b2
...
@@ -57,6 +57,14 @@ public class BsnMessage implements Serializable {
...
@@ -57,6 +57,14 @@ public class BsnMessage implements Serializable {
@Column
(
name
=
"finished_date"
)
@Column
(
name
=
"finished_date"
)
private
Date
finishedDate
;
private
Date
finishedDate
;
/**
* 驳回信息
*/
@Column
(
name
=
"reject_msg"
)
private
String
rejectMsg
;
/**
/**
*任务执行地址
*任务执行地址
*/
*/
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/domain/query/BsnMessageQueryRequest.java
View file @
f94403b2
...
@@ -55,6 +55,11 @@ public class BsnMessageQueryRequest extends QueryAbstractRequest {
...
@@ -55,6 +55,11 @@ public class BsnMessageQueryRequest extends QueryAbstractRequest {
private
Date
finishedDate
;
private
Date
finishedDate
;
/**
* 携带信息
*/
@Column
(
name
=
"reject_msg"
)
private
String
rejectMsg
;
private
String
executorUrl
;
private
String
executorUrl
;
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/repository/BsnMessageRepository.java
View file @
f94403b2
...
@@ -5,6 +5,11 @@ import com.huigou.topsun.base.bsnMessage.domain.BsnMessage;
...
@@ -5,6 +5,11 @@ import com.huigou.topsun.base.bsnMessage.domain.BsnMessage;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.util.List
;
public
interface
BsnMessageRepository
extends
JpaRepository
<
BsnMessage
,
String
>
{
public
interface
BsnMessageRepository
extends
JpaRepository
<
BsnMessage
,
String
>
{
List
<
BsnMessage
>
findAllByBusinessId
(
String
BusinessId
);
}
}
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/NonProdApplyDeptApplication.java
View file @
f94403b2
...
@@ -19,7 +19,7 @@ public interface NonProdApplyDeptApplication {
...
@@ -19,7 +19,7 @@ public interface NonProdApplyDeptApplication {
* 编辑详细信息
* 编辑详细信息
* @param sdo
* @param sdo
*/
*/
void
saveSapNonProdApplyDept
(
SDO
sdo
);
Map
<
String
,
Object
>
saveSapNonProdApplyDept
(
SDO
sdo
);
/**
/**
* 更改分发状态
* 更改分发状态
...
@@ -28,4 +28,10 @@ public interface NonProdApplyDeptApplication {
...
@@ -28,4 +28,10 @@ public interface NonProdApplyDeptApplication {
void
distributeSapNonProdApplyDept
(
SDO
sdo
);
void
distributeSapNonProdApplyDept
(
SDO
sdo
);
SapNonProdApplyDept
getNonProdApplyDeptById
(
String
id
);
SapNonProdApplyDept
getNonProdApplyDeptById
(
String
id
);
/**
* 驳回相关的部门
* @param sdo
*/
void
rejectNonProdApplyDept
(
SDO
sdo
);
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
f94403b2
...
@@ -106,6 +106,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
...
@@ -106,6 +106,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
model
.
putDictionary
(
"baseUnit"
,
DictUtil
.
getDictionary
(
"measuringUnit"
));
model
.
putDictionary
(
"baseUnit"
,
DictUtil
.
getDictionary
(
"measuringUnit"
));
model
.
putDictionary
(
"itemAttributes"
,
DictUtil
.
getDictionary
(
"suppliesType"
));
model
.
putDictionary
(
"itemAttributes"
,
DictUtil
.
getDictionary
(
"suppliesType"
));
model
.
putDictionary
(
"businessUsage"
,
DictUtil
.
getDictionary
(
"serviceusage"
));
model
.
putDictionary
(
"businessUsage"
,
DictUtil
.
getDictionary
(
"serviceusage"
));
model
.
putDictionary
(
"status"
,
DictUtil
.
getDictionary
(
"bizBillStatus"
));
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
model
);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
model
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
f94403b2
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.sap.nonProdApply.application.impl;
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.sap.nonProdApply.application.impl;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.topsun.base.bsnMessage.domain.BsnMessage
;
import
com.huigou.topsun.base.bsnMessage.repository.BsnMessageRepository
;
import
com.huigou.topsun.proofing.domain.proofingApply.model.ProofingApplyProcess
;
import
com.huigou.topsun.proofing.domain.proofingApply.model.ProofingApplyProcess
;
import
com.huigou.topsun.sap.nonProdApply.application.NonProdApplyDeptApplication
;
import
com.huigou.topsun.sap.nonProdApply.application.NonProdApplyDeptApplication
;
...
@@ -14,16 +16,22 @@ import com.huigou.util.SDO;
...
@@ -14,16 +16,22 @@ import com.huigou.util.SDO;
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
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Service
public
class
NonProdApplyDeptApplicationImpl
extends
BaseApplication
implements
NonProdApplyDeptApplication
{
public
class
NonProdApplyDeptApplicationImpl
extends
BaseApplication
implements
NonProdApplyDeptApplication
{
@Autowired
@Autowired
NonProdApplyDeptRepository
nonProdApplyDeptRepository
;
NonProdApplyDeptRepository
nonProdApplyDeptRepository
;
@Autowired
BsnMessageRepository
bsnMessageRepository
;
@Override
@Override
public
void
saveSapNonProdApplyDept
(
SDO
sdo
)
{
public
Map
<
String
,
Object
>
saveSapNonProdApplyDept
(
SDO
sdo
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
SapNonProdApplyDept
nonProdApplyDept
=
sdo
.
toObject
(
SapNonProdApplyDept
.
class
);
SapNonProdApplyDept
nonProdApplyDept
=
sdo
.
toObject
(
SapNonProdApplyDept
.
class
);
ObjectMapper
objectMapper
=
new
ObjectMapper
();
ObjectMapper
objectMapper
=
new
ObjectMapper
();
String
deptStaffJSON
=
sdo
.
getString
(
"deptStaff"
);
String
deptStaffJSON
=
sdo
.
getString
(
"deptStaff"
);
...
@@ -31,15 +39,35 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -31,15 +39,35 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
// });
// });
SapNonProdApplyDept
save
=
nonProdApplyDeptRepository
.
save
(
nonProdApplyDept
);
SapNonProdApplyDept
save
=
nonProdApplyDeptRepository
.
save
(
nonProdApplyDept
);
map
.
put
(
"applyDeptId"
,
save
.
getApplyDeptId
());
return
map
;
}
}
@Override
@Override
public
void
distributeSapNonProdApplyDept
(
SDO
sdo
)
{
public
void
distributeSapNonProdApplyDept
(
SDO
sdo
)
{
this
.
saveSapNonProdApplyDept
(
sdo
);
Map
<
String
,
Object
>
map
=
this
.
saveSapNonProdApplyDept
(
sdo
);
List
<
BsnMessage
>
nonProdApplyDeptList
=
bsnMessageRepository
.
findAllByBusinessId
((
String
)
map
.
get
(
"applyDeptId"
));
nonProdApplyDeptList
.
forEach
(
item
->
item
.
setActive
(
0
));
bsnMessageRepository
.
save
(
nonProdApplyDeptList
);
}
}
@Override
@Override
public
SapNonProdApplyDept
getNonProdApplyDeptById
(
String
id
)
{
public
SapNonProdApplyDept
getNonProdApplyDeptById
(
String
id
)
{
return
nonProdApplyDeptRepository
.
findOne
(
id
);
return
nonProdApplyDeptRepository
.
findOne
(
id
);
}
}
@Override
public
void
rejectNonProdApplyDept
(
SDO
sdo
)
{
String
septString
=
sdo
.
getString
(
"dept"
);
//需要被驳回的部门
List
<
String
>
deptList
=
Arrays
.
asList
(
septString
.
split
(
","
));
String
bdid
=
sdo
.
getString
(
"表单的id"
);
//更改状态此对象为驳回状态
SapNonProdApplyDept
one
=
nonProdApplyDeptRepository
.
findOne
(
bdid
);
one
.
setStatus
(
2
);
nonProdApplyDeptRepository
.
save
(
one
);
//获取此条数据的相关部门信息
List
<
BsnMessage
>
allByBusinessId
=
bsnMessageRepository
.
findAllByBusinessId
(
bdid
);
}
}
}
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
f94403b2
...
@@ -12,9 +12,15 @@ import com.huigou.topsun.sap.nonProdApply.domain.SapNonProdApplyDept;
...
@@ -12,9 +12,15 @@ import com.huigou.topsun.sap.nonProdApply.domain.SapNonProdApplyDept;
import
com.huigou.topsun.sap.nonProdApply.domain.query.NonProdApplyBaseInfoQueryRequest
;
import
com.huigou.topsun.sap.nonProdApply.domain.query.NonProdApplyBaseInfoQueryRequest
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.common.easysearch.EasySearch
;
import
com.huigou.uasp.bmp.common.easysearch.domain.model.EasySearchParse
;
import
com.huigou.uasp.bmp.common.easysearch.domain.model.QuerySchemeField
;
import
com.huigou.uasp.bmp.opm.application.MemEasySearcher
;
import
com.huigou.uasp.bmp.opm.application.impl.MemEasySearcherImpl
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
java.util.*
;
import
java.util.*
;
...
@@ -76,9 +82,8 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -76,9 +82,8 @@ public class NonProdApplyNextController extends CommonController {
*/
*/
public
String
distributeSapNonProdApplyDept
(){
public
String
distributeSapNonProdApplyDept
(){
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
SapNonProdApplyDept
nonProdApplyDept
=
sdo
.
toObject
(
SapNonProdApplyDept
.
class
);
nonProdApplyDeptApplication
.
distributeSapNonProdApplyDept
(
sdo
);
// nonProdApplyDeptApplication.saveSapNonProdApplyDept(sdo);
return
success
();
return
toResult
(
nonProdApplyDept
);
}
}
/**
/**
...
@@ -88,10 +93,46 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -88,10 +93,46 @@ public class NonProdApplyNextController extends CommonController {
public
String
fillInNonProdApplyDept
(){
public
String
fillInNonProdApplyDept
(){
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getBizId
();
String
id
=
sdo
.
getBizId
();
Map
<
String
,
String
>
map
=
DictUtil
.
getDictionary
(
"serviceusage"
);
this
.
putAttribute
(
"bu"
,
map
);
this
.
putAttribute
(
"isReadOnly"
,
"false"
);
this
.
putAttribute
(
"isReadOnly"
,
"false"
);
SapNonProdApplyDept
nonProdApplyDept
=
nonProdApplyDeptApplication
.
getNonProdApplyDeptById
(
id
);
SapNonProdApplyDept
nonProdApplyDept
=
nonProdApplyDeptApplication
.
getNonProdApplyDeptById
(
id
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
}
}
@EasySearch
(
queryName
=
"userNameSelect"
)
public
Map
<
String
,
Object
>
queryResourceNameGroup
(
SDO
sdo
){
// Integer intPage = sdo.getInteger("intPage", 1);
// Integer pageSize = sdo.getInteger("pageSize",10);
// PageRequest pageRequest = new PageRequest(intPage - 1, pageSize);
// List<QuerySchemeField> fields =
// Arrays.asList(new QuerySchemeField("id", "id", "hidden"),
// new QuerySchemeField("资源名称", "gxmc", "string", 200L),
// new QuerySchemeField("资源编码", "gxbm", "string", 100L),
// new QuerySchemeField("单位", "dw", "string", 100L),
// new QuerySchemeField("用量", "yl", "string", 100L),
// new QuerySchemeField("工作中心", "gzzx", "string", 100L));
// EasySearchParse easySearchParse = new EasySearchParse();
// easySearchParse.setFields(fields);
// easySearchParse.setWidth(450L);
// String processType = sdo.getString("paramValue");
//// List<Map<String, Object>> mapList = resourceFiledService.getResourceFieldValueListByProcess(processType);
// MemEasySearcher<Map<String, Object>> memEasySearcher = new MemEasySearcherImpl<>();
// Map<String, Object> model = memEasySearcher.search(mapList, easySearchParse, pageRequest, null);
// return model;
return
null
;
}
public
void
rejectNonProdApplyDept
(){
SDO
sdo
=
this
.
getSDO
();
String
septString
=
sdo
.
getString
(
"dept"
);
//需要被驳回的部门
List
<
String
>
deptList
=
Arrays
.
asList
(
septString
.
split
(
","
));
}
}
}
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
View file @
f94403b2
...
@@ -25,7 +25,8 @@ public class SapNonProdApplyDept implements Serializable {
...
@@ -25,7 +25,8 @@ public class SapNonProdApplyDept implements Serializable {
name
=
"system-uuid"
,
name
=
"system-uuid"
,
strategy
=
"guid"
strategy
=
"guid"
)
)
private
String
id
;
@Column
(
name
=
"apply_dept_id"
)
private
String
applyDeptId
;
/**
/**
* 主表id
* 主表id
...
@@ -33,6 +34,12 @@ public class SapNonProdApplyDept implements Serializable {
...
@@ -33,6 +34,12 @@ public class SapNonProdApplyDept implements Serializable {
@Column
(
name
=
"base_info_id"
)
@Column
(
name
=
"base_info_id"
)
private
String
baseInfoId
;
private
String
baseInfoId
;
/**
* 状态(0:未分发,1:待检查,2:已驳回,3:已完成)
*/
private
int
status
;
/**
/**
* 物料编码
* 物料编码
*/
*/
...
...
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