Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
胡懿
warehouse
Commits
e21e03b1
Commit
e21e03b1
authored
Feb 24, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码findlist增加根据货品信息查询
parent
00f7e678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
QrCodeMapper.xml
...plus/modules/warehouse/qrcode/mapper/xml/QrCodeMapper.xml
+31
-3
No files found.
src/main/java/com/jeeplus/modules/warehouse/qrcode/mapper/xml/QrCodeMapper.xml
View file @
e21e03b1
...
...
@@ -13,11 +13,24 @@
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag"
a.del_flag AS "delFlag",
type.id AS "goodsInfo.type.id",
type.code AS "goodsInfo.type.code",
type.name AS "goodsInfo.type.name",
gi.id AS "goodsInfo.id",
gi.NAME AS "goodsInfo.name",
gi.model AS "goodsInfo.model",
gi.amount AS "goodsInfo.amount",
gi.goods_id AS "goodsInfo.goods.id",
g.batch_num AS "goodsInfo.goods.batchNum"
</sql>
<sql
id=
"qrCodeJoins"
>
LEFT JOIN t_wh_goods_info gi ON a.goods_info_id = gi.id
LEFT JOIN t_wh_material_type type ON type.id = gi.type_id
LEFT JOIN t_wh_goods g ON g.id = gi.goods_id
</sql>
...
...
@@ -38,7 +51,22 @@
a.del_flag = #{DEL_FLAG_NORMAL}
${dataScope}
<if
test=
"code != null and code != ''"
>
AND a.code = #{code}
AND a.code like concat('%',#{code},'%')
</if>
<if
test=
"goodsInfo.goods.batchNum != null and goodsInfo.goods.batchNum != ''"
>
AND g.batch_num = #{goodsInfo.goods.batchNum}
</if>
<if
test=
"goodsInfo.type.id != null and goodsInfo.type.id != ''"
>
AND gi.type_id = #{goodsInfo.type.id}
</if>
<if
test=
"state != null and state != ''"
>
AND a.state = #{state}
</if>
<if
test=
"goodsInfo.modelList != null and goodsInfo.modelList.size() != 0"
>
AND
<foreach
collection=
"goodsInfo.modelList"
item=
"model"
index=
"index"
separator=
" AND"
open=
"("
close=
")"
>
gi.model like concat('%',#{model},'%')
</foreach>
</if>
</where>
<choose>
...
...
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