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
20bbfaf0
Commit
20bbfaf0
authored
Feb 28, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘盈入库相关接口,物资领用出库、盘亏出库、直接出库、更新二维码状态
parent
0e5f32d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ProfitWarehousingController.java
...se/profitwarehousing/web/ProfitWarehousingController.java
+9
-4
No files found.
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/web/ProfitWarehousingController.java
View file @
20bbfaf0
...
...
@@ -16,6 +16,7 @@ import com.jeeplus.modules.warehouse.goods.entity.GoodsInfo;
import
com.jeeplus.modules.warehouse.profitwarehousing.entity.ProfitWarehousingInfo
;
import
com.jeeplus.modules.warehouse.profitwarehousing.mapper.ProfitWarehousingInfoMapper
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.service.QrCodeService
;
import
org.apache.shiro.authz.annotation.Logical
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -54,6 +55,9 @@ public class ProfitWarehousingController extends BaseController {
private
ProfitWarehousingService
profitWarehousingService
;
@Autowired
private
ProfitWarehousingInfoMapper
profitWarehousingInfoMapper
;
@Autowired
private
QrCodeService
qrCodeService
;
@ModelAttribute
public
ProfitWarehousing
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
...
...
@@ -288,11 +292,12 @@ public class ProfitWarehousingController extends BaseController {
j
.
setMsg
(
"请先生成二维码"
);
}
if
(
profitWarehousingInfo
.
getQrCode
()
!=
null
){
QrCode
qrCode
=
profitWarehousingInfo
.
getQrCode
();
QrCode
qrCode
=
qrCodeService
.
get
(
profitWarehousingInfo
.
getQrCode
().
getId
());
//刚生成未入库
if
(
Objects
.
equals
(
qrCode
.
getState
(),
"0"
)){
profitWarehousingService
.
inLedgerInfo
(
profitWarehousingInfo
);
//保存
}
}
//新增或编辑表单保存
profitWarehousingService
.
inLedgerInfo
(
profitWarehousingInfo
);
//保存
j
.
setSuccess
(
true
);
j
.
setMsg
(
"物资入帐成功"
);
return
j
;
...
...
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