Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
warehouse
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
苗卫卫
warehouse
Commits
6328a8f7
提交
6328a8f7
authored
11月 30, 2023
作者:
zhangqiliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.墙盒新增发货的时候,根据从订单表表中获取的物料编码到外联上获取物料名称
父级
3c2690a4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
src/main/java/com/boco/nbd/wios/manage/controller/WarehouseController.java
+6
-1
src/main/resources/mybatis/mapper/extdb/common/WarehouseMapperEx.xml
+2
-6
没有找到文件。
src/main/java/com/boco/nbd/wios/manage/controller/WarehouseController.java
查看文件 @
6328a8f7
...
...
@@ -23,6 +23,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.http.Header
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
...
...
@@ -410,8 +411,12 @@ public class WarehouseController {
*/
@PostMapping
(
value
=
"warehouse/detail"
)
@ApiOperation
(
value
=
"查询仓库详情"
)
public
BaseResponse
<
WarehouseDetail
>
warehouseDetail
(
String
id
)
{
public
BaseResponse
<
WarehouseDetail
>
warehouseDetail
(
String
id
,
String
materialCode
)
{
WarehouseDetail
warehouseDetail
=
warehouseMapperEx
.
warehouseDetailById
(
id
);
MaterialsEx
materials
=
materialsMapperEx
.
materialsByMaterialsCode
(
materialCode
);
if
(!
StringUtils
.
isEmpty
(
materials
)){
warehouseDetail
.
setMaterialsName
(
materials
.
getMaterialsName
());
}
return
new
BaseResponse
<
WarehouseDetail
>(
warehouseDetail
);
}
}
src/main/resources/mybatis/mapper/extdb/common/WarehouseMapperEx.xml
查看文件 @
6328a8f7
...
...
@@ -184,12 +184,7 @@
select id,name from t_warehouse where id = #{superiorWarehouseId}
</select>
<select
id=
"warehouseDetailById"
parameterType=
"string"
resultType=
"com.boco.nbd.wios.manage.entity.bo.WarehouseDetail"
>
select tw.id,tw.name,tw.receive_people,tw.receive_phone,ts.materials_name
from t_warehouse tw
left join t_warehouse_materials tm on tm.warehouse_id = tw.id
left join t_materials ts on ts.id = tm.materials_id
where tw.id = #{id}
GROUP BY tw.id
select id,name,receive_people,receive_phone from t_warehouse where id = #{id}
</select>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论