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
726cb863
Commit
726cb863
authored
Nov 02, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标准规则库列表查询
parent
9ac42835
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
7 deletions
+43
-7
SuperviseRuleDto.java
...eejoin/amos/boot/module/ugp/api/dto/SuperviseRuleDto.java
+13
-0
SuperviseRuleController.java
...ot/module/ugp/biz/controller/SuperviseRuleController.java
+5
-5
MaterialServiceImpl.java
...boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
+3
-0
SuperviseRuleServiceImpl.java
...module/ugp/biz/service/impl/SuperviseRuleServiceImpl.java
+22
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/SuperviseRuleDto.java
View file @
726cb863
...
...
@@ -39,4 +39,17 @@ public class SuperviseRuleDto extends BaseDto {
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"监察部门"
)
private
String
superviseDept
;
@ApiModelProperty
(
value
=
"检验检测单位"
)
private
String
inspectionUnit
;
@ApiModelProperty
(
value
=
"创建单位"
)
private
String
createUnit
;
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/SuperviseRuleController.java
View file @
726cb863
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.OrgServiceImpl
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
...
...
@@ -142,15 +143,14 @@ public class SuperviseRuleController extends BaseController {
public
ResponseModel
<
Page
<
SuperviseRuleDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"adminRegionCode"
,
required
=
false
)
Integer
adminRegionCode
,
@RequestParam
(
value
=
"superviseDeptId"
,
required
=
false
)
Long
superviseDeptId
,
@RequestParam
(
value
=
"inspectionUnitId"
,
required
=
false
)
Long
inspectionUnitId
SuperviseRule
superviseRule
)
{
//this.current = current;
Page
<
SuperviseRuleDto
>
page
=
new
Page
<
SuperviseRuleDto
>();
Page
<
SuperviseRuleDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
superviseRuleServiceImpl
.
queryForSuperviseRulePage
(
page
,
superviseDeptId
,
inspectionUnitId
,
adminRegionCode
));
return
ResponseHelper
.
buildResponse
(
superviseRuleServiceImpl
.
queryForSuperviseRulePage
(
page
,
superviseRule
));
}
/**
...
...
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 @
726cb863
...
...
@@ -89,6 +89,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
materialDto
.
setManufactureAddr
(
jsonObject
.
getString
(
"manufactureAddr"
));
materialDto
.
setManufactureDate
(
jsonObject
.
getDate
(
"manufactureDate"
));
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setType
(
jsonObject
.
getString
(
"type"
));
MaterialDto
result
=
this
.
createWithModel
(
materialDto
);
return
result
;
}
...
...
@@ -114,6 +115,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
materialDto
.
setManufactureAddr
(
jsonObject
.
getString
(
"manufactureAddr"
));
materialDto
.
setManufactureDate
(
jsonObject
.
getDate
(
"manufactureDate"
));
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setType
(
jsonObject
.
getString
(
"type"
));
this
.
updateWithModel
(
materialDto
);
JSONArray
subForm
=
jsonObject
.
getJSONArray
(
"subForm"
);
...
...
@@ -145,6 +147,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
jsonObject
.
put
(
"manufactureAddr"
,
materialDto
.
getManufactureAddr
());
jsonObject
.
put
(
"manufactureDate"
,
materialDto
.
getManufactureDate
());
jsonObject
.
put
(
"batchNum"
,
materialDto
.
getBatchNum
());
jsonObject
.
put
(
"type"
,
materialDto
.
getType
());
if
(
attachmentDto
!=
null
){
JSONArray
jsonArray
=
JSON
.
parseArray
(
attachmentDto
.
getInfo
());
jsonObject
.
put
(
"subForm"
,
jsonArray
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/SuperviseRuleServiceImpl.java
View file @
726cb863
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.SuperviseRuleMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.ISuperviseRuleService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.SuperviseRuleDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -17,11 +19,29 @@ import java.util.List;
*/
@Service
public
class
SuperviseRuleServiceImpl
extends
BaseService
<
SuperviseRuleDto
,
SuperviseRule
,
SuperviseRuleMapper
>
implements
ISuperviseRuleService
{
@Autowired
OrgServiceImpl
orgServiceImpl
;
/**
* 分页查询
*/
public
Page
<
SuperviseRuleDto
>
queryForSuperviseRulePage
(
Page
<
SuperviseRuleDto
>
page
,
Long
superviseDeptId
,
Long
inspectionUnitId
,
Integer
adminRegionCode
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
superviseDeptId
,
inspectionUnitId
,
adminRegionCode
);
public
Page
<
SuperviseRuleDto
>
queryForSuperviseRulePage
(
Page
<
SuperviseRuleDto
>
page
,
SuperviseRule
superviseRule
)
{
Integer
adminRegionCode
=
superviseRule
.
getAdminRegionCode
();
Long
superviseDeptId
=
superviseRule
.
getSuperviseDeptId
();
Long
inspectionUnitId
=
superviseRule
.
getInspectionUnitId
();
page
=
this
.
queryForPage
(
page
,
null
,
false
,
adminRegionCode
,
superviseDeptId
,
inspectionUnitId
);
List
<
SuperviseRuleDto
>
superviseRuleDtoList
=
page
.
getRecords
();
for
(
SuperviseRuleDto
superviseRuleDto:
superviseRuleDtoList
){
superviseRuleDto
.
setSuperviseDept
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
superviseRuleDto
.
getSuperviseDeptId
())).
getBizOrgName
());
superviseRuleDto
.
setInspectionUnit
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
superviseRuleDto
.
getInspectionUnitId
())).
getBizOrgName
());
superviseRuleDto
.
setCreateUnit
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
superviseRuleDto
.
getCreateUnitId
())).
getBizOrgName
());
}
return
page
;
}
/**
...
...
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