|
@@ -143,11 +143,12 @@ public class TaChannelController extends BaseController {
|
143
|
143
|
* @param channel 实体对象
|
144
|
144
|
* @return
|
145
|
145
|
*/
|
146
|
|
- @RequestMapping(value="/channel/{id}",method= RequestMethod.PUT)
|
|
146
|
+ @RequestMapping(value="/admin/channel/{id}",method= RequestMethod.PUT)
|
147
|
147
|
public ResponseBean channelUpdate(@PathVariable Integer id,
|
148
|
148
|
@RequestBody TaChannel channel){
|
149
|
149
|
ResponseBean responseBean = new ResponseBean();
|
150
|
150
|
try {
|
|
151
|
+ channel.setChannelId(id);
|
151
|
152
|
if (taChannelService.updateById(channel)){
|
152
|
153
|
responseBean.addSuccess(channel);
|
153
|
154
|
}else {
|
|
@@ -165,7 +166,7 @@ public class TaChannelController extends BaseController {
|
165
|
166
|
* 根据id查询对象
|
166
|
167
|
* @param id 实体ID
|
167
|
168
|
*/
|
168
|
|
- @RequestMapping(value="/channel/{id}",method= RequestMethod.GET)
|
|
169
|
+ @RequestMapping(value="/admin/channel/{id}",method= RequestMethod.GET)
|
169
|
170
|
public ResponseBean channelGet(@PathVariable Integer id){
|
170
|
171
|
ResponseBean responseBean = new ResponseBean();
|
171
|
172
|
try {
|