记得上下班打卡 | git大法好,push需谨慎

Commit 5f8ee1e9 authored by 胡佳晨's avatar 胡佳晨

admin 增加 库存

parent 62d0d172
...@@ -25,10 +25,14 @@ public class KylinBaseController extends BaseController { ...@@ -25,10 +25,14 @@ public class KylinBaseController extends BaseController {
@GetMapping(value = "/performance/status") @GetMapping(value = "/performance/status")
@ResponseBody @ResponseBody
public AjaxResult listByStatus(@RequestParam(value = "status") String status, @RequestParam(value = "title",required = false) String title) { public AjaxResult listByStatus(@RequestParam(value = "status") String status, @RequestParam(value = "title",required = false) String title) {
List<PerformanceSimpleAllDao> result = kylinPerformancesService.getListDetailByStatus(status,title); try {
AjaxResult ajax = new AjaxResult(); List<PerformanceSimpleAllDao> result = kylinPerformancesService.getListDetailByStatus(status, title);
ajax.put("value", result); AjaxResult ajax = new AjaxResult();
return ajax; ajax.put("value", result);
return ajax;
}catch (Exception e){
return AjaxResult.error("演出不存在");
}
} }
} }
...@@ -241,9 +241,6 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -241,9 +241,6 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
@Override @Override
public List<PerformanceSimpleAllDao> getListDetailByStatus(String status, String title) { public List<PerformanceSimpleAllDao> getListDetailByStatus(String status, String title) {
List<PerformanceTitleDao> dto1List = performancesMapper.misTitleByStatusList(status, title); List<PerformanceTitleDao> dto1List = performancesMapper.misTitleByStatusList(status, title);
if(dto1List.size()==0){
return null;
}
List<String> performanceIdList = dto1List.stream().map(PerformanceTitleDao::getPerformancesId).collect(Collectors.toList()); List<String> performanceIdList = dto1List.stream().map(PerformanceTitleDao::getPerformancesId).collect(Collectors.toList());
List<PerformanceSimpleAllDao> dto2List = performancesMapper.misPerformanceDetail(performanceIdList); List<PerformanceSimpleAllDao> dto2List = performancesMapper.misPerformanceDetail(performanceIdList);
return dto2List; return dto2List;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment