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
04dd8068
Commit
04dd8068
authored
Jul 07, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加追溯码客户商品信息
parent
82c5d7d3
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
8 deletions
+46
-8
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
.../tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
+2
-2
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundTracecodeMapper.java
...pp/module/cargo/outbound/dao/OutboundTracecodeMapper.java
+4
-2
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/BoxChangLpnReq.java
...win/tms_app/module/cargo/outbound/dto/BoxChangLpnReq.java
+1
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/TraceCodeRemarkReq.java
...tms_app/module/cargo/outbound/dto/TraceCodeRemarkReq.java
+1
-1
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/CustomerItem.java
...in/tms_app/module/cargo/outbound/entity/CustomerItem.java
+16
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/OutboundTracecode.java
...s_app/module/cargo/outbound/entity/OutboundTracecode.java
+2
-0
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
...cargo/outbound/service/impl/OutboundOrderServiceImpl.java
+3
-2
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
...sources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
+17
-0
No files found.
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/OutboundBoxMapper.java
View file @
04dd8068
...
...
@@ -16,6 +16,6 @@ public interface OutboundBoxMapper extends BaseMapper<OutboundBox> {
@Select
(
"SELECT PAK_OUTBOUND_SCAN.F_DETECT_SCAN_TYPE(#{id}) FROM DUAL"
)
String
selectIdType
(
@Param
(
"id"
)
String
ID
);
@Update
(
"update T_DOC_OUTBOUND_BOX_DETAIL set chang_lpn= #{chang_lpn} where traceId=#{traceId} and
lot_no =#{lotNo
}"
)
void
updateChangLpn
(
@Param
(
"changLpn"
)
String
changLpn
,
@Param
(
"traceId"
)
String
traceId
,
@Param
(
"
lotNo"
)
String
lotNo
);
@Update
(
"update T_DOC_OUTBOUND_BOX_DETAIL set chang_lpn= #{chang_lpn} where traceId=#{traceId} and
item_code =#{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/OutboundTracecodeMapper.java
View file @
04dd8068
package
com
.
ekingwin
.
tms_app
.
module
.
cargo
.
outbound
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ekingwin.tms_app.module.cargo.outbound.entity.CustomerItem
;
import
com.ekingwin.tms_app.module.cargo.outbound.entity.OutboundTracecode
;
import
com.ekingwin.tms_app.module.cargo.outbound.vo.TracecodeDetailVo
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -11,7 +12,8 @@ public interface OutboundTracecodeMapper extends BaseMapper<OutboundTracecode> {
OutboundTracecode
selectByTraceCode
(
@Param
(
"traceCode"
)
String
traceCode
);
TracecodeDetailVo
selectTracecodeDetail
(
@Param
(
"traceCode"
)
String
traceCode
);
@Update
(
"update T_DOC_outbound_tracecode set remark = #{remark} where trace_code = #{traceCode} and
lot_no=#{lotNo
}"
)
void
updateTraceCodeRemark
(
@Param
(
"traceCode"
)
String
traceCode
,
@Param
(
"
remark"
)
String
lotNo
,
@Param
(
"remark"
)
String
remark
);
@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
);
CustomerItem
selectCustomerItem
(
@Param
(
"traceCode"
)
String
traceCode
);
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/BoxChangLpnReq.java
View file @
04dd8068
...
...
@@ -9,5 +9,5 @@ public class BoxChangLpnReq extends BoxInfoReq{
@NotBlank
private
String
changLpn
;
@NotBlank
private
String
lotNo
;
private
String
itemCode
;
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dto/TraceCodeRemarkReq.java
View file @
04dd8068
...
...
@@ -8,5 +8,5 @@ import javax.validation.constraints.NotBlank;
public
class
TraceCodeRemarkReq
extends
TracecodeInfoReq
{
@NotBlank
private
String
remark
;
private
String
lotNo
;
private
String
itemCode
;
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/CustomerItem.java
0 → 100644
View file @
04dd8068
package
com
.
ekingwin
.
tms_app
.
module
.
cargo
.
outbound
.
entity
;
import
lombok.Data
;
@Data
public
class
CustomerItem
{
private
String
customerName
;
private
String
customerCode
;
private
String
itemCode
;
private
String
itemName
;
private
String
lotNo
;
private
String
tallyQty
;
private
String
yard_no
;
//货道库位
private
String
customerOrderNo
;
//货道库位
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/entity/OutboundTracecode.java
View file @
04dd8068
...
...
@@ -3,6 +3,7 @@ package com.ekingwin.tms_app.module.cargo.outbound.entity;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.ekingwin.tms_app.module.cargo.entity.Customer
;
import
lombok.Data
;
import
java.util.Date
;
...
...
@@ -30,5 +31,6 @@ public class OutboundTracecode {
private
Date
scannedTime
;
private
Date
createTime
;
private
String
remark
;
//备注
private
CustomerItem
customerItem
;
}
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/OutboundOrderServiceImpl.java
View file @
04dd8068
...
...
@@ -86,7 +86,7 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
@Override
public
void
updateChangLpn
(
BoxChangLpnReq
req
){
boxMapper
.
updateChangLpn
(
req
.
getChangLpn
(),
req
.
getTraceId
(),
req
.
get
LotNo
());
boxMapper
.
updateChangLpn
(
req
.
getChangLpn
(),
req
.
getTraceId
(),
req
.
get
ItemCode
());
}
@Override
public
String
getIdType
(
String
traceId
)
{
...
...
@@ -97,6 +97,7 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
@Override
public
OutboundTracecode
getTracecodeInfo
(
String
traceCode
)
{
OutboundTracecode
trace
=
tracecodeMapper
.
selectByTraceCode
(
traceCode
);
trace
.
setCustomerItem
(
tracecodeMapper
.
selectCustomerItem
(
trace
.
getTraceId
()));
if
(
trace
==
null
)
{
throw
new
RuntimeException
(
"追溯码不存在"
);
}
...
...
@@ -105,7 +106,7 @@ public class OutboundOrderServiceImpl implements OutboundOrderService {
@Override
public
void
updateRemark
(
TraceCodeRemarkReq
req
){
tracecodeMapper
.
updateTraceCodeRemark
(
req
.
getTraceCode
(),
req
.
get
LotNo
(),
req
.
getRemark
());
tracecodeMapper
.
updateTraceCodeRemark
(
req
.
getTraceCode
(),
req
.
get
ItemCode
(),
req
.
getRemark
());
}
// 5. 提交理货(更新箱、订单明细、订单头状态)
@Transactional
...
...
src/main/resources/mapper/cargo/outbound/OutboundTracecodeMapper.xml
View file @
04dd8068
...
...
@@ -82,4 +82,21 @@
ON t.organizationid = h.organizationid AND t.order_no = h.order_no
WHERE t.trace_code = #{traceCode}
</select>
<select
id=
"selectCustomerItem"
resultType=
"com.ekingwin.tms_app.module.cargo.outbound.entity.CustomerItem"
>
SELECT
h.customer_name AS customerName,
h.customer_code AS customerCode,
t.item_code AS itemCode,
t.item_name AS itemName,
t.lot_no AS lotNo,
d.tally_qty AS tallyQty,
d.yard_no AS yardNo,
h.CUSTOMER_ORDER_NO AS customerOrderNo
from T_DOC_outbound_tracecode t
LEFT JOIN T_DOC_outbound_scan_HEADER h
ON t.organizationid = h.organizationid AND h.order_no = t.order_no
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
WHERE trace_code = #{traceCode}
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment