提交 | 用户 | 时间
|
71e81e
|
1 |
package cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.controller; |
懒 |
2 |
|
|
3 |
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
|
4 |
import cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.entity.EquipmentMaintainContentConf; |
|
5 |
import cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.model.params.EquipmentMaintainContentConfParam; |
|
6 |
import cn.stylefeng.guns.modular.em.equipmentMaintainContentConf.service.EquipmentMaintainContentConfService; |
|
7 |
import cn.stylefeng.roses.core.base.controller.BaseController; |
|
8 |
import cn.stylefeng.roses.kernel.model.response.ResponseData; |
|
9 |
import org.springframework.beans.factory.annotation.Autowired; |
|
10 |
import org.springframework.stereotype.Controller; |
|
11 |
import org.springframework.ui.Model; |
|
12 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
13 |
import org.springframework.web.bind.annotation.ResponseBody; |
|
14 |
|
|
15 |
|
|
16 |
/** |
|
17 |
* 保养内容配置控制器 |
|
18 |
* |
|
19 |
* @author ruimin |
|
20 |
* @Date 2023-02-20 13:24:29 |
|
21 |
*/ |
|
22 |
@Controller |
|
23 |
@RequestMapping("/equipmentMaintainContentConf") |
|
24 |
public class EquipmentMaintainContentConfController extends BaseController { |
|
25 |
|
|
26 |
private String PREFIX = "modular/em/equipmentMaintainContentConf"; |
|
27 |
|
|
28 |
@Autowired |
|
29 |
private EquipmentMaintainContentConfService equipmentMaintainContentConfService; |
|
30 |
|
|
31 |
/** |
|
32 |
* 跳转到主页面 |
|
33 |
* |
|
34 |
* @author ruimin |
|
35 |
* @Date 2023-02-20 |
|
36 |
*/ |
|
37 |
@RequestMapping("") |
|
38 |
public String index() { |
|
39 |
return PREFIX + "/equipmentMaintainContentConf.html"; |
|
40 |
} |
|
41 |
|
|
42 |
/** |
|
43 |
* 新增页面 |
|
44 |
* |
|
45 |
* @author ruimin |
|
46 |
* @Date 2023-02-20 |
|
47 |
*/ |
|
48 |
@RequestMapping("/add") |
|
49 |
public String add() { |
|
50 |
return PREFIX + "/equipmentMaintainContentConf_add.html"; |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* 编辑页面 |
|
55 |
* |
|
56 |
* @author ruimin |
|
57 |
* @Date 2023-02-20 |
|
58 |
*/ |
|
59 |
@RequestMapping("/edit") |
|
60 |
public String edit() { |
|
61 |
return PREFIX + "/equipmentMaintainContentConf_edit.html"; |
|
62 |
} |
|
63 |
|
|
64 |
/** |
|
65 |
* BOM添加页面 |
|
66 |
* |
|
67 |
* @author lhx |
|
68 |
* @Date 2020-12-13 |
|
69 |
*/ |
|
70 |
@RequestMapping("/addListConf") |
|
71 |
public String addListConf() { |
|
72 |
return PREFIX + "/addListConf.html"; |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* 新增接口 |
|
77 |
* |
|
78 |
* @author ruimin |
|
79 |
* @Date 2023-02-20 |
|
80 |
*/ |
|
81 |
@RequestMapping("/addItem") |
|
82 |
@ResponseBody |
|
83 |
public ResponseData addItem(EquipmentMaintainContentConfParam equipmentMaintainContentConfParam) { |
|
84 |
this.equipmentMaintainContentConfService.add(equipmentMaintainContentConfParam); |
|
85 |
return ResponseData.success(); |
|
86 |
} |
|
87 |
|
|
88 |
/** |
|
89 |
* 编辑接口 |
|
90 |
* |
|
91 |
* @author ruimin |
|
92 |
* @Date 2023-02-20 |
|
93 |
*/ |
|
94 |
@RequestMapping("/editItem") |
|
95 |
@ResponseBody |
|
96 |
public ResponseData editItem(EquipmentMaintainContentConfParam equipmentMaintainContentConfParam) { |
|
97 |
this.equipmentMaintainContentConfService.update(equipmentMaintainContentConfParam); |
|
98 |
return ResponseData.success(); |
|
99 |
} |
|
100 |
|
|
101 |
/** |
|
102 |
* 删除接口 |
|
103 |
* |
|
104 |
* @author ruimin |
|
105 |
* @Date 2023-02-20 |
|
106 |
*/ |
|
107 |
@RequestMapping("/delete") |
|
108 |
@ResponseBody |
|
109 |
public ResponseData delete(EquipmentMaintainContentConfParam equipmentMaintainContentConfParam) { |
|
110 |
this.equipmentMaintainContentConfService.delete(equipmentMaintainContentConfParam); |
|
111 |
return ResponseData.success(); |
|
112 |
} |
|
113 |
|
|
114 |
/** |
|
115 |
* 查看详情接口 |
|
116 |
* |
|
117 |
* @author ruimin |
|
118 |
* @Date 2023-02-20 |
|
119 |
*/ |
|
120 |
@RequestMapping("/detail") |
|
121 |
@ResponseBody |
|
122 |
public ResponseData detail(EquipmentMaintainContentConfParam equipmentMaintainContentConfParam) { |
|
123 |
EquipmentMaintainContentConf detail = this.equipmentMaintainContentConfService.getById(equipmentMaintainContentConfParam.getId()); |
|
124 |
return ResponseData.success(detail); |
|
125 |
} |
|
126 |
|
|
127 |
/** |
|
128 |
* 查询列表 |
|
129 |
* |
|
130 |
* @author ruimin |
|
131 |
* @Date 2023-02-20 |
|
132 |
*/ |
|
133 |
@ResponseBody |
|
134 |
@RequestMapping("/list") |
|
135 |
public LayuiPageInfo list(EquipmentMaintainContentConfParam equipmentMaintainContentConfParam) { |
|
136 |
return this.equipmentMaintainContentConfService.findPageBySpec(equipmentMaintainContentConfParam); |
|
137 |
} |
|
138 |
|
|
139 |
} |
|
140 |
|
|
141 |
|