记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
45f33802
Commit
45f33802
authored
Jan 06, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组件排序。
parent
6f0b643b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
0 deletions
+205
-0
GoblinFrontMoudleIndexController.java
...ler/zhengzai/goblin/GoblinFrontMoudleIndexController.java
+52
-0
IGoblinFrontMoudleIndexService.java
...engzai/goblin/service/IGoblinFrontMoudleIndexService.java
+21
-0
GoblinFrontMoudleIndexServiceImpl.java
...oblin/service/impl/GoblinFrontMoudleIndexServiceImpl.java
+52
-0
GoblinFrontMoudleIndex.java
...quidnet/service/goblin/entity/GoblinFrontMoudleIndex.java
+64
-0
GoblinFrontMoudleIndexMapper.java
...t/service/goblin/mapper/GoblinFrontMoudleIndexMapper.java
+16
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinFrontMoudleIndexController.java
0 → 100644
View file @
45f33802
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
goblin
;
import
com.alibaba.fastjson.JSON
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontMoudleIndexServiceImpl
;
import
com.liquidnet.service.goblin.entity.GoblinFrontMoudleIndex
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* <p>
* 组件排序 前端控制器
* </p>
*
* @author liquidnet
* @since 2022-01-06
*/
@Api
(
tags
=
"组件排序"
)
@RestController
@RequestMapping
(
"/front-index"
)
public
class
GoblinFrontMoudleIndexController
extends
BaseController
{
@Autowired
GoblinFrontMoudleIndexServiceImpl
goblinFrontMoudleIndexService
;
@PostMapping
(
"update"
)
@ApiOperation
(
value
=
"修改组件"
)
@ResponseBody
public
AjaxResult
update
(
@RequestBody
GoblinFrontMoudleIndex
goblinFrontMoudleIndex
)
{
logger
.
info
(
"修改组件{}"
,
JSON
.
toJSONString
(
goblinFrontMoudleIndex
));
boolean
result
=
goblinFrontMoudleIndexService
.
upadteGoblinFrontMoudleIndex
(
goblinFrontMoudleIndex
);
if
(
result
)
{
return
success
(
"操作成功"
);
}
else
{
return
error
(
"操作失败"
);
}
}
/**
* @author zhangfuxin
* @Description:列表
* @date 2022/1/6 下午2:04
*/
@PostMapping
(
"list"
)
@ApiOperation
(
value
=
"组件排序列表"
)
@ResponseBody
public
AjaxResult
list
()
{
return
AjaxResult
.
success
(
goblinFrontMoudleIndexService
.
listGoblinFrontMoudleIndex
());
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/IGoblinFrontMoudleIndexService.java
0 → 100644
View file @
45f33802
package
com
.
liquidnet
.
client
.
admin
.
zhengzai
.
goblin
.
service
;
import
com.liquidnet.service.goblin.entity.GoblinFrontMoudleIndex
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* <p>
* 组件排序 服务类
* </p>
*
* @author liquidnet
* @since 2022-01-06
*/
public
interface
IGoblinFrontMoudleIndexService
extends
IService
<
GoblinFrontMoudleIndex
>
{
List
<
GoblinFrontMoudleIndex
>
listGoblinFrontMoudleIndex
();
boolean
upadteGoblinFrontMoudleIndex
(
GoblinFrontMoudleIndex
goblinFrontMoudleIndex
);
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontMoudleIndexServiceImpl.java
0 → 100644
View file @
45f33802
package
com
.
liquidnet
.
client
.
admin
.
zhengzai
.
goblin
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.IGoblinFrontMoudleIndexService
;
import
com.liquidnet.service.goblin.entity.GoblinFrontMoudleIndex
;
import
com.liquidnet.service.goblin.mapper.GoblinFrontMoudleIndexMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* <p>
* 组件排序 服务实现类
* </p>
*
* @author liquidnet
* @since 2022-01-06
*/
@Service
public
class
GoblinFrontMoudleIndexServiceImpl
extends
ServiceImpl
<
GoblinFrontMoudleIndexMapper
,
GoblinFrontMoudleIndex
>
implements
IGoblinFrontMoudleIndexService
{
@Autowired
GoblinFrontMoudleIndexMapper
goblinFrontMoudleIndexMapper
;
@Override
public
List
<
GoblinFrontMoudleIndex
>
listGoblinFrontMoudleIndex
()
{
LambdaQueryWrapper
<
GoblinFrontMoudleIndex
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontMoudleIndex
.
class
);
queryWrapper
.
orderByAsc
(
GoblinFrontMoudleIndex:
:
getIndexs
);
List
<
GoblinFrontMoudleIndex
>
list
=
goblinFrontMoudleIndexMapper
.
selectList
(
queryWrapper
);
return
list
;
}
@Override
public
boolean
upadteGoblinFrontMoudleIndex
(
GoblinFrontMoudleIndex
goblinFrontMoudleIndex
)
{
goblinFrontMoudleIndex
.
setUpdateTime
(
LocalDateTime
.
now
());
goblinFrontMoudleIndexMapper
.
updateById
(
goblinFrontMoudleIndex
);
return
true
;
}
public
boolean
online
(){
//查出数据
List
<
GoblinFrontMoudleIndex
>
list
=
this
.
listGoblinFrontMoudleIndex
();
// mongodb 放入
// reids 存入
return
true
;
}
}
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinFrontMoudleIndex.java
0 → 100644
View file @
45f33802
package
com
.
liquidnet
.
service
.
goblin
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
* <p>
* 组件排序
* </p>
*
* @author liquidnet
* @since 2022-01-06
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
GoblinFrontMoudleIndex
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"mid"
,
type
=
IdType
.
AUTO
)
private
Long
mid
;
/**
* 组件排序id
*/
private
String
moudleIndexId
;
/**
* 名字
*/
private
String
moudleName
;
/**
* 顺序
*/
private
Integer
indexs
;
/**
* 修改时间
*/
private
LocalDateTime
updateTime
;
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
/**
* 0未删除1已删除
*/
private
Integer
delTag
;
/**
* 0展示2不展示
*/
private
Integer
status
;
}
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/mapper/GoblinFrontMoudleIndexMapper.java
0 → 100644
View file @
45f33802
package
com
.
liquidnet
.
service
.
goblin
.
mapper
;
import
com.liquidnet.service.goblin.entity.GoblinFrontMoudleIndex
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 组件排序 Mapper 接口
* </p>
*
* @author liquidnet
* @since 2022-01-06
*/
public
interface
GoblinFrontMoudleIndexMapper
extends
BaseMapper
<
GoblinFrontMoudleIndex
>
{
}
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