Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
dc8ff7e6
Commit
dc8ff7e6
authored
Nov 02, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加通过当前登录人所在单位筛选
parent
7fc55c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
MaterialServiceImpl.java
...boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
+5
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
View file @
dc8ff7e6
...
@@ -36,11 +36,13 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
...
@@ -36,11 +36,13 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
AttachmentServiceImpl
attachmentServiceImpl
;
AttachmentServiceImpl
attachmentServiceImpl
;
@Autowired
@Autowired
AttachmentMapper
attachmentMapper
;
AttachmentMapper
attachmentMapper
;
@Autowired
OrgServiceImpl
orgService
;
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
MaterialDto
>
queryForMaterialPage
(
Page
<
MaterialDto
>
page
,
String
name
,
String
code
)
{
public
Page
<
MaterialDto
>
queryForMaterialPage
(
Page
<
MaterialDto
>
page
,
String
name
,
String
code
,
Long
companyId
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
name
,
code
);
return
this
.
queryForPage
(
page
,
null
,
false
,
name
,
code
,
companyId
);
}
}
/**
/**
...
@@ -89,6 +91,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
...
@@ -89,6 +91,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
materialDto
.
setManufactureAddr
(
jsonObject
.
getString
(
"manufactureAddr"
));
materialDto
.
setManufactureAddr
(
jsonObject
.
getString
(
"manufactureAddr"
));
materialDto
.
setManufactureDate
(
jsonObject
.
getDate
(
"manufactureDate"
));
materialDto
.
setManufactureDate
(
jsonObject
.
getDate
(
"manufactureDate"
));
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setCompanyId
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
());
MaterialDto
result
=
this
.
createWithModel
(
materialDto
);
MaterialDto
result
=
this
.
createWithModel
(
materialDto
);
return
result
;
return
result
;
}
}
...
...
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