Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mini-wms
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
周海峰
mini-wms
Commits
4421478d
Commit
4421478d
authored
Dec 23, 2025
by
yubin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
13cec3ea
89ead192
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
55 行增加
和
43 行删除
+55
-43
ruoyi-admin-vue/src/views/inventory/inbound/index.vue
+24
-24
ruoyi-admin-vue/src/views/inventory/inbound_items/index.vue
+2
-1
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/vo/inboundVO/InboundTemplateVO.java
+3
-3
ruoyi-inventory/src/main/java/com/ruoyi/inventory/service/impl/InboundOrdersServiceImpl.java
+26
-15
没有找到文件。
ruoyi-admin-vue/src/views/inventory/inbound/index.vue
View file @
4421478d
...
@@ -108,8 +108,8 @@
...
@@ -108,8 +108,8 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
入库
类型"
prop=
"orderTypeId"
>
<el-form-item
label=
"
订单
类型"
prop=
"orderTypeId"
>
<el-select
v-model=
"queryParams.orderTypeId"
placeholder=
"请选择
入库
类型"
clearable
>
<el-select
v-model=
"queryParams.orderTypeId"
placeholder=
"请选择
订单
类型"
clearable
>
<el-option
<el-option
v-for=
"dict in dict.type.inbound_type"
v-for=
"dict in dict.type.inbound_type"
:key=
"dict.value"
:key=
"dict.value"
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单类型"
prop=
"orderType"
>
<
!-- <
el-form-item label="订单类型" prop="orderType">
<el-select v-model="queryParams.orderType" placeholder="请选择订单类型" clearable>
<el-select v-model="queryParams.orderType" placeholder="请选择订单类型" clearable>
<el-option
<el-option
v-for="dict in dict.type.order_type"
v-for="dict in dict.type.order_type"
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
:value="dict.value"
:value="dict.value"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
-->
</page-wrapper-search>
</page-wrapper-search>
<!-- 表格区域 -->
<!-- 表格区域 -->
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<el-table-column
label=
"批次号"
align=
"center"
prop=
"batchId"
min-width=
"200"
/>
<el-table-column
label=
"批次号"
align=
"center"
prop=
"batchId"
min-width=
"200"
/>
<el-table-column
label=
"系统编号"
align=
"center"
prop=
"systemNo"
min-width=
"200"
/>
<el-table-column
label=
"系统编号"
align=
"center"
prop=
"systemNo"
min-width=
"200"
/>
<el-table-column
label=
"货主"
align=
"center"
prop=
"ownerName"
min-width=
"200"
/>
<el-table-column
label=
"货主"
align=
"center"
prop=
"ownerName"
min-width=
"200"
/>
<el-table-column
label=
"
入库
类型"
align=
"center"
prop=
"orderTypeId"
show-overflow-tooltip
min-width=
"200"
>
<el-table-column
label=
"
订单
类型"
align=
"center"
prop=
"orderTypeId"
show-overflow-tooltip
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tag
<el-tag
:type=
"getDictTagClass('inbound_type', scope.row.orderTypeId)"
:type=
"getDictTagClass('inbound_type', scope.row.orderTypeId)"
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"订单类型"
align=
"center"
prop=
"orderType"
show-overflow-tooltip
min-width=
"200"
>
<
!-- <
el-table-column label="订单类型" align="center" prop="orderType" show-overflow-tooltip min-width="200">
<template slot-scope="scope">
<template slot-scope="scope">
<el-tag
<el-tag
:type="getDictTagClass('order_type', scope.row.orderType)"
:type="getDictTagClass('order_type', scope.row.orderType)"
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
{{ getDictLabel('order_type', scope.row.orderType) }}
{{ getDictLabel('order_type', scope.row.orderType) }}
</el-tag>
</el-tag>
</template>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
label=
"入库单状态"
align=
"center"
prop=
"orderStatus"
min-width=
"200"
>
<el-table-column
label=
"入库单状态"
align=
"center"
prop=
"orderStatus"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tag
<el-tag
...
@@ -279,8 +279,8 @@
...
@@ -279,8 +279,8 @@
<
el
-
form
-
item
label
=
"批次号"
prop
=
"batchId"
>
<
el
-
form
-
item
label
=
"批次号"
prop
=
"batchId"
>
<
el
-
input
v
-
model
=
"form.batchId"
placeholder
=
"请输入批次号"
/>
<
el
-
input
v
-
model
=
"form.batchId"
placeholder
=
"请输入批次号"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
入库
类型"
prop
=
"orderTypeId"
>
<
el
-
form
-
item
label
=
"
订单
类型"
prop
=
"orderTypeId"
>
<
el
-
select
v
-
model
=
"form.orderTypeId"
placeholder
=
"请选择
入库
类型"
clearable
>
<
el
-
select
v
-
model
=
"form.orderTypeId"
placeholder
=
"请选择
订单
类型"
clearable
>
<
el
-
option
<
el
-
option
v
-
for
=
"dict in dict.type.inbound_type"
v
-
for
=
"dict in dict.type.inbound_type"
:
key
=
"dict.value"
:
key
=
"dict.value"
...
@@ -289,15 +289,6 @@
...
@@ -289,15 +289,6 @@
/>
/>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"入库日期"
prop
=
"inboundDate"
>
<
el
-
date
-
picker
clearable
v
-
model
=
"form.inboundDate"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"请选择入库日期"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"系统编号"
prop
=
"systemNo"
>
<
el
-
form
-
item
label
=
"系统编号"
prop
=
"systemNo"
>
...
@@ -321,7 +312,16 @@
...
@@ -321,7 +312,16 @@
<
/template
>
<
/template
>
<
/el-input
>
<
/el-input
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"订单类型"
prop
=
"orderType"
>
<
el
-
form
-
item
label
=
"入库日期"
prop
=
"inboundDate"
>
<
el
-
date
-
picker
clearable
v
-
model
=
"form.inboundDate"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"请选择入库日期"
/>
<
/el-form-item
>
<!--
<
el
-
form
-
item
label
=
"订单类型"
prop
=
"orderType"
>
<
el
-
select
v
-
model
=
"form.orderType"
placeholder
=
"请选择订单类型"
clearable
>
<
el
-
select
v
-
model
=
"form.orderType"
placeholder
=
"请选择订单类型"
clearable
>
<
el
-
option
<
el
-
option
v
-
for
=
"dict in dict.type.order_type"
v
-
for
=
"dict in dict.type.order_type"
...
@@ -330,7 +330,7 @@
...
@@ -330,7 +330,7 @@
:
value
=
"dict.value"
:
value
=
"dict.value"
/>
/>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item>
--
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
...
@@ -386,12 +386,12 @@
...
@@ -386,12 +386,12 @@
<
el
-
descriptions
-
item
label
=
"系统编号"
>
{{
detailForm
.
systemNo
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"系统编号"
>
{{
detailForm
.
systemNo
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"批次号"
>
{{
detailForm
.
batchId
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"批次号"
>
{{
detailForm
.
batchId
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"货主"
>
{{
detailForm
.
ownerName
||
detailForm
.
ownerId
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"货主"
>
{{
detailForm
.
ownerName
||
detailForm
.
ownerId
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"
入库
类型"
>
<
el
-
descriptions
-
item
label
=
"
订单
类型"
>
{{
getDictLabel
(
'inbound_type'
,
detailForm
.
orderTypeId
)
}}
{{
getDictLabel
(
'inbound_type'
,
detailForm
.
orderTypeId
)
}}
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"订单类型"
>
<
!--
<
el
-
descriptions
-
item
label
=
"订单类型"
>
{{
getDictLabel
(
'order_type'
,
detailForm
.
orderType
)
}}
{{
getDictLabel
(
'order_type'
,
detailForm
.
orderType
)
}}
<
/el-descriptions-item
>
<
/el-descriptions-item>
--
>
<
el
-
descriptions
-
item
label
=
"入库日期"
>
{{
detailForm
.
inboundDate
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"入库日期"
>
{{
detailForm
.
inboundDate
||
'-'
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"备注"
:
span
=
"2"
>
<
el
-
descriptions
-
item
label
=
"备注"
:
span
=
"2"
>
<
div
class
=
"remark-text"
>
{{
detailForm
.
remark
||
'-'
}}
<
/div
>
<
div
class
=
"remark-text"
>
{{
detailForm
.
remark
||
'-'
}}
<
/div
>
...
@@ -582,7 +582,7 @@ export default {
...
@@ -582,7 +582,7 @@ export default {
// 表单校验规则
// 表单校验规则
rules
:
{
rules
:
{
orderId
:
[{
required
:
true
,
message
:
"入库单号不能为空"
,
trigger
:
"blur"
}
],
orderId
:
[{
required
:
true
,
message
:
"入库单号不能为空"
,
trigger
:
"blur"
}
],
orderTypeId
:
[{
required
:
true
,
message
:
"
入库
类型不能为空"
,
trigger
:
"blur"
}
],
orderTypeId
:
[{
required
:
true
,
message
:
"
订单
类型不能为空"
,
trigger
:
"blur"
}
],
systemNo
:
[{
required
:
true
,
message
:
"系统编号不能为空"
,
trigger
:
"blur"
}
],
systemNo
:
[{
required
:
true
,
message
:
"系统编号不能为空"
,
trigger
:
"blur"
}
],
batchId
:
[{
required
:
true
,
message
:
"批次号不能为空"
,
trigger
:
"blur"
}
],
batchId
:
[{
required
:
true
,
message
:
"批次号不能为空"
,
trigger
:
"blur"
}
],
ownerId
:
[{
required
:
true
,
message
:
"货主不能为空"
,
trigger
:
"change"
}
]
ownerId
:
[{
required
:
true
,
message
:
"货主不能为空"
,
trigger
:
"change"
}
]
...
...
ruoyi-admin-vue/src/views/inventory/inbound_items/index.vue
View file @
4421478d
...
@@ -363,7 +363,8 @@ export default {
...
@@ -363,7 +363,8 @@ export default {
{
prop
:
'labelColor'
,
label
:
'标签颜色'
,
width
:
'100'
,
type
:
'select'
,
editable
:
true
},
{
prop
:
'labelColor'
,
label
:
'标签颜色'
,
width
:
'100'
,
type
:
'select'
,
editable
:
true
},
{
prop
:
'voucherNumber'
,
label
:
'凭证号'
,
width
:
'150'
,
editable
:
true
},
{
prop
:
'voucherNumber'
,
label
:
'凭证号'
,
width
:
'150'
,
editable
:
true
},
{
prop
:
'unitPrice'
,
label
:
'单价'
,
width
:
'100'
,
type
:
'number'
,
editable
:
true
},
{
prop
:
'unitPrice'
,
label
:
'单价'
,
width
:
'100'
,
type
:
'number'
,
editable
:
true
},
{
prop
:
'receivedBy'
,
label
:
'收货人'
,
width
:
'150'
,
editable
:
true
},
// { prop: '', label: '危险类别', width: '150', editable: true },
// { prop: 'receivedBy', label: '收货人', width: '150', editable: true },
{
prop
:
'labelQuantity'
,
label
:
'贴标数量'
,
width
:
'150'
,
type
:
'number'
,
editable
:
true
},
{
prop
:
'labelQuantity'
,
label
:
'贴标数量'
,
width
:
'150'
,
type
:
'number'
,
editable
:
true
},
{
prop
:
'remark'
,
label
:
'备注'
,
minWidth
:
'150'
,
editable
:
true
},
{
prop
:
'remark'
,
label
:
'备注'
,
minWidth
:
'150'
,
editable
:
true
},
]
]
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/vo/inboundVO/InboundTemplateVO.java
View file @
4421478d
...
@@ -103,7 +103,7 @@ public class InboundTemplateVO extends BaseEntity {
...
@@ -103,7 +103,7 @@ public class InboundTemplateVO extends BaseEntity {
/** 入库类型 字典,检索条件 */
/** 入库类型 字典,检索条件 */
@Excel
(
name
=
"贴标数量"
)
@Excel
(
name
=
"贴标数量"
)
private
Stri
ng
labelQuantity
;
private
Lo
ng
labelQuantity
;
/** 订单类型 字典,检索条件 */
/** 订单类型 字典,检索条件 */
@Excel
(
name
=
"订单类型"
)
@Excel
(
name
=
"订单类型"
)
...
@@ -113,8 +113,8 @@ public class InboundTemplateVO extends BaseEntity {
...
@@ -113,8 +113,8 @@ public class InboundTemplateVO extends BaseEntity {
private
Double
packageWeight
;
private
Double
packageWeight
;
/** 单价 */
/** 单价 */
//
@Excel(name = "单价")
@Excel
(
name
=
"单价"
)
private
Long
unitPrice
;
private
Double
unitPrice
;
/** 收货人 */
/** 收货人 */
// @Excel(name = "收货人")
// @Excel(name = "收货人")
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/service/impl/InboundOrdersServiceImpl.java
View file @
4421478d
...
@@ -187,7 +187,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -187,7 +187,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
*/
*/
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
<
T
>
String
importInboundOrders
(
List
<
T
>
inboundOrdersList
,
Integer
isUpdateSupport
,
String
operName
,
Integer
orderType
)
{
public
<
T
>
String
importInboundOrders
(
List
<
T
>
inboundOrdersList
,
Integer
isUpdateSupport
,
String
operName
,
Integer
orderType
Id
)
{
if
(
StringUtils
.
isNull
(
inboundOrdersList
)
||
inboundOrdersList
.
size
()
==
0
)
{
if
(
StringUtils
.
isNull
(
inboundOrdersList
)
||
inboundOrdersList
.
size
()
==
0
)
{
throw
new
ServiceException
(
"导入数据不能为空!"
);
throw
new
ServiceException
(
"导入数据不能为空!"
);
}
}
...
@@ -230,6 +230,13 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -230,6 +230,13 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
.
map
(
Object:
:
toString
)
.
map
(
Object:
:
toString
)
.
map
(
String:
:
trim
)
.
map
(
String:
:
trim
)
.
orElse
(
""
);
.
orElse
(
""
);
// 反射获取getOrderType方法
Method
getOrderType
=
vo
.
getClass
().
getMethod
(
"getOrderType"
);
String
orderType
=
Optional
.
ofNullable
(
getOrderType
.
invoke
(
vo
))
.
map
(
Object:
:
toString
)
.
map
(
String:
:
trim
)
.
orElse
(
""
);
// 反射调用setOrderId方法回写处理后的单号
// 反射调用setOrderId方法回写处理后的单号
Method
setOrderIdMethod
=
vo
.
getClass
().
getMethod
(
"setOrderId"
,
String
.
class
);
Method
setOrderIdMethod
=
vo
.
getClass
().
getMethod
(
"setOrderId"
,
String
.
class
);
...
@@ -237,6 +244,9 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -237,6 +244,9 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
// 反射调用setBatchId方法回写处理后的批次号
// 反射调用setBatchId方法回写处理后的批次号
Method
setBatchIdMethod
=
vo
.
getClass
().
getMethod
(
"setBatchId"
,
String
.
class
);
Method
setBatchIdMethod
=
vo
.
getClass
().
getMethod
(
"setBatchId"
,
String
.
class
);
setBatchIdMethod
.
invoke
(
vo
,
batchId
);
setBatchIdMethod
.
invoke
(
vo
,
batchId
);
// 反射调用setOrderTypeMethod方法回写处理后的orderType
Method
setOrderTypeMethod
=
vo
.
getClass
().
getMethod
(
"setOrderType"
,
String
.
class
);
setOrderTypeMethod
.
invoke
(
vo
,
orderType
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"实体类缺少orderId的getter/setter方法"
+
e
);
throw
new
ServiceException
(
"实体类缺少orderId的getter/setter方法"
+
e
);
}
}
...
@@ -261,6 +271,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -261,6 +271,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
try
{
try
{
Method
getOrderIdMethod
=
vo
.
getClass
().
getMethod
(
"getOrderId"
);
Method
getOrderIdMethod
=
vo
.
getClass
().
getMethod
(
"getOrderId"
);
Method
getBatchIdMethod
=
vo
.
getClass
().
getMethod
(
"getBatchId"
);
Method
getBatchIdMethod
=
vo
.
getClass
().
getMethod
(
"getBatchId"
);
Method
getOrderType
=
vo
.
getClass
().
getMethod
(
"getOrderType"
);
return
Optional
.
ofNullable
(
getOrderIdMethod
.
invoke
(
vo
))
return
Optional
.
ofNullable
(
getOrderIdMethod
.
invoke
(
vo
))
.
map
(
Object:
:
toString
)
.
map
(
Object:
:
toString
)
.
map
(
String:
:
trim
)
.
map
(
String:
:
trim
)
...
@@ -269,7 +280,12 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -269,7 +280,12 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
Optional
.
ofNullable
(
getBatchIdMethod
.
invoke
(
vo
))
Optional
.
ofNullable
(
getBatchIdMethod
.
invoke
(
vo
))
.
map
(
Object:
:
toString
)
.
map
(
Object:
:
toString
)
.
map
(
String:
:
trim
)
.
map
(
String:
:
trim
)
.
orElse
(
""
);
.
orElse
(
""
)
+
"--"
+
Optional
.
ofNullable
(
getOrderType
.
invoke
(
vo
))
.
map
(
Object:
:
toString
)
.
map
(
String:
:
trim
)
.
orElse
(
""
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"分组获取orderId失败"
+
e
);
throw
new
ServiceException
(
"分组获取orderId失败"
+
e
);
}
}
...
@@ -287,11 +303,13 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -287,11 +303,13 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
String
orderKey
=
entry
.
getKey
();
String
orderKey
=
entry
.
getKey
();
String
orderId
=
""
;
String
orderId
=
""
;
String
batchId
=
""
;
String
batchId
=
""
;
String
orderType
=
""
;
try
{
try
{
orderId
=
orderKey
.
split
(
"--"
)[
0
];
orderId
=
orderKey
.
split
(
"--"
)[
0
];
batchId
=
orderKey
.
split
(
"--"
)[
1
];
batchId
=
orderKey
.
split
(
"--"
)[
1
];
orderType
=
orderKey
.
split
(
"--"
)[
2
];
}
catch
(
IndexOutOfBoundsException
e
){
}
catch
(
IndexOutOfBoundsException
e
){
throw
new
ServiceException
(
"请检查表头单号和批次号是否正确?"
);
throw
new
ServiceException
(
"请检查表头单号和批次号
和订单类型
是否正确?"
);
}
}
List
<
T
>
voList
=
entry
.
getValue
();
List
<
T
>
voList
=
entry
.
getValue
();
InboundOrders
mainDO
=
null
;
InboundOrders
mainDO
=
null
;
...
@@ -305,6 +323,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -305,6 +323,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
InboundOrders
query
=
new
InboundOrders
();
InboundOrders
query
=
new
InboundOrders
();
query
.
setOrderId
(
orderId
);
query
.
setOrderId
(
orderId
);
query
.
setBatchId
(
batchId
);
query
.
setBatchId
(
batchId
);
query
.
setOrderType
(
orderType
);
List
<
InboundOrders
>
existMain
=
inboundOrdersMapper
.
selectInboundOrdersList
(
query
);
List
<
InboundOrders
>
existMain
=
inboundOrdersMapper
.
selectInboundOrdersList
(
query
);
if
(
existMain
!=
null
&&
!
existMain
.
isEmpty
())
{
if
(
existMain
!=
null
&&
!
existMain
.
isEmpty
())
{
...
@@ -322,7 +341,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -322,7 +341,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
mainDO
.
setUpdateBy
(
operId
);
mainDO
.
setUpdateBy
(
operId
);
mainDO
.
setUpdateTime
(
now
);
mainDO
.
setUpdateTime
(
now
);
mainDO
.
setUpdateUserCode
(
operId
);
mainDO
.
setUpdateUserCode
(
operId
);
mainDO
.
setOrderTypeId
(
Optional
.
ofNullable
(
orderType
).
map
(
String:
:
valueOf
).
orElse
(
""
));
mainDO
.
setOrderTypeId
(
Optional
.
ofNullable
(
orderType
Id
).
map
(
String:
:
valueOf
).
orElse
(
""
));
// 更新主表
// 更新主表
inboundOrdersMapper
.
updateInboundOrders
(
mainDO
);
inboundOrdersMapper
.
updateInboundOrders
(
mainDO
);
totalMainSuccess
++;
totalMainSuccess
++;
...
@@ -341,6 +360,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -341,6 +360,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
mainDO
.
setOrderId
(
orderId
);
mainDO
.
setOrderId
(
orderId
);
mainDO
.
setCreateBy
(
operId
);
mainDO
.
setCreateBy
(
operId
);
mainDO
.
setCreateTime
(
now
);
mainDO
.
setCreateTime
(
now
);
mainDO
.
setRemark
(
""
);
mainDO
.
setCreateUserCode
(
operId
);
mainDO
.
setCreateUserCode
(
operId
);
mainDO
.
setIsImport
(
1
);
mainDO
.
setIsImport
(
1
);
mainDO
.
setIsUsed
(
1L
);
mainDO
.
setIsUsed
(
1L
);
...
@@ -407,17 +427,8 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
...
@@ -407,17 +427,8 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
itemDO
.
setInboundOrderId
(
mainDO
.
getId
());
// 关联主表ID(核心!)
itemDO
.
setInboundOrderId
(
mainDO
.
getId
());
// 关联主表ID(核心!)
itemDO
.
setSortNo
(
0L
);
itemDO
.
setSortNo
(
0L
);
// 反射获取remark2并设置
String
remark2
=
""
;
try
{
Method
getRemark2Method
=
vo
.
getClass
().
getMethod
(
"getRemark2"
);
remark2
=
Optional
.
ofNullable
(
getRemark2Method
.
invoke
(
vo
))
.
map
(
Object:
:
toString
)
.
orElse
(
""
);
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"获取明细备注失败"
+
e
);
}
itemDO
.
setRemark
(
remark2
);
// ========== 物料SAPNO校验(反射获取sapNo) ==========
// ========== 物料SAPNO校验(反射获取sapNo) ==========
String
sapNo
=
""
;
String
sapNo
=
""
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论