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
72846fbc
Commit
72846fbc
authored
Nov 01, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备管理
parent
bc137977
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
EquipmentMapper.xml
...ule-ugp-api/src/main/resources/mapper/EquipmentMapper.xml
+3
-0
EquipmentController.java
...s/boot/module/ugp/biz/controller/EquipmentController.java
+9
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/EquipmentMapper.xml
View file @
72846fbc
...
...
@@ -14,6 +14,9 @@
<if
test=
"equipment.verifyStatus != '' and equipment.verifyStatus != null"
>
and `verify_status` like concat('%',#{equipment.verifyStatus},'%')
</if>
<if
test=
"equipment.companyId != '' and equipment.companyId != null"
>
and `company_id` like concat('%',#{equipment.companyId},'%')
</if>
</where>
</select>
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/EquipmentController.java
View file @
72846fbc
...
...
@@ -14,7 +14,9 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Equipment;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.AttachmentMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.EquipmentMapper
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.AttachmentServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.OrgServiceImpl
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -62,6 +64,9 @@ public class EquipmentController extends BaseController {
@Autowired
AttachmentServiceImpl
attachmentService
;
@Autowired
OrgServiceImpl
orgService
;
/**
* 新增设备信息表
*
...
...
@@ -70,7 +75,9 @@ public class EquipmentController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增设备信息表"
,
notes
=
"新增设备信息表"
)
@BusinessIdentify
public
ResponseModel
<
EquipmentDto
>
save
(
@RequestBody
EquipmentDto
model
)
{
model
.
setCompanyId
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
());
model
.
setManufactureDate
(
new
Date
());
model
.
setInspectionDate
(
new
Date
());
model
=
equipmentServiceImpl
.
createWithModel
(
model
);
...
...
@@ -128,17 +135,17 @@ public class EquipmentController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备信息表分页查询"
,
notes
=
"设备信息表分页查询"
)
@BusinessIdentify
public
ResponseModel
<
IPage
<
EquipmentDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
Equipment
equipment
)
{
IPage
<
EquipmentDto
>
page
=
new
Page
<>();
page
.
setSize
(
size
);
page
.
setCurrent
(
current
);
equipment
.
setCompanyId
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
());
return
ResponseHelper
.
buildResponse
(
equipmentServiceImpl
.
queryEquipmentPage
(
page
,
equipment
));
}
/**
* 列表全部数据查询
*
...
...
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