Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
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
赵剑炜
jyzb_platformV2
Commits
c2a88c93
Commit
c2a88c93
authored
Aug 04, 2023
by
李小惠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
4fb0c675
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
+4
-3
InventoryController.java
jyzb-biz/src/main/java/com/junmp/jyzb/controller/InventoryController.java
+3
-1
InventoryServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/InventoryServiceImpl.java
+1
-1
InventorySummaryServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/InventorySummaryServiceImpl.java
+0
-1
没有找到文件。
jyzb-biz/src/main/java/com/junmp/jyzb/controller/InventoryController.java
View file @
c2a88c93
...
@@ -7,11 +7,13 @@ import com.junmp.jyzb.entity.InventorySummary;
...
@@ -7,11 +7,13 @@ import com.junmp.jyzb.entity.InventorySummary;
import
com.junmp.jyzb.service.InventoryService
;
import
com.junmp.jyzb.service.InventoryService
;
import
com.junmp.jyzb.service.InventorySummaryService
;
import
com.junmp.jyzb.service.InventorySummaryService
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.jyzb.utils.ResponseResult
;
import
com.junmp.v2.common.bean.request.ValidationApi
;
import
com.junmp.v2.common.bean.response.ApiRes
;
import
com.junmp.v2.common.bean.response.ApiRes
;
import
com.junmp.v2.db.api.page.PageResult
;
import
com.junmp.v2.db.api.page.PageResult
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -32,7 +34,7 @@ public class InventoryController {
...
@@ -32,7 +34,7 @@ public class InventoryController {
@PostMapping
(
"/GetEquipmentInfo"
)
@PostMapping
(
"/GetEquipmentInfo"
)
@ApiOperation
(
"根据组织机构查询库存信息"
)
@ApiOperation
(
"根据组织机构查询库存信息"
)
public
ApiRes
<
PageResult
<
InventorySummary
>>
getEquipmentInfo
(
@RequestBody
InventorySumReq
req
)
{
public
ApiRes
<
PageResult
<
InventorySummary
>>
getEquipmentInfo
(
@RequestBody
@Validated
(
ValidationApi
.
edit
.
class
)
InventorySumReq
req
)
{
return
ApiRes
.
success
(
inventorySummaryService
.
getEquipmentInfo
(
req
));
return
ApiRes
.
success
(
inventorySummaryService
.
getEquipmentInfo
(
req
));
}
}
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/InventoryServiceImpl.java
View file @
c2a88c93
...
@@ -198,7 +198,7 @@ public class InventoryServiceImpl extends ServiceImpl<InventoryMapper, Inventory
...
@@ -198,7 +198,7 @@ public class InventoryServiceImpl extends ServiceImpl<InventoryMapper, Inventory
}
}
String
locationType
=
msg
.
get
(
"locationType"
).
toString
();
String
locationType
=
msg
.
get
(
"locationType"
).
toString
();
if
(!
locationType
.
equals
(
"warehouse"
)
&&
!
locationType
.
equals
(
"cabinet"
)){
if
(!
locationType
.
equals
(
"warehouse"
)
&&
!
locationType
.
equals
(
"cabinet"
)){
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"输入的locationType值有
�
"
);
return
new
ResponseResult
(
HttpStatus
.
ERROR
,
ReturnMsg
.
ERROR
,
"输入的locationType值有
误
"
);
}
else
if
(
locationType
.
equals
(
"warehouse"
)){
}
else
if
(
locationType
.
equals
(
"warehouse"
)){
warehouseService
.
setWarehouseInventory
(
msg
);
warehouseService
.
setWarehouseInventory
(
msg
);
}
else
if
(
locationType
.
equals
(
"cabinet"
)){
}
else
if
(
locationType
.
equals
(
"cabinet"
)){
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/InventorySummaryServiceImpl.java
View file @
c2a88c93
...
@@ -42,7 +42,6 @@ public class InventorySummaryServiceImpl extends ServiceImpl<InventorySummaryMa
...
@@ -42,7 +42,6 @@ public class InventorySummaryServiceImpl extends ServiceImpl<InventorySummaryMa
//号型
//号型
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getSizeId
()),
InventorySummary:
:
getSizeId
,
req
.
getSizeId
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getSizeId
()),
InventorySummary:
:
getSizeId
,
req
.
getSizeId
());
wrapper
.
orderByDesc
(
InventorySummary:
:
getUpdateTime
);
wrapper
.
orderByDesc
(
InventorySummary:
:
getUpdateTime
);
return
wrapper
;
return
wrapper
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论