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
25a0a7be
Commit
25a0a7be
authored
Jun 05, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户供料通知
parent
00788865
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1010 additions
and
5 deletions
+1010
-5
clientMaterialsDetail.js
...p/biz/topsun/sap/clientMaterials/clientMaterialsDetail.js
+211
-0
clientMaterialsDetail.jsp
.../biz/topsun/sap/clientMaterials/clientMaterialsDetail.jsp
+51
-0
clientMaterialsList.js
...app/biz/topsun/sap/clientMaterials/clientMaterialsList.js
+101
-0
clientMaterialsList.jsp
...pp/biz/topsun/sap/clientMaterials/clientMaterialsList.jsp
+34
-0
componentSupplyDetail.js
...p/biz/topsun/sap/componentSupply/componentSupplyDetail.js
+1
-1
ClientMaterialsApplication.java
...ientMaterials/application/ClientMaterialsApplication.java
+32
-0
ClientMaterialsApplicationImpl.java
...ials/application/impl/ClientMaterialsApplicationImpl.java
+231
-0
ClientMaterialsController.java
...clientMaterials/controller/ClientMaterialsController.java
+83
-0
ClientMaterials.java
...ou/topsun/sap/clientMaterials/domain/ClientMaterials.java
+63
-0
ClientMaterialsQueryRequest.java
...ntMaterials/domain/query/ClientMaterialsQueryRequest.java
+17
-0
ClientMaterialsRepository.java
...clientMaterials/repository/ClientMaterialsRepository.java
+13
-0
ClientMaterialsVo.java
...igou/topsun/sap/clientMaterials/vo/ClientMaterialsVo.java
+46
-0
clientMaterialsProc.bpmn
...g/bpm/topsun/sap/clientMaterials/clientMaterialsProc.bpmn
+111
-0
clientMaterials.xml
...ces/config/topsun/sap/clientMaterials/clientMaterials.xml
+12
-0
componentSupply.xml
...ces/config/topsun/sap/componentSupply/componentSupply.xml
+1
-1
componentSupplyItem.xml
...config/topsun/sap/componentSupply/componentSupplyItem.xml
+3
-3
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/clientMaterials/clientMaterialsDetail.js
0 → 100644
View file @
25a0a7be
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initialize
();
// loadGrid();
bindEvent
();
});
function
initialize
(){
//if (typeof(getSubProcUnitId) =='function'&&"10" === getSubProcUnitId()) {
var
mainFileTable
=
$
(
'#clientMaterialsInfoList'
).
fileList
();
mainFileTable
.
find
(
'table'
).
css
({
borderTopWidth
:
0
});
$
(
'#clientMaterialsInfoList'
).
fileList
({
bizId
:
$
(
"#attbizId"
).
val
()
});
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
bindEvent
(){
$
(
"#departName"
).
orgTree
({
// checkbox : true,
tree
:{
autoCheckboxEven
:
false
},
getParam
:
function
()
{
return
{
orgRoot
:
'orgRoot'
,
status
:
"1"
,
isVirtual
:
"0"
,
orgKindId
:
'ogn,dpt'
};
},
back
:
{
text
:
'#departName'
,
value
:
'#depart'
},
});
/* $("#applyPersonName").orgTree({
filter: "ogn,dpt,pos,psm",
excludePos: 1, param: {orgKindId: "ogn,dpt,pos,psm"},
back: {text: "#applyPersonName",value :'#applyPerson'},
manageType: 'taskQuery,admin',
onChange:function(value,data){ //alert(data.name);
// $("#applyPerson").val(data.fullId);
// $("#applyPersonName").val(data.name);
}
});
*/
$
(
"#applyPersonName"
).
orgTree
({
checkbox
:
false
,
tree
:{
autoCheckboxEven
:
true
},
getParam
:
function
()
{
return
{
orgRoot
:
'orgRoot'
,
status
:
"1"
,
isVirtual
:
"0"
,
orgKindId
:
'ogn,dpt,pos,psm'
};
},
back
:
{
text
:
'#applyPersonName'
,
value
:
'#applyPerson'
}
});
}
function
loadGrid
()
{
var
toolbarOptions
=
null
;
//if ($("#statusId").val()==0){
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
gridManager
);
},
deleteHandler
:
function
()
{
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
DataUtil
.
delSelectedRows
({
action
:
'sapPermitItem/deleteclientMaterialsInfoList.ajax'
,
param
:
{},
gridManager
:
_grid
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
// copyHandler: copyHandler
// impExcelDataHandler:{id:'impExcelData',img:'fa-table',text:'导入数据',click:impExcelDataHandler},
});
// }
gridManager
=
UICtrl
.
grid
(
"#maingrid"
,
{
columns
:
[
{
display
:
"产品物料"
,
name
:
"productMaterial"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"sapMaterialSelect"
,
getParam
:
function
(
item
)
{
return
{
filterValue
:
item
.
werks
}
},
back
:
{
MATNR
:
"productMaterial"
,
MAKTX
:
"productMaterialName"
}
},
}
},
{
display
:
"产品物料名称"
,
name
:
"productMaterialName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"供给物料"
,
name
:
"supplyMaterial"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"sapMaterialSelect"
,
getParam
:
function
(
item
)
{
return
{
filterValue
:
item
.
werks
}
},
back
:
{
MATNR
:
"supplyMaterial"
,
MAKTX
:
"supplyMaterialName"
}
},
}
},
{
display
:
"供给物料名称"
,
name
:
"supplyMaterialName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"补发数量"
,
name
:
"quantity"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
"text"
,
mask
:
'nnnnnn.nn'
,
required
:
true
}
},
{
display
:
"说明"
,
name
:
"remark"
,
width
:
400
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/componentSupplyItem/queryComponentSupplyItems.ajax'
,
pageSize
:
10
,
usePager
:
true
,
parms
:{
componentSupplyId
:
getId
()},
toolbar
:
toolbarOptions
,
enabledEdit
:
true
,
width
:
"100%"
,
height
:
"80%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
/**
* 流程引擎回调设置打样的id
* @param value 打样申请的id
*/
function
setId
(
id
)
{
$
(
"#id"
).
val
(
id
);
// var _grid=UICtrl.getGridManager('#maingrid');
// _grid.options.parms.componentSupplyId = id;
$
(
'#clientMaterialsInfoList'
).
fileList
({
bizId
:
id
});
}
/**
* 流程引擎获取打样申请id的回掉方法。
* @return 打样申请的id
*/
function
getId
()
{
return
$
(
"#id"
).
val
()
||
""
;
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
getExtendedData
(
processAction
)
{
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
}
var
extendedData
=
{};
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
if
(
_grid
)
{
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
isAllData
:
true
});
if
(
!
datas
)
{
return
false
;
}
extendedData
.
items
=
Public
.
encodeJSONURI
(
datas
);
}
return
extendedData
;
}
topsun-xt/src/main/webapp/biz/topsun/sap/clientMaterials/clientMaterialsDetail.jsp
0 → 100644
View file @
25a0a7be
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
%>
<%@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,date,attachment"
/>
<x:script
src=
"/system/excelimport/AssignCodeImp.js"
/>
<x:script
src=
'/biz/topsun/sap/clientMaterials/clientMaterialsDetail.js'
/>
</head>
<body>
<x:billTitle
title=
"客户供料通知"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"billCode"
/>
<x:hidden
name=
"statusId"
/>
<x:hidden
name=
"attbizId"
/>
<x:hidden
name=
"fillinDate"
type=
"datetime"
/>
<x:hidden
name=
"fullId"
/>
<x:hidden
name=
"organId"
/>
<x:hidden
name=
"organName"
/>
<x:hidden
name=
"deptId"
/>
<x:hidden
name=
"deptName"
/>
<x:hidden
name=
"positionId"
/>
<x:hidden
name=
"positionName"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberName"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:hidden
name=
"depart"
/>
<x:inputC
name=
"departName"
required=
"true"
label=
"部门"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"tree"
/>
<x:hidden
name=
"applyPerson"
/>
<x:inputC
name=
"applyPersonName"
required=
"true"
label=
"人员"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"tree"
/>
<x:selectC
name=
"used"
label=
"用途"
required=
"false"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"materialUse"
/>
</div>
<div
class=
"hg-form-row"
>
<x:textareaC
name=
"remark"
id=
"remark"
required=
"false"
rows=
"3"
label=
"情况说明"
labelCol=
"2"
fieldCol=
"10"
/>
</div>
</div>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"maingrid"
style=
"margin: 2px;"
>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"clientMaterialsInfo"
bizId=
"attbizId"
id=
"clientMaterialsInfoList"
title=
"上传附件"
/>
</div>
</form>
</body>
</html>
topsun-xt/src/main/webapp/biz/topsun/sap/clientMaterials/clientMaterialsList.js
0 → 100644
View file @
25a0a7be
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initUI
();
loadGrid
();
})
function
initUI
()
{
UICtrl
.
initDefaultLayout
();
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
addHandler
,
deleteHandler
:
deleteHandler
// exportExcelHandler:exportExcelHandler,
// exportModelHandler:{id:'exportModelHandler',img:'fa-cloud-download',text:'导出模板',click:exportModelHandler},
});
gridManager
=
UICtrl
.
grid
(
"#maingrid"
,
{
columns
:
[
{
display
:
"单据编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建日期"
,
name
:
"fillinDate"
,
width
:
120
,
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
:
"departName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"人员"
,
name
:
"applyPersonName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"用途"
,
name
:
"usedTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"情况说明"
,
name
:
"remark"
,
width
:
260
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/clientMaterials/slicedClientMaterialsList.ajax'
,
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
);
},
});
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
()
{
let
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
.
status
!==
0
){
Public
.
tip
(
"请选择申请状态的数据!"
)
return
false
;
}
// var message = "您确认要删除选择的数据?";
// UICtrl.confirm(message, function () {
DataUtil
.
del
({
action
:
'clientMaterials/deleteClientMaterials.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
// });
}
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'addSapPermit'
,
text
:
"新增客户供料通知"
,
url
:
web_app
.
name
+
'/clientMaterials/forwardClientMaterialsDetail.job'
});
}
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
tabid
:
'viewSapPermit'
+
id
,
text
:
"客户供料通知"
,
url
:
web_app
.
name
+
'/clientMaterials/showClientMaterials.job?bizId='
+
id
+
"&isReadOnly=true"
});
}
topsun-xt/src/main/webapp/biz/topsun/sap/clientMaterials/clientMaterialsList.jsp
0 → 100644
View file @
25a0a7be
<%@ 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,attachment"
/>
<x:script
src=
'/biz/topsun/sap/clientMaterials/clientMaterialsList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
class=
"ui-hide"
>
</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:hidden
name=
"templetId"
value=
""
/>
<x:hidden
name=
"batchNumber"
value=
""
/>
<x:hidden
name=
"fullId"
/>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:selectC
name=
"used"
label=
"用途"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"materialUse"
/>
<x:selectC
name=
"status"
label=
"审批状态"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"bizBillStatus"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"maingrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/componentSupply/componentSupplyDetail.js
View file @
25a0a7be
...
...
@@ -88,7 +88,7 @@ function loadGrid() {
deleteHandler
:
function
()
{
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
DataUtil
.
delSelectedRows
({
action
:
'
sapPermitItem/deleteSapPermit
Items.ajax'
,
action
:
'
componentSupplyItem/deleteComponentSupply
Items.ajax'
,
param
:
{},
gridManager
:
_grid
,
idFieldName
:
'id'
,
...
...
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/application/ClientMaterialsApplication.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
application
;
import
com.huigou.topsun.sap.clientMaterials.domain.ClientMaterials
;
import
com.huigou.topsun.sap.clientMaterials.domain.query.ClientMaterialsQueryRequest
;
import
com.huigou.topsun.sap.clientMaterials.vo.ClientMaterialsVo
;
import
com.huigou.topsun.sap.componentSupply.domain.ComponentSupply
;
import
com.huigou.topsun.sap.componentSupply.domain.query.ComponentSupplyQueryRequest
;
import
com.huigou.topsun.sap.componentSupply.vo.ComponentSupplyVo
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Auther:LXH
* @Date: 2024/06/05/11:35
* @Description:
*/
public
interface
ClientMaterialsApplication
{
public
static
final
String
QUERY_XML_FILE_PATH
=
"config/topsun/sap/clientMaterials/clientMaterials.xml"
;
String
PROCESS_DEFINITION_KEY
=
"clientMaterialsProc"
;
Map
<
String
,
Object
>
getClientMaterialsList
(
ClientMaterialsQueryRequest
sapPermitVo
);
ClientMaterials
getClientMaterialsById
(
String
id
);
void
deleteByIds
(
List
<
String
>
ids
);
void
saveClientMaterialsVo
(
ClientMaterialsVo
clientMaterialsVoVo
);
// ByteArrayOutputStream printInfo(HttpServletResponse response, String id);
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/application/impl/ClientMaterialsApplicationImpl.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
application
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.topsun.sap.clientMaterials.application.ClientMaterialsApplication
;
import
com.huigou.topsun.sap.clientMaterials.application.ClientMaterialsApplication
;
import
com.huigou.topsun.sap.clientMaterials.domain.ClientMaterials
;
import
com.huigou.topsun.sap.clientMaterials.domain.query.ClientMaterialsQueryRequest
;
import
com.huigou.topsun.sap.clientMaterials.repository.ClientMaterialsRepository
;
import
com.huigou.topsun.sap.clientMaterials.vo.ClientMaterialsVo
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.operator.OperatorApplication
;
import
com.huigou.uasp.bpm.FlowBroker
;
import
com.huigou.uasp.bpm.ProcessAction
;
import
com.huigou.uasp.bpm.ProcessStartModel
;
import
com.huigou.uasp.bpm.engine.application.WorkflowApplication
;
import
com.huigou.util.ClassHelper
;
import
com.huigou.util.Constants
;
import
com.huigou.util.JSONUtil
;
import
com.huigou.util.SDO
;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateTask
;
import
org.activiti.engine.runtime.ProcessInstance
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* @Auther: Lxh
* @Date: 2024/06/05/11:35
* @Description:
*/
@Service
(
"clientMaterialsApplication"
)
public
class
ClientMaterialsApplicationImpl
extends
FlowBroker
implements
ClientMaterialsApplication
{
@Autowired
private
ClientMaterialsRepository
clientMaterialsRepository
;
@Autowired
private
WorkflowApplication
workflowApplication
;
@Autowired
private
OperatorApplication
operatorApplication
;
@Override
public
Map
<
String
,
Object
>
getClientMaterialsList
(
ClientMaterialsQueryRequest
queryRequest
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"clientMaterials"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
if
(
queryRequest
.
getStatus
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.status =:status"
);
queryModel
.
putParam
(
"status"
,
queryRequest
.
getStatus
());
}
if
(
queryRequest
.
getBillCode
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.bill_code like:billCode"
);
queryModel
.
putLikeParam
(
"billCode"
,
queryRequest
.
getBillCode
());
}
if
(
queryRequest
.
getRemark
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.remark like:remark"
);
queryModel
.
putLikeParam
(
"remark"
,
queryRequest
.
getRemark
());
}
if
(
queryRequest
.
getUsed
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.used =:used"
);
queryModel
.
putParam
(
"used"
,
queryRequest
.
getUsed
());
}
queryModel
.
putDictionary
(
"status"
,
DictUtil
.
getDictionary
(
"bizBillStatus"
));
queryModel
.
putDictionary
(
"used"
,
DictUtil
.
getDictionary
(
"materialUse"
));
queryModel
.
addCriteria
(
" order by bill_code desc "
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
return
map
;
}
@Override
public
ClientMaterials
getClientMaterialsById
(
String
id
)
{
return
clientMaterialsRepository
.
findOne
(
id
);
}
@Override
public
void
deleteByIds
(
List
<
String
>
ids
)
{
ids
.
forEach
(
id
->{
clientMaterialsRepository
.
delete
(
id
);
// List<ClientMaterialsItem> list=ClientMaterialsItemRepository.findByClientMaterialsId(id);
// for (ClientMaterialsItem ClientMaterialsItem:list){
// ClientMaterialsItemRepository.delete(ClientMaterialsItem);
// }
});
}
@Override
protected
void
onBeforeComplete
(
DelegateTask
delegateTask
)
{
super
.
onBeforeComplete
(
delegateTask
);
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
if
(
this
.
isApplyProcUnit
(
delegateTask
)
&&
this
.
getApprovalParameter
().
isAdvanceProcessAction
())
{
ClientMaterials
clientMaterials
=
clientMaterialsRepository
.
findOne
(
bizId
);
clientMaterials
.
setStatusId
(
BizBillStatus
.
APPROVING
.
getId
());
clientMaterialsRepository
.
save
(
clientMaterials
);
}
}
@Override
protected
void
onEnd
(
DelegateExecution
delegateExecution
)
{
super
.
onEnd
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
BizBillStatus
status
=
approvePassed
()
?
BizBillStatus
.
COMPLETED
:
BizBillStatus
.
ABORTED
;
ClientMaterials
clientMaterials
=
clientMaterialsRepository
.
findOne
(
bizId
);
clientMaterials
.
setStatusId
(
status
.
getId
());
clientMaterialsRepository
.
save
(
clientMaterials
);
}
@Override
protected
void
onAbortProcessInstance
(
DelegateExecution
delegateExecution
)
{
super
.
onAbortProcessInstance
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
ClientMaterials
clientMaterials
=
clientMaterialsRepository
.
findOne
(
bizId
);
clientMaterials
.
setStatusId
(
BizBillStatus
.
ABORTED
.
getId
());
clientMaterialsRepository
.
save
(
clientMaterials
);
}
@Override
protected
void
onBack
(
DelegateTask
delegateTask
,
String
destActivityId
)
{
super
.
onBack
(
delegateTask
,
destActivityId
);
if
(
"Apply"
.
equalsIgnoreCase
(
destActivityId
))
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
ClientMaterials
clientMaterials
=
clientMaterialsRepository
.
findOne
(
bizId
);
clientMaterials
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
clientMaterialsRepository
.
save
(
clientMaterials
);
}
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
return
ClassHelper
.
toMap
(
clientMaterialsRepository
.
getOne
(
bizId
));
}
@Override
protected
String
saveBizAndApprovalData
()
{
super
.
saveBizAndApprovalData
();
ClientMaterials
clientMaterials
=
getBizEntity
(
ClientMaterials
.
class
);
if
(
clientMaterials
.
isNew
())
{
clientMaterials
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
}
else
{
clientMaterials
=
(
ClientMaterials
)
commonDomainService
.
loadAndFillinProperties
(
clientMaterials
);
}
clientMaterials
=
clientMaterialsRepository
.
save
(
clientMaterials
);
// List<ClientMaterialsItem> items = getBizEntities(ClientMaterialsItem.class, "items");
// if (items.size()<1){
// throw new IllegalArgumentException("没有补充发料明细信息!");
// }
// ClientMaterialsItemApplication.saveClientMaterialsItems(ClientMaterials.getId(),items);
//更新附件ID为主键ID
// if (!(ClientMaterials.getId().equals(ClientMaterials.getAttbizId()))) {
// List<Attachment> attachmentList = attachmentApplication.queryAttachments("sapRetirementInfo", ClientMaterials.getAttbizId());
// for (Attachment attachment : attachmentList) {
// attachment.setBizId(ClientMaterials.getId());
// attachmentApplication.saveAttachment(attachment);
// }
// }
return
clientMaterials
.
getId
();
}
@Override
public
void
saveClientMaterialsVo
(
ClientMaterialsVo
clientMaterialsVo
){
ClientMaterials
clientMaterials
=
new
ClientMaterials
();
BeanUtil
.
copyProperties
(
clientMaterialsVo
,
clientMaterials
);
//初始化用户信息
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
clientMaterialsVo
.
getApplyPerson
());
clientMaterials
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
Map
<
String
,
Object
>
formData
=
BeanUtil
.
beanToMap
(
clientMaterials
);
//保存明细
// List<ClientMaterialsItemVo> itemVos = ClientMaterialsVo.getItemVos();
// List<ClientMaterialsItem> ClientMaterialsItems = new ArrayList<>();
// if (!CollectionUtils.isEmpty(itemVos)){
// ClientMaterialsItems= itemVos
// .stream()
// .map(itemVo -> {
// ClientMaterialsItem ClientMaterialsItem = new ClientMaterialsItem();
// BeanUtil.copyProperties(itemVo, ClientMaterialsItem);
// return ClientMaterialsItem;
// }).collect(Collectors.toList());
// formData.put("items", JSONUtil.toString(ClientMaterialsItems));
//启动流程实例
this
.
startProcessInstance
(
ClientMaterialsApplication
.
PROCESS_DEFINITION_KEY
,
formData
);
//ClientMaterials.setId(bizId);
//this.ClientMaterialsRepository.save(ClientMaterials);
//}
}
public
String
startProcessInstance
(
String
processDefinitionKey
,
Map
<
String
,
Object
>
formData
){
Map
<
String
,
Object
>
variables
=
new
HashMap
();
SDO
localSdo
=
this
.
buildSDO
(
formData
);
ThreadLocalUtil
.
putVariable
(
Constants
.
SDO
,
localSdo
);
variables
.
put
(
"startModel"
,
ProcessStartModel
.
MANUAL
.
getId
());
Operator
operator
=
localSdo
.
getOperator
();
variables
.
put
(
"executorFullId"
,
operator
.
getFullId
());
variables
.
put
(
"executorFullName"
,
operator
.
getFullName
());
ThreadLocalUtil
.
putOperator
(
operator
);
ThreadLocalUtil
.
putVariable
(
"client.ip"
,
"127.0.0.1"
);
ProcessInstance
processInstance
=
this
.
workflowApplication
.
startProcessInstanceByKey
(
processDefinitionKey
,
variables
);
String
businessKey
=
processInstance
.
getBusinessKey
();
return
businessKey
;
}
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
String
createdById
=
(
String
)
formData
.
get
(
"applyPerson"
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
SDO
localSdo
=
new
SDO
();
// 将业务数据传递给工作流
formData
.
forEach
(
localSdo:
:
putProperty
);
// 将业务流程信息传递给工作流
localSdo
.
putProperty
(
"processAction"
,
ProcessAction
.
SAVE
);
localSdo
.
putProperty
(
"procUnitId"
,
"Apply"
);
localSdo
.
setOperator
(
operator
);
return
localSdo
;
}
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/controller/ClientMaterialsController.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
controller
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.sap.clientMaterials.application.ClientMaterialsApplication
;
import
com.huigou.topsun.sap.clientMaterials.domain.ClientMaterials
;
import
com.huigou.topsun.sap.clientMaterials.domain.query.ClientMaterialsQueryRequest
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.CommonUtil
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.Map
;
/**客户供料通知
* @Auther: LXH
* @Date: 2024/06/05 10:15
* @Description:
*/
@Controller
@ControllerMapping
(
"/clientMaterials"
)
public
class
ClientMaterialsController
extends
CommonController
{
@Override
protected
String
getPagePath
()
{
return
"/biz/topsun/sap/clientMaterials/"
;
}
@Resource
private
ClientMaterialsApplication
clientMaterialsApplication
;
public
String
forwardClientMaterialsList
(){
return
forward
(
"clientMaterialsList"
);
}
public
String
slicedClientMaterialsList
(){
SDO
sdo
=
this
.
getSDO
();
ClientMaterialsQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
ClientMaterialsQueryRequest
.
class
);
Map
<
String
,
Object
>
map
=
clientMaterialsApplication
.
getClientMaterialsList
(
queryRequest
);
return
toResult
(
map
);
}
public
String
forwardClientMaterialsDetail
(){
// 新增的时候procUnitId一定要设置成Apply,不然jsp页面的所有表单元素是readonly状态
this
.
putAttribute
(
"processDefinitionKey"
,
ClientMaterialsApplication
.
PROCESS_DEFINITION_KEY
);
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
ClientMaterials
clientMaterials
=
new
ClientMaterials
();
clientMaterials
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
/**c
* 设置jsp页面初始化填充数据,如果不设置, 那么在jsp页面上填写完表单之后立即提交申请TaskDescription获取不到时间和相关人员信息
*/
Operator
operator
=
getOperator
();
clientMaterials
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
clientMaterials
.
setAttbizId
(
CommonUtil
.
createGUID
());
// 自动生成附件id
// ExcelImportTemplate excelImportTemplate=excelImportApplication.loadExcelImportTemplateByCode("ClientMaterialsData");
return
forward
(
"clientMaterialsDetail"
,
clientMaterials
);
}
public
String
showClientMaterials
(){
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getBizId
();
// this.putAttribute("attbizId", id); // 设置附件id
ClientMaterials
clientMaterials
=
clientMaterialsApplication
.
getClientMaterialsById
(
id
);
// sapRetirement.setAttbizId(id);
return
forward
(
"clientMaterialsDetail"
,
clientMaterials
);
}
/**
* 删除组件补充发料
*/
public
String
deleteClientMaterials
()
{
List
<
String
>
ids
=
this
.
getSDO
().
getIds
();
clientMaterialsApplication
.
deleteByIds
(
ids
);
return
success
();
}
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/domain/ClientMaterials.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
domain
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
/**
* @Auther: LXH
* @Date: 2024/06/05/10:45
* @Description:客户供料通知
*/
@Table
(
name
=
"sap_client_materials"
)
@Entity
@Data
public
class
ClientMaterials
extends
FlowBillAbstractEntity
{
/**
* 责任部门
*/
@Column
(
name
=
"depart"
)
private
String
depart
;
@Column
(
name
=
"depart_name"
)
private
String
departName
;
/**
* 人员
*/
@Column
(
name
=
"apply_person"
)
private
String
applyPerson
;
@Column
(
name
=
"apply_person_name"
)
private
String
applyPersonName
;
/*
* 用途
*/
@Column
(
name
=
"used"
)
private
String
used
;
/*
* 供应商名称
*/
//// @Column(name = "suppliers_name")
// private String suppliersName;
@Column
(
name
=
"remark"
)
private
String
remark
;
@Column
(
name
=
"attbiz_id"
)
private
String
attbizId
;
@Override
protected
String
getCodeRuleId
()
{
return
"clientMaterials"
;
}
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/domain/query/ClientMaterialsQueryRequest.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
domain
.
query
;
import
com.huigou.data.domain.query.QueryAbstractRequest
;
import
lombok.Data
;
/**
* @Auther: lxh
* @Date: 2024/06/05/16:38
* @Description:
*/
@Data
public
class
ClientMaterialsQueryRequest
extends
QueryAbstractRequest
{
private
String
used
;
private
String
billCode
;
private
String
remark
;
private
String
status
;
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/repository/ClientMaterialsRepository.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
repository
;
import
com.huigou.topsun.sap.clientMaterials.domain.ClientMaterials
;
import
com.huigou.topsun.sap.componentSupply.domain.ComponentSupply
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: LXH
* @Date: 2024/06/05/16:33
* @Description:
*/
public
interface
ClientMaterialsRepository
extends
JpaRepository
<
ClientMaterials
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/sap/clientMaterials/vo/ClientMaterialsVo.java
0 → 100644
View file @
25a0a7be
package
com
.
huigou
.
topsun
.
sap
.
clientMaterials
.
vo
;
import
com.huigou.topsun.sap.componentSupply.vo.ComponentSupplyItemVo
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
/**
* @Auther: lxh
* @Date: 2024/06/05/14:08
* @Description:
*/
@Data
public
class
ClientMaterialsVo
{
/**
* 公司
*/
private
String
company
;
/**
* 责任部门
*/
private
String
dutyDepart
;
private
String
dutyDepartName
;
/**
* 申请人
*/
private
String
applyPerson
;
private
String
applyPersonName
;
/**
* 携出人
*/
private
String
belongPerson
;
/**
* 日期
*/
private
Date
permitDate
;
List
<
ComponentSupplyItemVo
>
itemVos
;
}
topsun/src/main/resources/config/bpm/topsun/sap/clientMaterials/clientMaterialsProc.bpmn
0 → 100644
View file @
25a0a7be
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"http://www.activiti.org/test"
>
<process
id=
"clientMaterialsProc"
name=
"客户供料通知"
isExecutable=
"true"
>
<extensionElements>
<activiti:executionListener
event=
"start"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:executionListener>
<activiti:executionListener
event=
"end"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:executionListener>
</extensionElements>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<endEvent
id=
"endevent1"
name=
"End"
></endEvent>
<userTask
id=
"Apply"
name=
"客户供料通知申请"
activiti:formKey=
"clientMaterials/showClientMaterials.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:taskListener>
</extensionElements>
</userTask>
<userTask
id=
"Approve"
name=
"客户供料通知审批"
activiti:assignee=
"${assignee} "
activiti:formKey=
"clientMaterials/showClientMaterials.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{clientMaterialsApplication}"
></activiti:taskListener>
</extensionElements>
<multiInstanceLoopCharacteristics
isSequential=
"false"
activiti:collection=
"handlerList"
activiti:elementVariable=
"assignee"
>
<completionCondition>
${chiefApprovePassed}
</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"Apply"
></sequenceFlow>
<sequenceFlow
id=
"flow2"
sourceRef=
"Apply"
targetRef=
"Approve"
></sequenceFlow>
<exclusiveGateway
id=
"ApproveFinished"
name=
"审批结束"
></exclusiveGateway>
<sequenceFlow
id=
"flow3"
name=
"审批通过"
sourceRef=
"ApprovePassed"
targetRef=
"ApproveFinished"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approvePassed}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
"审批结束"
sourceRef=
"ApproveFinished"
targetRef=
"endevent1"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow5"
name=
"审批未结束"
sourceRef=
"ApproveFinished"
targetRef=
"Approve"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<exclusiveGateway
id=
"ApprovePassed"
name=
"审批通过"
></exclusiveGateway>
<sequenceFlow
id=
"flow6"
sourceRef=
"Approve"
targetRef=
"ApprovePassed"
></sequenceFlow>
<sequenceFlow
id=
"flow9"
name=
"审批未通过"
sourceRef=
"ApprovePassed"
targetRef=
"Apply"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approvePassed}]]>
</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_clientMaterialsProc"
>
<bpmndi:BPMNPlane
bpmnElement=
"clientMaterialsProc"
id=
"BPMNPlane_clientMaterialsProc"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent1"
id=
"BPMNShape_startevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"50.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"endevent1"
id=
"BPMNShape_endevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"550.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Apply"
id=
"BPMNShape_Apply"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"140.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Approve"
id=
"BPMNShape_Approve"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"240.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApproveFinished"
id=
"BPMNShape_ApproveFinished"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"440.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApprovePassed"
id=
"BPMNShape_ApprovePassed"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"349.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
bpmnElement=
"flow1"
id=
"BPMNEdge_flow1"
>
<omgdi:waypoint
x=
"372.0"
y=
"85.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"140.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow2"
id=
"BPMNEdge_flow2"
>
<omgdi:waypoint
x=
"372.0"
y=
"195.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"240.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow3"
id=
"BPMNEdge_flow3"
>
<omgdi:waypoint
x=
"372.0"
y=
"389.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"440.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"320.0"
y=
"396.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow4"
id=
"BPMNEdge_flow4"
>
<omgdi:waypoint
x=
"372.0"
y=
"480.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"550.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"382.0"
y=
"489.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow5"
id=
"BPMNEdge_flow5"
>
<omgdi:waypoint
x=
"392.0"
y=
"460.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"459.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"317.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"489.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"453.0"
y=
"267.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"459.0"
y=
"411.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow6"
id=
"BPMNEdge_flow6"
>
<omgdi:waypoint
x=
"372.0"
y=
"295.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"349.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow9"
id=
"BPMNEdge_flow9"
>
<omgdi:waypoint
x=
"352.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"167.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"292.0"
y=
"167.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"257.0"
y=
"376.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/clientMaterials/clientMaterials.xml
0 → 100644
View file @
25a0a7be
<?xml version="1.0" encoding="UTF-8" ?>
<query-mappings>
<query
name=
"clientMaterials"
label=
"客户供料通知"
table=
"sap_client_materials"
>
<sql-query>
select t.* from sap_client_materials t
</sql-query>
<condition
column=
"bill_code"
name=
"billCode"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/componentSupply/componentSupply.xml
View file @
25a0a7be
<?xml version="1.0" encoding="UTF-8" ?>
<query-mappings>
<query
name=
"componentSupply"
label=
"组件补充发料"
table=
"sap_
permit
"
>
<query
name=
"componentSupply"
label=
"组件补充发料"
table=
"sap_
component_supply
"
>
<sql-query>
select t.* from sap_component_supply t
</sql-query>
...
...
topsun/src/main/resources/config/topsun/sap/componentSupply/componentSupplyItem.xml
View file @
25a0a7be
<?xml version="1.0" encoding="UTF-8" ?>
<query-mappings>
<query
name=
"
sapPermitItems"
label=
"放行条明细"
table=
"sap_permit
_item"
>
<query
name=
"
componentSupplyItems"
label=
"组件补充发料明细"
table=
"sap_component_supply
_item"
>
<sql-query>
select t.* from sap_
permit
_item t
select t.* from sap_
component_supply
_item t
</sql-query>
<condition
column=
"
sap_permit_id"
name=
"sapPermit
Id"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<condition
column=
"
component_supply_id"
name=
"componentSupply
Id"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
</query-mappings>
\ No newline at end of file
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