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
a35799a4
提交
a35799a4
authored
11月 08, 2023
作者:
zhangqiliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
仓库管理的查询的优化
父级
ac22758b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
63 行增加
和
59 行删除
+63
-59
src/main/java/com/boco/nbd/wios/manage/entity/bo/Warehouse.java
+6
-6
src/main/java/com/boco/nbd/wios/manage/entity/dto/WarehouseDTO.java
+2
-2
src/main/java/com/boco/nbd/wios/manage/entity/dto/WarehouseSaveQuery.java
+3
-3
src/main/resources/bootstrap-dev.yml
+1
-1
src/main/resources/bootstrap-test.yml
+1
-1
src/main/resources/mybatis/mapper/extdb/common/WarehouseMapperEx.xml
+50
-46
没有找到文件。
src/main/java/com/boco/nbd/wios/manage/entity/bo/Warehouse.java
查看文件 @
a35799a4
...
...
@@ -37,11 +37,11 @@ public class Warehouse extends CoreEntity {
private
Integer
isEnabled
;
private
Integer
superiorWarehouseId
;
private
String
superiorWarehouseId
;
private
String
receivePeople
;
private
Integer
receivePhone
;
private
String
receivePhone
;
private
String
receiveAddress
;
...
...
@@ -157,11 +157,11 @@ public class Warehouse extends CoreEntity {
this
.
isEnabled
=
isEnabled
;
}
public
Integer
getSuperiorWarehouseId
()
{
public
String
getSuperiorWarehouseId
()
{
return
superiorWarehouseId
;
}
public
void
setSuperiorWarehouseId
(
Integer
superiorWarehouseId
)
{
public
void
setSuperiorWarehouseId
(
String
superiorWarehouseId
)
{
this
.
superiorWarehouseId
=
superiorWarehouseId
;
}
...
...
@@ -173,11 +173,11 @@ public class Warehouse extends CoreEntity {
this
.
receivePeople
=
receivePeople
;
}
public
Integer
getReceivePhone
()
{
public
String
getReceivePhone
()
{
return
receivePhone
;
}
public
void
setReceivePhone
(
Integer
receivePhone
)
{
public
void
setReceivePhone
(
String
receivePhone
)
{
this
.
receivePhone
=
receivePhone
;
}
...
...
src/main/java/com/boco/nbd/wios/manage/entity/dto/WarehouseDTO.java
查看文件 @
a35799a4
...
...
@@ -70,11 +70,11 @@ public class WarehouseDTO implements Serializable {
@ApiModelProperty
(
value
=
"全路径名称"
)
private
String
pathName
;
@ApiModelProperty
(
value
=
"上级仓库ID"
)
private
Integer
superiorWarehouseId
;
private
String
superiorWarehouseId
;
@ApiModelProperty
(
value
=
"收件人"
)
private
String
receivePeople
;
@ApiModelProperty
(
value
=
"收件电话"
)
private
Integer
receivePhone
;
private
String
receivePhone
;
@ApiModelProperty
(
value
=
"收件地址"
)
private
String
receiveAddress
;
}
src/main/java/com/boco/nbd/wios/manage/entity/dto/WarehouseSaveQuery.java
查看文件 @
a35799a4
...
...
@@ -50,7 +50,7 @@ public class WarehouseSaveQuery {
@ApiModelProperty
(
value
=
"收件人"
)
private
String
receivePeople
;
@ApiModelProperty
(
value
=
"收件电话"
)
private
Integer
receivePhone
;
private
String
receivePhone
;
@ApiModelProperty
(
value
=
"收件地址"
)
private
String
receiveAddress
;
...
...
@@ -151,11 +151,11 @@ public class WarehouseSaveQuery {
this
.
receivePeople
=
receivePeople
;
}
public
Integer
getReceivePhone
()
{
public
String
getReceivePhone
()
{
return
receivePhone
;
}
public
void
setReceivePhone
(
Integer
receivePhone
)
{
public
void
setReceivePhone
(
String
receivePhone
)
{
this
.
receivePhone
=
receivePhone
;
}
...
...
src/main/resources/bootstrap-dev.yml
查看文件 @
a35799a4
server
:
port
:
303
5
0
port
:
303
6
0
spring
:
application
:
...
...
src/main/resources/bootstrap-test.yml
查看文件 @
a35799a4
server
:
port
:
303
5
0
port
:
303
6
0
spring
:
application
:
...
...
src/main/resources/mybatis/mapper/extdb/common/WarehouseMapperEx.xml
查看文件 @
a35799a4
...
...
@@ -67,56 +67,60 @@
<select
id=
"qryWarehouseList"
parameterType=
"string"
resultType=
"com.boco.nbd.wios.manage.entity.bo.WarehouseEx"
>
select
tw.id,
tw.appkey,
tw.warehouse_leven_id,
tw.name,
tw.area,
tw.service_provider,
tw.warehouse_attribution,
tw.msg,
tw.status,
tw.is_enabled,
tw.create_time,
tw.create_account,
tw.modify_account,
tw.modify_time,
twl.parent_id parentId,
twl.path_code pathCode,
twl.path_name pathName
tw.id,
tw.appkey,
tw.warehouse_leven_id,
tw.name,
tw.area,
tw.service_provider,
tw.warehouse_attribution,
tw.msg,
tw.status,
tw.is_enabled,
tw.create_time,
tw.create_account,
tw.modify_account,
tw.modify_time,
tw.superior_warehouse_id,
tw.receive_people,
tw.receive_phone,
tw.receive_address,
twl.parent_id parentId,
twl.path_code pathCode,
twl.path_name pathName
from
t_warehouse tw
LEFT JOIN t_warehouse_leven twl on tw.warehouse_leven_id = twl.id
where
tw.status = 1
and twl.`status` = 1
and tw.appkey = #{appkey}
<if
test=
"id != null and id != ''"
>
and tw.id = #{id}
</if>
<if
test=
"isEnable != null"
>
and tw.is_enabled = #{isEnable}
</if>
<if
test=
"serviceProviders != null and serviceProviders.size() > 0"
>
and tw.service_provider in
<foreach
collection=
"serviceProviders"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"area != null and area != ''"
>
and tw.area = #{area}
</if>
<if
test=
"warehouseAttribution != null and warehouseAttribution != ''"
>
and tw.warehouse_attribution = #{warehouseAttribution}
</if>
<if
test=
"name != null and name != ''"
>
and tw.name like CONCAT('%',#{name},'%')
</if>
<if
test=
"warehouseLevenId != null and warehouseLevenId != '' "
>
and tw.warehouse_leven_id = #{warehouseLevenId}
</if>
order by tw.create_time desc
tw.status = 1
and twl.`status` = 1
and tw.appkey = #{appkey}
<if
test=
"id != null and id != ''"
>
and tw.id = #{id}
</if>
<if
test=
"isEnable != null"
>
and tw.is_enabled = #{isEnable}
</if>
<if
test=
"serviceProviders != null and serviceProviders.size() > 0"
>
and tw.service_provider in
<foreach
collection=
"serviceProviders"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"area != null and area != ''"
>
and tw.area = #{area}
</if>
<if
test=
"warehouseAttribution != null and warehouseAttribution != ''"
>
and tw.warehouse_attribution = #{warehouseAttribution}
</if>
<if
test=
"name != null and name != ''"
>
and tw.name like CONCAT('%',#{name},'%')
</if>
<if
test=
"warehouseLevenId != null and warehouseLevenId != '' "
>
and tw.warehouse_leven_id = #{warehouseLevenId}
</if>
order by tw.create_time desc
</select>
<select
id=
"qryWarehouseLeven"
resultType=
"com.boco.nbd.wios.manage.entity.bo.WarehouseLeven"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论