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
392a54d5
Commit
392a54d5
authored
Nov 27, 2023
by
wanghang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打样申请 多级联动
parent
f0d47c7d
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
526 additions
and
273 deletions
+526
-273
proofingApply.js
...n-xt/src/main/webapp/biz/topsun/proofing/proofingApply.js
+79
-245
proofingApply.jsp
...-xt/src/main/webapp/biz/topsun/proofing/proofingApply.jsp
+10
-4
proofingMake.js
...un-xt/src/main/webapp/biz/topsun/proofing/proofingMake.js
+3
-4
proofingMake.jsp
...n-xt/src/main/webapp/biz/topsun/proofing/proofingMake.jsp
+2
-0
proofingMakeDetail.jsp
...rc/main/webapp/biz/topsun/proofing/proofingMakeDetail.jsp
+17
-3
ProductPublishedConfRepository.java
...un/product/repository/ProductPublishedConfRepository.java
+2
-0
ProofingApplyController.java
...u/topsun/proofing/controller/ProofingApplyController.java
+19
-12
ProofingMakeController.java
...ou/topsun/proofing/controller/ProofingMakeController.java
+4
-1
WorkInstrcutionApply.java
...ou/topsun/proofing/domain/model/WorkInstrcutionApply.java
+85
-0
ProofingMakeVo.java
.../com/huigou/topsun/proofing/domain/vo/ProofingMakeVo.java
+62
-0
WorkInstrcutionApplyVo.java
...gou/topsun/proofing/domain/vo/WorkInstrcutionApplyVo.java
+93
-0
ProofingMakeServiceImpl.java
...topsun/proofing/service/impl/ProofingMakeServiceImpl.java
+8
-3
TechnologyApplication.java
.../topsun/technology/application/TechnologyApplication.java
+3
-1
TechnologyApplicationImpl.java
...echnology/application/impl/TechnologyApplicationImpl.java
+5
-0
TechnologyRepository.java
...ou/topsun/technology/repository/TechnologyRepository.java
+4
-0
WorkInstrcutionApplyMapper.xml
.../src/main/resources/mapper/WorkInstrcutionApplyMapper.xml
+130
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingApply.js
View file @
392a54d5
var
gridManager
=
null
,
refreshFlag
=
false
,
istoolbar
=
true
;
//定义控件列
var
gridManager
=
null
;
const
bom
=
[
{
display
:
"物料"
,
name
:
"materialName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物料数量"
,
name
:
"materialNumber"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"产品"
,
name
:
"productId"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
}
]
const
technology
=
[
{
display
:
"工艺"
,
name
:
"materialId"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
hidden
:
true
}
]
const
process
=
[
{
display
:
"工序内容"
,
name
:
"materialId"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
hidden
:
true
},
{
display
:
"工序名称"
,
name
:
"materialName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工序说明"
,
name
:
"materialNumber"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工序类别"
,
name
:
"materialNumber"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工时"
,
name
:
"productName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
}
]
const
processBom
=
[
{
display
:
"物料"
,
name
:
"materialId"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
hidden
:
true
},
{
display
:
"SAP物料详细信息"
,
name
:
"materialName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"使用的物料数量"
,
name
:
"materialNumber"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物料计量单位"
,
name
:
"productName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
}
]
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
initializateUI
();
initializateUI
();
loadOrgTreeView
();
loadTechnologyListGrid
();
bindQueryEvent
();
loadProofingApplyGrid
(
null
,
bom
,
"mobTableGrid"
,
""
);
//加载BOm
loadProofingApplyGrid
(
null
,
technology
,
"technologyGrid"
,
""
);
//加载工艺
loadProofingApplyGrid
(
null
,
process
,
"processGrid"
,
""
);
//加载工序
loadProofingApplyGrid
(
null
,
processBom
,
"processBomGrid"
,
""
);
//加载物料
echo
(
"productId"
);
echo
(
"productType"
)
});
});
function
echo
(
node
){
$
(
"#"
+
node
+
"_text"
).
val
(
$
(
"#"
+
node
).
val
())
}
//工艺、工序、工序物料三级联动
function
test
(){
}
function
initializateUI
()
{
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
}
function
loadTechnologyListGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
// addHandler: function(){
//创建表格(参数、列、插入的节点、请求地址)
// addHandler();
function
loadProofingApplyGrid
(
param
,
columns
,
node
,
url
)
{
// },
updateHandler
:
function
(){
const
toolbarOptions
=
istoolbar
?
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
addHandler
,
updateHandler
()
{
updateHandler
();
updateHandler
();
},
},
deleteHandler
:
deleteHandler
,
deleteHandler
:
deleteHandler
,
})
});
:
null
;
gridManager
=
UICtrl
.
grid
(
"#proofingMakeTableGrid"
,
{
istoolbar
=
false
;
columns
:
[
{
display
:
"制造单号"
,
name
:
"proofingMakeNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请单号"
,
name
:
"proofingApplyNo"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
gridManager
=
UICtrl
.
grid
(
"#"
+
node
,
{
{
display
:
"产品编号"
,
name
:
"productId"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
columns
:
columns
,
{
display
:
"品牌客户编号"
,
name
:
"customerId"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"版面需求时间"
,
name
:
"proofingApplyPageNeedTime"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"完成日期"
,
name
:
"proofingApplyCompleteDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"样品中文名称"
,
name
:
"proofingApplySampleCnName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"样品英文名称"
,
name
:
"proofingApplySampleEnName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"样品版次"
,
name
:
"proofingApplySampleVersion"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"样品规格"
,
name
:
"proofingApplySampleSize"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"样品数量"
,
name
:
"proofingApplySampleNum"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"产量情况"
,
name
:
"proofingApplyOutputSituation"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"产品代号"
,
name
:
"proofingApplyProductNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"版面"
,
name
:
"materialName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"分配方式"
,
name
:
"proofingApplyAllocationType"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"产品类别"
,
name
:
"materialName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"表面处理"
,
name
:
"proofingApplySurfaceTreatment"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"NG重新打样原因"
,
name
:
"proofingApplyNgReReason"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"测试标准"
,
name
:
"proofingApplyTestStandard"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请单状态"
,
name
:
"proofingApplyApplicationStatus"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"颜色种类"
,
name
:
"colorType"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"专"
,
name
:
"expert"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"网版目数"
,
name
:
"printingPlateNum"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"啤版目数"
,
name
:
"beerPlateNum"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"模切板模数"
,
name
:
"dieBoardNum"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"标准色号"
,
name
:
"materialNumber"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/proofingApply/'
+
url
+
'.ajax'
,
url
:
web_app
.
name
+
'/proofingMake/slicedQueryProofingMake.ajax'
,
parms
:
param
,
pageSize
:
20
,
pageSize
:
10
,
usePager
:
true
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
width
:
"100%"
,
height
:
"
5
0%"
,
height
:
"
10
0%"
,
heightDiff
:
-
8
,
heightDiff
:
-
8
,
checkbox
:
true
,
checkbox
:
true
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
//双击行响应事件
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
updateHandler
(
data
.
i
d
);
updateHandler
(
data
.
proofingMakeI
d
);
}
}
});
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
}
function
loadOrgTreeView
()
{
//ssrfOrgRootId hxPurchaseCommon.js
$
(
'#orgTree'
).
commonTree
({
loadTreesAction
:
'org/queryOrgs.ajax'
,
parentId
:
ssrfOrgRootId
,
getParam
:
function
(
e
){
return
{
showDisabledOrg
:
0
,
displayableOrgKinds
:
"ogn,dpt"
};
},
changeNodeIcon
:
function
(
data
){
data
[
this
.
options
.
iconFieldName
]
=
OpmUtil
.
getOrgImgUrl
(
data
.
orgKindId
,
data
.
status
);
},
IsShowMenu
:
false
,
onClick
:
onFolderTreeNodeClick
});
}
function
onFolderTreeNodeClick
(
data
)
{
var
html
=
[];
html
.
push
(
'<span class="tomato-color">['
,
data
.
name
,
']</span>'
,
'编号规则管理'
);
$
(
'#layout'
).
layout
(
'setCenterTitle'
,
html
.
join
(
''
));
$
(
'#treefullId'
).
val
(
data
.
fullId
);
if
(
gridManager
)
{
UICtrl
.
gridSearch
(
gridManager
,{
fullId
:
data
.
fullId
});
}
}
//绑定selectC
function
bindQueryEvent
(){
$
(
'#productId'
).
searchbox
({
type
:
"product"
,
name
:
"productCode"
,
onChange
:
function
(
value
,
data
){
$
(
'#productId'
).
val
(
data
.
productId
);
loadProofingApplyGrid
({
id
:
data
.
productId
},
bom
,
"mobTableGrid"
,
"slicedQueryBomRule"
);
}
});
// $('#productType').searchbox({
// type : "product",name : "productType",
// onChange:function(value,data){
// $('#productType').val(data.productCategoryId);
//
// console.log($('#productType').val())
// }
// });
}
function
query
(
obj
)
{
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
UICtrl
.
gridSearch
(
gridManager
,
param
);
...
@@ -152,19 +81,14 @@ function resetForm(obj) {
...
@@ -152,19 +81,14 @@ function resetForm(obj) {
$
(
obj
).
formClean
();
$
(
obj
).
formClean
();
}
}
function
updateHandler
(
id
){
function
addHandler
(){
if
(
!
id
){
var
id
=
DataUtil
.
getUpdateRowId
(
gridManager
);
if
(
!
id
){
return
;
}
}
UICtrl
.
showAjaxDialog
({
UICtrl
.
showAjaxDialog
({
url
:
web_app
.
name
+
'/codeRule/showLoadCodeRule.load'
,
url
:
web_app
.
name
+
'/proofingMake/forwardSaveProofingMake.load'
,
title
:
"修改BOM"
,
title
:
"新增打样制造单"
,
width
:
340
,
width
:
1000
,
param
:{
id
:
id
},
ok
:
function
(
div
){
ok
:
function
(
div
){
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
,
div
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/
codeRule/updateCodeRul
e.ajax'
,
$
(
'#submitForm'
,
div
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/
proofingMake/saveProofingMak
e.ajax'
,
success
:
function
()
{
success
:
function
()
{
_self
.
close
();
_self
.
close
();
reloadGrid
();
reloadGrid
();
...
@@ -174,139 +98,49 @@ function updateHandler(id){
...
@@ -174,139 +98,49 @@ function updateHandler(id){
});
});
}
}
// 查询
function
updateHandler
(
proofingMakeId
){
function
query
(
obj
)
{
if
(
!
proofingMakeId
)
{
var
param
=
$
(
obj
).
formToJSON
();
console
.
log
(
gridManager
)
UICtrl
.
gridSearch
(
gridManager
,
param
);
//获取所选行id
}
proofingMakeId
=
DataUtil
.
getUpdateRowId
(
gridManager
);
if
(
!
proofingMakeId
)
{
//刷新表格
return
;
function
reloadGrid
()
{
}
gridManager
.
loadData
();
}
//重置表单
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//关闭对话框
function
dialogClose
(){
if
(
refreshFlag
){
reloadGrid
();
refreshFlag
=
false
;
}
}
}
//添加按钮
function
addHandler
()
{
UICtrl
.
showAjaxDialog
({
UICtrl
.
showAjaxDialog
({
title
:
$
.
i18nProp
(
'添加BOM'
),
url
:
web_app
.
name
+
'/proofingMake/forwardSaveProofingMake.load'
,
url
:
web_app
.
name
+
'/proofingApply/forwardAddBom.load'
,
title
:
"修改打样制造单"
,
ok
:
insert
,
width
:
1000
,
width
:
600
,
param
:{
id
:
proofingMakeId
},
close
:
dialogClose
ok
:
function
(
div
){
});
}
//新增保存
function
insert
()
{
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitDetailForm'
).
ajaxSubmit
({
$
(
'#submitForm'
,
div
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/proofingMake/saveProofingMake.ajax'
,
url
:
web_app
.
name
+
'/resourceField/saveResourceFiledValue.ajax'
,
success
:
function
()
{
param
:{},
success
:
function
(
data
)
{
if
(
data
==
"1"
){
Public
.
successTip
(
"保存成功!"
);
}
_self
.
close
();
_self
.
close
();
reloadGrid
();
reloadGrid
();
}
}
});
});
}
//编辑按钮
function
updateHandler
(
id
)
{
if
(
!
id
)
{
//获取所选行id
id
=
DataUtil
.
getUpdateRowId
(
gridManager
);
if
(
!
id
)
{
return
;
}
}
}
UICtrl
.
showAjaxDialog
({
title
:
$
.
i18nProp
(
'更新Bom'
),
width
:
600
,
url
:
web_app
.
name
+
'/proofingApply/forwardAddBom.load'
,
param
:
{
id
:
id
,
resourceTypeId
:
$
(
'#resourceTypeId'
).
val
()},
ok
:
update
,
close
:
dialogClose
});
});
}
}
//编辑保存
//重写DataUtil的getUpdateRowId函数、它默认取行的id列
function
update
()
{
DataUtil
.
getUpdateRowId
=
function
(
gridManager
){
var
_self
=
this
;
var
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
$
(
'#submitDetailForm'
).
ajaxSubmit
({
if
(
result
){
url
:
web_app
.
name
+
'/proofingApply/updateResourceFiledValue.ajax'
,
return
result
.
proofingMakeId
;
success
:
function
(
data
)
{
if
(
data
==
"1"
){
Public
.
successTip
(
"修改成功!"
);
}
refreshFlag
=
true
;
_self
.
close
();
reloadGrid
();
}
}
})
;
return
result
;
}
}
//删除按钮
//删除按钮
function
deleteHandler
()
{
function
deleteHandler
()
{
DataUtil
.
del
({
DataUtil
.
del
({
action
:
'resourceField/deleteResourceFiledValue.ajax'
,
action
:
'proofingMake/deleteProofingMakeByProofingMakeId.ajax'
,
param
:{
gridManager
:
gridManager
,
idFieldName
:
'proofingMakeId'
,
id
:
DataUtil
.
getUpdateRowId
(
gridManager
),
onSuccess
:
function
()
{
resourceTypeId
:
$
(
'#resourceTypeId'
).
val
()
},
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
(
data
)
{
if
(
data
==
"1"
){
Public
.
successTip
(
"删除成功!"
);
}
reloadGrid
();
reloadGrid
();
}
}
});
});
}
}
//值改变刷新BOM
// function productIdSelectChange(){
// console.log("jiaz")
// $('#productCode_text').on('change', function() {
// // 获取输入框的当前值
// var currentValue = $(this).val();
// console.log("change触发")
// // 打印到控制台
// console.log('Input value changed:', currentValue);
// });
// // $("#productCode_text").change(function () {
// // console.log("change触发")
// // loadCodeRuleListGrid(this.productId);
// // });
// }
/**
* 流程引擎回调设置打样的id
* @param value 打样申请的id
*/
function
setId
(
proofingApplyId
)
{
$
(
"#proofingApplyId"
).
val
(
proofingApplyId
);
// 为文件上传控件绑定业务id
}
/**
* 流程引擎获取打样申请id的回掉方法。
* @return 打样申请的id
*/
function
getId
()
{
return
$
(
"#proofingApplyId"
).
val
()
||
""
;
}
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingApply.jsp
View file @
392a54d5
...
@@ -69,12 +69,18 @@
...
@@ -69,12 +69,18 @@
<hr>
<hr>
<div><h3>
工艺设置
</h3></div>
<div><h3>
工艺设置
</h3></div>
<div
id=
"technology"
>
<div><h4>
工艺
</h4></div>
<div><h4>
工艺
</h4></div>
<div
id=
"technologyGrid"
style=
"margin: 2px;"
></div>
<div
id=
"technologyGrid"
style=
"margin: 2px;"
></div>
</div>
<div
id=
"process"
>
<div><h4>
工序
</h4></div>
<div><h4>
工序
</h4></div>
<div
id=
"processGrid"
style=
"margin: 2px;"
></div>
<div
id=
"processGrid"
style=
"margin: 2px;"
></div>
</div>
<div><h4>
工序物料
</h4></div>
<div><h4>
工序物料
</h4></div>
<div
id=
"processBomGrid"
style=
"margin: 2px;"
></div>
<div
id=
"processBomGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingMake.js
View file @
392a54d5
...
@@ -13,9 +13,9 @@ function initializateUI() {
...
@@ -13,9 +13,9 @@ function initializateUI() {
function
loadTechnologyListGrid
()
{
function
loadTechnologyListGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
//
addHandler: function(){
addHandler
();
//
addHandler();
},
//
},
updateHandler
:
function
(){
updateHandler
:
function
(){
updateHandler
();
updateHandler
();
},
},
...
@@ -99,7 +99,6 @@ function addHandler(){
...
@@ -99,7 +99,6 @@ function addHandler(){
}
}
function
updateHandler
(
proofingMakeId
){
function
updateHandler
(
proofingMakeId
){
debugger
if
(
!
proofingMakeId
)
{
if
(
!
proofingMakeId
)
{
console
.
log
(
gridManager
)
console
.
log
(
gridManager
)
//获取所选行id
//获取所选行id
...
...
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingMake.jsp
View file @
392a54d5
...
@@ -24,5 +24,7 @@
...
@@ -24,5 +24,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingMakeDetail.jsp
View file @
392a54d5
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
<x:inputC
name=
"proofingApplyProductNo"
readonly=
"true"
label=
"产品代号"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyProductNo"
readonly=
"true"
label=
"产品代号"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingType"
readonly=
"true"
label=
"打样形式"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingType"
readonly=
"true"
label=
"打样形式"
labelCol=
"2"
fieldCol=
"2"
/>
<x:
selectC
name=
"page"
label=
"版面"
dictionary=
"prodcutLayout
"
labelCol=
"2"
fieldCol=
"2"
/>
<x:
inputC
name=
"page"
label=
"版面
"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyAllocationType"
label=
"分配方式"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyAllocationType"
label=
"分配方式"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:
selectC
name=
"productType"
label=
"产品类别"
dictionary=
"productType"
labelCol=
"2"
fieldCol=
"2"
/>
<x:
inputC
name=
"productType"
label=
"产品类别"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplySurfaceTreatment"
readonly=
"true"
label=
"表面处理"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplySurfaceTreatment"
readonly=
"true"
label=
"表面处理"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyNgReReason"
readonly=
"true"
label=
"NG重新打样原因"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyNgReReason"
readonly=
"true"
label=
"NG重新打样原因"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<x:inputC
name=
"proofingApplyTestStandard"
label=
"申请单状态"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"proofingApplyTestStandard"
label=
"申请单状态"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<x:title
title=
"附件上传"
name=
"group"
/>
<x:title
title=
"附件上传"
name=
"group"
/>
<x:fileList
bizCode=
"providerFile"
bizId=
"
id"
id=
"DataLibraryList
"
isClass=
"true"
/>
<x:fileList
bizCode=
"providerFile"
bizId=
"
bizId"
id=
"proofingMakeDetail
"
isClass=
"true"
/>
</div>
</div>
</div>
</div>
...
@@ -80,7 +80,21 @@
...
@@ -80,7 +80,21 @@
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"样品制造单状态"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"样品制造单状态"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"是否确认"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"是否确认"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
</div>
<div><h3>
排版参数
</h3></div>
<div
class=
"hg-form-cols"
>
<x:inputC
name=
"modulus"
required=
"false"
label=
"模数"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"rowNum"
required=
"false"
label=
"列"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"columnNum"
required=
"false"
label=
"行"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"contactNum"
required=
"false"
label=
"搭版数"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"rowDoubleBlade"
required=
"false"
label=
"列双刀位(mm)"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"columnDoubleBlade"
required=
"false"
label=
"行双刀位(mm)"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"dispatchMultiple"
required=
"false"
label=
"派工倍数"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"sheetLength"
required=
"false"
label=
"印张长度(cm)"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"sheetWidth"
required=
"false"
label=
"印张宽度(mm)"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"印刷正面颜色"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"productLayerNum"
required=
"false"
label=
"印刷反面颜色"
maxLength=
"32"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
</form>
</form>
</div>
</div>
topsun/src/main/java/com/huigou/topsun/product/repository/ProductPublishedConfRepository.java
View file @
392a54d5
...
@@ -9,4 +9,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -9,4 +9,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
* @Description:
* @Description:
*/
*/
public
interface
ProductPublishedConfRepository
extends
JpaRepository
<
ProductPublishedConf
,
String
>
{
public
interface
ProductPublishedConfRepository
extends
JpaRepository
<
ProductPublishedConf
,
String
>
{
ProductPublishedConf
getProductPublishedConfByProductId
(
String
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/proofing/controller/ProofingApplyController.java
View file @
392a54d5
...
@@ -7,6 +7,9 @@ import com.huigou.topsun.proofing.domain.model.ProofingApply;
...
@@ -7,6 +7,9 @@ import com.huigou.topsun.proofing.domain.model.ProofingApply;
import
com.huigou.topsun.proofing.domain.vo.BomVo
;
import
com.huigou.topsun.proofing.domain.vo.BomVo
;
import
com.huigou.topsun.proofing.service.BomService
;
import
com.huigou.topsun.proofing.service.BomService
;
import
com.huigou.topsun.technology.application.TechnologyApplication
;
import
com.huigou.topsun.technology.application.TechnologyProcessApplication
;
import
com.huigou.topsun.technology.domain.model.Technology
;
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.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
...
@@ -17,6 +20,7 @@ import com.huigou.util.SDO;
...
@@ -17,6 +20,7 @@ import com.huigou.util.SDO;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -33,8 +37,17 @@ public class ProofingApplyController extends CommonController {
...
@@ -33,8 +37,17 @@ public class ProofingApplyController extends CommonController {
private
BomService
bomService
;
private
BomService
bomService
;
@Autowired
@Autowired
ProofingApplyApplication
proofingApplyApplication
;
ProofingApplyApplication
proofingApplyApplication
;
@Autowired
TechnologyApplication
technologyApplication
;
@Resource
private
TechnologyProcessApplication
technologyProcessApplication
;
public
String
slicedTechnologyProcessList
(){
SDO
sdo
=
this
.
getSDO
();
String
technologyId
=
sdo
.
getString
(
"technologyId"
);
return
packGridDataAndResult
(
technologyProcessApplication
.
slicedTechnologyProcessList
(
technologyId
));
}
/**
/**
* 打样表单页
* 打样表单页
* @return
* @return
...
@@ -53,19 +66,13 @@ public class ProofingApplyController extends CommonController {
...
@@ -53,19 +66,13 @@ public class ProofingApplyController extends CommonController {
return
forward
(
"proofingApply"
,
proofingApply
);
return
forward
(
"proofingApply"
,
proofingApply
);
}
}
public
String
forwardAddBom
(){
public
String
slicedTechnologyList
(){
//如果有id的话就带参数过去
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getId
();
String
productId
=
sdo
.
getString
(
"productId"
);
// BomVo bom = bomService.getBomVoById(Long.valueOf(id));
List
<
Technology
>
allByProduct
=
technologyApplication
.
findAllByProductId
(
productId
);
return
forward
(
"BomDetail"
);
Map
<
String
,
Object
>
map
=
new
HashMap
();
}
map
.
put
(
"Rows"
,
allByProduct
);
return
toResult
(
map
);
public
String
addProofingApply
(){
SDO
sdo
=
this
.
getSDO
();
// ResourceTypeVo resourceTypeVo = sdo.toObject(ResourceTypeVo.class);
// sampleService.getProductNoList();
return
toResult
(
1
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/proofing/controller/ProofingMakeController.java
View file @
392a54d5
...
@@ -48,8 +48,11 @@ public class ProofingMakeController extends CommonController {
...
@@ -48,8 +48,11 @@ public class ProofingMakeController extends CommonController {
return
toResult
(
map
);
return
toResult
(
map
);
}
}
//跳转打样编辑页
/**
* 跳转打样编辑页
*/
public
String
forwardSaveProofingMake
(){
public
String
forwardSaveProofingMake
(){
this
.
putAttribute
(
"bizId"
,
"ProofingMakeId"
);
//如果有id的话就带参数过去
//如果有id的话就带参数过去
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getId
();
String
id
=
sdo
.
getId
();
...
...
topsun/src/main/java/com/huigou/topsun/proofing/domain/model/WorkInstrcutionApply.java
0 → 100644
View file @
392a54d5
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
model
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 作业指导申请书
* @TableName work_instrcution_apply
*/
@Table
(
name
=
"work_instrcution_apply"
)
@Data
public
class
WorkInstrcutionApply
implements
Serializable
{
/**
* 作业指导申请书id
*/
@Id
@Column
(
name
=
"work_instrcution_apply_id"
)
private
String
workInstrcutionApplyId
;
/**
* 打样制作单id
*/
@Column
(
name
=
"proofing_make_id"
)
private
String
proofingMakeId
;
/**
* 规格书编号
*/
@Column
(
name
=
"specification_no"
)
private
String
specificationNo
;
/**
* 换算值
*/
@Column
(
name
=
"matrixing_value"
)
private
Integer
matrixingValue
;
/**
* 尺码组
*/
@Column
(
name
=
"size_group"
)
private
String
sizeGroup
;
/**
* 是否禁用
*/
@Column
(
name
=
"is_disable"
)
private
String
isDisable
;
/**
* 是否创建新规格书
*/
@Column
(
name
=
"is_new_specification"
)
private
String
isNewSpecification
;
/**
* 是否要鞋图
*/
@Column
(
name
=
"is_shoe_pattern"
)
private
String
isShoePattern
;
/**
* 是否附样品
*/
@Column
(
name
=
"is_attached_sample"
)
private
String
isAttachedSample
;
/**
* 是否为唯一码产品
*/
@Column
(
name
=
"is_only_code"
)
private
String
isOnlyCode
;
/**
* 是否不考虑形体配色
*/
@Column
(
name
=
"is_body_color"
)
private
String
isBodyColor
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/proofing/domain/vo/ProofingMakeVo.java
View file @
392a54d5
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
vo
;
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -188,6 +191,65 @@ public class ProofingMakeVo{
...
@@ -188,6 +191,65 @@ public class ProofingMakeVo{
@Column
(
name
=
"die_board_num"
)
@Column
(
name
=
"die_board_num"
)
private
Integer
dieBoardNum
;
private
Integer
dieBoardNum
;
//产品打样排版参数方面字段
/**
* 模数
*/
@Column
(
name
=
"modulus"
)
private
Integer
modulus
;
/**
* 行数
*/
@Column
(
name
=
"row_num"
)
private
Integer
rowNum
;
/**
* 列数
*/
@Column
(
name
=
"column_num"
)
private
Integer
columnNum
;
/**
* 搭版数
*/
@Column
(
name
=
"contact_num"
)
private
Integer
contactNum
;
/**
* 行双刀位(单位mm)
*/
@Column
(
name
=
"row_double_blade"
)
private
Double
rowDoubleBlade
;
/**
* 列双刀位(单位mm)
*/
@Column
(
name
=
"column_double_blade"
)
private
Double
columnDoubleBlade
;
/**
* 派工倍数
*/
@Column
(
name
=
"dispatch_multiple"
)
private
Integer
dispatchMultiple
;
/**
* 印张长度(单位cm)
*/
@Column
(
name
=
"sheet_length"
)
private
Double
sheetLength
;
/**
* 印张宽度(单位cm)
*/
@Column
(
name
=
"sheet_width"
)
private
Double
sheetWidth
;
/**
* 产品印张设置(product_sheet_conf)
*/
@Column
(
name
=
"product_sheet_conf"
)
private
String
productSheetConf
;
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/proofing/domain/vo/WorkInstrcutionApplyVo.java
0 → 100644
View file @
392a54d5
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
vo
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
* 作业指导申请书
* @TableName work_instrcution_apply
*/
@Table
(
name
=
"work_instrcution_apply"
)
@Data
public
class
WorkInstrcutionApplyVo
implements
Serializable
{
/**
* 作业指导申请书id
*/
@Id
@Column
(
name
=
"work_instrcution_apply_id"
)
private
String
workInstrcutionApplyId
;
/**
* 打样制作单id
*/
@Column
(
name
=
"proofing_make_id"
)
private
String
proofingMakeId
;
/**
* 产品id
*/
@Column
(
name
=
"product_id"
)
private
String
productId
;
/**
* 规格书编号
*/
@Column
(
name
=
"specification_no"
)
private
String
specificationNo
;
/**
* 换算值
*/
@Column
(
name
=
"matrixing_value"
)
private
Integer
matrixingValue
;
/**
* 尺码组
*/
@Column
(
name
=
"size_group"
)
private
String
sizeGroup
;
/**
* 是否禁用
*/
@Column
(
name
=
"is_disable"
)
private
String
isDisable
;
/**
* 是否创建新规格书
*/
@Column
(
name
=
"is_new_specification"
)
private
String
isNewSpecification
;
/**
* 是否要鞋图
*/
@Column
(
name
=
"is_shoe_pattern"
)
private
String
isShoePattern
;
/**
* 是否附样品
*/
@Column
(
name
=
"is_attached_sample"
)
private
String
isAttachedSample
;
/**
* 是否为唯一码产品
*/
@Column
(
name
=
"is_only_code"
)
private
String
isOnlyCode
;
/**
* 是否不考虑形体配色
*/
@Column
(
name
=
"is_body_color"
)
private
String
isBodyColor
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/proofing/service/impl/ProofingMakeServiceImpl.java
View file @
392a54d5
package
com
.
huigou
.
topsun
.
proofing
.
service
.
impl
;
package
com
.
huigou
.
topsun
.
proofing
.
service
.
impl
;
import
com.huigou.topsun.product.domain.ProductLooked
;
import
com.huigou.topsun.product.domain.ProductLooked
;
import
com.huigou.topsun.product.domain.ProductPublishedConf
;
import
com.huigou.topsun.product.repository.ProductLookedRepository
;
import
com.huigou.topsun.product.repository.ProductLookedRepository
;
import
com.huigou.topsun.product.repository.ProductPublishedConfRepository
;
import
com.huigou.topsun.proofing.domain.model.ProofingApply
;
import
com.huigou.topsun.proofing.domain.model.ProofingApply
;
import
com.huigou.topsun.proofing.domain.model.ProofingMake
;
import
com.huigou.topsun.proofing.domain.model.ProofingMake
;
import
com.huigou.topsun.proofing.domain.vo.ProofingMakeVo
;
import
com.huigou.topsun.proofing.domain.vo.ProofingMakeVo
;
...
@@ -27,6 +29,9 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
...
@@ -27,6 +29,9 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
ProofingApplyRepository
proofingApplyRepository
;
ProofingApplyRepository
proofingApplyRepository
;
@Autowired
@Autowired
ProductLookedRepository
productLookedRepository
;
ProductLookedRepository
productLookedRepository
;
@Autowired
ProductPublishedConfRepository
productPublishedConfRepository
;
public
List
<
ProofingMakeVo
>
getProofingMakeVoList
(){
public
List
<
ProofingMakeVo
>
getProofingMakeVoList
(){
...
@@ -34,6 +39,7 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
...
@@ -34,6 +39,7 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
return
makeAll
.
stream
().
map
(
proofingMake
->
{
return
makeAll
.
stream
().
map
(
proofingMake
->
{
ProofingApply
proofingApply
=
proofingApplyRepository
.
findOne
(
proofingMake
.
getProofingApplyId
());
ProofingApply
proofingApply
=
proofingApplyRepository
.
findOne
(
proofingMake
.
getProofingApplyId
());
ProductLooked
productLooked
=
productLookedRepository
.
getProductLookedByProductId
(
proofingApply
.
getProductId
());
ProductLooked
productLooked
=
productLookedRepository
.
getProductLookedByProductId
(
proofingApply
.
getProductId
());
// ProductPublishedConf productPublishedConf = productPublishedConfRepository.getProductPublishedConfByProductId(proofingApply.getProductId());
return
this
.
getProofingMakeVo
(
proofingMake
,
proofingApply
,
productLooked
);
return
this
.
getProofingMakeVo
(
proofingMake
,
proofingApply
,
productLooked
);
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
...
@@ -44,7 +50,8 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
...
@@ -44,7 +50,8 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
ProofingMake
proofingMake
=
proofingMakeRepository
.
findOne
(
proofingMakeId
);
ProofingMake
proofingMake
=
proofingMakeRepository
.
findOne
(
proofingMakeId
);
ProofingApply
proofingApply
=
proofingApplyRepository
.
findOne
(
proofingMake
.
getProofingApplyId
());
ProofingApply
proofingApply
=
proofingApplyRepository
.
findOne
(
proofingMake
.
getProofingApplyId
());
ProductLooked
productLooked
=
productLookedRepository
.
getProductLookedByProductId
(
proofingApply
.
getProductId
());
ProductLooked
productLooked
=
productLookedRepository
.
getProductLookedByProductId
(
proofingApply
.
getProductId
());
return
this
.
getProofingMakeVo
(
proofingApply
,
proofingMake
,
productLooked
);
ProductPublishedConf
productPublishedConf
=
productPublishedConfRepository
.
getProductPublishedConfByProductId
(
proofingApply
.
getProductId
());
return
this
.
getProofingMakeVo
(
proofingApply
,
proofingMake
,
productLooked
,
productPublishedConf
);
}
}
/**
/**
...
@@ -67,8 +74,6 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
...
@@ -67,8 +74,6 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
/**
/**
* 生成ProofingMakeVo类
* 生成ProofingMakeVo类
// * @param proofingMake
// * @param proofingApply
* @return 填充过数据后的ProofingMakeVo
* @return 填充过数据后的ProofingMakeVo
*/
*/
public
ProofingMakeVo
getProofingMakeVo
(
Object
...
objs
){
public
ProofingMakeVo
getProofingMakeVo
(
Object
...
objs
){
...
...
topsun/src/main/java/com/huigou/topsun/technology/application/TechnologyApplication.java
View file @
392a54d5
...
@@ -5,7 +5,6 @@ import com.huigou.topsun.technology.domain.model.Technology;
...
@@ -5,7 +5,6 @@ import com.huigou.topsun.technology.domain.model.Technology;
import
com.huigou.topsun.technology.domain.query.TechnologyQueryRequest
;
import
com.huigou.topsun.technology.domain.query.TechnologyQueryRequest
;
import
com.huigou.topsun.technology.vo.TechnologyVo
;
import
com.huigou.topsun.technology.vo.TechnologyVo
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -26,4 +25,7 @@ public interface TechnologyApplication {
...
@@ -26,4 +25,7 @@ public interface TechnologyApplication {
void
deleteTechnology
(
List
<
String
>
ids
);
void
deleteTechnology
(
List
<
String
>
ids
);
TechnologyVo
findTechnologyByTechnologyIdId
(
String
technologyId
);
TechnologyVo
findTechnologyByTechnologyIdId
(
String
technologyId
);
List
<
Technology
>
findAllByProductId
(
String
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/TechnologyApplicationImpl.java
View file @
392a54d5
...
@@ -71,6 +71,11 @@ public class TechnologyApplicationImpl extends BaseApplication implements Techno
...
@@ -71,6 +71,11 @@ public class TechnologyApplicationImpl extends BaseApplication implements Techno
Technology
technology
=
technologyRepository
.
findOne
(
technologyId
);
Technology
technology
=
technologyRepository
.
findOne
(
technologyId
);
return
TechnologyVo
.
getTechnologyVo
(
technology
);
return
TechnologyVo
.
getTechnologyVo
(
technology
);
}
}
@Override
public
List
<
Technology
>
findAllByProductId
(
String
productId
)
{
return
technologyRepository
.
findAllByProductId
(
productId
);
}
}
}
...
...
topsun/src/main/java/com/huigou/topsun/technology/repository/TechnologyRepository.java
View file @
392a54d5
...
@@ -3,10 +3,14 @@ package com.huigou.topsun.technology.repository;
...
@@ -3,10 +3,14 @@ package com.huigou.topsun.technology.repository;
import
com.huigou.topsun.technology.domain.model.Technology
;
import
com.huigou.topsun.technology.domain.model.Technology
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.util.List
;
/**
/**
* @Auther: xin.lu
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Date: 2023/11/22/11:12
* @Description:
* @Description:
*/
*/
public
interface
TechnologyRepository
extends
JpaRepository
<
Technology
,
String
>
{
public
interface
TechnologyRepository
extends
JpaRepository
<
Technology
,
String
>
{
List
<
Technology
>
findAllByProductId
(
String
productId
);
}
}
topsun/src/main/resources/mapper/WorkInstrcutionApplyMapper.xml
0 → 100644
View file @
392a54d5
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"generator.mapper.WorkInstrcutionApplyMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.huigou.topsun.proofing.domain.model.WorkInstrcutionApply"
>
<id
property=
"workInstrcutionApplyId"
column=
"work_instrcution_apply_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"proofingMakeId"
column=
"proofing_make_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"specificationNo"
column=
"specification_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"matrixingValue"
column=
"matrixing_value"
jdbcType=
"INTEGER"
/>
<result
property=
"sizeGroup"
column=
"size_group"
jdbcType=
"VARCHAR"
/>
<result
property=
"isDisable"
column=
"is_disable"
jdbcType=
"CHAR"
/>
<result
property=
"isNewSpecification"
column=
"is_new_specification"
jdbcType=
"CHAR"
/>
<result
property=
"isShoePattern"
column=
"is_shoe_pattern"
jdbcType=
"CHAR"
/>
<result
property=
"isAttachedSample"
column=
"is_attached_sample"
jdbcType=
"CHAR"
/>
<result
property=
"isOnlyCode"
column=
"is_only_code"
jdbcType=
"CHAR"
/>
<result
property=
"isBodyColor"
column=
"is_body_color"
jdbcType=
"CHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
work_instrcution_apply_id,proofing_make_id,specification_no,
matrixing_value,size_group,is_disable,
is_new_specification,is_shoe_pattern,is_attached_sample,
is_only_code,is_body_color
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from work_instrcution_apply
where work_instrcution_apply_id = #{workInstrcutionApplyId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from work_instrcution_apply
where work_instrcution_apply_id = #{workInstrcutionApplyId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
keyColumn=
"work_instrcution_apply_id"
keyProperty=
"workInstrcutionApplyId"
parameterType=
"com.huigou.topsun.proofing.domain.model.WorkInstrcutionApply"
useGeneratedKeys=
"true"
>
insert into work_instrcution_apply
( work_instrcution_apply_id,proofing_make_id,specification_no
,matrixing_value,size_group,is_disable
,is_new_specification,is_shoe_pattern,is_attached_sample
,is_only_code,is_body_color)
values (#{workInstrcutionApplyId,jdbcType=VARCHAR},#{proofingMakeId,jdbcType=VARCHAR},#{specificationNo,jdbcType=VARCHAR}
,#{matrixingValue,jdbcType=INTEGER},#{sizeGroup,jdbcType=VARCHAR},#{isDisable,jdbcType=CHAR}
,#{isNewSpecification,jdbcType=CHAR},#{isShoePattern,jdbcType=CHAR},#{isAttachedSample,jdbcType=CHAR}
,#{isOnlyCode,jdbcType=CHAR},#{isBodyColor,jdbcType=CHAR})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"work_instrcution_apply_id"
keyProperty=
"workInstrcutionApplyId"
parameterType=
"com.huigou.topsun.proofing.domain.model.WorkInstrcutionApply"
useGeneratedKeys=
"true"
>
insert into work_instrcution_apply
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"workInstrcutionApplyId != null"
>
work_instrcution_apply_id,
</if>
<if
test=
"proofingMakeId != null"
>
proofing_make_id,
</if>
<if
test=
"specificationNo != null"
>
specification_no,
</if>
<if
test=
"matrixingValue != null"
>
matrixing_value,
</if>
<if
test=
"sizeGroup != null"
>
size_group,
</if>
<if
test=
"isDisable != null"
>
is_disable,
</if>
<if
test=
"isNewSpecification != null"
>
is_new_specification,
</if>
<if
test=
"isShoePattern != null"
>
is_shoe_pattern,
</if>
<if
test=
"isAttachedSample != null"
>
is_attached_sample,
</if>
<if
test=
"isOnlyCode != null"
>
is_only_code,
</if>
<if
test=
"isBodyColor != null"
>
is_body_color,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"workInstrcutionApplyId != null"
>
#{workInstrcutionApplyId,jdbcType=VARCHAR},
</if>
<if
test=
"proofingMakeId != null"
>
#{proofingMakeId,jdbcType=VARCHAR},
</if>
<if
test=
"specificationNo != null"
>
#{specificationNo,jdbcType=VARCHAR},
</if>
<if
test=
"matrixingValue != null"
>
#{matrixingValue,jdbcType=INTEGER},
</if>
<if
test=
"sizeGroup != null"
>
#{sizeGroup,jdbcType=VARCHAR},
</if>
<if
test=
"isDisable != null"
>
#{isDisable,jdbcType=CHAR},
</if>
<if
test=
"isNewSpecification != null"
>
#{isNewSpecification,jdbcType=CHAR},
</if>
<if
test=
"isShoePattern != null"
>
#{isShoePattern,jdbcType=CHAR},
</if>
<if
test=
"isAttachedSample != null"
>
#{isAttachedSample,jdbcType=CHAR},
</if>
<if
test=
"isOnlyCode != null"
>
#{isOnlyCode,jdbcType=CHAR},
</if>
<if
test=
"isBodyColor != null"
>
#{isBodyColor,jdbcType=CHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.huigou.topsun.proofing.domain.model.WorkInstrcutionApply"
>
update work_instrcution_apply
<set>
<if
test=
"proofingMakeId != null"
>
proofing_make_id = #{proofingMakeId,jdbcType=VARCHAR},
</if>
<if
test=
"specificationNo != null"
>
specification_no = #{specificationNo,jdbcType=VARCHAR},
</if>
<if
test=
"matrixingValue != null"
>
matrixing_value = #{matrixingValue,jdbcType=INTEGER},
</if>
<if
test=
"sizeGroup != null"
>
size_group = #{sizeGroup,jdbcType=VARCHAR},
</if>
<if
test=
"isDisable != null"
>
is_disable = #{isDisable,jdbcType=CHAR},
</if>
<if
test=
"isNewSpecification != null"
>
is_new_specification = #{isNewSpecification,jdbcType=CHAR},
</if>
<if
test=
"isShoePattern != null"
>
is_shoe_pattern = #{isShoePattern,jdbcType=CHAR},
</if>
<if
test=
"isAttachedSample != null"
>
is_attached_sample = #{isAttachedSample,jdbcType=CHAR},
</if>
<if
test=
"isOnlyCode != null"
>
is_only_code = #{isOnlyCode,jdbcType=CHAR},
</if>
<if
test=
"isBodyColor != null"
>
is_body_color = #{isBodyColor,jdbcType=CHAR},
</if>
</set>
where work_instrcution_apply_id = #{workInstrcutionApplyId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.huigou.topsun.proofing.domain.model.WorkInstrcutionApply"
>
update work_instrcution_apply
set
proofing_make_id = #{proofingMakeId,jdbcType=VARCHAR},
specification_no = #{specificationNo,jdbcType=VARCHAR},
matrixing_value = #{matrixingValue,jdbcType=INTEGER},
size_group = #{sizeGroup,jdbcType=VARCHAR},
is_disable = #{isDisable,jdbcType=CHAR},
is_new_specification = #{isNewSpecification,jdbcType=CHAR},
is_shoe_pattern = #{isShoePattern,jdbcType=CHAR},
is_attached_sample = #{isAttachedSample,jdbcType=CHAR},
is_only_code = #{isOnlyCode,jdbcType=CHAR},
is_body_color = #{isBodyColor,jdbcType=CHAR}
where work_instrcution_apply_id = #{workInstrcutionApplyId,jdbcType=VARCHAR}
</update>
</mapper>
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