Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mini-wms
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
周海峰
mini-wms
Commits
3319778d
Commit
3319778d
authored
Dec 16, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘点、入库相关查询修改
parent
61009d61
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
19 行增加
和
10 行删除
+19
-10
ruoyi-admin-vue/src/views/inventory/stocktakes/index.vue
+1
-1
ruoyi-admin/src/main/resources/application-druid.yml
+3
-3
ruoyi-admin/src/main/resources/application.yml
+2
-2
ruoyi-inventory/src/main/java/com/ruoyi/inventory/controller/WarehousesController.java
+5
-0
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/Warehouses.java
+4
-0
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrderItemsMapper.xml
+2
-2
ruoyi-inventory/src/main/resources/mapper/inventory/WarehousesMapper.xml
+2
-2
没有找到文件。
ruoyi-admin-vue/src/views/inventory/stocktakes/index.vue
View file @
3319778d
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
type
=
"text"
type
=
"text"
icon
=
"el-icon-edit"
icon
=
"el-icon-edit"
@
click
=
"handleCheck(scope.row)"
@
click
=
"handleCheck(scope.row)"
v
-
if
=
"scope.row.stocktakeStatus
=== '1
'"
v
-
if
=
"scope.row.stocktakeStatus
!== '3
'"
v
-
hasPermi
=
"['inventory:stocktakes:check']"
v
-
hasPermi
=
"['inventory:stocktakes:check']"
>
盘点
<
/el-button
>
>
盘点
<
/el-button
>
<
el
-
button
<
el
-
button
...
...
ruoyi-admin/src/main/resources/application-druid.yml
View file @
3319778d
...
@@ -9,9 +9,9 @@ spring:
...
@@ -9,9 +9,9 @@ spring:
master
:
master
:
# 数据库连接地址
# 数据库连接地址
#生產
#生產
#
url: jdbc:mysql://172.19.1.150:9012/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false
#
url: jdbc:mysql://172.19.1.150:9012/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false
#
username: root # 数据库用户名
#
username: root # 数据库用户名
#
password: 'Aa123456'
#
password: 'Aa123456'
#測試
#測試
url
:
jdbc:mysql://demo.docmis.cn:23500/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true
url
:
jdbc:mysql://demo.docmis.cn:23500/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true
username
:
root
username
:
root
...
...
ruoyi-admin/src/main/resources/application.yml
View file @
3319778d
...
@@ -41,7 +41,7 @@ logging:
...
@@ -41,7 +41,7 @@ logging:
user
:
user
:
password
:
password
:
# 密码最大错误次数
# 密码最大错误次数
maxRetryCount
:
5
maxRetryCount
:
30
# 密码锁定时间(默认10分钟)
# 密码锁定时间(默认10分钟)
lockTime
:
10
lockTime
:
10
...
@@ -124,7 +124,7 @@ referer:
...
@@ -124,7 +124,7 @@ referer:
# 防盗链开关
# 防盗链开关
enabled
:
false
enabled
:
false
# 允许的域名列表
# 允许的域名列表
allowed-domains
:
localhost,127.0.0.1
,ruoyi.vip,www.ruoyi.vip
allowed-domains
:
localhost,127.0.0.1
# 防止XSS攻击
# 防止XSS攻击
xss
:
xss
:
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/controller/WarehousesController.java
View file @
3319778d
...
@@ -4,6 +4,8 @@ import java.util.Collections;
...
@@ -4,6 +4,8 @@ import java.util.Collections;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.common.config.WarehouseConfig
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -36,6 +38,7 @@ public class WarehousesController extends BaseController
...
@@ -36,6 +38,7 @@ public class WarehousesController extends BaseController
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
Warehouses
warehouses
)
public
TableDataInfo
list
(
Warehouses
warehouses
)
{
{
warehouses
.
setLocalId
(
WarehouseConfig
.
DEFAULT_WAREHOUSE_ID
);
startPage
();
startPage
();
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
...
@@ -49,6 +52,7 @@ public class WarehousesController extends BaseController
...
@@ -49,6 +52,7 @@ public class WarehousesController extends BaseController
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
Warehouses
warehouses
)
public
void
export
(
HttpServletResponse
response
,
Warehouses
warehouses
)
{
{
warehouses
.
setLocalId
(
WarehouseConfig
.
DEFAULT_WAREHOUSE_ID
);
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
ExcelUtil
<
Warehouses
>
util
=
new
ExcelUtil
<
Warehouses
>(
Warehouses
.
class
);
ExcelUtil
<
Warehouses
>
util
=
new
ExcelUtil
<
Warehouses
>(
Warehouses
.
class
);
util
.
exportExcel
(
response
,
list
,
"仓库数据"
);
util
.
exportExcel
(
response
,
list
,
"仓库数据"
);
...
@@ -120,6 +124,7 @@ public class WarehousesController extends BaseController
...
@@ -120,6 +124,7 @@ public class WarehousesController extends BaseController
@GetMapping
(
"/listForSelector"
)
@GetMapping
(
"/listForSelector"
)
public
TableDataInfo
listForSelector
(
Warehouses
warehouses
)
public
TableDataInfo
listForSelector
(
Warehouses
warehouses
)
{
{
warehouses
.
setLocalId
(
WarehouseConfig
.
DEFAULT_WAREHOUSE_ID
);
startPage
();
startPage
();
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
List
<
Warehouses
>
list
=
warehousesService
.
selectWarehousesList
(
warehouses
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/Warehouses.java
View file @
3319778d
package
com
.
ruoyi
.
inventory
.
domain
;
package
com
.
ruoyi
.
inventory
.
domain
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.annotation.Excel
;
...
@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
...
@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @author ruoyi
* @date 2025-12-01
* @date 2025-12-01
*/
*/
@Data
public
class
Warehouses
extends
BaseEntity
public
class
Warehouses
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -68,6 +70,8 @@ public class Warehouses extends BaseEntity
...
@@ -68,6 +70,8 @@ public class Warehouses extends BaseEntity
/** 排序号 */
/** 排序号 */
private
String
updateUserCode
;
private
String
updateUserCode
;
private
String
localId
;
public
void
setId
(
String
id
)
public
void
setId
(
String
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
...
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrderItemsMapper.xml
View file @
3319778d
...
@@ -364,8 +364,8 @@
...
@@ -364,8 +364,8 @@
FROM inbound_orders io
FROM inbound_orders io
INNER JOIN inbound_order_items ioi ON io.id = ioi.inbound_order_id
INNER JOIN inbound_order_items ioi ON io.id = ioi.inbound_order_id
INNER JOIN materials ms ON ms.id = ioi.material_id
INNER JOIN materials ms ON ms.id = ioi.material_id
inner
join warehouses w on ioi.warehouse_id = w.id
left
join warehouses w on ioi.warehouse_id = w.id
inner
join storage_locations sl on ioi.location_id = sl.id
left
join storage_locations sl on ioi.location_id = sl.id
<where>
<where>
io.order_status = 2
io.order_status = 2
<if
test=
"sapNo != null and sapNo != ''"
>
<if
test=
"sapNo != null and sapNo != ''"
>
...
...
ruoyi-inventory/src/main/resources/mapper/inventory/WarehousesMapper.xml
View file @
3319778d
...
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectWarehousesList"
parameterType=
"Warehouses"
resultMap=
"WarehousesResult"
>
<select
id=
"selectWarehousesList"
parameterType=
"Warehouses"
resultMap=
"WarehousesResult"
>
<include
refid=
"selectWarehousesVo"
/>
<include
refid=
"selectWarehousesVo"
/>
where is_used=1
where is_used=1
and id != #{localId}
<if
test=
"warehousesCode != null and warehousesCode != ''"
>
and warehouses_code = #{warehousesCode}
</if>
<if
test=
"warehousesCode != null and warehousesCode != ''"
>
and warehouses_code = #{warehousesCode}
</if>
<if
test=
"warehousesName != null and warehousesName != ''"
>
and warehouses_name like concat('%', #{warehousesName}, '%')
</if>
<if
test=
"warehousesName != null and warehousesName != ''"
>
and warehouses_name like concat('%', #{warehousesName}, '%')
</if>
<if
test=
"warehouseType != null "
>
and warehouse_type = #{warehouseType}
</if>
<if
test=
"warehouseType != null "
>
and warehouse_type = #{warehouseType}
</if>
...
@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<!-- 获取仓库 的 warehouses_code 仓库编码 warehouses_name 做成字典-->
<!-- 获取仓库 的 warehouses_code 仓库编码 warehouses_name 做成字典-->
<select
id=
"getMapList"
resultType=
"java.util.Map"
>
<select
id=
"getMapList"
resultType=
"java.util.Map"
>
select id, IFNULL(warehouses_name, '') as warehouses_name from warehouses where is_used = 1;
select id, IFNULL(warehouses_name, '') as warehouses_name from warehouses where is_used = 1
and id != 'local'
;
</select>
</select>
<insert
id=
"insertWarehouses"
parameterType=
"Warehouses"
>
<insert
id=
"insertWarehouses"
parameterType=
"Warehouses"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论