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

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

admin 增加 库存

parent 62d0d172
......@@ -25,10 +25,14 @@ public class KylinBaseController extends BaseController {
@GetMapping(value = "/performance/status")
@ResponseBody
public AjaxResult listByStatus(@RequestParam(value = "status") String status, @RequestParam(value = "title",required = false) String title) {
List<PerformanceSimpleAllDao> result = kylinPerformancesService.getListDetailByStatus(status,title);
AjaxResult ajax = new AjaxResult();
ajax.put("value", result);
return ajax;
try {
List<PerformanceSimpleAllDao> result = kylinPerformancesService.getListDetailByStatus(status, title);
AjaxResult ajax = new AjaxResult();
ajax.put("value", result);
return ajax;
}catch (Exception e){
return AjaxResult.error("演出不存在");
}
}
}
......@@ -241,9 +241,6 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
@Override
public List<PerformanceSimpleAllDao> getListDetailByStatus(String status, String 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<PerformanceSimpleAllDao> dto2List = performancesMapper.misPerformanceDetail(performanceIdList);
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