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
8f69bdf2
Commit
8f69bdf2
authored
Oct 20, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
bffb5e74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
IdxBizFanWarningRecordController.java
...xiop/biz/controller/IdxBizFanWarningRecordController.java
+49
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWarningRecordController.java
View file @
8f69bdf2
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.IdxBizFanWarningRecordDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.IdxBizFanWarningRecordDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWarningRecord
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizFanWarningRecordServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizFanWarningRecordServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.beanutils.BeanMap
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -14,7 +19,9 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...
@@ -14,7 +19,9 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
*
*
...
@@ -112,4 +119,46 @@ public class IdxBizFanWarningRecordController extends BaseController {
...
@@ -112,4 +119,46 @@ public class IdxBizFanWarningRecordController extends BaseController {
public
ResponseModel
<
List
<
IdxBizFanWarningRecordDto
>>
selectForList
()
{
public
ResponseModel
<
List
<
IdxBizFanWarningRecordDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
idxBizFanWarningRecordServiceImpl
.
queryForIdxBizFanWarningRecordList
());
return
ResponseHelper
.
buildResponse
(
idxBizFanWarningRecordServiceImpl
.
queryForIdxBizFanWarningRecordList
());
}
}
/**
* 根据sequenceNbr查询
*
* @param ANALYSISPOINTID 主键
* @return
*/
// @TycloudOperation(ApiLevel = UserType.AGENCY)
// @GetMapping(value = "/pointId/{pointId}")
// @ApiOperation(httpMethod = "GET",value = "根据ANALYSIS_POINT_ID查询单个", notes = "根据ANALYSIS_POINT_ID查询单个")
// public ResponseModel<IdxBizFanWarningRecord> selectOne(@PathVariable String ANALYSISPOINTID) {
//
// LambdaQueryWrapper<IdxBizFanWarningRecord> query =new LambdaQueryWrapper<>();
// query.eq(IdxBizFanWarningRecord::getAnalysisPointId,ANALYSISPOINTID);
// List<IdxBizFanWarningRecord> idxBizFanWarningRecordList = idxBizFanWarningRecordServiceImpl.getBaseMapper().selectList(query);
//
// Map<String,Object> map = new HashMap<>();
//
// for (int i = 0; i < idxBizFanWarningRecordList.size(); i++) {
// IdxBizFanWarningRecord idxBizFanWarningRecord = idxBizFanWarningRecordList.get(i);
// if (idxBizFanWarningRecord.getWarningName().equals("注意")){
// map.putAll(BeanUtil.beanToMap(idxBizFanWarningRecord));
// continue;
// }else if (idxBizFanWarningRecord.getWarningName().equals("警告")){
// //警告周期
// // map.put("",idxBizFanWarningRecord.get)
// // map.put("",idxBizFanWarningRecord.get)
// continue;
// }else if (idxBizFanWarningRecord.getWarningName().equals("危险")){
// // map.put("",idxBizFanWarningRecord.get)
// // map.put("",idxBizFanWarningRecord.get)
// // continue;
// }
//
// }
//
//
// return ResponseHelper.buildResponse();
// }
}
}
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