|
@@ -53,6 +53,7 @@ public class TaGalleryController extends BaseController {
|
53
|
53
|
QueryWrapper<TaGallery> queryWrapper = new QueryWrapper<>();
|
54
|
54
|
queryWrapper.eq(!StringUtils.isEmpty(typeId), "type_id", typeId);
|
55
|
55
|
queryWrapper.eq("status", StatusEnum.NORMAL.getCode());
|
|
56
|
+ queryWrapper.orderByDesc("type_id");
|
56
|
57
|
queryWrapper.orderByDesc("create_date");
|
57
|
58
|
|
58
|
59
|
IPage<TaGallery> result = iTaGalleryService.page(pg, queryWrapper);
|
|
@@ -79,7 +80,7 @@ public class TaGalleryController extends BaseController {
|
79
|
80
|
* @param id 实体ID
|
80
|
81
|
*/
|
81
|
82
|
@ResponseBody
|
82
|
|
- @RequestMapping(value="/taGallery/{id}", method= RequestMethod.DELETE)
|
|
83
|
+ @RequestMapping(value="/admin/gallery/{id}", method= RequestMethod.DELETE)
|
83
|
84
|
public ResponseBean taGalleryDelete(@PathVariable Integer id) throws Exception{
|
84
|
85
|
|
85
|
86
|
if(iTaGalleryService.removeById(id)){
|