Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TMS_APP
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
chew
TMS_APP
Commits
3d0659cd
Commit
3d0659cd
authored
Jul 29, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加追溯码客户商品信息
parent
04dd8068
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
129 additions
and
50 deletions
+129
-50
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/OutboundController.java
.../module/cargo/outbound/controller/OutboundController.java
+12
-7
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/ScanController.java
..._app/module/cargo/outbound/controller/ScanController.java
+8
-7
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
.../tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
+1
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundOrderHeaderMapper.java
.../module/cargo/outbound/dao/OutboundOrderHeaderMapper.java
+9
-5
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundTracecodeMapper.java
...pp/module/cargo/outbound/dao/OutboundTracecodeMapper.java
+2
-2
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/CustomerProductQueryReq.java
...pp/module/cargo/outbound/dto/CustomerProductQueryReq.java
+2
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/OrderQueryReq.java
...gwin/tms_app/module/cargo/outbound/dto/OrderQueryReq.java
+1
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/OutboundOrderQueryReq.java
..._app/module/cargo/outbound/dto/OutboundOrderQueryReq.java
+1
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/OutboundOrderHeader.java
...app/module/cargo/outbound/entity/OutboundOrderHeader.java
+1
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/OutboundOrderService.java
...p/module/cargo/outbound/service/OutboundOrderService.java
+3
-3
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/ScanService.java
...in/tms_app/module/cargo/outbound/service/ScanService.java
+1
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
...cargo/outbound/service/impl/OutboundOrderServiceImpl.java
+13
-10
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/ScanServiceImpl.java
...p/module/cargo/outbound/service/impl/ScanServiceImpl.java
+7
-4
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/OrderWithPendingVo.java
.../tms_app/module/cargo/outbound/vo/OrderWithPendingVo.java
+2
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/OutboundOrderVo.java
...win/tms_app/module/cargo/outbound/vo/OutboundOrderVo.java
+1
-0
src/main/resources/application-pr.properties
src/main/resources/application-pr.properties
+2
-2
src/main/resources/mapper/cargo/outbound/OutboundBoxMapper.xml
...ain/resources/mapper/cargo/outbound/OutboundBoxMapper.xml
+1
-0
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
...urces/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
+53
-7
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
...sources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
+7
-0
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
+2
-1
No files found.
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/OutboundController.java
View file @
3d0659cd
...
@@ -38,6 +38,7 @@ public class OutboundController {
...
@@ -38,6 +38,7 @@ public class OutboundController {
public
Result
<
IPage
<
OutboundOrderVo
>>
listOrders
(
@RequestBody
@Valid
OutboundOrderQueryReq
req
,
public
Result
<
IPage
<
OutboundOrderVo
>>
listOrders
(
@RequestBody
@Valid
OutboundOrderQueryReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
@RequestAttribute
(
"userId"
)
String
userId
)
{
log
.
info
(
"userid:"
+
userId
+
"-----------查询订单信息:"
+
req
.
toString
());
log
.
info
(
"userid:"
+
userId
+
"-----------查询订单信息:"
+
req
.
toString
());
req
.
setScanUser
(
userId
);
return
Result
.
success
(
outboundOrderService
.
listOrders
(
req
));
return
Result
.
success
(
outboundOrderService
.
listOrders
(
req
));
}
}
/**
/**
...
@@ -50,6 +51,7 @@ public class OutboundController {
...
@@ -50,6 +51,7 @@ public class OutboundController {
public
Result
<
IPage
<
OrderDetailListVo
>>
getCustomerProducts
(
public
Result
<
IPage
<
OrderDetailListVo
>>
getCustomerProducts
(
@RequestBody
@Valid
CustomerProductQueryReq
req
,
@RequestBody
@Valid
CustomerProductQueryReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
@RequestAttribute
(
"userId"
)
String
userId
)
{
req
.
setScanUser
(
userId
);
return
Result
.
success
(
outboundOrderService
.
getCustomerProductSummary
(
req
));
return
Result
.
success
(
outboundOrderService
.
getCustomerProductSummary
(
req
));
}
}
@PostMapping
(
"/order/detail"
)
@PostMapping
(
"/order/detail"
)
...
@@ -87,7 +89,7 @@ public class OutboundController {
...
@@ -87,7 +89,7 @@ public class OutboundController {
public
Result
<
OutboundTracecode
>
getTracecodeInfo
(
@RequestBody
@Valid
TracecodeInfoReq
req
,
public
Result
<
OutboundTracecode
>
getTracecodeInfo
(
@RequestBody
@Valid
TracecodeInfoReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
@RequestAttribute
(
"userId"
)
String
userId
)
{
log
.
info
(
"userid:"
+
userId
+
"-----------查询追溯码信息:"
+
req
.
toString
());
log
.
info
(
"userid:"
+
userId
+
"-----------查询追溯码信息:"
+
req
.
toString
());
return
Result
.
success
(
outboundOrderService
.
getTracecodeInfo
(
req
.
getTraceCode
()));
return
Result
.
success
(
outboundOrderService
.
getTracecodeInfo
(
req
.
getTraceCode
()
,
userId
));
}
}
@PostMapping
(
"/tracecode/updateRemark"
)
@PostMapping
(
"/tracecode/updateRemark"
)
public
Result
<
OutboundTracecode
>
updateRemark
(
@RequestBody
@Valid
TraceCodeRemarkReq
req
,
public
Result
<
OutboundTracecode
>
updateRemark
(
@RequestBody
@Valid
TraceCodeRemarkReq
req
,
...
@@ -102,7 +104,8 @@ public class OutboundController {
...
@@ -102,7 +104,8 @@ public class OutboundController {
* @return
* @return
*/
*/
@PostMapping
(
"/queryCode/info"
)
@PostMapping
(
"/queryCode/info"
)
public
Result
<
Object
>
queryCode
(
@RequestBody
InfoQueryReq
req
)
{
public
Result
<
Object
>
queryCode
(
@RequestBody
InfoQueryReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
log
.
info
(
"-----------用码查询:"
+
req
.
toString
());
log
.
info
(
"-----------用码查询:"
+
req
.
toString
());
Result
result
=
new
Result
();
Result
result
=
new
Result
();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -115,7 +118,7 @@ public class OutboundController {
...
@@ -115,7 +118,7 @@ public class OutboundController {
return
result
.
success
(
data
);
return
result
.
success
(
data
);
}
}
}
else
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
}
else
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
OutboundTracecode
outboundTracecode
=
outboundOrderService
.
getTracecodeInfo
(
req
.
getCode
());
OutboundTracecode
outboundTracecode
=
outboundOrderService
.
getTracecodeInfo
(
req
.
getCode
()
,
userId
);
if
(
outboundTracecode
!=
null
)
{
if
(
outboundTracecode
!=
null
)
{
map
.
put
(
"data"
,
outboundTracecode
);
map
.
put
(
"data"
,
outboundTracecode
);
map
.
put
(
"type"
,
"trace"
);
map
.
put
(
"type"
,
"trace"
);
...
@@ -160,6 +163,7 @@ public class OutboundController {
...
@@ -160,6 +163,7 @@ public class OutboundController {
public
Result
<
IPage
<
OrderWithPendingVo
>>
listOrdersWithPending
(
public
Result
<
IPage
<
OrderWithPendingVo
>>
listOrdersWithPending
(
@RequestBody
@Valid
OrderQueryReq
req
,
@RequestBody
@Valid
OrderQueryReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
@RequestAttribute
(
"userId"
)
String
userId
)
{
req
.
setScanUser
(
userId
);
return
Result
.
success
(
outboundOrderService
.
getOrderWithPending
(
req
));
return
Result
.
success
(
outboundOrderService
.
getOrderWithPending
(
req
));
}
}
...
@@ -183,7 +187,7 @@ public class OutboundController {
...
@@ -183,7 +187,7 @@ public class OutboundController {
}
}
}
}
}
else
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
}
else
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
OutboundTracecode
outboundTracecode
=
outboundOrderService
.
getTracecodeInfo
(
req
.
getCode
());
OutboundTracecode
outboundTracecode
=
outboundOrderService
.
getTracecodeInfo
(
req
.
getCode
()
,
userId
);
if
(
outboundTracecode
!=
null
){
if
(
outboundTracecode
!=
null
){
list
.
add
(
outboundTracecode
.
getOrderNo
());
list
.
add
(
outboundTracecode
.
getOrderNo
());
...
@@ -192,13 +196,14 @@ public class OutboundController {
...
@@ -192,13 +196,14 @@ public class OutboundController {
if
(
CollectionUtils
.
isEmpty
(
list
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
Result
.
error
(
"码不存在"
);
return
Result
.
error
(
"码不存在"
);
}
}
return
Result
.
success
(
outboundOrderService
.
queryCustomer
(
list
));
return
Result
.
success
(
outboundOrderService
.
queryCustomer
(
list
,
userId
));
}
}
@PostMapping
(
"/tracecode/detail"
)
@PostMapping
(
"/tracecode/detail"
)
public
Result
<
TracecodeDetailVo
>
getTracecodeDetail
(
@RequestBody
@Valid
TracecodeInfoReq
req
)
{
public
Result
<
TracecodeDetailVo
>
getTracecodeDetail
(
@RequestBody
@Valid
TracecodeInfoReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
String
type
=
outboundOrderService
.
getIdType
(
req
.
getTraceCode
());
String
type
=
outboundOrderService
.
getIdType
(
req
.
getTraceCode
());
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"TRACE"
.
equals
(
type
)){
return
Result
.
success
(
outboundOrderService
.
getTracecodeDetail
(
req
.
getTraceCode
()));
return
Result
.
success
(
outboundOrderService
.
getTracecodeDetail
(
req
.
getTraceCode
()
,
userId
));
}
else
{
}
else
{
return
Result
.
error
(
"追溯码不存在"
);
return
Result
.
error
(
"追溯码不存在"
);
}
}
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/ScanController.java
View file @
3d0659cd
...
@@ -5,15 +5,14 @@ import com.ekingwin.tms_app.module.cargo.outbound.dto.ManualTallyUpdateReq;
...
@@ -5,15 +5,14 @@ import com.ekingwin.tms_app.module.cargo.outbound.dto.ManualTallyUpdateReq;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ManualTallyUpdateResp
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ManualTallyUpdateResp
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteReq
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteReq
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteResp
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteResp
;
import
com.ekingwin.tms_app.module.cargo.outbound.service.OutboundOrderService
;
import
com.ekingwin.tms_app.module.cargo.outbound.service.ScanService
;
import
com.ekingwin.tms_app.module.cargo.outbound.service.ScanService
;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
...
@@ -25,10 +24,12 @@ public class ScanController {
...
@@ -25,10 +24,12 @@ public class ScanController {
@Autowired
@Autowired
private
ScanService
scanService
;
private
ScanService
scanService
;
@PostMapping
(
"/execute"
)
@PostMapping
(
"/execute"
)
public
Result
<
ScanExecuteResp
>
executeScan
(
@RequestBody
@Valid
ScanExecuteReq
req
)
{
public
Result
<
ScanExecuteResp
>
executeScan
(
@RequestBody
@Valid
ScanExecuteReq
req
,
return
Result
.
success
(
scanService
.
executeScan
(
req
));
@RequestAttribute
(
"userId"
)
String
userId
)
{
//根据码的类判断去订单表查询
return
Result
.
success
(
scanService
.
executeScan
(
req
,
userId
));
}
}
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
View file @
3d0659cd
...
@@ -16,6 +16,6 @@ public interface OutboundBoxMapper extends BaseMapper<OutboundBox> {
...
@@ -16,6 +16,6 @@ public interface OutboundBoxMapper extends BaseMapper<OutboundBox> {
@Select
(
"SELECT PAK_OUTBOUND_SCAN.F_DETECT_SCAN_TYPE(#{id}) FROM DUAL"
)
@Select
(
"SELECT PAK_OUTBOUND_SCAN.F_DETECT_SCAN_TYPE(#{id}) FROM DUAL"
)
String
selectIdType
(
@Param
(
"id"
)
String
ID
);
String
selectIdType
(
@Param
(
"id"
)
String
ID
);
@Update
(
"update T_DOC_OUTBOUND_BOX_DETAIL set chang_lpn= #{chang
_l
pn} where traceId=#{traceId} and item_code =#{itemCode}"
)
@Update
(
"update T_DOC_OUTBOUND_BOX_DETAIL set chang_lpn= #{chang
L
pn} where traceId=#{traceId} and item_code =#{itemCode}"
)
void
updateChangLpn
(
@Param
(
"changLpn"
)
String
changLpn
,
@Param
(
"traceId"
)
String
traceId
,
@Param
(
"itemCode"
)
String
itemCode
);
void
updateChangLpn
(
@Param
(
"changLpn"
)
String
changLpn
,
@Param
(
"traceId"
)
String
traceId
,
@Param
(
"itemCode"
)
String
itemCode
);
}
}
\ No newline at end of file
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundOrderHeaderMapper.java
View file @
3d0659cd
...
@@ -16,20 +16,22 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
...
@@ -16,20 +16,22 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"statusList"
)
List
<
String
>
statuss
,
@Param
(
"statusList"
)
List
<
String
>
statuss
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"endTime"
)
Date
endTime
);
@Param
(
"endTime"
)
Date
endTime
,
@Param
(
"scanUser"
)
String
scanUser
);
Integer
selectOrderCount
(
@Param
(
"customerName"
)
String
customerName
,
Integer
selectOrderCount
(
@Param
(
"customerName"
)
String
customerName
,
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"statusList"
)
List
<
String
>
status
,
@Param
(
"statusList"
)
List
<
String
>
status
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"endTime"
)
Date
endTime
);
@Param
(
"endTime"
)
Date
endTime
,
@Param
(
"scanUser"
)
String
scanUser
);
List
<
OrderDetailListVo
>
selectCustomerProductSummary
(
List
<
OrderDetailListVo
>
selectCustomerProductSummary
(
@Param
(
"customerName"
)
String
customerName
,
@Param
(
"customerName"
)
String
customerName
,
@Param
(
"customerCode"
)
String
customerCode
,
@Param
(
"customerCode"
)
String
customerCode
,
@Param
(
"statusList"
)
List
<
String
>
statusList
,
@Param
(
"statusList"
)
List
<
String
>
statusList
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"endTime"
)
Date
endTime
@Param
(
"endTime"
)
Date
endTime
,
@Param
(
"scanUser"
)
String
scanUser
,
@Param
(
"isOddLot"
)
String
isOddLot
);
);
List
<
OrderWithPendingVo
>
selectOrderWithPending
(
List
<
OrderWithPendingVo
>
selectOrderWithPending
(
...
@@ -37,9 +39,11 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
...
@@ -37,9 +39,11 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"statusList"
)
List
<
String
>
statusList
,
@Param
(
"statusList"
)
List
<
String
>
statusList
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"startTime"
)
Date
startTime
,
@Param
(
"endTime"
)
Date
endTime
@Param
(
"endTime"
)
Date
endTime
,
@Param
(
"scanUser"
)
String
scanUser
);
);
List
<
CustomerVo
>
queryCustomer
(
@Param
(
"orderids"
)
List
<
String
>
orderids
);
List
<
CustomerVo
>
queryCustomer
(
@Param
(
"orderids"
)
List
<
String
>
orderids
,
@Param
(
"scanUser"
)
String
scanUser
);
}
}
\ No newline at end of file
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundTracecodeMapper.java
View file @
3d0659cd
...
@@ -10,10 +10,10 @@ import org.apache.ibatis.annotations.Update;
...
@@ -10,10 +10,10 @@ import org.apache.ibatis.annotations.Update;
public
interface
OutboundTracecodeMapper
extends
BaseMapper
<
OutboundTracecode
>
{
public
interface
OutboundTracecodeMapper
extends
BaseMapper
<
OutboundTracecode
>
{
OutboundTracecode
selectByTraceCode
(
@Param
(
"traceCode"
)
String
traceCode
);
OutboundTracecode
selectByTraceCode
(
@Param
(
"traceCode"
)
String
traceCode
);
TracecodeDetailVo
selectTracecodeDetail
(
@Param
(
"traceCode"
)
String
traceCode
);
TracecodeDetailVo
selectTracecodeDetail
(
@Param
(
"traceCode"
)
String
traceCode
,
@Param
(
"scanUser"
)
String
scanUser
);
@Update
(
"update T_DOC_outbound_tracecode set remark = #{remark} where trace_code = #{traceCode} and item_code=#{itemCode}"
)
@Update
(
"update T_DOC_outbound_tracecode set remark = #{remark} where trace_code = #{traceCode} and item_code=#{itemCode}"
)
void
updateTraceCodeRemark
(
@Param
(
"traceCode"
)
String
traceCode
,
@Param
(
"itemCode"
)
String
itemCode
,
@Param
(
"remark"
)
String
remark
);
void
updateTraceCodeRemark
(
@Param
(
"traceCode"
)
String
traceCode
,
@Param
(
"itemCode"
)
String
itemCode
,
@Param
(
"remark"
)
String
remark
);
CustomerItem
selectCustomerItem
(
@Param
(
"traceCode"
)
String
traceCode
);
CustomerItem
selectCustomerItem
(
@Param
(
"traceCode"
)
String
traceCode
,
@Param
(
"scanUser"
)
String
scanUser
);
}
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/CustomerProductQueryReq.java
View file @
3d0659cd
...
@@ -15,4 +15,6 @@ public class CustomerProductQueryReq {
...
@@ -15,4 +15,6 @@ public class CustomerProductQueryReq {
private
Date
endTime
;
// 订单创建结束时间
private
Date
endTime
;
// 订单创建结束时间
private
Integer
pageNum
=
1
;
private
Integer
pageNum
=
1
;
private
Integer
pageSize
=
10
;
private
Integer
pageSize
=
10
;
private
String
scanUser
;
private
String
isOddLot
;
}
}
\ No newline at end of file
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/OrderQueryReq.java
View file @
3d0659cd
...
@@ -16,4 +16,5 @@ public class OrderQueryReq {
...
@@ -16,4 +16,5 @@ public class OrderQueryReq {
private
Date
endTime
;
private
Date
endTime
;
private
Integer
pageNum
=
1
;
private
Integer
pageNum
=
1
;
private
Integer
pageSize
=
10
;
private
Integer
pageSize
=
10
;
private
String
scanUser
;
}
}
\ No newline at end of file
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/OutboundOrderQueryReq.java
View file @
3d0659cd
...
@@ -9,6 +9,7 @@ import java.util.Date;
...
@@ -9,6 +9,7 @@ import java.util.Date;
public
class
OutboundOrderQueryReq
{
public
class
OutboundOrderQueryReq
{
private
String
customerName
;
// 模糊查询
private
String
customerName
;
// 模糊查询
private
String
orderNo
;
// 精确查询
private
String
orderNo
;
// 精确查询
private
String
scanUser
;
// 精确查询
private
String
status
;
// PENDING/TALLYING/DONE
private
String
status
;
// PENDING/TALLYING/DONE
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
startTime
;
// 订单创建开始时间
private
Date
startTime
;
// 订单创建开始时间
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/OutboundOrderHeader.java
View file @
3d0659cd
...
@@ -23,6 +23,7 @@ public class OutboundOrderHeader {
...
@@ -23,6 +23,7 @@ public class OutboundOrderHeader {
private
String
status
;
// DEFAULT 'PENDING', -- PENDING=待理货 TALLYING=理货中 DONE=已完成
private
String
status
;
// DEFAULT 'PENDING', -- PENDING=待理货 TALLYING=理货中 DONE=已完成
private
Date
createTime
;
private
Date
createTime
;
private
Date
updateTime
;
private
Date
updateTime
;
private
String
scanUser
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
OutboundOrderDetail
>
list
;
private
List
<
OutboundOrderDetail
>
list
;
}
}
\ No newline at end of file
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/OutboundOrderService.java
View file @
3d0659cd
...
@@ -21,14 +21,14 @@ public interface OutboundOrderService {
...
@@ -21,14 +21,14 @@ public interface OutboundOrderService {
public
void
updateChangLpn
(
BoxChangLpnReq
req
);
public
void
updateChangLpn
(
BoxChangLpnReq
req
);
public
String
getIdType
(
String
traceId
);
public
String
getIdType
(
String
traceId
);
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
);
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
,
String
userId
);
public
void
updateRemark
(
TraceCodeRemarkReq
req
);
public
void
updateRemark
(
TraceCodeRemarkReq
req
);
public
void
commitTally
(
TallyCommitReq
req
,
String
operatorId
);
public
void
commitTally
(
TallyCommitReq
req
,
String
operatorId
);
public
void
scanTracecode
(
TracecodeScanReq
req
,
String
operatorId
);
public
void
scanTracecode
(
TracecodeScanReq
req
,
String
operatorId
);
public
IPage
<
OrderWithPendingVo
>
getOrderWithPending
(
OrderQueryReq
req
);
public
IPage
<
OrderWithPendingVo
>
getOrderWithPending
(
OrderQueryReq
req
);
public
List
<
CustomerVo
>
queryCustomer
(
List
<
String
>
req
);
public
List
<
CustomerVo
>
queryCustomer
(
List
<
String
>
req
,
String
userId
);
public
TracecodeDetailVo
getTracecodeDetail
(
String
traceCode
);
public
TracecodeDetailVo
getTracecodeDetail
(
String
traceCode
,
String
userId
);
public
List
<
OrderDetailListVo
>
getOrderDetailList
(
String
orderNo
,
String
orgid
,
String
status
);
public
List
<
OrderDetailListVo
>
getOrderDetailList
(
String
orderNo
,
String
orgid
,
String
status
);
}
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/ScanService.java
View file @
3d0659cd
...
@@ -6,6 +6,6 @@ import com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteReq;
...
@@ -6,6 +6,6 @@ import com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteReq;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteResp
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.ScanExecuteResp
;
public
interface
ScanService
{
public
interface
ScanService
{
ScanExecuteResp
executeScan
(
ScanExecuteReq
req
);
ScanExecuteResp
executeScan
(
ScanExecuteReq
req
,
String
userId
);
ManualTallyUpdateResp
manualTallyUpdate
(
ManualTallyUpdateReq
req
);
ManualTallyUpdateResp
manualTallyUpdate
(
ManualTallyUpdateReq
req
);
}
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
View file @
3d0659cd
...
@@ -41,10 +41,10 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
...
@@ -41,10 +41,10 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
}
}
List
<
OutboundOrderVo
>
records
=
orderHeaderMapper
.
selectOrderList
(
List
<
OutboundOrderVo
>
records
=
orderHeaderMapper
.
selectOrderList
(
req
.
getCustomerName
(),
req
.
getOrderNo
(),
statusList
,
req
.
getCustomerName
(),
req
.
getOrderNo
(),
statusList
,
req
.
getStartTime
(),
req
.
getEndTime
());
req
.
getStartTime
(),
req
.
getEndTime
()
,
req
.
getScanUser
()
);
page
.
setRecords
(
records
);
page
.
setRecords
(
records
);
page
.
setTotal
(
orderHeaderMapper
.
selectOrderCount
(
req
.
getCustomerName
(),
req
.
getOrderNo
(),
statusList
,
page
.
setTotal
(
orderHeaderMapper
.
selectOrderCount
(
req
.
getCustomerName
(),
req
.
getOrderNo
(),
statusList
,
req
.
getStartTime
(),
req
.
getEndTime
()));
// 实际建议用 count 查询,此处简化
req
.
getStartTime
(),
req
.
getEndTime
()
,
req
.
getScanUser
()
));
// 实际建议用 count 查询,此处简化
return
page
;
return
page
;
}
}
...
@@ -60,7 +60,9 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
...
@@ -60,7 +60,9 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
req
.
getCustomerCode
(),
req
.
getCustomerCode
(),
statusList
,
statusList
,
req
.
getStartTime
(),
req
.
getStartTime
(),
req
.
getEndTime
()
req
.
getEndTime
(),
req
.
getScanUser
(),
req
.
getIsOddLot
()
));
));
return
page
;
return
page
;
}
}
...
@@ -95,9 +97,9 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
...
@@ -95,9 +97,9 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
// 4. 查询追溯码信息
// 4. 查询追溯码信息
@Override
@Override
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
)
{
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
,
String
userId
)
{
OutboundTracecode
trace
=
tracecodeMapper
.
selectByTraceCode
(
traceCode
);
OutboundTracecode
trace
=
tracecodeMapper
.
selectByTraceCode
(
traceCode
);
trace
.
setCustomerItem
(
tracecodeMapper
.
selectCustomerItem
(
trace
.
getTraceId
()
));
trace
.
setCustomerItem
(
tracecodeMapper
.
selectCustomerItem
(
trace
Code
,
userId
));
if
(
trace
==
null
)
{
if
(
trace
==
null
)
{
throw
new
RuntimeException
(
"追溯码不存在"
);
throw
new
RuntimeException
(
"追溯码不存在"
);
}
}
...
@@ -163,20 +165,21 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
...
@@ -163,20 +165,21 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
req
.
getOrderNo
(),
req
.
getOrderNo
(),
statusList
,
statusList
,
req
.
getStartTime
(),
req
.
getStartTime
(),
req
.
getEndTime
()
req
.
getEndTime
(),
req
.
getScanUser
()
));
));
return
page
;
return
page
;
}
}
@Override
@Override
public
List
<
CustomerVo
>
queryCustomer
(
List
<
String
>
req
)
{
public
List
<
CustomerVo
>
queryCustomer
(
List
<
String
>
req
,
String
userId
)
{
List
<
CustomerVo
>
customerVos
=
orderHeaderMapper
.
queryCustomer
(
req
);
List
<
CustomerVo
>
customerVos
=
orderHeaderMapper
.
queryCustomer
(
req
,
userId
);
return
customerVos
;
return
customerVos
;
}
}
@Override
@Override
public
TracecodeDetailVo
getTracecodeDetail
(
String
traceCode
)
{
public
TracecodeDetailVo
getTracecodeDetail
(
String
traceCode
,
String
userId
)
{
TracecodeDetailVo
vo
=
tracecodeMapper
.
selectTracecodeDetail
(
traceCode
);
TracecodeDetailVo
vo
=
tracecodeMapper
.
selectTracecodeDetail
(
traceCode
,
userId
);
if
(
vo
==
null
)
{
if
(
vo
==
null
)
{
throw
new
RuntimeException
(
"追溯码不存在"
);
throw
new
RuntimeException
(
"追溯码不存在"
);
}
}
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/ScanServiceImpl.java
View file @
3d0659cd
...
@@ -3,6 +3,7 @@ package com.ekingwin.tms_app.module.cargo.outbound.service.impl;
...
@@ -3,6 +3,7 @@ package com.ekingwin.tms_app.module.cargo.outbound.service.impl;
import
com.ekingwin.tms_app.module.cargo.outbound.dao.ScanMapper
;
import
com.ekingwin.tms_app.module.cargo.outbound.dao.ScanMapper
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.*
;
import
com.ekingwin.tms_app.module.cargo.outbound.dto.*
;
import
com.ekingwin.tms_app.module.cargo.outbound.service.ScanService
;
import
com.ekingwin.tms_app.module.cargo.outbound.service.ScanService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -11,24 +12,26 @@ import java.util.List;
...
@@ -11,24 +12,26 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
@Service
@Service
@Log4j2
public
class
ScanServiceImpl
implements
ScanService
{
public
class
ScanServiceImpl
implements
ScanService
{
@Autowired
@Autowired
private
ScanMapper
scanMapper
;
private
ScanMapper
scanMapper
;
@Override
@Override
public
ScanExecuteResp
executeScan
(
ScanExecuteReq
req
)
{
public
ScanExecuteResp
executeScan
(
ScanExecuteReq
req
,
String
userId
)
{
// 1. 构造参数 Map
// 1. 构造参数 Map
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"
p_session_id"
,
req
.
getSessionId
()
);
params
.
put
(
"
P_AUTO_CONFIRM"
,
"Y"
);
params
.
put
(
"p_scan_code"
,
req
.
getScanCode
());
params
.
put
(
"p_scan_code"
,
req
.
getScanCode
());
// 输出参数占位,MyBatis 会自动填充
// 输出参数占位,MyBatis 会自动填充
params
.
put
(
"p_out_scan_type"
,
null
);
params
.
put
(
"p_out_scan_type"
,
userId
);
params
.
put
(
"p_user_id"
,
null
);
params
.
put
(
"p_out_match_type"
,
null
);
params
.
put
(
"p_out_match_type"
,
null
);
params
.
put
(
"p_out_items"
,
null
);
params
.
put
(
"p_out_items"
,
null
);
params
.
put
(
"p_out_result"
,
null
);
params
.
put
(
"p_out_result"
,
null
);
params
.
put
(
"p_out_message"
,
null
);
params
.
put
(
"p_out_message"
,
null
);
log
.
info
(
params
.
toString
());
// 2. 调用存储过程
// 2. 调用存储过程
scanMapper
.
executeScan
(
params
);
scanMapper
.
executeScan
(
params
);
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/OrderWithPendingVo.java
View file @
3d0659cd
...
@@ -11,6 +11,8 @@ public class OrderWithPendingVo {
...
@@ -11,6 +11,8 @@ public class OrderWithPendingVo {
private
Integer
totalLines
;
private
Integer
totalLines
;
private
Integer
tallyLines
;
private
Integer
tallyLines
;
private
Integer
remainLines
;
// 剩余行数
private
Integer
remainLines
;
// 剩余行数
private
Integer
remain_c
;
// 剩余行数
private
Integer
remain_a
;
// 剩余行数
private
BigDecimal
progressPct
;
// 进度百分比
private
BigDecimal
progressPct
;
// 进度百分比
private
String
status
;
private
String
status
;
private
String
statusCn
;
// 中文状态
private
String
statusCn
;
// 中文状态
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/vo/OutboundOrderVo.java
View file @
3d0659cd
...
@@ -16,4 +16,5 @@ public class OutboundOrderVo {
...
@@ -16,4 +16,5 @@ public class OutboundOrderVo {
private
String
orderType
;
private
String
orderType
;
private
String
customerAddr
;
private
String
customerAddr
;
private
String
orgName
;
private
String
orgName
;
private
String
scanUser
;
}
}
src/main/resources/application-pr.properties
View file @
3d0659cd
# 应用服务 WEB 访问端口
# 应用服务 WEB 访问端口
# Oracle ?????
# Oracle ?????
spring.datasource.url
=
jdbc:oracle:thin:@10.1.18.190:1521/qgtms
spring.datasource.url
=
jdbc:oracle:thin:@10.1.18.190:1521/qgtms
i
spring.datasource.username
=
tmsdb
s
i
pring.datasource.username
=
tmsdb
spring.datasource.password
=
db2admin
spring.datasource.password
=
db2admin
spring.datasource.driver-class-name
=
oracle.jdbc.OracleDriver
spring.datasource.driver-class-name
=
oracle.jdbc.OracleDriver
spring.datasource.hikari.maximum-pool-size
=
20
spring.datasource.hikari.maximum-pool-size
=
20
...
...
src/main/resources/mapper/cargo/outbound/OutboundBoxMapper.xml
View file @
3d0659cd
...
@@ -30,4 +30,5 @@
...
@@ -30,4 +30,5 @@
LEFT JOIN T_DOC_outbound_box_DETAIL d ON b.traceId = d.traceId
LEFT JOIN T_DOC_outbound_box_DETAIL d ON b.traceId = d.traceId
WHERE b.traceId = #{traceId}
WHERE b.traceId = #{traceId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/OutboundOrderHeaderMapper.xml
View file @
3d0659cd
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
SELECT organizationid, order_no AS orderNo, customer_name AS customerName,
SELECT organizationid, order_no AS orderNo, customer_name AS customerName,
customer_code AS customerCode, total_lines AS totalLines,
customer_code AS customerCode, total_lines AS totalLines,
tally_lines AS tallyLines, status, create_time AS createTime,
tally_lines AS tallyLines, status, create_time AS createTime,
ordertype AS orderType, customer_addr AS customerAddr,org_name AS orgName
ordertype AS orderType, customer_addr AS customerAddr,org_name AS orgName,
scan_user as scanUser
FROM T_DOC_outbound_scan_HEADER
FROM T_DOC_outbound_scan_HEADER
WHERE 1=1
WHERE 1=1
<if
test=
"customerName != null and customerName != ''"
>
<if
test=
"customerName != null and customerName != ''"
>
...
@@ -21,6 +22,9 @@
...
@@ -21,6 +22,9 @@
#{status}
#{status}
</foreach>
</foreach>
</if>
</if>
<if
test=
"scanUser != null and scanUser != ''"
>
and scan_user= #{scanUser}
</if>
<!-- <if test="startTime != null">-->
<!-- <if test="startTime != null">-->
<!-- AND create_time >= #{startTime}-->
<!-- AND create_time >= #{startTime}-->
<!-- </if>-->
<!-- </if>-->
...
@@ -46,7 +50,9 @@
...
@@ -46,7 +50,9 @@
#{status}
#{status}
</foreach>
</foreach>
</if>
</if>
<if
test=
"scanUser != null and scanUser != ''"
>
and scan_user= #{scanUser}
</if>
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
AND create_time >= #{startTime}
AND create_time >= #{startTime}
</if>
</if>
...
@@ -97,11 +103,20 @@
...
@@ -97,11 +103,20 @@
<if
test=
"customerCode != null and customerCode != ''"
>
<if
test=
"customerCode != null and customerCode != ''"
>
AND h.customer_code = #{customerCode}
AND h.customer_code = #{customerCode}
</if>
</if>
<if
test=
"scanUser != null and scanUser != ''"
>
and h.scan_user= #{scanUser}
</if>
<if
test=
"isOddLot != null and isOddLot != ''"
>
and ol.is_odd_lot= #{isOddLot}
</if>
ORDER BY ol.is_odd_lot, ol.line_no
ORDER BY ol.is_odd_lot, ol.line_no
</select>
</select>
<select
id=
"selectOrderWithPending"
<select
id=
"selectOrderWithPending"
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.vo.OrderWithPendingVo"
>
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.vo.OrderWithPendingVo"
>
SELECT
SELECT
h.order_no AS orderNo,
h.order_no AS orderNo,
h.customer_name AS customerName,
h.customer_name AS customerName,
...
@@ -109,22 +124,47 @@
...
@@ -109,22 +124,47 @@
h.total_lines AS totalLines,
h.total_lines AS totalLines,
h.tally_lines AS tallyLines,
h.tally_lines AS tallyLines,
(h.total_lines - h.tally_lines) AS remainLines,
(h.total_lines - h.tally_lines) AS remainLines,
COALESCE(
(SELECT COUNT(DISTINCT A.TRACEID)
FROM t_doc_outbound_box a
WHERE a.order_no = H.order_no
AND a.status != 'DONE'
AND a.is_odd_lot = 'C'),
0
) AS remain_c, -- 标签整件
COALESCE(
(SELECT COUNT(DISTINCT B.TRACEID)
FROM t_doc_outbound_box B
WHERE B.order_no = H.order_no
AND B.status != 'DONE'
AND B.is_odd_lot = 'A'),
0
) AS remain_a, -- 标签零头
ROUND(h.tally_lines / NULLIF(h.total_lines, 0) * 100, 1) AS progressPct,
ROUND(h.tally_lines / NULLIF(h.total_lines, 0) * 100, 1) AS progressPct,
h.status,
h.status,
DECODE(h.status, 'PENDING','待理货','TALLYING','理货中','DONE','已完成', h.status) AS statusCn,
DECODE(h.status, 'PENDING','待理货','TALLYING','理货中','DONE','已完成', h.status) AS statusCn,
-- 未理货明细
-- 未理货明细(也可能为 NULL,建议一并处理)
COALESCE(
(SELECT LISTAGG(ol.item_name || '(' || (ol.order_qty - ol.tally_qty) || ')', '; ')
(SELECT LISTAGG(ol.item_name || '(' || (ol.order_qty - ol.tally_qty) || ')', '; ')
WITHIN GROUP (ORDER BY ol.line_no)
WITHIN GROUP (ORDER BY ol.line_no)
FROM T_DOC_outbound_scan_DETAIL ol
FROM T_DOC_outbound_scan_DETAIL ol
WHERE ol.order_no = h.order_no AND ol.status != 'DONE') AS pendingItems,
WHERE ol.order_no = h.order_no AND ol.status != 'DONE'),
'无未理货明细'
) AS pendingItems,
-- 未理货箱号
-- 未理货箱号
COALESCE(
(SELECT LISTAGG(b.box_no, ',') WITHIN GROUP (ORDER BY b.box_no)
(SELECT LISTAGG(b.box_no, ',') WITHIN GROUP (ORDER BY b.box_no)
FROM T_DOC_outbound_box b
FROM T_DOC_outbound_box b
WHERE b.order_no = h.order_no AND b.status != 'DONE') AS pendingBoxes,
WHERE b.order_no = h.order_no AND b.status != 'DONE'),
-- 未理货追溯码数
''
) AS pendingBoxes,
-- 未理货追溯码数(本身为 COUNT,理论上返回 0,但加 COALESCE 更安全)
COALESCE(
(SELECT COUNT(*)
(SELECT COUNT(*)
FROM T_DOC_outbound_tracecode t
FROM T_DOC_outbound_tracecode t
WHERE t.order_no = h.order_no AND t.status = 'PENDING') AS pendingTraces
WHERE t.order_no = h.order_no AND t.status = 'PENDING'),
0
) AS pendingTraces
FROM T_DOC_outbound_scan_HEADER h
FROM T_DOC_outbound_scan_HEADER h
WHERE 1=1
WHERE 1=1
<if
test=
"customerName != null and customerName != ''"
>
<if
test=
"customerName != null and customerName != ''"
>
...
@@ -145,6 +185,9 @@
...
@@ -145,6 +185,9 @@
<if
test=
"endTime != null"
>
<if
test=
"endTime != null"
>
AND h.create_time
<![CDATA[ <= ]]>
#{endTime, jdbcType=TIMESTAMP}
AND h.create_time
<![CDATA[ <= ]]>
#{endTime, jdbcType=TIMESTAMP}
</if>
</if>
<if
test=
"scanUser != null and scanUser != ''"
>
and h.scan_user= #{scanUser}
</if>
<!-- 如果默认不查已完成,可加 -->
<!-- 如果默认不查已完成,可加 -->
<!-- AND h.status != 'DONE' -->
<!-- AND h.status != 'DONE' -->
ORDER BY h.status, h.create_time DESC
ORDER BY h.status, h.create_time DESC
...
@@ -159,5 +202,8 @@
...
@@ -159,5 +202,8 @@
<foreach
item=
"orderid"
collection=
"orderids"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"orderid"
collection=
"orderids"
open=
"("
separator=
","
close=
")"
>
#{orderid}
#{orderid}
</foreach>
</foreach>
<if
test=
"scanUser != null and scanUser != ''"
>
and h.scan_user= #{scanUser}
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
View file @
3d0659cd
...
@@ -81,6 +81,9 @@
...
@@ -81,6 +81,9 @@
LEFT JOIN T_DOC_outbound_scan_HEADER h
LEFT JOIN T_DOC_outbound_scan_HEADER h
ON t.organizationid = h.organizationid AND t.order_no = h.order_no
ON t.organizationid = h.organizationid AND t.order_no = h.order_no
WHERE t.trace_code = #{traceCode}
WHERE t.trace_code = #{traceCode}
<if
test=
"scanUser != null and scanUser != ''"
>
and h.scan_user= #{scanUser}
</if>
</select>
</select>
<select
id=
"selectCustomerItem"
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.entity.CustomerItem"
>
<select
id=
"selectCustomerItem"
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.entity.CustomerItem"
>
SELECT
SELECT
...
@@ -98,5 +101,9 @@
...
@@ -98,5 +101,9 @@
LEFT JOIN T_DOC_outbound_scan_DETAIL d
LEFT JOIN T_DOC_outbound_scan_DETAIL d
ON d.item_code = t.item_code AND t.order_no = t.order_no and t.organizationid = d.organizationid
ON d.item_code = t.item_code AND t.order_no = t.order_no and t.organizationid = d.organizationid
WHERE trace_code = #{traceCode}
WHERE trace_code = #{traceCode}
<if
test=
"scanUser != null and scanUser != ''"
>
and h.scan_user= #{scanUser}
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
View file @
3d0659cd
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
<!-- 调用存储过程 -->
<!-- 调用存储过程 -->
<select
id=
"executeScan"
statementType=
"CALLABLE"
parameterType=
"map"
>
<select
id=
"executeScan"
statementType=
"CALLABLE"
parameterType=
"map"
>
{call PAK_OUTBOUND_SCAN.P_SCAN_EXECUTE(
{call PAK_OUTBOUND_SCAN.P_SCAN_EXECUTE(
#{p_session_id, mode=IN, jdbcType=NUMERIC},
#{p_scan_code, mode=IN, jdbcType=VARCHAR},
#{p_scan_code, mode=IN, jdbcType=VARCHAR},
#{P_AUTO_CONFIRM, mode=IN, jdbcType=VARCHAR},
#{p_user_id, mode=IN, jdbcType=VARCHAR},
#{p_out_scan_type, mode=OUT, jdbcType=VARCHAR},
#{p_out_scan_type, mode=OUT, jdbcType=VARCHAR},
#{p_out_match_type, mode=OUT, jdbcType=VARCHAR},
#{p_out_match_type, mode=OUT, jdbcType=VARCHAR},
#{p_out_items, mode=OUT, jdbcType=CURSOR, javaType=java.sql.ResultSet, resultMap=itemDetailMap},
#{p_out_items, mode=OUT, jdbcType=CURSOR, javaType=java.sql.ResultSet, resultMap=itemDetailMap},
...
...
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