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

Commit aea912e5 authored by 胡佳晨's avatar 胡佳晨

getListAll 模糊搜索

parent f167ae5c
......@@ -41,8 +41,8 @@ public class SmileShowController {
@GetMapping("/listAll")
@ApiOperation("特邀代理获取可代理的演出列表")
@ResponseBody
public ResponseDto<List<KylinPerformancesVo>> listAll() {
return smileShowService.listAll();
public ResponseDto<List<KylinPerformancesVo>> listAll(String title) {
return smileShowService.listAll(title);
}
@GetMapping("/getShowById")
......
......@@ -77,6 +77,6 @@ public interface ISmileShowService extends IService<SmileSchool> {
AjaxResult upTakeByPerId(String perId, Integer type);
ResponseDto<List<KylinPerformancesVo>> listAll();
ResponseDto<List<KylinPerformancesVo>> listAll(String title);
}
......@@ -631,9 +631,9 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
}
@Override
public ResponseDto<List<KylinPerformancesVo>> listAll() {
public ResponseDto<List<KylinPerformancesVo>> listAll(String title) {
//返回可代理的演出名称和id
List<KylinPerformancesDto> kylinPerformancesDtoList = kylinPerformancesMapper.getListAll();
List<KylinPerformancesDto> kylinPerformancesDtoList = kylinPerformancesMapper.getListAll(title);
List<KylinPerformancesVo> kylinPerformancesVos = kylinPerformancesDtoList.stream().map(kylinPerformancesDto -> KylinPerformancesVo.getNew().copyListAll(kylinPerformancesDto)).collect(Collectors.toList());
return ResponseDto.success(kylinPerformancesVos);
}
......
......@@ -83,5 +83,5 @@ public interface KylinPerformancesMapper extends BaseMapper<KylinPerformances> {
//商品订单信息
List<CommodityOrderExportDao> exportCommodityOrder(@Param("beginTime") Date beginTime, @Param("endTime") Date endTime);
List<KylinPerformancesDto> getListAll();
List<KylinPerformancesDto> getListAll(String title);
}
......@@ -105,11 +105,11 @@
<result column="refund_at" property="refundAt"/>
</resultMap>
<!-- <resultMap id="OrderExportDaoResult" type="com.liquidnet.service.kylin.dao.OrderExportDao">-->
<!-- <result column="performance_title" property="performanceTitle"/>-->
<!-- <result column="user_mobile" property="userMobile"/>-->
<!-- <result column="user_name" property="userName"/>-->
<!-- </resultMap>-->
<!-- <resultMap id="OrderExportDaoResult" type="com.liquidnet.service.kylin.dao.OrderExportDao">-->
<!-- <result column="performance_title" property="performanceTitle"/>-->
<!-- <result column="user_mobile" property="userMobile"/>-->
<!-- <result column="user_name" property="userName"/>-->
<!-- </resultMap>-->
<resultMap id="PerformanceSimpleAllDaoResult" type="com.liquidnet.service.kylin.dao.PerformanceSimpleAllDao">
<result column="performances_id" property="performancesId"/>
......@@ -781,8 +781,12 @@ GROUP BY user_mobile,tickets_id;
LEFT JOIN kylin_performance_status AS kps ON kps.performance_id = kp.performances_id
LEFT JOIN smile_agent AS sa ON sa.performance_id = kp.performances_id
WHERE
kp.performances_id IN ( SELECT sa.performance_id FROM smile_agent AS sa WHERE sa.del_tag = 0 AND sa.type = 0 GROUP BY sa.performance_id )
kp.performances_id IN ( SELECT sa.performance_id FROM smile_agent AS sa WHERE sa.del_tag = 0 AND sa.type = 0
GROUP BY sa.performance_id )
AND sa.`type` = 0
<if test="title!=''">
AND kp.title LIKE concat('%', #{title}, '%')
</if>
GROUP BY
sa.performance_id
ORDER BY
......
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