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

Commit 0534be66 authored by 胡佳晨's avatar 胡佳晨

提交代理 演出姓名排序,搜索

parent 5d3c49f8
...@@ -101,7 +101,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc ...@@ -101,7 +101,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
PageHelper.startPage(smileShowParam.getPageNum(), smileShowParam.getPageSize()); PageHelper.startPage(smileShowParam.getPageNum(), smileShowParam.getPageSize());
TableDataInfo rspData = new TableDataInfo(); TableDataInfo rspData = new TableDataInfo();
//查询所有代理的演出id //查询所有代理的演出id
List<KylinPerformancesDto> kylinPerformancesList = kylinPerformancesMapper.selectPerIdByAgent(); List<KylinPerformancesDto> kylinPerformancesList = kylinPerformancesMapper.selectPerIdByAgent(smileShowParam.getName());
List<ShowVo> showVoList = kylinPerformancesList.stream().map(kylinPerformancesDto -> { List<ShowVo> showVoList = kylinPerformancesList.stream().map(kylinPerformancesDto -> {
ShowVo vo = ShowVo.getNew().copy(kylinPerformancesDto); ShowVo vo = ShowVo.getNew().copy(kylinPerformancesDto);
Integer ordNum = kylinOrderTicketRelationsMapper.concatByAgentDed(kylinPerformancesDto.getPerformancesId()); Integer ordNum = kylinOrderTicketRelationsMapper.concatByAgentDed(kylinPerformancesDto.getPerformancesId());
......
...@@ -68,7 +68,7 @@ public interface KylinPerformancesMapper extends BaseMapper<KylinPerformances> { ...@@ -68,7 +68,7 @@ public interface KylinPerformancesMapper extends BaseMapper<KylinPerformances> {
List<KylinPerformances> selectByComment(); List<KylinPerformances> selectByComment();
List<KylinPerformancesDto> selectPerIdByAgent(); List<KylinPerformancesDto> selectPerIdByAgent(@Param("title") String title );
List<KylinPerformancesDao> selectTicketIdByPerId(@Param("performancesId") String performancesId); List<KylinPerformancesDao> selectTicketIdByPerId(@Param("performancesId") String performancesId);
......
...@@ -762,13 +762,17 @@ GROUP BY user_mobile,tickets_id; ...@@ -762,13 +762,17 @@ GROUP BY user_mobile,tickets_id;
GROUP BY GROUP BY
kk.performance_id kk.performance_id
) AS map ON map.performance_id = kp.performances_id ) AS map ON map.performance_id = kp.performances_id
WHERE <where>
kp.performances_id IN ( SELECT sa.performance_id FROM smile_agent AS sa WHERE sa.del_tag = 0 GROUP BY sa.performance_id ) kp.performances_id IN ( SELECT sa.performance_id FROM smile_agent AS sa WHERE sa.del_tag = 0 GROUP BY sa.performance_id )
<if test="title!=''">
AND kp.title LIKE concat('%', #{title}, '%')
</if>
</where>
GROUP BY GROUP BY
sa.performance_id sa.performance_id
ORDER BY ORDER BY
kp.COMMENT DESC, kp.COMMENT DESC,
kp.time_start DESC kp.title DESC
</select> </select>
<select id="getListAll" resultType="com.liquidnet.service.kylin.dao.report.KylinPerformancesDto"> <select id="getListAll" resultType="com.liquidnet.service.kylin.dao.report.KylinPerformancesDto">
......
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