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
81b1130a
Commit
81b1130a
authored
Feb 22, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
江西电建新增运维评估模块接口
parent
03192419
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
0 deletions
+115
-0
YwpgMoudleInfo.java
...oin/amos/boot/module/jxiop/api/entity/YwpgMoudleInfo.java
+32
-0
YwpgMoudleInfoMapper.java
...os/boot/module/jxiop/api/mapper/YwpgMoudleInfoMapper.java
+7
-0
JxiopAuthController.java
...boot/module/jxiop/biz/controller/JxiopAuthController.java
+34
-0
YwpgModuleInfoServiceImpl.java
...ule/jxiop/biz/service/impl/YwpgModuleInfoServiceImpl.java
+42
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/YwpgMoudleInfo.java
0 → 100644
View file @
81b1130a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
/**
*
*
* @author system_generator
* @date 2023-06-08
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"ywpg_module_info"
,
autoResultMap
=
true
)
public
class
YwpgMoudleInfo
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 模块名称
*/
@TableField
(
"module_name"
)
private
String
moduleName
;
/**
* 模块tableid
*/
@TableField
(
"module_table_id"
)
private
String
moduleTableId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/YwpgMoudleInfoMapper.java
0 → 100644
View file @
81b1130a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.YwpgMoudleInfo
;
public
interface
YwpgMoudleInfoMapper
extends
BaseMapper
<
YwpgMoudleInfo
>
{
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/JxiopAuthController.java
0 → 100644
View file @
81b1130a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.YwpgModuleInfoServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@Api
(
tags
=
"JXIOP认证"
)
@RequestMapping
(
value
=
"/auth"
)
public
class
JxiopAuthController
extends
BaseController
{
@Autowired
YwpgModuleInfoServiceImpl
ywpgModuleInfoService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/v1"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"运维评模块数据过滤"
,
notes
=
"运维评估模块数据过滤"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getIdxAuthInfo
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
ywpgModuleInfoService
.
getIdxAuthInfo
(
reginParams
));
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/YwpgModuleInfoServiceImpl.java
0 → 100644
View file @
81b1130a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.YwpgMoudleInfo
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.YwpgMoudleInfoMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
YwpgModuleInfoServiceImpl
{
@Autowired
YwpgMoudleInfoMapper
ywpgMoudleInfoMapper
;
public
List
<
Map
<
String
,
Object
>>
getIdxAuthInfo
(
ReginParams
reginParams
)
{
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
String
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
if
(
ObjectUtils
.
isEmpty
(
orgCode
)){
return
result
;
}
List
<
YwpgMoudleInfo
>
ywpgMoudleInfoList
=
ywpgMoudleInfoMapper
.
selectList
(
new
QueryWrapper
<
YwpgMoudleInfo
>().
isNotNull
(
"module_name"
).
isNotNull
(
"module_table_id"
));
//TODO 处理业务逻辑
Map
<
String
,
Object
>
item
=
new
HashMap
<>();
Map
<
String
,
Object
>
filters
=
new
HashMap
<>();
ywpgMoudleInfoList
.
stream
().
forEach
(
ywpgMoudleInfo
->
{
item
.
put
(
"name"
,
ywpgMoudleInfo
.
getModuleName
());
item
.
put
(
"tableId"
,
ywpgMoudleInfo
.
getModuleTableId
());
filters
.
put
(
"searchColumn"
,
"CODE"
);
filters
.
put
(
"condition"
,
"startsWith"
);
filters
.
put
(
"value"
,
orgCode
);
item
.
put
(
"filters"
,
filters
);
result
.
add
(
item
);
});
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