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
f76576e6
Commit
f76576e6
authored
Jun 30, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改箱码结构1对多 追溯应该是1对1,测试数据有问题导致1对多
parent
dc144818
Pipeline
#828
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/OutboundController.java
.../module/cargo/outbound/controller/OutboundController.java
+2
-2
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
.../tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
+3
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/OutboundOrderService.java
...p/module/cargo/outbound/service/OutboundOrderService.java
+1
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
...cargo/outbound/service/impl/OutboundOrderServiceImpl.java
+2
-2
No files found.
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/controller/OutboundController.java
View file @
f76576e6
...
...
@@ -63,7 +63,7 @@ public class OutboundController {
* @return
*/
@PostMapping
(
"/box/info"
)
public
Result
<
BoxInfoVo
>
getBoxInfo
(
@RequestBody
@Valid
BoxInfoReq
req
,
public
Result
<
List
<
BoxInfoVo
>
>
getBoxInfo
(
@RequestBody
@Valid
BoxInfoReq
req
,
@RequestAttribute
(
"userId"
)
String
userId
)
{
log
.
info
(
"userid:"
+
userId
+
"-----------查询箱码信息:"
+
req
.
toString
());
return
Result
.
success
(
outboundOrderService
.
getBoxInfo
(
req
.
getTraceId
()));
...
...
@@ -94,7 +94,7 @@ public class OutboundController {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
type
=
outboundOrderService
.
getIdType
(
req
.
getCode
());
if
(
StringUtils
.
isNotEmpty
(
type
)&&
"BOX"
.
equals
(
type
))
{
BoxInfoVo
data
=
outboundOrderService
.
getBoxInfo
(
req
.
getCode
());
List
<
BoxInfoVo
>
data
=
outboundOrderService
.
getBoxInfo
(
req
.
getCode
());
map
.
put
(
"data"
,
data
);
map
.
put
(
"type"
,
"box"
);
if
(
data
!=
null
){
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
View file @
f76576e6
...
...
@@ -7,8 +7,10 @@ import com.ekingwin.tms_app.module.cargo.outbound.vo.BoxInfoVo;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
public
interface
OutboundBoxMapper
extends
BaseMapper
<
OutboundBox
>
{
BoxInfoVo
selectBoxInfoWithDetails
(
@Param
(
"traceId"
)
String
traceId
);
List
<
BoxInfoVo
>
selectBoxInfoWithDetails
(
@Param
(
"traceId"
)
String
traceId
);
@Select
(
"SELECT PAK_OUTBOUND_SCAN.F_DETECT_SCAN_TYPE(#{id}) FROM DUAL"
)
String
selectIdType
(
@Param
(
"id"
)
String
ID
);
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/OutboundOrderService.java
View file @
f76576e6
...
...
@@ -20,7 +20,7 @@ public interface OutboundOrderService {
public
List
<
OutboundOrderDetail
>
listOrderDetails
(
String
orderNo
);
public
BoxInfoVo
getBoxInfo
(
String
traceId
);
public
List
<
BoxInfoVo
>
getBoxInfo
(
String
traceId
);
public
String
getIdType
(
String
traceId
);
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
);
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
View file @
f76576e6
...
...
@@ -73,8 +73,8 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
// 3. 查询箱信息(含箱内物料)
@Override
public
BoxInfoVo
getBoxInfo
(
String
traceId
)
{
BoxInfoVo
info
=
boxMapper
.
selectBoxInfoWithDetails
(
traceId
);
public
List
<
BoxInfoVo
>
getBoxInfo
(
String
traceId
)
{
List
<
BoxInfoVo
>
info
=
boxMapper
.
selectBoxInfoWithDetails
(
traceId
);
if
(
info
==
null
)
{
throw
new
RuntimeException
(
"箱号不存在"
);
...
...
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