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
52009af7
Commit
52009af7
authored
Jun 08, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除领用明细
parent
ccf9d969
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
MaterialRequisitionInfoMapper.xml
...lrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
+1
-1
MaterialRequisitionService.java
...terialrequisition/service/MaterialRequisitionService.java
+12
-2
MaterialRequisitionController.java
...aterialrequisition/web/MaterialRequisitionController.java
+1
-6
No files found.
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
View file @
52009af7
...
...
@@ -121,7 +121,7 @@
<!--物理删除-->
<update
id=
"delete"
>
DELETE FROM t_wh_material_requisition_info
WHERE
material_requisition_id = #{materialRequisition.
id}
WHERE
id = #{
id}
</update>
<!--逻辑删除-->
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/service/MaterialRequisitionService.java
View file @
52009af7
...
...
@@ -70,12 +70,22 @@ public class MaterialRequisitionService extends CrudService<MaterialRequisitionM
public
void
save
(
MaterialRequisition
materialRequisition
)
{
materialRequisition
.
setStatus
(
"1"
);
super
.
save
(
materialRequisition
);
materialRequisitionInfoMapper
.
delete
(
new
MaterialRequisitionInfo
(
materialRequisition
));
for
(
MaterialRequisitionInfo
materialRequisitionInfo
:
materialRequisition
.
getMaterialRequisitionInfoList
()){
materialRequisitionInfo
.
setId
(
null
);
materialRequisitionInfo
.
setMaterialRequisition
(
materialRequisition
);
if
(
materialRequisitionInfo
.
getId
()
==
null
){
continue
;
}
if
(
MaterialRequisitionInfo
.
DEL_FLAG_NORMAL
.
equals
(
materialRequisitionInfo
.
getDelFlag
())){
if
(
StringUtils
.
isBlank
(
materialRequisitionInfo
.
getId
())){
materialRequisitionInfo
.
preInsert
();
materialRequisitionInfoMapper
.
insert
(
materialRequisitionInfo
);
}
else
{
materialRequisitionInfo
.
preUpdate
();
materialRequisitionInfoMapper
.
update
(
materialRequisitionInfo
);
}
}
else
{
materialRequisitionInfoMapper
.
delete
(
materialRequisitionInfo
);
}
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/web/MaterialRequisitionController.java
View file @
52009af7
...
...
@@ -20,12 +20,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
com.google.common.collect.Lists
;
...
...
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