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

Commit 1b30df0e authored by 胡佳晨's avatar 胡佳晨

提交 推荐演出

parent 56e2c5c6
...@@ -2,10 +2,7 @@ package com.liquidnet.service.kylin.service.admin; ...@@ -2,10 +2,7 @@ package com.liquidnet.service.kylin.service.admin;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.liquidnet.service.kylin.dao.PerformanceAdminListDao; import com.liquidnet.service.kylin.dao.*;
import com.liquidnet.service.kylin.dao.PerformanceMemberAuditDao;
import com.liquidnet.service.kylin.dao.PerformanceRecommendAdminDao;
import com.liquidnet.service.kylin.dao.PerformanceTitleDao;
import com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam; import com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam;
import com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam; import com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam;
import com.liquidnet.service.kylin.dto.param.PerformanceRecommendAdminParam; import com.liquidnet.service.kylin.dto.param.PerformanceRecommendAdminParam;
...@@ -76,13 +73,21 @@ public interface IKylinPerformancesAdminService extends IService<KylinPerformanc ...@@ -76,13 +73,21 @@ public interface IKylinPerformancesAdminService extends IService<KylinPerformanc
*/ */
boolean changeRoadShowId(String performancesId, String roadShowId); boolean changeRoadShowId(String performancesId, String roadShowId);
/**
* 根据演出id 获取推荐详情
*
* @param performancesId 相关参数
* @return boolean
*/
PerformanceRecommendDao getRecommend(String performancesId);
/** /**
* 设置 演出推荐 关联 * 设置 演出推荐 关联
* *
* @param performancesId 相关参数 * @param performancesId 相关参数
* @return boolean * @return boolean
*/ */
boolean setRecommend(List<PerformanceRecommendAdminParam> performancesId); boolean setRecommend(String performancesId,Integer isRecommend);
/** /**
* 设置 演出推荐 关联 * 设置 演出推荐 关联
......
...@@ -6,7 +6,11 @@ import com.liquidnet.client.admin.common.core.domain.AjaxResult; ...@@ -6,7 +6,11 @@ import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.common.core.page.TableDataInfo; import com.liquidnet.client.admin.common.core.page.TableDataInfo;
import com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl; import com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl;
import com.liquidnet.service.kylin.dao.PerformanceAdminListDao; import com.liquidnet.service.kylin.dao.PerformanceAdminListDao;
import com.liquidnet.service.kylin.dao.PerformanceRecommendAdminDao;
import com.liquidnet.service.kylin.dao.PerformanceRecommendDao;
import com.liquidnet.service.kylin.dao.PerformanceTitleDao;
import com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam; import com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam;
import com.liquidnet.service.kylin.dto.param.PerformanceRecommendAdminParam;
import com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo; import com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -14,6 +18,8 @@ import org.springframework.stereotype.Controller; ...@@ -14,6 +18,8 @@ import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
/** /**
* 演出Controller * 演出Controller
...@@ -35,5 +41,53 @@ public class KylinPerformancesRecommendController extends BaseController { ...@@ -35,5 +41,53 @@ public class KylinPerformancesRecommendController extends BaseController {
return prefix + "/recommend"; return prefix + "/recommend";
} }
/**
* 查询演出列表
*/
@RequiresPermissions("kylin:performances:recommend:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list() {
PageInfo<PerformanceRecommendAdminDao> result = kylinPerformancesService.listRecommend();
return getDataTable(result.getList());
}
/**
* 新增
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
* 修改
*/
@RequiresPermissions("kylin:performances:recommend:change")
@PostMapping("/change")
@ResponseBody
public AjaxResult setRecommend(@RequestParam(value = "ids") String performancesId,@RequestParam(value = "isRecommend",required = false) Integer isRecommend) {
boolean result = kylinPerformancesService.setRecommend(performancesId,isRecommend);
return toAjax(result);
}
/**
* 详情
*/
@GetMapping("/edit/{performancesId}")
public String edit(@PathVariable("performancesId") String performancesId, ModelMap mmap) {
PerformanceRecommendDao result = kylinPerformancesService.getRecommend(performancesId);
mmap.put("performanceRecommendDao", result);
return prefix + "/edit";
}
@RequiresPermissions("kylin:performances:recommend:change")
@GetMapping(value = "/performance/status")
@ResponseBody
public AjaxResult listByStatus(@RequestParam(value = "status") String status,@RequestParam(value = "title",required = false) String title) {
List<PerformanceTitleDao> result = kylinPerformancesService.getListByStatus(status,title);
AjaxResult ajax = new AjaxResult();
ajax.put("value", result);
return ajax;
}
} }
...@@ -106,7 +106,6 @@ public class KylinRoadShowController extends BaseController { ...@@ -106,7 +106,6 @@ public class KylinRoadShowController extends BaseController {
return getDataTable(result); return getDataTable(result);
} }
//
@RequiresPermissions("kylin:performances:roadShow:change:performance") @RequiresPermissions("kylin:performances:roadShow:change:performance")
@PostMapping(value = "/roadShow/relation") @PostMapping(value = "/roadShow/relation")
...@@ -131,7 +130,6 @@ public class KylinRoadShowController extends BaseController { ...@@ -131,7 +130,6 @@ public class KylinRoadShowController extends BaseController {
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<PerformanceTitleDao> result = kylinPerformancesService.getListByStatus(status,title); List<PerformanceTitleDao> result = kylinPerformancesService.getListByStatus(status,title);
AjaxResult ajax = new AjaxResult(); AjaxResult ajax = new AjaxResult();
// ajax.put("code", 200);
ajax.put("value", result); ajax.put("value", result);
return ajax; return ajax;
} }
......
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
<th:block th:include="include :: header('新增推荐演出')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-roadShow-add">
<p>演出名称:</p>
<div class="row">
<input name="ids" type="hidden">
<div class="input-group">
<input type="text" class="form-control" id="suggest-demo-2" onkeyup="getPerformanceTitle()" required>
<div class="input-group-btn">
<button type="button" class="btn btn-white dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
</ul>
</div>
</div>
</div>
</br>
<p>推荐排序:</p>
<div class="row">
<div class="input-group">
<div class="input-group date">
<input name="isRecommend" class="form-control" type="text" required>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-suggest-js"/>
<script th:inline="javascript">
var prefix = ctx + "kylin/performances/recommend";
$("#form-roadShow-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/change", $('#form-roadShow-add').serialize());
}
}
function getPerformanceTitle() {
var testBsSuggest = $("#suggest-demo-2").bsSuggest({
url: prefix + "/performance/status?status=(3,6,7)&title=" + document.getElementById("suggest-demo-2").value,
showBtn: false,
idField: "performancesId",
keyField: "title"
}).on('onDataRequestSuccess', function (e, result) {
}).on('onSetSelectValue', function (e, keyword) {
document.getElementsByName("ids")[0].value = keyword.id;
}).on('onUnsetSelectValue', function (e) {
});
}
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改推荐演出')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-roadShow-edit" th:object="${performanceRecommendDao}">
<input name="ids" th:value="*{performancesId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">演出名称:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="title" th:value="*{title}" class="form-control" type="text" readonly>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">推荐排序:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="isRecommend" th:value="*{isRecommend}" class="form-control" type="text">
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "kylin/performances/recommend";
$("#form-roadShow-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/change", $('#form-roadShow-edit').serialize());
}
}
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head> <head>
<th:block th:include="include :: header('推荐演出列表')" /> <th:block th:include="include :: header('推荐演出列表')"/>
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
<div class="row"> <div class="row">
<div class="col-sm-12 search-collapse"> <div class="btn-group-sm" id="toolbar" role="group">
<form id="formId"> <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="kylin:performances:recommend:list">
<div class="select-list"> <i class="fa fa-plus"></i> 添加
<ul> </a>
<li> </div>
<label>演出名称:</label> <div class="col-sm-12 select-table table-bordered">
<input type="text" name="title"/> <table id="bootstrap-table"></table>
</li>
<li>
<label>城市名称:</label>
<input type="text" name="cityName"/>
</li>
<li>
<label>排序字段:</label>
<select name="orderItem">
<option value="">所有</option>
<option value="created_at">创建时间</option>
<option value="updatedAt">修改时间</option>
</select>
</li>
<li>
<label>排序方式:</label>
<select name="orderSc">
<option value="">所有</option>
<option value="asc">正序</option>
<option value="desc">倒序</option>
</select>
</li>
<li>
<label>演出状态:</label>
<select name="status">
<option value="-2">全部</option>
<option value="1">审核中</option>
<option value="3">审核通过</option>
<option value="4">审核拒绝</option>
<option value="6">售卖</option>
<option value="7">已下架</option>
<option value="8">演出结束</option>
</select>
</li>
<li>
<label>审核状态:</label>
<select name="auditStatus">
<option value="-2">全部</option>
<option value="0">审核中</option>
<option value="2">审核拒绝</option>
</select>
</li>
<li>
<label>停售时间:</label>
<select name="stopSellDay">
<option value="-2">全部</option>
<option value="0">今天</option>
<option value="1">明天</option>
<option value="-1">昨天</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="kylin:performances:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="kylin:performances:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="kylin:performances:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="kylin:performances:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-bordered">
<table id="bootstrap-table"></table>
</div>
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> </div>
<script th:inline="javascript"> <th:block th:include="include :: footer"/>
var detailFlag = [[${@permission.hasPermi('kylin:performances:detail')}]]; <script th:inline="javascript">
var expertFlag = [[${@permission.hasPermi('kylin:performances:expert')}]]; var updateFlag = [[${@permission.hasPermi('kylin:performances:recommend:change')}]];
var prefix = ctx + "kylin/performances"; var removeFlag = [[${@permission.hasPermi('kylin:performances:recommend:change')}]];
var prefix = ctx + "kylin/performances/recommend";
$(function() { $(function () {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
detailUrl: prefix + "/details/{id}", createUrl: prefix + "/add",
createUrl: prefix + "/add", removeUrl: prefix + "/change",
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", modalName: "演出",
exportUrl: prefix + "/export", columns: [{
// sortName: "sort", checkbox: true
modalName: "演出", },
columns: [{ {
checkbox: true field: 'performancesId',
title: '演出id'
}, },
{ {
field: 'title', field: 'title',
...@@ -118,52 +44,27 @@ ...@@ -118,52 +44,27 @@
field: 'timeStart', field: 'timeStart',
title: '开演时间' title: '开演时间'
}, },
{
field: 'totalGeneral',
title: '供票总量'
},
{
field: 'saleGeneral',
title: '实销'
},
{
field: 'surplusGeneral',
title: '余票'
},
{
field: 'totalSalePrice',
title: '总销售款'
},
{ {
field: 'statusName', field: 'statusName',
title: '演出状态' title: '演出状态'
}, },
{ {
field: 'rejectTxt', field: 'isRecommend',
title: '拒绝理由' title: '排序'
},
// {
// field: 'provinceName',
// title: '转增状态'
// },
{
field: 'sort',
title: '排序',
sortable: true
}, },
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function (value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> '); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\')"><i class="fa fa-remove"></i>删除</a>');
actions.push('<a class="btn btn-danger btn-xs ' + expertFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mid + '\')"><i class="fa fa-remove"></i>导出</a>'); actions.push('<a class="btn btn-success btn-xs ' + updateFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
return actions.join(''); return actions.join('');
} }
}] }]
}; };
// $.table.init(options); $.table.init(options);
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
function getPerformanceTitle() { function getPerformanceTitle() {
var testBsSuggest = $("#suggest-demo-2").bsSuggest({ var testBsSuggest = $("#suggest-demo-2").bsSuggest({
url: prefix + "/performance/status?status=(3,6)&title=" + document.getElementById("suggest-demo-2").value, url: prefix + "/performance/status?status=(3,6,7)&title=" + document.getElementById("suggest-demo-2").value,
showBtn: false, showBtn: false,
idField: "performancesId", idField: "performancesId",
keyField: "title" keyField: "title"
......
...@@ -260,33 +260,42 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -260,33 +260,42 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
} }
@Override @Override
public boolean setRecommend(List<PerformanceRecommendAdminParam> performancesIdList) { public PerformanceRecommendDao getRecommend(String performancesId) {
PerformanceRecommendDao result = performancesMapper.getRecommend(performancesId);
return result;
}
@Override
public boolean setRecommend(String performancesId,Integer isRecommend) {
try { try {
if(null == isRecommend){
isRecommend=0;
}
KylinPerformanceStatus performanceStatus = new KylinPerformanceStatus(); KylinPerformanceStatus performanceStatus = new KylinPerformanceStatus();
performanceStatus.setIsRecommend(0); // performanceStatus.setIsRecommend(0);
performanceStatus.setStatus(null); // performanceStatus.setStatus(null);
performanceStatusMapper.update(performanceStatus, new UpdateWrapper<KylinPerformanceStatus>().gt("is_recommend", 0)); // performanceStatusMapper.update(performanceStatus, new UpdateWrapper<KylinPerformanceStatus>().gt("is_recommend", 0));
//
HashMap<String, Object> map = new HashMap<>(); // HashMap<String, Object> map = new HashMap<>();
map.put("isRecommend", 0); // map.put("isRecommend", 0);
BasicDBObject object = new BasicDBObject("$set", map); // BasicDBObject object = new BasicDBObject("$set", map);
mongoTemplate.getCollection(KylinPerformanceVo.class.getSimpleName()).updateMany( // mongoTemplate.getCollection(KylinPerformanceVo.class.getSimpleName()).updateMany(
Query.query(Criteria.where("isRecommend").gt(0)).getQueryObject(), // Query.query(Criteria.where("isRecommend").gt(0)).getQueryObject(),
object // object
); // );
for (PerformanceRecommendAdminParam item : performancesIdList) { // for (PerformanceRecommendAdminParam item : performancesIdList) {
performanceStatus.setIsRecommend(item.getIsRecommend()); performanceStatus.setIsRecommend(isRecommend);
performanceStatusMapper.update(performanceStatus, new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", item.getPerformanceId())); performanceStatusMapper.update(performanceStatus, new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", performancesId));
HashMap<String, Object> map2 = new HashMap<>(); HashMap<String, Object> map2 = new HashMap<>();
map2.put("isRecommend", item.getIsRecommend()); map2.put("isRecommend", isRecommend);
BasicDBObject object2 = new BasicDBObject("$set", map2); BasicDBObject object2 = new BasicDBObject("$set", map2);
mongoTemplate.getCollection(KylinPerformanceVo.class.getSimpleName()).updateOne( mongoTemplate.getCollection(KylinPerformanceVo.class.getSimpleName()).updateOne(
Query.query(Criteria.where("performancesId").is(item.getPerformanceId())).getQueryObject(), Query.query(Criteria.where("performancesId").is(performancesId)).getQueryObject(),
object2 object2
); );
} // }
// dataUtils.delPerformanceRecommendRedis(item.getPerformanceId()); // dataUtils.delPerformanceRecommendRedis(item.getPerformanceId());
return true; return true;
} catch (Exception e) { } catch (Exception e) {
...@@ -329,7 +338,12 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -329,7 +338,12 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
try { try {
PageHelper.startPage(1, 10); PageHelper.startPage(1, 10);
List<PerformanceRecommendAdminDao> voList = performancesMapper.reCommendPerformanceList(); List<PerformanceRecommendAdminDao> voList = performancesMapper.reCommendPerformanceList();
pageInfoTmp = new PageInfo(voList); List<PerformanceRecommendAdminDao> newList = new ArrayList();
for (PerformanceRecommendAdminDao item : voList) {
item.setStatus(item.getStatus());
newList.add(item);
}
pageInfoTmp = new PageInfo(newList);
} catch (Exception e) { } catch (Exception e) {
return null; return null;
} }
......
...@@ -9,5 +9,33 @@ public class PerformanceRecommendAdminDao { ...@@ -9,5 +9,33 @@ public class PerformanceRecommendAdminDao {
private String title; private String title;
private String timeStart; private String timeStart;
private Integer status; private Integer status;
private String statusName;
private Integer isRecommend; private Integer isRecommend;
public void setStatus(Integer status){
this.status=status;
switch (status){
case 1:
this.statusName="审核中";
break;
case 3:
this.statusName="审核通过";
break;
case 4:
this.statusName="审核拒绝";
break;
case 6:
this.statusName="售卖中";
break;
case 7:
this.statusName="已下架";
break;
case 8:
this.statusName="演出结束";
break;
default:
this.statusName="其他";
break;
}
}
} }
package com.liquidnet.service.kylin.dao;
import lombok.Data;
@Data
public class PerformanceRecommendDao {
//演出数据
private String performancesId;
private String title;
private Integer isRecommend;
}
...@@ -38,4 +38,7 @@ public interface KylinPerformancesMapper extends BaseMapper<KylinPerformances> { ...@@ -38,4 +38,7 @@ public interface KylinPerformancesMapper extends BaseMapper<KylinPerformances> {
//演出 会员票相关信息 //演出 会员票相关信息
List<TicketMemberAuditDao> misTicketMemberInfo(String performancesId); List<TicketMemberAuditDao> misTicketMemberInfo(String performancesId);
//演出 会员票相关信息
PerformanceRecommendDao getRecommend(String performancesId);
} }
...@@ -42,6 +42,14 @@ ...@@ -42,6 +42,14 @@
<result column="title" property="title"/> <result column="title" property="title"/>
</resultMap> </resultMap>
<resultMap id="performanceRecommendDaoResult" type="com.liquidnet.service.kylin.dao.PerformanceRecommendDao">
<result column="performances_id" property="performancesId"/>
<result column="title" property="title"/>
<result column="is_recommend" property="isRecommend"/>
</resultMap>
<resultMap id="PerformanceRecommendAdminDaoResult" <resultMap id="PerformanceRecommendAdminDaoResult"
type="com.liquidnet.service.kylin.dao.PerformanceRecommendAdminDao"> type="com.liquidnet.service.kylin.dao.PerformanceRecommendAdminDao">
<result column="performances_id" property="performancesId"/> <result column="performances_id" property="performancesId"/>
...@@ -258,7 +266,16 @@ ...@@ -258,7 +266,16 @@
LEFT JOIN kylin_performance_status AS ps ON ps.performance_id = p.performances_id LEFT JOIN kylin_performance_status AS ps ON ps.performance_id = p.performances_id
WHERE is_recommend > 0 WHERE is_recommend > 0
ORDER BY is_recommend DESC ORDER BY is_recommend DESC
</select>
<!-- Mis 根据演出id查询推荐数据 -->
<select id="getRecommend" parameterType="java.lang.String" resultMap="performanceRecommendDaoResult">
SELECT performances_id,
title,
ps.is_recommend
FROM kylin_performances AS p
LEFT JOIN kylin_performance_status AS ps ON ps.performance_id = p.performances_id
LEFT JOIN kylin_performance_relations AS pr ON pr.performance_id = p.performances_id
WHERE p.performances_id = #{performancesId}
</select> </select>
<!-- Mis根据演出id查询演出名称 --> <!-- Mis根据演出id查询演出名称 -->
<select id="misPerformanceMemberInfo" resultMap="performanceTitleDaoResult"> <select id="misPerformanceMemberInfo" resultMap="performanceTitleDaoResult">
......
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