提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.workflow.modular.service.impl; |
懒 |
2 |
|
|
3 |
import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory; |
|
4 |
import cn.stylefeng.guns.workflow.modular.mapper.ActModelMapper; |
|
5 |
import cn.stylefeng.guns.workflow.modular.model.ActModel; |
|
6 |
import cn.stylefeng.guns.workflow.modular.service.ActModelService; |
|
7 |
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
8 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 |
import org.springframework.stereotype.Service; |
|
10 |
import org.springframework.transaction.annotation.Transactional; |
|
11 |
|
|
12 |
import java.util.Map; |
|
13 |
|
|
14 |
/** |
|
15 |
* 模型管理接口实现类 |
|
16 |
* |
|
17 |
* @author fengshuonan |
|
18 |
* @Date 2019/8/5 22:47 |
|
19 |
*/ |
|
20 |
@Service |
|
21 |
@Transactional |
|
22 |
public class ActModelServiceImpl implements ActModelService { |
|
23 |
|
|
24 |
@Autowired |
|
25 |
private ActModelMapper actModelMapper; |
|
26 |
|
|
27 |
/** |
|
28 |
* 列表 |
|
29 |
* |
|
30 |
* @author fengshuonan |
|
31 |
* @Date 2019/8/6 20:58 |
|
32 |
*/ |
|
33 |
@Override |
|
34 |
public Page<Map<String, Object>> list(String keywords) { |
|
35 |
Page page = LayuiPageFactory.defaultPage(); |
|
36 |
return actModelMapper.datalistPage(page, keywords); |
|
37 |
} |
|
38 |
|
|
39 |
/** |
|
40 |
* 通过id获取数据 |
|
41 |
* |
|
42 |
* @author fengshuonan |
|
43 |
* @Date 2019/8/6 20:58 |
|
44 |
*/ |
|
45 |
@Override |
|
46 |
public Map<String, Object> findById(String modelId) { |
|
47 |
return actModelMapper.findById(modelId); |
|
48 |
} |
|
49 |
|
|
50 |
/** |
|
51 |
* 修改 |
|
52 |
* |
|
53 |
* @author fengshuonan |
|
54 |
* @Date 2019/8/6 20:58 |
|
55 |
*/ |
|
56 |
public void edit(ActModel actModel) { |
|
57 |
actModelMapper.edit(actModel); |
|
58 |
} |
|
59 |
|
|
60 |
} |
|
61 |
|