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
810f152b
Commit
810f152b
authored
Feb 24, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出库表调整,自动带入操作人、出库单号
parent
00f7e678
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
OutboundInfoMapper.xml
...ules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
+3
-1
OutboundController.java
...us/modules/warehouse/outbound/web/OutboundController.java
+10
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
View file @
810f152b
...
...
@@ -13,7 +13,8 @@
a.remarks AS "remarks",
ledgerInfo.name AS "ledgerInfo.name",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.type_id AS "ledgerInfo.typeId",
ledgerInfo.type_id AS "ledgerInfo.type.id",
tpye.name AS "ledgerInfo.type.name",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.amount AS "ledgerInfo.amount",
a.del_flag AS "delFlag"
...
...
@@ -21,6 +22,7 @@
<sql
id=
"outboundInfoJoins"
>
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
LEFT JOIN t_wh_material_type tpye ON ledgerInfo.type_id = tpye.id
</sql>
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/web/OutboundController.java
View file @
810f152b
...
...
@@ -5,11 +5,13 @@ package com.jeeplus.modules.warehouse.outbound.web;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.ConstraintViolationException
;
import
com.jeeplus.modules.sys.utils.UserUtils
;
import
org.apache.shiro.authz.annotation.Logical
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -86,6 +88,14 @@ public class OutboundController extends BaseController {
@RequiresPermissions
(
value
={
"warehouse:outbound:outbound:view"
,
"warehouse:outbound:outbound:add"
,
"warehouse:outbound:outbound:edit"
},
logical
=
Logical
.
OR
)
@RequestMapping
(
value
=
"form/{mode}"
)
public
String
form
(
@PathVariable
String
mode
,
Outbound
outbound
,
Model
model
)
{
if
(
Objects
.
equals
(
mode
,
"add"
)){
if
(
outbound
.
getNumber
()
==
null
||
Objects
.
equals
(
outbound
.
getNumber
(),
""
)){
outbound
.
setNumber
(
outboundService
.
createCKDH
());
}
if
(
outbound
.
getOperator
()
==
null
){
outbound
.
setOperator
(
UserUtils
.
getUser
());
}
}
model
.
addAttribute
(
"outbound"
,
outbound
);
model
.
addAttribute
(
"mode"
,
mode
);
return
"modules/warehouse/outbound/outboundForm"
;
...
...
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