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
581f74ce
Commit
581f74ce
authored
Feb 22, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c814b600
5f1d5398
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
GoodsService.java
...jeeplus/modules/warehouse/goods/service/GoodsService.java
+10
-0
GoodsController.java
.../jeeplus/modules/warehouse/goods/web/GoodsController.java
+19
-0
QrCodeMapper.xml
...plus/modules/warehouse/qrcode/mapper/xml/QrCodeMapper.xml
+7
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/goods/service/GoodsService.java
View file @
581f74ce
...
...
@@ -208,4 +208,13 @@ public class GoodsService extends CrudService<GoodsMapper, Goods> {
goods
.
setGoodsInfoList
(
goodsInfoList
);
return
goods
;
}
public
QrCode
getGIAndQCByTwoId
(
String
goodsInfoId
,
String
qrCodeId
)
{
GoodsInfo
goodsInfo
=
goodsInfoMapper
.
get
(
new
GoodsInfo
(
goodsInfoId
));
QrCode
qrCode
=
qrCodeMapper
.
get
(
new
QrCode
(
qrCodeId
));
if
(
null
!=
qrCode
)
{
qrCode
.
setGoodsInfo
(
goodsInfo
);
}
return
qrCode
;
}
}
\ No newline at end of file
src/main/java/com/jeeplus/modules/warehouse/goods/web/GoodsController.java
View file @
581f74ce
...
...
@@ -296,4 +296,22 @@ public class GoodsController extends BaseController {
return
j
;
}
/**
* 根据货品明细id和二维码id查询货品信息和二维码信息
* @param goodsInfoId
* @param qrCodeId
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"getGIAndQCByTwoId"
)
public
AjaxJson
getGIAndQCByTwoId
(
String
goodsInfoId
,
String
qrCodeId
)
{
AjaxJson
j
=
new
AjaxJson
();
//新增或编辑表单保存
QrCode
qrCode
=
goodsService
.
getGIAndQCByTwoId
(
goodsInfoId
,
qrCodeId
);
j
.
put
(
"qrCode"
,
qrCode
);
j
.
setSuccess
(
true
);
j
.
setMsg
(
"查询成功成功"
);
return
j
;
}
}
\ No newline at end of file
src/main/java/com/jeeplus/modules/warehouse/qrcode/mapper/xml/QrCodeMapper.xml
View file @
581f74ce
...
...
@@ -184,8 +184,14 @@
<if
test=
"goodsInfo.type.id != null and goodsInfo.type.id != ''"
>
AND gi.type_id = #{goodsInfo.type.id}
</if>
<if
test=
"goodsInfo.model != null and goodsInfo.model != ''"
>
<
!--<
if test="goodsInfo.model != null and goodsInfo.model != ''">
AND gi.model = #{goodsInfo.model}
</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