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
e0530246
Commit
e0530246
authored
Sep 21, 2026
by
chew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加用户关联
parent
2127d84e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
31 deletions
+30
-31
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/ScanMapper.java
...kingwin/tms_app/module/cargo/outbound/dao/ScanMapper.java
+1
-4
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/ScanServiceImpl.java
...p/module/cargo/outbound/service/impl/ScanServiceImpl.java
+12
-13
src/main/resources/application-dev.properties
src/main/resources/application-dev.properties
+5
-2
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
+12
-12
No files found.
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/dao/ScanMapper.java
View file @
e0530246
...
...
@@ -24,10 +24,7 @@ public interface ScanMapper {
* - 字段非空时按 INSTR 逗号包含匹配(兼容 SCAN_HEADER 单值 vs 偏好逗号分隔多值)
*/
List
<
CustomerScanDetailVo
>
selectCustomerScanDetail
(
@Param
(
"customerAddr"
)
String
customerAddr
,
@Param
(
"scanUser"
)
String
scanUser
,
@Param
(
"orderType"
)
String
orderType
,
@Param
(
"reference5"
)
String
reference5
,
@Param
(
"temperatureclass"
)
String
temperatureclass
);
@Param
(
"scanUser"
)
String
scanUser
);
/**
* 查询 T_DOC_OUTBOUND_SCAN_HEADER 中所有出现过的 ORDERTYPE distinct 值(按字典序 ASC)
...
...
src/main/java/com/ekingwin/tms_app/module/cargo/outbound/service/impl/ScanServiceImpl.java
View file @
e0530246
...
...
@@ -94,21 +94,20 @@ public class ScanServiceImpl implements ScanService {
public
List
<
CustomerScanDetailVo
>
queryCustomerScanDetail
(
CustomerScanQueryReq
req
,
String
userId
)
{
// 默认按当前用户的偏好过滤(关联 TMP_OUTBOUND_SCAN_ORDERTYPE:orderType/reference5/temperatureclass)
// 显式传入 orderType 时优先使用(其余两个字段仍走偏好;如需全覆盖可手动改 XML)
String
orderType
=
req
.
getOrderType
()
;
String
orderType
=
null
;
String
reference5
=
null
;
String
temperatureclass
=
null
;
if
(
orderType
==
null
||
orderType
.
isEmpty
())
{
OrderTypeRecordVo
myType
=
orderTypeRecordMapper
.
selectByScanUser
(
userId
);
if
(
myType
!=
null
)
{
orderType
=
myType
.
getOrderType
();
reference5
=
myType
.
getReference5
();
temperatureclass
=
myType
.
getTemperatureclass
();
log
.
debug
(
"客户查询使用用户偏好 orderType={}, reference5={}, temperatureclass={}, userId={}"
,
orderType
,
reference5
,
temperatureclass
,
userId
);
}
}
return
scanMapper
.
selectCustomerScanDetail
(
req
.
getCustomerAddr
(),
userId
,
orderType
,
reference5
,
temperatureclass
);
// if (orderType == null || orderType.isEmpty()) {
// OrderTypeRecordVo myType = orderTypeRecordMapper.selectByScanUser(userId);
// if (myType != null) {
// orderType = myType.getOrderType();
// reference5 = myType.getReference5();
// temperatureclass = myType.getTemperatureclass();
// log.debug("客户查询使用用户偏好 orderType={}, reference5={}, temperatureclass={}, userId={}",
// orderType, reference5, temperatureclass, userId);
// }
// }
return
scanMapper
.
selectCustomerScanDetail
(
req
.
getCustomerAddr
(),
userId
);
}
@Override
...
...
src/main/resources/application-dev.properties
View file @
e0530246
...
...
@@ -50,8 +50,11 @@ spring.rabbitmq.publisher-returns=true
# ???????
spring.rabbitmq.listener.simple.acknowledge-mode
=
manual
# ?????SQL?????
logging.level.com.tms.auth.mapper
=
debug
# ===================== SQL日志打印(XML mapper SQL + 参数 + 结果行数)=====================
logging.level.com.ekingwin.tms_app.aidispatch.dao
=
debug
logging.level.com.ekingwin.tms_app.module.admin.dao
=
debug
logging.level.com.ekingwin.tms_app.module.cargo.dao
=
debug
logging.level.com.ekingwin.tms_app.module.cargo.outbound.dao
=
debug
logging.level.org.apache.ibatis
=
warn
logging.level.org.springframework
=
warn
logging.level.com.baomidou.mybatisplus
=
warn
\ No newline at end of file
src/main/resources/mapper/cargo/outbound/ScanMapper.xml
View file @
e0530246
...
...
@@ -85,18 +85,18 @@
-- AND h.scan_user = #{scanUser, jdbcType=VARCHAR}
AND NVL(d.TALLY_QTY, 0)
<![CDATA[ < ]]>
NVL(d.ORDER_QTY, 0)
<if
test=
"orderType != null and orderType != ''"
>
AND (NVL(h.ORDERTYPE, '') = ''
OR INSTR(',' || #{orderType, jdbcType=VARCHAR} || ',', ',' || h.ORDERTYPE || ',')
<![CDATA[ > ]]>
0)
</if
>
<if
test=
"reference5 != null and reference5 != ''"
>
AND (NVL(h.REFERENCE5, '') = ''
OR INSTR(',' || #{reference5, jdbcType=VARCHAR} || ',', ',' || h.REFERENCE5 || ',')
<![CDATA[ > ]]>
0)
</if
>
<if
test=
"temperatureclass != null and temperatureclass != ''"
>
AND (NVL(h.TEMPERATURECLASS, '') = ''
OR INSTR(',' || #{temperatureclass, jdbcType=VARCHAR} || ',', ',' || h.TEMPERATURECLASS || ',')
<![CDATA[ > ]]>
0)
</if
>
<!-- <if test="orderType != null and orderType != ''">--
>
<!-- AND (NVL(h.ORDERTYPE, '') = ''-->
<!-- OR INSTR(',' || #{orderType, jdbcType=VARCHAR} || ',', ',' || h.ORDERTYPE || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>--
>
<!-- <if test="reference5 != null and reference5 != ''">--
>
<!-- AND (NVL(h.REFERENCE5, '') = ''-->
<!-- OR INSTR(',' || #{reference5, jdbcType=VARCHAR} || ',', ',' || h.REFERENCE5 || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>--
>
<!-- <if test="temperatureclass != null and temperatureclass != ''">--
>
<!-- AND (NVL(h.TEMPERATURECLASS, '') = ''-->
<!-- OR INSTR(',' || #{temperatureclass, jdbcType=VARCHAR} || ',', ',' || h.TEMPERATURECLASS || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>--
>
AND EXISTS (SELECT 1 FROM TMP_OUTBOUND_SCAN_PERMISSION p
WHERE 1=1
<if
test=
"scanUser != null and scanUser != ''"
>
...
...
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