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

Commit 5bbda1e2 authored by anjiabin's avatar anjiabin

提交admin管理

parent bf5f8538
package com.liquidnet.client.admin.web.controller.zhengzai.adam;
import com.liquidnet.client.admin.common.annotation.Log;
import com.liquidnet.client.admin.common.core.controller.BaseController;
import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.common.core.page.TableDataInfo;
import com.liquidnet.client.admin.common.enums.BusinessType;
import com.liquidnet.client.admin.common.utils.poi.ExcelUtil;
import com.liquidnet.client.admin.zhengzai.adam.domain.AdamUser;
import com.liquidnet.client.admin.zhengzai.adam.service.IAdamUserService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 用户Controller
*
* @author ruoyi
* @date 2021-05-24
*/
@Controller
@RequestMapping("/adam/user")
public class AdamUserController extends BaseController
{
private String prefix = "adam/user";
@Autowired
private IAdamUserService adamUserService;
@RequiresPermissions("adam:user:view")
@GetMapping()
public String user()
{
return prefix + "/user";
}
/**
* 查询用户列表
*/
@RequiresPermissions("adam:user:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(AdamUser adamUser)
{
startPage();
List<AdamUser> list = adamUserService.selectAdamUserList(adamUser);
return getDataTable(list);
}
/**
* 导出用户列表
*/
@RequiresPermissions("adam:user:export")
@Log(title = "用户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(AdamUser adamUser)
{
List<AdamUser> list = adamUserService.selectAdamUserList(adamUser);
ExcelUtil<AdamUser> util = new ExcelUtil<AdamUser>(AdamUser.class);
return util.exportExcel(list, "用户数据");
}
/**
* 新增用户
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存用户
*/
@RequiresPermissions("adam:user:add")
@Log(title = "用户", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(AdamUser adamUser)
{
return toAjax(adamUserService.insertAdamUser(adamUser));
}
/**
* 修改用户
*/
@GetMapping("/edit/{mid}")
public String edit(@PathVariable("mid") Integer mid, ModelMap mmap)
{
AdamUser adamUser = adamUserService.selectAdamUserById(mid);
mmap.put("adamUser", adamUser);
return prefix + "/edit";
}
/**
* 修改保存用户
*/
@RequiresPermissions("adam:user:edit")
@Log(title = "用户", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(AdamUser adamUser)
{
return toAjax(adamUserService.updateAdamUser(adamUser));
}
/**
* 删除用户
*/
@RequiresPermissions("adam:user:remove")
@Log(title = "用户", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(adamUserService.deleteAdamUserByIds(ids));
}
}
package com.liquidnet.client.admin.web.controller.zhengzai.kylin;
import com.liquidnet.client.admin.common.annotation.Log;
import com.liquidnet.client.admin.common.core.controller.BaseController;
import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.common.core.page.TableDataInfo;
import com.liquidnet.client.admin.common.enums.BusinessType;
import com.liquidnet.client.admin.common.utils.poi.ExcelUtil;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinOrderTickets;
import com.liquidnet.client.admin.zhengzai.kylin.service.IKylinOrderTicketsService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 订单Controller
*
* @author anjiabin
* @date 2021-05-24
*/
@Controller
@RequestMapping("/kylin/tickets")
public class KylinOrderTicketsController extends BaseController
{
private String prefix = "zhengzai/kylin/tickets";
@Autowired
private IKylinOrderTicketsService kylinOrderTicketsService;
@RequiresPermissions("kylin:tickets:view")
@GetMapping()
public String tickets()
{
return prefix + "/tickets";
}
/**
* 查询订单列表
*/
@RequiresPermissions("kylin:tickets:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(KylinOrderTickets kylinOrderTickets)
{
startPage();
List<KylinOrderTickets> list = kylinOrderTicketsService.selectKylinOrderTicketsList(kylinOrderTickets);
return getDataTable(list);
}
/**
* 导出订单列表
*/
@RequiresPermissions("kylin:tickets:export")
@Log(title = "订单", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(KylinOrderTickets kylinOrderTickets)
{
List<KylinOrderTickets> list = kylinOrderTicketsService.selectKylinOrderTicketsList(kylinOrderTickets);
ExcelUtil<KylinOrderTickets> util = new ExcelUtil<KylinOrderTickets>(KylinOrderTickets.class);
return util.exportExcel(list, "订单数据");
}
/**
* 新增订单
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存订单
*/
@RequiresPermissions("kylin:tickets:add")
@Log(title = "订单", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(KylinOrderTickets kylinOrderTickets)
{
return toAjax(kylinOrderTicketsService.insertKylinOrderTickets(kylinOrderTickets));
}
/**
* 修改订单
*/
@GetMapping("/edit/{mid}")
public String edit(@PathVariable("mid") Integer mid, ModelMap mmap)
{
KylinOrderTickets kylinOrderTickets = kylinOrderTicketsService.selectKylinOrderTicketsById(mid);
mmap.put("kylinOrderTickets", kylinOrderTickets);
return prefix + "/edit";
}
/**
* 修改保存订单
*/
@RequiresPermissions("kylin:tickets:edit")
@Log(title = "订单", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(KylinOrderTickets kylinOrderTickets)
{
return toAjax(kylinOrderTicketsService.updateKylinOrderTickets(kylinOrderTickets));
}
/**
* 删除订单
*/
@RequiresPermissions("kylin:tickets:remove")
@Log(title = "订单", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(kylinOrderTicketsService.deleteKylinOrderTicketsByIds(ids));
}
}
package com.liquidnet.client.admin.web.controller.zhengzai.kylin;
import com.liquidnet.client.admin.common.annotation.Log;
import com.liquidnet.client.admin.common.core.controller.BaseController;
import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.common.core.page.TableDataInfo;
import com.liquidnet.client.admin.common.enums.BusinessType;
import com.liquidnet.client.admin.common.utils.poi.ExcelUtil;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinPerformances;
import com.liquidnet.client.admin.zhengzai.kylin.service.IKylinPerformancesService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 演出Controller
*
* @author anjiabin
* @date 2021-05-24
*/
@Controller
@RequestMapping("/kylin/performances")
public class KylinPerformancesController extends BaseController
{
private String prefix = "zhengzai/kylin/performances";
@Autowired
private IKylinPerformancesService kylinPerformancesService;
@RequiresPermissions("kylin:performances:view")
@GetMapping()
public String performances()
{
return prefix + "/performances";
}
/**
* 查询演出列表
*/
@RequiresPermissions("kylin:performances:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(KylinPerformances kylinPerformances)
{
startPage();
List<KylinPerformances> list = kylinPerformancesService.selectKylinPerformancesList(kylinPerformances);
return getDataTable(list);
}
/**
* 导出演出列表
*/
@RequiresPermissions("kylin:performances:export")
@Log(title = "演出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(KylinPerformances kylinPerformances)
{
List<KylinPerformances> list = kylinPerformancesService.selectKylinPerformancesList(kylinPerformances);
ExcelUtil<KylinPerformances> util = new ExcelUtil<KylinPerformances>(KylinPerformances.class);
return util.exportExcel(list, "演出数据");
}
/**
* 新增演出
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存演出
*/
@RequiresPermissions("kylin:performances:add")
@Log(title = "演出", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(KylinPerformances kylinPerformances)
{
return toAjax(kylinPerformancesService.insertKylinPerformances(kylinPerformances));
}
/**
* 修改演出
*/
@GetMapping("/edit/{mid}")
public String edit(@PathVariable("mid") Long mid, ModelMap mmap)
{
KylinPerformances kylinPerformances = kylinPerformancesService.selectKylinPerformancesById(mid);
mmap.put("kylinPerformances", kylinPerformances);
return prefix + "/edit";
}
/**
* 修改保存演出
*/
@RequiresPermissions("kylin:performances:edit")
@Log(title = "演出", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(KylinPerformances kylinPerformances)
{
return toAjax(kylinPerformancesService.updateKylinPerformances(kylinPerformances));
}
/**
* 删除演出
*/
@RequiresPermissions("kylin:performances:remove")
@Log(title = "演出", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(kylinPerformancesService.deleteKylinPerformancesByIds(ids));
}
}
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增演出')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-performances-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">performances_id:</label>
<div class="col-sm-8">
<input name="performancesId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出名称:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演:</label>
<div class="col-sm-8">
<select name="type" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出海报:</label>
<div class="col-sm-8">
<input name="imgPoster" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">省id:</label>
<div class="col-sm-8">
<input name="provinceId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">省名称:</label>
<div class="col-sm-8">
<input name="provinceName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">城市id:</label>
<div class="col-sm-8">
<input name="cityId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">城市名称:</label>
<div class="col-sm-8">
<input name="cityName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">县id:</label>
<div class="col-sm-8">
<input name="districtId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">县名称:</label>
<div class="col-sm-8">
<input name="districtName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">批文地址:</label>
<div class="col-sm-8">
<input name="approvalUrl" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出公告:</label>
<div class="col-sm-8">
<input name="notice" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方id:</label>
<div class="col-sm-8">
<input name="sponsorId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方类型:</label>
<div class="col-sm-8">
<select name="sponsorType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方:</label>
<div class="col-sm-8">
<input name="sponsor" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">联系人:</label>
<div class="col-sm-8">
<input name="contacts" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">联系电话:</label>
<div class="col-sm-8">
<input name="mobile" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出简介:</label>
<div class="col-sm-8">
<input name="describes" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">演出详情:</label>
<div class="col-sm-8">
<textarea name="details" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">购票须知:</label>
<div class="col-sm-8">
<textarea name="noticeImage" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出开始时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="timeStart" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出结束时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="timeEnd" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">提审时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="auditTime" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">拒绝理由:</label>
<div class="col-sm-8">
<input name="rejectTxt" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">权重 高则在上:</label>
<div class="col-sm-8">
<input name="sort" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">comment:</label>
<div class="col-sm-8">
<input name="comment" class="form-control" type="text" required>
</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="createdAt" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</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="updatedAt" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "kylin/performances"
$("#form-performances-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-performances-add').serialize());
}
}
$("input[name='timeStart']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='timeEnd']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='auditTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='createdAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updatedAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</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('修改演出')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-performances-edit" th:object="${kylinPerformances}">
<input name="mid" th:field="*{mid}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">performances_id:</label>
<div class="col-sm-8">
<input name="performancesId" th:field="*{performancesId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出名称:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演:</label>
<div class="col-sm-8">
<select name="type" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出海报:</label>
<div class="col-sm-8">
<input name="imgPoster" th:field="*{imgPoster}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">省id:</label>
<div class="col-sm-8">
<input name="provinceId" th:field="*{provinceId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">省名称:</label>
<div class="col-sm-8">
<input name="provinceName" th:field="*{provinceName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">城市id:</label>
<div class="col-sm-8">
<input name="cityId" th:field="*{cityId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">城市名称:</label>
<div class="col-sm-8">
<input name="cityName" th:field="*{cityName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">县id:</label>
<div class="col-sm-8">
<input name="districtId" th:field="*{districtId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">县名称:</label>
<div class="col-sm-8">
<input name="districtName" th:field="*{districtName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">批文地址:</label>
<div class="col-sm-8">
<input name="approvalUrl" th:field="*{approvalUrl}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出公告:</label>
<div class="col-sm-8">
<input name="notice" th:field="*{notice}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方id:</label>
<div class="col-sm-8">
<input name="sponsorId" th:field="*{sponsorId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方类型:</label>
<div class="col-sm-8">
<select name="sponsorType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">主办方:</label>
<div class="col-sm-8">
<input name="sponsor" th:field="*{sponsor}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">联系人:</label>
<div class="col-sm-8">
<input name="contacts" th:field="*{contacts}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">联系电话:</label>
<div class="col-sm-8">
<input name="mobile" th:field="*{mobile}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出简介:</label>
<div class="col-sm-8">
<input name="describes" th:field="*{describes}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">演出详情:</label>
<div class="col-sm-8">
<textarea name="details" class="form-control">[[*{details}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">购票须知:</label>
<div class="col-sm-8">
<textarea name="noticeImage" class="form-control">[[*{noticeImage}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出开始时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="timeStart" th:value="${#dates.format(kylinPerformances.timeStart, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出结束时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="timeEnd" th:value="${#dates.format(kylinPerformances.timeEnd, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">提审时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="auditTime" th:value="${#dates.format(kylinPerformances.auditTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">拒绝理由:</label>
<div class="col-sm-8">
<input name="rejectTxt" th:field="*{rejectTxt}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">权重 高则在上:</label>
<div class="col-sm-8">
<input name="sort" th:field="*{sort}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">comment:</label>
<div class="col-sm-8">
<input name="comment" th:field="*{comment}" class="form-control" type="text" required>
</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="createdAt" th:value="${#dates.format(kylinPerformances.createdAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</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="updatedAt" th:value="${#dates.format(kylinPerformances.updatedAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "kylin/performances";
$("#form-performances-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-performances-edit').serialize());
}
}
$("input[name='timeStart']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='timeEnd']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='auditTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='createdAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updatedAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('演出列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>演出名称:</label>
<input type="text" name="title"/>
</li>
<li>
<label>城市名称:</label>
<input type="text" name="cityName"/>
</li>
<li>
<label>排序字段:</label>
<select name="sponsorType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>排序方式:</label>
<select name="sponsorType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>演出状态:</label>
<select name="sponsorType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>停售时间:</label>
<select name="sponsorType">
<option value="">所有</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>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('kylin:performances:edit')}]];
var removeFlag = [[${@permission.hasPermi('kylin:performances:remove')}]];
var prefix = ctx + "kylin/performances";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
sortName: "sort",
modalName: "演出",
columns: [{
checkbox: true
},
{
field: 'title',
title: '演出名称'
},
{
field: 'timeStart',
title: '开演时间'
},
{
field: 'imgPoster',
title: '供票总量'
},
{
field: 'provinceId',
title: '实销'
},
{
field: 'provinceName',
title: '余票'
},
{
field: 'provinceName',
title: '总销售款'
},
{
field: 'provinceName',
title: '演出状态'
},
{
field: 'provinceName',
title: '分销状态'
},
{
field: 'provinceName',
title: '转增状态'
},
{
field: 'sort',
title: '排序',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.mid + '\')"><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.mid + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</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('新增订单')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-tickets-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">order_tickets_id:</label>
<div class="col-sm-8">
<input name="orderTicketsId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户id:</label>
<div class="col-sm-8">
<input name="userId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户昵称:</label>
<div class="col-sm-8">
<input name="userName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户手机号:</label>
<div class="col-sm-8">
<input name="userMobile" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出名称:</label>
<div class="col-sm-8">
<input name="performanceTitle" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">订单号:</label>
<div class="col-sm-8">
<input name="orderCode" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">二维码地址:</label>
<div class="col-sm-8">
<input name="qrCode" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">下单方式:</label>
<div class="col-sm-8">
<select name="orderType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">下单版本:</label>
<div class="col-sm-8">
<input name="orderVersion" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">数量:</label>
<div class="col-sm-8">
<input name="number" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">单价:</label>
<div class="col-sm-8">
<input name="price" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">会员单价:</label>
<div class="col-sm-8">
<input name="priceMember" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">应付价格:</label>
<div class="col-sm-8">
<input name="priceTotal" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">优惠价格:</label>
<div class="col-sm-8">
<input name="priceVoucher" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">实付价格:</label>
<div class="col-sm-8">
<input name="priceActual" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">快递价格:</label>
<div class="col-sm-8">
<input name="priceExpress" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">退款价格:</label>
<div class="col-sm-8">
<input name="priceRefund" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">退款张数:</label>
<div class="col-sm-8">
<input name="priceNumber" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">选择支付方式:</label>
<div class="col-sm-8">
<select name="payType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">实际支付方式:</label>
<div class="col-sm-8">
<select name="paymentType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">支付时间:</label>
<div class="col-sm-8">
<input name="timePay" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货人:</label>
<div class="col-sm-8">
<input name="expressContacts" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货地址:</label>
<div class="col-sm-8">
<input name="expressAddress" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货人联系方式:</label>
<div class="col-sm-8">
<input name="expressPhone" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">券使用类别:</label>
<div class="col-sm-8">
<select name="couponType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">取票方式 电子票electronic快递票express:</label>
<div class="col-sm-8">
<select name="getTicketType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">直播用取票观演码,隔开:</label>
<div class="col-sm-8">
<input name="getTicketDescribe" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">订单过期时间:</label>
<div class="col-sm-8">
<input name="payCountdownMinute" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">comment:</label>
<div class="col-sm-8">
<input name="comment" class="form-control" type="text" required>
</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="createdAt" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</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="updatedAt" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "adam/tickets"
$("#form-tickets-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-tickets-add').serialize());
}
}
$("input[name='createdAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updatedAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</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('修改订单')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-tickets-edit" th:object="${kylinOrderTickets}">
<input name="mid" th:field="*{mid}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">order_tickets_id:</label>
<div class="col-sm-8">
<input name="orderTicketsId" th:field="*{orderTicketsId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户id:</label>
<div class="col-sm-8">
<input name="userId" th:field="*{userId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户昵称:</label>
<div class="col-sm-8">
<input name="userName" th:field="*{userName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">用户手机号:</label>
<div class="col-sm-8">
<input name="userMobile" th:field="*{userMobile}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">演出名称:</label>
<div class="col-sm-8">
<input name="performanceTitle" th:field="*{performanceTitle}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">订单号:</label>
<div class="col-sm-8">
<input name="orderCode" th:field="*{orderCode}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">二维码地址:</label>
<div class="col-sm-8">
<input name="qrCode" th:field="*{qrCode}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">下单方式:</label>
<div class="col-sm-8">
<select name="orderType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">下单版本:</label>
<div class="col-sm-8">
<input name="orderVersion" th:field="*{orderVersion}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">数量:</label>
<div class="col-sm-8">
<input name="number" th:field="*{number}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">单价:</label>
<div class="col-sm-8">
<input name="price" th:field="*{price}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">会员单价:</label>
<div class="col-sm-8">
<input name="priceMember" th:field="*{priceMember}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">应付价格:</label>
<div class="col-sm-8">
<input name="priceTotal" th:field="*{priceTotal}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">优惠价格:</label>
<div class="col-sm-8">
<input name="priceVoucher" th:field="*{priceVoucher}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">实付价格:</label>
<div class="col-sm-8">
<input name="priceActual" th:field="*{priceActual}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">快递价格:</label>
<div class="col-sm-8">
<input name="priceExpress" th:field="*{priceExpress}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">退款价格:</label>
<div class="col-sm-8">
<input name="priceRefund" th:field="*{priceRefund}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">退款张数:</label>
<div class="col-sm-8">
<input name="priceNumber" th:field="*{priceNumber}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">选择支付方式:</label>
<div class="col-sm-8">
<select name="payType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">实际支付方式:</label>
<div class="col-sm-8">
<select name="paymentType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">支付时间:</label>
<div class="col-sm-8">
<input name="timePay" th:field="*{timePay}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货人:</label>
<div class="col-sm-8">
<input name="expressContacts" th:field="*{expressContacts}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货地址:</label>
<div class="col-sm-8">
<input name="expressAddress" th:field="*{expressAddress}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">收货人联系方式:</label>
<div class="col-sm-8">
<input name="expressPhone" th:field="*{expressPhone}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">券使用类别:</label>
<div class="col-sm-8">
<select name="couponType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">取票方式 电子票electronic快递票express:</label>
<div class="col-sm-8">
<select name="getTicketType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">直播用取票观演码,隔开:</label>
<div class="col-sm-8">
<input name="getTicketDescribe" th:field="*{getTicketDescribe}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">订单过期时间:</label>
<div class="col-sm-8">
<input name="payCountdownMinute" th:field="*{payCountdownMinute}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">comment:</label>
<div class="col-sm-8">
<input name="comment" th:field="*{comment}" class="form-control" type="text" required>
</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="createdAt" th:value="${#dates.format(kylinOrderTickets.createdAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</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="updatedAt" th:value="${#dates.format(kylinOrderTickets.updatedAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "adam/tickets";
$("#form-tickets-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-tickets-edit').serialize());
}
}
$("input[name='createdAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updatedAt']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('订单列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>订单号:</label>
<input type="text" name="orderCode"/>
</li>
<li>
<label>演出名称:</label>
<input type="text" name="performanceTitle"/>
</li>
<li>
<label>电话:</label>
<input type="text" name="userMobile"/>
</li>
<li class="select-time">
<label>支付时间: </label>
<input type="text" class="time-input" id="timePayStart" placeholder="开始日期" name="params[beginTime]"/>
<span>-</span>
<input type="text" class="time-input" id="timePayEnd" placeholder="结束日期" name="params[endTime]"/>
</li>
<li>
<label>第三方:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>支付方式:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>订单状态:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>客户端:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>取票方式:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>快递状态:</label>
<select name="orderType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>搭售商品:</label>
<select name="orderType">
<option value="">所有</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:tickets:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="kylin:tickets:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="kylin:tickets:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="kylin:tickets: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>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('kylin:tickets:edit')}]];
var removeFlag = [[${@permission.hasPermi('kylin:tickets:remove')}]];
var prefix = ctx + "kylin/tickets";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "订单",
columns: [{
checkbox: true
},
{
field: 'userId',
title: '第三方'
},
{
field: 'orderCode',
title: '订单号'
},
{
field: 'performanceTitle',
title: '演出名称'
},
{
field: 'getTicketType',
title: '订单状态'
},
{
field: 'getTicketType',
title: '取票方式'
},
{
field: 'paymentType',
title: '支付方式'
},
{
field: 'userId',
title: '搭售'
},
{
field: 'userName',
title: '总价格'
},
{
field: 'number',
title: '购票量'
},
{
field: 'userId',
title: '用户ID'
},
{
field: 'userMobile',
title: '账户名'
},
{
field: 'userMobile',
title: '手机号'
},
{
field: 'qrCode',
title: '客户端'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.mid + '\')"><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.mid + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>liquidnet-client-admin</artifactId>
<groupId>com.liquidnet</groupId>
<version>4.6.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>liquidnet-client-admin-zhengzai</artifactId>
<description>
zhengzai系统模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-client-admin-common</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.liquidnet.client.admin.zhengzai.adam.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.liquidnet.client.admin.common.annotation.Excel;
import com.liquidnet.client.admin.common.core.domain.BaseEntity;
/**
* 用户对象 adam_user
*
* @author ruoyi
* @date 2021-05-24
*/
public class AdamUser extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Integer mid;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String uid;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String mobile;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String passwd;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String payCode;
/** 1-NORMAL,2-INVALID */
@Excel(name = "1-NORMAL,2-INVALID")
private Integer state;
/** $column.columnComment */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "1-NORMAL,2-INVALID", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** $column.columnComment */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "1-NORMAL,2-INVALID", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
/** $column.columnComment */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "1-NORMAL,2-INVALID", width = 30, dateFormat = "yyyy-MM-dd")
private Date closedAt;
/** $column.columnComment */
@Excel(name = "1-NORMAL,2-INVALID")
private String comment;
public void setMid(Integer mid)
{
this.mid = mid;
}
public Integer getMid()
{
return mid;
}
public void setUid(String uid)
{
this.uid = uid;
}
public String getUid()
{
return uid;
}
public void setMobile(String mobile)
{
this.mobile = mobile;
}
public String getMobile()
{
return mobile;
}
public void setPasswd(String passwd)
{
this.passwd = passwd;
}
public String getPasswd()
{
return passwd;
}
public void setPayCode(String payCode)
{
this.payCode = payCode;
}
public String getPayCode()
{
return payCode;
}
public void setState(Integer state)
{
this.state = state;
}
public Integer getState()
{
return state;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
public void setClosedAt(Date closedAt)
{
this.closedAt = closedAt;
}
public Date getClosedAt()
{
return closedAt;
}
public void setComment(String comment)
{
this.comment = comment;
}
public String getComment()
{
return comment;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("mid", getMid())
.append("uid", getUid())
.append("mobile", getMobile())
.append("passwd", getPasswd())
.append("payCode", getPayCode())
.append("state", getState())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("closedAt", getClosedAt())
.append("comment", getComment())
.toString();
}
}
package com.liquidnet.client.admin.zhengzai.adam.mapper;
import java.util.List;
import com.liquidnet.client.admin.zhengzai.adam.domain.AdamUser;
/**
* 用户Mapper接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface AdamUserMapper
{
/**
* 查询用户
*
* @param mid 用户ID
* @return 用户
*/
public AdamUser selectAdamUserById(Integer mid);
/**
* 查询用户列表
*
* @param adamUser 用户
* @return 用户集合
*/
public List<AdamUser> selectAdamUserList(AdamUser adamUser);
/**
* 新增用户
*
* @param adamUser 用户
* @return 结果
*/
public int insertAdamUser(AdamUser adamUser);
/**
* 修改用户
*
* @param adamUser 用户
* @return 结果
*/
public int updateAdamUser(AdamUser adamUser);
/**
* 删除用户
*
* @param mid 用户ID
* @return 结果
*/
public int deleteAdamUserById(Integer mid);
/**
* 批量删除用户
*
* @param mids 需要删除的数据ID
* @return 结果
*/
public int deleteAdamUserByIds(String[] mids);
}
package com.liquidnet.client.admin.zhengzai.adam.service;
import java.util.List;
import com.liquidnet.client.admin.zhengzai.adam.domain.AdamUser;
/**
* 用户Service接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface IAdamUserService
{
/**
* 查询用户
*
* @param mid 用户ID
* @return 用户
*/
public AdamUser selectAdamUserById(Integer mid);
/**
* 查询用户列表
*
* @param adamUser 用户
* @return 用户集合
*/
public List<AdamUser> selectAdamUserList(AdamUser adamUser);
/**
* 新增用户
*
* @param adamUser 用户
* @return 结果
*/
public int insertAdamUser(AdamUser adamUser);
/**
* 修改用户
*
* @param adamUser 用户
* @return 结果
*/
public int updateAdamUser(AdamUser adamUser);
/**
* 批量删除用户
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteAdamUserByIds(String ids);
/**
* 删除用户信息
*
* @param mid 用户ID
* @return 结果
*/
public int deleteAdamUserById(Integer mid);
}
package com.liquidnet.client.admin.zhengzai.adam.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liquidnet.client.admin.zhengzai.adam.mapper.AdamUserMapper;
import com.liquidnet.client.admin.zhengzai.adam.domain.AdamUser;
import com.liquidnet.client.admin.zhengzai.adam.service.IAdamUserService;
import com.liquidnet.client.admin.common.core.text.Convert;
/**
* 用户Service业务层处理
*
* @author ruoyi
* @date 2021-05-24
*/
@Service
public class AdamUserServiceImpl implements IAdamUserService
{
@Autowired
private AdamUserMapper adamUserMapper;
/**
* 查询用户
*
* @param mid 用户ID
* @return 用户
*/
@Override
public AdamUser selectAdamUserById(Integer mid)
{
return adamUserMapper.selectAdamUserById(mid);
}
/**
* 查询用户列表
*
* @param adamUser 用户
* @return 用户
*/
@Override
public List<AdamUser> selectAdamUserList(AdamUser adamUser)
{
return adamUserMapper.selectAdamUserList(adamUser);
}
/**
* 新增用户
*
* @param adamUser 用户
* @return 结果
*/
@Override
public int insertAdamUser(AdamUser adamUser)
{
return adamUserMapper.insertAdamUser(adamUser);
}
/**
* 修改用户
*
* @param adamUser 用户
* @return 结果
*/
@Override
public int updateAdamUser(AdamUser adamUser)
{
return adamUserMapper.updateAdamUser(adamUser);
}
/**
* 删除用户对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteAdamUserByIds(String ids)
{
return adamUserMapper.deleteAdamUserByIds(Convert.toStrArray(ids));
}
/**
* 删除用户信息
*
* @param mid 用户ID
* @return 结果
*/
@Override
public int deleteAdamUserById(Integer mid)
{
return adamUserMapper.deleteAdamUserById(mid);
}
}
package com.liquidnet.client.admin.zhengzai.kylin.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liquidnet.client.admin.common.annotation.Excel;
import com.liquidnet.client.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* 订单对象 kylin_order_tickets
*
* @author ruoyi
* @date 2021-05-24
*/
public class KylinOrderTickets extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Integer mid;
/** order_tickets_id */
@Excel(name = "order_tickets_id")
private String orderTicketsId;
/** 用户id */
@Excel(name = "用户id")
private String userId;
/** 用户昵称 */
@Excel(name = "用户昵称")
private String userName;
/** 用户手机号 */
@Excel(name = "用户手机号")
private String userMobile;
/** 演出名称 */
@Excel(name = "演出名称")
private String performanceTitle;
/** 订单号 */
@Excel(name = "订单号")
private String orderCode;
/** 二维码地址 */
@Excel(name = "二维码地址")
private String qrCode;
/** 下单方式 */
@Excel(name = "下单方式")
private String orderType;
/** 下单版本 */
@Excel(name = "下单版本")
private String orderVersion;
/** 数量 */
@Excel(name = "数量")
private String number;
/** 单价 */
@Excel(name = "单价")
private BigDecimal price;
/** 会员单价 */
@Excel(name = "会员单价")
private BigDecimal priceMember;
/** 应付价格 */
@Excel(name = "应付价格")
private BigDecimal priceTotal;
/** 优惠价格 */
@Excel(name = "优惠价格")
private BigDecimal priceVoucher;
/** 实付价格 */
@Excel(name = "实付价格")
private BigDecimal priceActual;
/** 快递价格 */
@Excel(name = "快递价格")
private BigDecimal priceExpress;
/** 退款价格 */
@Excel(name = "退款价格")
private BigDecimal priceRefund;
/** 退款张数 */
@Excel(name = "退款张数")
private BigDecimal priceNumber;
/** 选择支付方式 */
@Excel(name = "选择支付方式")
private String payType;
/** 实际支付方式 */
@Excel(name = "实际支付方式")
private String paymentType;
/** 支付时间 */
@Excel(name = "支付时间")
private String timePay;
/** 收货人 */
@Excel(name = "收货人")
private String expressContacts;
/** 收货地址 */
@Excel(name = "收货地址")
private String expressAddress;
/** 收货人联系方式 */
@Excel(name = "收货人联系方式")
private String expressPhone;
/** 券使用类别 */
@Excel(name = "券使用类别")
private String couponType;
/** 取票方式 电子票electronic快递票express */
@Excel(name = "取票方式 电子票electronic快递票express")
private String getTicketType;
/** 直播用取票观演码,隔开 */
@Excel(name = "直播用取票观演码,隔开")
private String getTicketDescribe;
/** 订单过期时间 */
@Excel(name = "订单过期时间")
private String payCountdownMinute;
/** comment */
@Excel(name = "comment")
private String comment;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 修改时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
public void setMid(Integer mid)
{
this.mid = mid;
}
public Integer getMid()
{
return mid;
}
public void setOrderTicketsId(String orderTicketsId)
{
this.orderTicketsId = orderTicketsId;
}
public String getOrderTicketsId()
{
return orderTicketsId;
}
public void setUserId(String userId)
{
this.userId = userId;
}
public String getUserId()
{
return userId;
}
public void setUserName(String userName)
{
this.userName = userName;
}
public String getUserName()
{
return userName;
}
public void setUserMobile(String userMobile)
{
this.userMobile = userMobile;
}
public String getUserMobile()
{
return userMobile;
}
public void setPerformanceTitle(String performanceTitle)
{
this.performanceTitle = performanceTitle;
}
public String getPerformanceTitle()
{
return performanceTitle;
}
public void setOrderCode(String orderCode)
{
this.orderCode = orderCode;
}
public String getOrderCode()
{
return orderCode;
}
public void setQrCode(String qrCode)
{
this.qrCode = qrCode;
}
public String getQrCode()
{
return qrCode;
}
public void setOrderType(String orderType)
{
this.orderType = orderType;
}
public String getOrderType()
{
return orderType;
}
public void setOrderVersion(String orderVersion)
{
this.orderVersion = orderVersion;
}
public String getOrderVersion()
{
return orderVersion;
}
public void setNumber(String number)
{
this.number = number;
}
public String getNumber()
{
return number;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setPriceMember(BigDecimal priceMember)
{
this.priceMember = priceMember;
}
public BigDecimal getPriceMember()
{
return priceMember;
}
public void setPriceTotal(BigDecimal priceTotal)
{
this.priceTotal = priceTotal;
}
public BigDecimal getPriceTotal()
{
return priceTotal;
}
public void setPriceVoucher(BigDecimal priceVoucher)
{
this.priceVoucher = priceVoucher;
}
public BigDecimal getPriceVoucher()
{
return priceVoucher;
}
public void setPriceActual(BigDecimal priceActual)
{
this.priceActual = priceActual;
}
public BigDecimal getPriceActual()
{
return priceActual;
}
public void setPriceExpress(BigDecimal priceExpress)
{
this.priceExpress = priceExpress;
}
public BigDecimal getPriceExpress()
{
return priceExpress;
}
public void setPriceRefund(BigDecimal priceRefund)
{
this.priceRefund = priceRefund;
}
public BigDecimal getPriceRefund()
{
return priceRefund;
}
public void setPriceNumber(BigDecimal priceNumber)
{
this.priceNumber = priceNumber;
}
public BigDecimal getPriceNumber()
{
return priceNumber;
}
public void setPayType(String payType)
{
this.payType = payType;
}
public String getPayType()
{
return payType;
}
public void setPaymentType(String paymentType)
{
this.paymentType = paymentType;
}
public String getPaymentType()
{
return paymentType;
}
public void setTimePay(String timePay)
{
this.timePay = timePay;
}
public String getTimePay()
{
return timePay;
}
public void setExpressContacts(String expressContacts)
{
this.expressContacts = expressContacts;
}
public String getExpressContacts()
{
return expressContacts;
}
public void setExpressAddress(String expressAddress)
{
this.expressAddress = expressAddress;
}
public String getExpressAddress()
{
return expressAddress;
}
public void setExpressPhone(String expressPhone)
{
this.expressPhone = expressPhone;
}
public String getExpressPhone()
{
return expressPhone;
}
public void setCouponType(String couponType)
{
this.couponType = couponType;
}
public String getCouponType()
{
return couponType;
}
public void setGetTicketType(String getTicketType)
{
this.getTicketType = getTicketType;
}
public String getGetTicketType()
{
return getTicketType;
}
public void setGetTicketDescribe(String getTicketDescribe)
{
this.getTicketDescribe = getTicketDescribe;
}
public String getGetTicketDescribe()
{
return getTicketDescribe;
}
public void setPayCountdownMinute(String payCountdownMinute)
{
this.payCountdownMinute = payCountdownMinute;
}
public String getPayCountdownMinute()
{
return payCountdownMinute;
}
public void setComment(String comment)
{
this.comment = comment;
}
public String getComment()
{
return comment;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("mid", getMid())
.append("orderTicketsId", getOrderTicketsId())
.append("userId", getUserId())
.append("userName", getUserName())
.append("userMobile", getUserMobile())
.append("performanceTitle", getPerformanceTitle())
.append("orderCode", getOrderCode())
.append("qrCode", getQrCode())
.append("orderType", getOrderType())
.append("orderVersion", getOrderVersion())
.append("number", getNumber())
.append("price", getPrice())
.append("priceMember", getPriceMember())
.append("priceTotal", getPriceTotal())
.append("priceVoucher", getPriceVoucher())
.append("priceActual", getPriceActual())
.append("priceExpress", getPriceExpress())
.append("priceRefund", getPriceRefund())
.append("priceNumber", getPriceNumber())
.append("payType", getPayType())
.append("paymentType", getPaymentType())
.append("timePay", getTimePay())
.append("expressContacts", getExpressContacts())
.append("expressAddress", getExpressAddress())
.append("expressPhone", getExpressPhone())
.append("couponType", getCouponType())
.append("getTicketType", getGetTicketType())
.append("getTicketDescribe", getGetTicketDescribe())
.append("payCountdownMinute", getPayCountdownMinute())
.append("comment", getComment())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.toString();
}
}
package com.liquidnet.client.admin.zhengzai.kylin.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.liquidnet.client.admin.common.annotation.Excel;
import com.liquidnet.client.admin.common.core.domain.BaseEntity;
/**
* 演出对象 kylin_performances
*
* @author ruoyi
* @date 2021-05-24
*/
public class KylinPerformances extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long mid;
/** performances_id */
@Excel(name = "performances_id")
private String performancesId;
/** 演出名称 */
@Excel(name = "演出名称")
private String title;
/** 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演 */
@Excel(name = "1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
private Integer type;
/** 演出海报 */
@Excel(name = "演出海报")
private String imgPoster;
/** 省id */
@Excel(name = "省id")
private String provinceId;
/** 省名称 */
@Excel(name = "省名称")
private String provinceName;
/** 城市id */
@Excel(name = "城市id")
private Long cityId;
/** 城市名称 */
@Excel(name = "城市名称")
private String cityName;
/** 县id */
@Excel(name = "县id")
private Long districtId;
/** 县名称 */
@Excel(name = "县名称")
private String districtName;
/** 批文地址 */
@Excel(name = "批文地址")
private String approvalUrl;
/** 演出公告 */
@Excel(name = "演出公告")
private String notice;
/** 主办方id */
@Excel(name = "主办方id")
private String sponsorId;
/** 主办方类型 */
@Excel(name = "主办方类型")
private String sponsorType;
/** 主办方 */
@Excel(name = "主办方")
private String sponsor;
/** 联系人 */
@Excel(name = "联系人")
private String contacts;
/** 联系电话 */
@Excel(name = "联系电话")
private String mobile;
/** 演出简介 */
@Excel(name = "演出简介")
private String describes;
/** 演出详情 */
@Excel(name = "演出详情")
private String details;
/** 购票须知 */
@Excel(name = "购票须知")
private String noticeImage;
/** 演出开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "演出开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date timeStart;
/** 演出结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "演出结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date timeEnd;
/** 提审时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "提审时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date auditTime;
/** 拒绝理由 */
@Excel(name = "拒绝理由")
private String rejectTxt;
/** 权重 高则在上 */
@Excel(name = "权重 高则在上")
private Long sort;
/** comment */
@Excel(name = "comment")
private String comment;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 修改时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
public void setMid(Long mid)
{
this.mid = mid;
}
public Long getMid()
{
return mid;
}
public void setPerformancesId(String performancesId)
{
this.performancesId = performancesId;
}
public String getPerformancesId()
{
return performancesId;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setType(Integer type)
{
this.type = type;
}
public Integer getType()
{
return type;
}
public void setImgPoster(String imgPoster)
{
this.imgPoster = imgPoster;
}
public String getImgPoster()
{
return imgPoster;
}
public void setProvinceId(String provinceId)
{
this.provinceId = provinceId;
}
public String getProvinceId()
{
return provinceId;
}
public void setProvinceName(String provinceName)
{
this.provinceName = provinceName;
}
public String getProvinceName()
{
return provinceName;
}
public void setCityId(Long cityId)
{
this.cityId = cityId;
}
public Long getCityId()
{
return cityId;
}
public void setCityName(String cityName)
{
this.cityName = cityName;
}
public String getCityName()
{
return cityName;
}
public void setDistrictId(Long districtId)
{
this.districtId = districtId;
}
public Long getDistrictId()
{
return districtId;
}
public void setDistrictName(String districtName)
{
this.districtName = districtName;
}
public String getDistrictName()
{
return districtName;
}
public void setApprovalUrl(String approvalUrl)
{
this.approvalUrl = approvalUrl;
}
public String getApprovalUrl()
{
return approvalUrl;
}
public void setNotice(String notice)
{
this.notice = notice;
}
public String getNotice()
{
return notice;
}
public void setSponsorId(String sponsorId)
{
this.sponsorId = sponsorId;
}
public String getSponsorId()
{
return sponsorId;
}
public void setSponsorType(String sponsorType)
{
this.sponsorType = sponsorType;
}
public String getSponsorType()
{
return sponsorType;
}
public void setSponsor(String sponsor)
{
this.sponsor = sponsor;
}
public String getSponsor()
{
return sponsor;
}
public void setContacts(String contacts)
{
this.contacts = contacts;
}
public String getContacts()
{
return contacts;
}
public void setMobile(String mobile)
{
this.mobile = mobile;
}
public String getMobile()
{
return mobile;
}
public void setDescribes(String describes)
{
this.describes = describes;
}
public String getDescribes()
{
return describes;
}
public void setDetails(String details)
{
this.details = details;
}
public String getDetails()
{
return details;
}
public void setNoticeImage(String noticeImage)
{
this.noticeImage = noticeImage;
}
public String getNoticeImage()
{
return noticeImage;
}
public void setTimeStart(Date timeStart)
{
this.timeStart = timeStart;
}
public Date getTimeStart()
{
return timeStart;
}
public void setTimeEnd(Date timeEnd)
{
this.timeEnd = timeEnd;
}
public Date getTimeEnd()
{
return timeEnd;
}
public void setAuditTime(Date auditTime)
{
this.auditTime = auditTime;
}
public Date getAuditTime()
{
return auditTime;
}
public void setRejectTxt(String rejectTxt)
{
this.rejectTxt = rejectTxt;
}
public String getRejectTxt()
{
return rejectTxt;
}
public void setSort(Long sort)
{
this.sort = sort;
}
public Long getSort()
{
return sort;
}
public void setComment(String comment)
{
this.comment = comment;
}
public String getComment()
{
return comment;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
public Date getCreatedAt()
{
return createdAt;
}
public void setUpdatedAt(Date updatedAt)
{
this.updatedAt = updatedAt;
}
public Date getUpdatedAt()
{
return updatedAt;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("mid", getMid())
.append("performancesId", getPerformancesId())
.append("title", getTitle())
.append("type", getType())
.append("imgPoster", getImgPoster())
.append("provinceId", getProvinceId())
.append("provinceName", getProvinceName())
.append("cityId", getCityId())
.append("cityName", getCityName())
.append("districtId", getDistrictId())
.append("districtName", getDistrictName())
.append("approvalUrl", getApprovalUrl())
.append("notice", getNotice())
.append("sponsorId", getSponsorId())
.append("sponsorType", getSponsorType())
.append("sponsor", getSponsor())
.append("contacts", getContacts())
.append("mobile", getMobile())
.append("describes", getDescribes())
.append("details", getDetails())
.append("noticeImage", getNoticeImage())
.append("timeStart", getTimeStart())
.append("timeEnd", getTimeEnd())
.append("auditTime", getAuditTime())
.append("rejectTxt", getRejectTxt())
.append("sort", getSort())
.append("comment", getComment())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.toString();
}
}
package com.liquidnet.client.admin.zhengzai.kylin.mapper;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinOrderTickets;
import java.util.List;
/**
* 订单Mapper接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface KylinOrderTicketsMapper
{
/**
* 查询订单
*
* @param mid 订单ID
* @return 订单
*/
public KylinOrderTickets selectKylinOrderTicketsById(Integer mid);
/**
* 查询订单列表
*
* @param kylinOrderTickets 订单
* @return 订单集合
*/
public List<KylinOrderTickets> selectKylinOrderTicketsList(KylinOrderTickets kylinOrderTickets);
/**
* 新增订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
public int insertKylinOrderTickets(KylinOrderTickets kylinOrderTickets);
/**
* 修改订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
public int updateKylinOrderTickets(KylinOrderTickets kylinOrderTickets);
/**
* 删除订单
*
* @param mid 订单ID
* @return 结果
*/
public int deleteKylinOrderTicketsById(Integer mid);
/**
* 批量删除订单
*
* @param mids 需要删除的数据ID
* @return 结果
*/
public int deleteKylinOrderTicketsByIds(String[] mids);
}
package com.liquidnet.client.admin.zhengzai.kylin.mapper;
import java.util.List;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinPerformances;
/**
* 演出Mapper接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface KylinPerformancesMapper
{
/**
* 查询演出
*
* @param mid 演出ID
* @return 演出
*/
public KylinPerformances selectKylinPerformancesById(Long mid);
/**
* 查询演出列表
*
* @param kylinPerformances 演出
* @return 演出集合
*/
public List<KylinPerformances> selectKylinPerformancesList(KylinPerformances kylinPerformances);
/**
* 新增演出
*
* @param kylinPerformances 演出
* @return 结果
*/
public int insertKylinPerformances(KylinPerformances kylinPerformances);
/**
* 修改演出
*
* @param kylinPerformances 演出
* @return 结果
*/
public int updateKylinPerformances(KylinPerformances kylinPerformances);
/**
* 删除演出
*
* @param mid 演出ID
* @return 结果
*/
public int deleteKylinPerformancesById(Long mid);
/**
* 批量删除演出
*
* @param mids 需要删除的数据ID
* @return 结果
*/
public int deleteKylinPerformancesByIds(String[] mids);
}
package com.liquidnet.client.admin.zhengzai.kylin.service;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinOrderTickets;
import java.util.List;
/**
* 订单Service接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface IKylinOrderTicketsService
{
/**
* 查询订单
*
* @param mid 订单ID
* @return 订单
*/
public KylinOrderTickets selectKylinOrderTicketsById(Integer mid);
/**
* 查询订单列表
*
* @param kylinOrderTickets 订单
* @return 订单集合
*/
public List<KylinOrderTickets> selectKylinOrderTicketsList(KylinOrderTickets kylinOrderTickets);
/**
* 新增订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
public int insertKylinOrderTickets(KylinOrderTickets kylinOrderTickets);
/**
* 修改订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
public int updateKylinOrderTickets(KylinOrderTickets kylinOrderTickets);
/**
* 批量删除订单
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteKylinOrderTicketsByIds(String ids);
/**
* 删除订单信息
*
* @param mid 订单ID
* @return 结果
*/
public int deleteKylinOrderTicketsById(Integer mid);
}
package com.liquidnet.client.admin.zhengzai.kylin.service;
import java.util.List;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinPerformances;
/**
* 演出Service接口
*
* @author ruoyi
* @date 2021-05-24
*/
public interface IKylinPerformancesService
{
/**
* 查询演出
*
* @param mid 演出ID
* @return 演出
*/
public KylinPerformances selectKylinPerformancesById(Long mid);
/**
* 查询演出列表
*
* @param kylinPerformances 演出
* @return 演出集合
*/
public List<KylinPerformances> selectKylinPerformancesList(KylinPerformances kylinPerformances);
/**
* 新增演出
*
* @param kylinPerformances 演出
* @return 结果
*/
public int insertKylinPerformances(KylinPerformances kylinPerformances);
/**
* 修改演出
*
* @param kylinPerformances 演出
* @return 结果
*/
public int updateKylinPerformances(KylinPerformances kylinPerformances);
/**
* 批量删除演出
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteKylinPerformancesByIds(String ids);
/**
* 删除演出信息
*
* @param mid 演出ID
* @return 结果
*/
public int deleteKylinPerformancesById(Long mid);
}
package com.liquidnet.client.admin.zhengzai.kylin.service.impl;
import com.liquidnet.client.admin.common.core.text.Convert;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinOrderTickets;
import com.liquidnet.client.admin.zhengzai.kylin.mapper.KylinOrderTicketsMapper;
import com.liquidnet.client.admin.zhengzai.kylin.service.IKylinOrderTicketsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 订单Service业务层处理
*
* @author ruoyi
* @date 2021-05-24
*/
@Service
public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService
{
@Autowired
private KylinOrderTicketsMapper kylinOrderTicketsMapper;
/**
* 查询订单
*
* @param mid 订单ID
* @return 订单
*/
@Override
public KylinOrderTickets selectKylinOrderTicketsById(Integer mid)
{
return kylinOrderTicketsMapper.selectKylinOrderTicketsById(mid);
}
/**
* 查询订单列表
*
* @param kylinOrderTickets 订单
* @return 订单
*/
@Override
public List<KylinOrderTickets> selectKylinOrderTicketsList(KylinOrderTickets kylinOrderTickets)
{
return kylinOrderTicketsMapper.selectKylinOrderTicketsList(kylinOrderTickets);
}
/**
* 新增订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
@Override
public int insertKylinOrderTickets(KylinOrderTickets kylinOrderTickets)
{
return kylinOrderTicketsMapper.insertKylinOrderTickets(kylinOrderTickets);
}
/**
* 修改订单
*
* @param kylinOrderTickets 订单
* @return 结果
*/
@Override
public int updateKylinOrderTickets(KylinOrderTickets kylinOrderTickets)
{
return kylinOrderTicketsMapper.updateKylinOrderTickets(kylinOrderTickets);
}
/**
* 删除订单对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteKylinOrderTicketsByIds(String ids)
{
return kylinOrderTicketsMapper.deleteKylinOrderTicketsByIds(Convert.toStrArray(ids));
}
/**
* 删除订单信息
*
* @param mid 订单ID
* @return 结果
*/
@Override
public int deleteKylinOrderTicketsById(Integer mid)
{
return kylinOrderTicketsMapper.deleteKylinOrderTicketsById(mid);
}
}
package com.liquidnet.client.admin.zhengzai.kylin.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liquidnet.client.admin.zhengzai.kylin.mapper.KylinPerformancesMapper;
import com.liquidnet.client.admin.zhengzai.kylin.domain.KylinPerformances;
import com.liquidnet.client.admin.zhengzai.kylin.service.IKylinPerformancesService;
import com.liquidnet.client.admin.common.core.text.Convert;
/**
* 演出Service业务层处理
*
* @author ruoyi
* @date 2021-05-24
*/
@Service
public class KylinPerformancesServiceImpl implements IKylinPerformancesService
{
@Autowired
private KylinPerformancesMapper kylinPerformancesMapper;
/**
* 查询演出
*
* @param mid 演出ID
* @return 演出
*/
@Override
public KylinPerformances selectKylinPerformancesById(Long mid)
{
return kylinPerformancesMapper.selectKylinPerformancesById(mid);
}
/**
* 查询演出列表
*
* @param kylinPerformances 演出
* @return 演出
*/
@Override
public List<KylinPerformances> selectKylinPerformancesList(KylinPerformances kylinPerformances)
{
return kylinPerformancesMapper.selectKylinPerformancesList(kylinPerformances);
}
/**
* 新增演出
*
* @param kylinPerformances 演出
* @return 结果
*/
@Override
public int insertKylinPerformances(KylinPerformances kylinPerformances)
{
return kylinPerformancesMapper.insertKylinPerformances(kylinPerformances);
}
/**
* 修改演出
*
* @param kylinPerformances 演出
* @return 结果
*/
@Override
public int updateKylinPerformances(KylinPerformances kylinPerformances)
{
return kylinPerformancesMapper.updateKylinPerformances(kylinPerformances);
}
/**
* 删除演出对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteKylinPerformancesByIds(String ids)
{
return kylinPerformancesMapper.deleteKylinPerformancesByIds(Convert.toStrArray(ids));
}
/**
* 删除演出信息
*
* @param mid 演出ID
* @return 结果
*/
@Override
public int deleteKylinPerformancesById(Long mid)
{
return kylinPerformancesMapper.deleteKylinPerformancesById(mid);
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.client.admin.zhengzai.kylin.mapper.KylinOrderTicketsMapper">
<resultMap type="KylinOrderTickets" id="KylinOrderTicketsResult">
<result property="mid" column="mid" />
<result property="orderTicketsId" column="order_tickets_id" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="userMobile" column="user_mobile" />
<result property="performanceTitle" column="performance_title" />
<result property="orderCode" column="order_code" />
<result property="qrCode" column="qr_code" />
<result property="orderType" column="order_type" />
<result property="orderVersion" column="order_version" />
<result property="number" column="number" />
<result property="price" column="price" />
<result property="priceMember" column="price_member" />
<result property="priceTotal" column="price_total" />
<result property="priceVoucher" column="price_voucher" />
<result property="priceActual" column="price_actual" />
<result property="priceExpress" column="price_express" />
<result property="priceRefund" column="price_refund" />
<result property="priceNumber" column="price_number" />
<result property="payType" column="pay_type" />
<result property="paymentType" column="payment_type" />
<result property="timePay" column="time_pay" />
<result property="expressContacts" column="express_contacts" />
<result property="expressAddress" column="express_address" />
<result property="expressPhone" column="express_phone" />
<result property="couponType" column="coupon_type" />
<result property="getTicketType" column="get_ticket_type" />
<result property="getTicketDescribe" column="get_ticket_describe" />
<result property="payCountdownMinute" column="pay_countdown_minute" />
<result property="comment" column="comment" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
</resultMap>
<sql id="selectKylinOrderTicketsVo">
select mid, order_tickets_id, user_id, user_name, user_mobile, performance_title, order_code, qr_code, order_type, order_version, number, price, price_member, price_total, price_voucher, price_actual, price_express, price_refund, price_number, pay_type, payment_type, time_pay, express_contacts, express_address, express_phone, coupon_type, get_ticket_type, get_ticket_describe, pay_countdown_minute, comment, created_at, updated_at from kylin_order_tickets
</sql>
<select id="selectKylinOrderTicketsList" parameterType="KylinOrderTickets" resultMap="KylinOrderTicketsResult">
<include refid="selectKylinOrderTicketsVo"/>
<where>
<if test="orderTicketsId != null and orderTicketsId != ''"> and order_tickets_id = #{orderTicketsId}</if>
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="userMobile != null and userMobile != ''"> and user_mobile = #{userMobile}</if>
<if test="performanceTitle != null and performanceTitle != ''"> and performance_title = #{performanceTitle}</if>
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</if>
<if test="qrCode != null and qrCode != ''"> and qr_code = #{qrCode}</if>
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
<if test="orderVersion != null and orderVersion != ''"> and order_version = #{orderVersion}</if>
<if test="number != null and number != ''"> and number = #{number}</if>
<if test="price != null "> and price = #{price}</if>
<if test="priceMember != null "> and price_member = #{priceMember}</if>
<if test="priceTotal != null "> and price_total = #{priceTotal}</if>
<if test="priceVoucher != null "> and price_voucher = #{priceVoucher}</if>
<if test="priceActual != null "> and price_actual = #{priceActual}</if>
<if test="priceExpress != null "> and price_express = #{priceExpress}</if>
<if test="priceRefund != null "> and price_refund = #{priceRefund}</if>
<if test="priceNumber != null "> and price_number = #{priceNumber}</if>
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
<if test="paymentType != null and paymentType != ''"> and payment_type = #{paymentType}</if>
<if test="timePay != null and timePay != ''"> and time_pay = #{timePay}</if>
<if test="expressContacts != null and expressContacts != ''"> and express_contacts = #{expressContacts}</if>
<if test="expressAddress != null and expressAddress != ''"> and express_address = #{expressAddress}</if>
<if test="expressPhone != null and expressPhone != ''"> and express_phone = #{expressPhone}</if>
<if test="couponType != null and couponType != ''"> and coupon_type = #{couponType}</if>
<if test="getTicketType != null and getTicketType != ''"> and get_ticket_type = #{getTicketType}</if>
<if test="getTicketDescribe != null and getTicketDescribe != ''"> and get_ticket_describe = #{getTicketDescribe}</if>
<if test="payCountdownMinute != null and payCountdownMinute != ''"> and pay_countdown_minute = #{payCountdownMinute}</if>
<if test="comment != null and comment != ''"> and comment = #{comment}</if>
<if test="createdAt != null "> and created_at = #{createdAt}</if>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
</where>
</select>
<select id="selectKylinOrderTicketsById" parameterType="Integer" resultMap="KylinOrderTicketsResult">
<include refid="selectKylinOrderTicketsVo"/>
where mid = #{mid}
</select>
<insert id="insertKylinOrderTickets" parameterType="KylinOrderTickets" useGeneratedKeys="true" keyProperty="mid">
insert into kylin_order_tickets
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderTicketsId != null and orderTicketsId != ''">order_tickets_id,</if>
<if test="userId != null and userId != ''">user_id,</if>
<if test="userName != null and userName != ''">user_name,</if>
<if test="userMobile != null and userMobile != ''">user_mobile,</if>
<if test="performanceTitle != null and performanceTitle != ''">performance_title,</if>
<if test="orderCode != null and orderCode != ''">order_code,</if>
<if test="qrCode != null and qrCode != ''">qr_code,</if>
<if test="orderType != null and orderType != ''">order_type,</if>
<if test="orderVersion != null and orderVersion != ''">order_version,</if>
<if test="number != null and number != ''">number,</if>
<if test="price != null">price,</if>
<if test="priceMember != null">price_member,</if>
<if test="priceTotal != null">price_total,</if>
<if test="priceVoucher != null">price_voucher,</if>
<if test="priceActual != null">price_actual,</if>
<if test="priceExpress != null">price_express,</if>
<if test="priceRefund != null">price_refund,</if>
<if test="priceNumber != null">price_number,</if>
<if test="payType != null and payType != ''">pay_type,</if>
<if test="paymentType != null and paymentType != ''">payment_type,</if>
<if test="timePay != null and timePay != ''">time_pay,</if>
<if test="expressContacts != null and expressContacts != ''">express_contacts,</if>
<if test="expressAddress != null and expressAddress != ''">express_address,</if>
<if test="expressPhone != null and expressPhone != ''">express_phone,</if>
<if test="couponType != null and couponType != ''">coupon_type,</if>
<if test="getTicketType != null and getTicketType != ''">get_ticket_type,</if>
<if test="getTicketDescribe != null and getTicketDescribe != ''">get_ticket_describe,</if>
<if test="payCountdownMinute != null and payCountdownMinute != ''">pay_countdown_minute,</if>
<if test="comment != null and comment != ''">comment,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderTicketsId != null and orderTicketsId != ''">#{orderTicketsId},</if>
<if test="userId != null and userId != ''">#{userId},</if>
<if test="userName != null and userName != ''">#{userName},</if>
<if test="userMobile != null and userMobile != ''">#{userMobile},</if>
<if test="performanceTitle != null and performanceTitle != ''">#{performanceTitle},</if>
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
<if test="qrCode != null and qrCode != ''">#{qrCode},</if>
<if test="orderType != null and orderType != ''">#{orderType},</if>
<if test="orderVersion != null and orderVersion != ''">#{orderVersion},</if>
<if test="number != null and number != ''">#{number},</if>
<if test="price != null">#{price},</if>
<if test="priceMember != null">#{priceMember},</if>
<if test="priceTotal != null">#{priceTotal},</if>
<if test="priceVoucher != null">#{priceVoucher},</if>
<if test="priceActual != null">#{priceActual},</if>
<if test="priceExpress != null">#{priceExpress},</if>
<if test="priceRefund != null">#{priceRefund},</if>
<if test="priceNumber != null">#{priceNumber},</if>
<if test="payType != null and payType != ''">#{payType},</if>
<if test="paymentType != null and paymentType != ''">#{paymentType},</if>
<if test="timePay != null and timePay != ''">#{timePay},</if>
<if test="expressContacts != null and expressContacts != ''">#{expressContacts},</if>
<if test="expressAddress != null and expressAddress != ''">#{expressAddress},</if>
<if test="expressPhone != null and expressPhone != ''">#{expressPhone},</if>
<if test="couponType != null and couponType != ''">#{couponType},</if>
<if test="getTicketType != null and getTicketType != ''">#{getTicketType},</if>
<if test="getTicketDescribe != null and getTicketDescribe != ''">#{getTicketDescribe},</if>
<if test="payCountdownMinute != null and payCountdownMinute != ''">#{payCountdownMinute},</if>
<if test="comment != null and comment != ''">#{comment},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
</trim>
</insert>
<update id="updateKylinOrderTickets" parameterType="KylinOrderTickets">
update kylin_order_tickets
<trim prefix="SET" suffixOverrides=",">
<if test="orderTicketsId != null and orderTicketsId != ''">order_tickets_id = #{orderTicketsId},</if>
<if test="userId != null and userId != ''">user_id = #{userId},</if>
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="userMobile != null and userMobile != ''">user_mobile = #{userMobile},</if>
<if test="performanceTitle != null and performanceTitle != ''">performance_title = #{performanceTitle},</if>
<if test="orderCode != null and orderCode != ''">order_code = #{orderCode},</if>
<if test="qrCode != null and qrCode != ''">qr_code = #{qrCode},</if>
<if test="orderType != null and orderType != ''">order_type = #{orderType},</if>
<if test="orderVersion != null and orderVersion != ''">order_version = #{orderVersion},</if>
<if test="number != null and number != ''">number = #{number},</if>
<if test="price != null">price = #{price},</if>
<if test="priceMember != null">price_member = #{priceMember},</if>
<if test="priceTotal != null">price_total = #{priceTotal},</if>
<if test="priceVoucher != null">price_voucher = #{priceVoucher},</if>
<if test="priceActual != null">price_actual = #{priceActual},</if>
<if test="priceExpress != null">price_express = #{priceExpress},</if>
<if test="priceRefund != null">price_refund = #{priceRefund},</if>
<if test="priceNumber != null">price_number = #{priceNumber},</if>
<if test="payType != null and payType != ''">pay_type = #{payType},</if>
<if test="paymentType != null and paymentType != ''">payment_type = #{paymentType},</if>
<if test="timePay != null and timePay != ''">time_pay = #{timePay},</if>
<if test="expressContacts != null and expressContacts != ''">express_contacts = #{expressContacts},</if>
<if test="expressAddress != null and expressAddress != ''">express_address = #{expressAddress},</if>
<if test="expressPhone != null and expressPhone != ''">express_phone = #{expressPhone},</if>
<if test="couponType != null and couponType != ''">coupon_type = #{couponType},</if>
<if test="getTicketType != null and getTicketType != ''">get_ticket_type = #{getTicketType},</if>
<if test="getTicketDescribe != null and getTicketDescribe != ''">get_ticket_describe = #{getTicketDescribe},</if>
<if test="payCountdownMinute != null and payCountdownMinute != ''">pay_countdown_minute = #{payCountdownMinute},</if>
<if test="comment != null and comment != ''">comment = #{comment},</if>
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
</trim>
where mid = #{mid}
</update>
<delete id="deleteKylinOrderTicketsById" parameterType="Integer">
delete from kylin_order_tickets where mid = #{mid}
</delete>
<delete id="deleteKylinOrderTicketsByIds" parameterType="String">
delete from kylin_order_tickets where mid in
<foreach item="mid" collection="array" open="(" separator="," close=")">
#{mid}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.client.admin.zhengzai.kylin.mapper.KylinPerformancesMapper">
<resultMap type="KylinPerformances" id="KylinPerformancesResult">
<result property="mid" column="mid" />
<result property="performancesId" column="performances_id" />
<result property="title" column="title" />
<result property="type" column="type" />
<result property="imgPoster" column="img_poster" />
<result property="provinceId" column="province_id" />
<result property="provinceName" column="province_name" />
<result property="cityId" column="city_id" />
<result property="cityName" column="city_name" />
<result property="districtId" column="district_id" />
<result property="districtName" column="district_name" />
<result property="approvalUrl" column="approval_url" />
<result property="notice" column="notice" />
<result property="sponsorId" column="sponsor_id" />
<result property="sponsorType" column="sponsor_type" />
<result property="sponsor" column="sponsor" />
<result property="contacts" column="contacts" />
<result property="mobile" column="mobile" />
<result property="describes" column="describes" />
<result property="details" column="details" />
<result property="noticeImage" column="notice_image" />
<result property="timeStart" column="time_start" />
<result property="timeEnd" column="time_end" />
<result property="auditTime" column="audit_time" />
<result property="rejectTxt" column="reject_txt" />
<result property="sort" column="sort" />
<result property="comment" column="comment" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
</resultMap>
<sql id="selectKylinPerformancesVo">
select mid, performances_id, title, type, img_poster, province_id, province_name, city_id, city_name, district_id, district_name, approval_url, notice, sponsor_id, sponsor_type, sponsor, contacts, mobile, describes, details, notice_image, time_start, time_end, audit_time, reject_txt, sort, comment, created_at, updated_at from kylin_performances
</sql>
<select id="selectKylinPerformancesList" parameterType="KylinPerformances" resultMap="KylinPerformancesResult">
<include refid="selectKylinPerformancesVo"/>
<where>
<if test="performancesId != null and performancesId != ''"> and performances_id = #{performancesId}</if>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="type != null "> and type = #{type}</if>
<if test="imgPoster != null and imgPoster != ''"> and img_poster = #{imgPoster}</if>
<if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
<if test="provinceName != null and provinceName != ''"> and province_name like concat('%', #{provinceName}, '%')</if>
<if test="cityId != null "> and city_id = #{cityId}</if>
<if test="cityName != null and cityName != ''"> and city_name like concat('%', #{cityName}, '%')</if>
<if test="districtId != null "> and district_id = #{districtId}</if>
<if test="districtName != null and districtName != ''"> and district_name like concat('%', #{districtName}, '%')</if>
<if test="approvalUrl != null and approvalUrl != ''"> and approval_url = #{approvalUrl}</if>
<if test="notice != null and notice != ''"> and notice = #{notice}</if>
<if test="sponsorId != null and sponsorId != ''"> and sponsor_id = #{sponsorId}</if>
<if test="sponsorType != null and sponsorType != ''"> and sponsor_type = #{sponsorType}</if>
<if test="sponsor != null and sponsor != ''"> and sponsor = #{sponsor}</if>
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
<if test="describes != null and describes != ''"> and describes = #{describes}</if>
<if test="details != null and details != ''"> and details = #{details}</if>
<if test="noticeImage != null and noticeImage != ''"> and notice_image = #{noticeImage}</if>
<if test="timeStart != null "> and time_start = #{timeStart}</if>
<if test="timeEnd != null "> and time_end = #{timeEnd}</if>
<if test="auditTime != null "> and audit_time = #{auditTime}</if>
<if test="rejectTxt != null and rejectTxt != ''"> and reject_txt = #{rejectTxt}</if>
<if test="sort != null "> and sort = #{sort}</if>
<if test="comment != null and comment != ''"> and comment = #{comment}</if>
<if test="createdAt != null "> and created_at = #{createdAt}</if>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
</where>
</select>
<select id="selectKylinPerformancesById" parameterType="Long" resultMap="KylinPerformancesResult">
<include refid="selectKylinPerformancesVo"/>
where mid = #{mid}
</select>
<insert id="insertKylinPerformances" parameterType="KylinPerformances" useGeneratedKeys="true" keyProperty="mid">
insert into kylin_performances
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="performancesId != null and performancesId != ''">performances_id,</if>
<if test="title != null and title != ''">title,</if>
<if test="type != null">type,</if>
<if test="imgPoster != null and imgPoster != ''">img_poster,</if>
<if test="provinceId != null and provinceId != ''">province_id,</if>
<if test="provinceName != null and provinceName != ''">province_name,</if>
<if test="cityId != null">city_id,</if>
<if test="cityName != null and cityName != ''">city_name,</if>
<if test="districtId != null">district_id,</if>
<if test="districtName != null and districtName != ''">district_name,</if>
<if test="approvalUrl != null and approvalUrl != ''">approval_url,</if>
<if test="notice != null and notice != ''">notice,</if>
<if test="sponsorId != null and sponsorId != ''">sponsor_id,</if>
<if test="sponsorType != null and sponsorType != ''">sponsor_type,</if>
<if test="sponsor != null and sponsor != ''">sponsor,</if>
<if test="contacts != null and contacts != ''">contacts,</if>
<if test="mobile != null and mobile != ''">mobile,</if>
<if test="describes != null and describes != ''">describes,</if>
<if test="details != null">details,</if>
<if test="noticeImage != null">notice_image,</if>
<if test="timeStart != null">time_start,</if>
<if test="timeEnd != null">time_end,</if>
<if test="auditTime != null">audit_time,</if>
<if test="rejectTxt != null and rejectTxt != ''">reject_txt,</if>
<if test="sort != null">sort,</if>
<if test="comment != null and comment != ''">comment,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="performancesId != null and performancesId != ''">#{performancesId},</if>
<if test="title != null and title != ''">#{title},</if>
<if test="type != null">#{type},</if>
<if test="imgPoster != null and imgPoster != ''">#{imgPoster},</if>
<if test="provinceId != null and provinceId != ''">#{provinceId},</if>
<if test="provinceName != null and provinceName != ''">#{provinceName},</if>
<if test="cityId != null">#{cityId},</if>
<if test="cityName != null and cityName != ''">#{cityName},</if>
<if test="districtId != null">#{districtId},</if>
<if test="districtName != null and districtName != ''">#{districtName},</if>
<if test="approvalUrl != null and approvalUrl != ''">#{approvalUrl},</if>
<if test="notice != null and notice != ''">#{notice},</if>
<if test="sponsorId != null and sponsorId != ''">#{sponsorId},</if>
<if test="sponsorType != null and sponsorType != ''">#{sponsorType},</if>
<if test="sponsor != null and sponsor != ''">#{sponsor},</if>
<if test="contacts != null and contacts != ''">#{contacts},</if>
<if test="mobile != null and mobile != ''">#{mobile},</if>
<if test="describes != null and describes != ''">#{describes},</if>
<if test="details != null">#{details},</if>
<if test="noticeImage != null">#{noticeImage},</if>
<if test="timeStart != null">#{timeStart},</if>
<if test="timeEnd != null">#{timeEnd},</if>
<if test="auditTime != null">#{auditTime},</if>
<if test="rejectTxt != null and rejectTxt != ''">#{rejectTxt},</if>
<if test="sort != null">#{sort},</if>
<if test="comment != null and comment != ''">#{comment},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
</trim>
</insert>
<update id="updateKylinPerformances" parameterType="KylinPerformances">
update kylin_performances
<trim prefix="SET" suffixOverrides=",">
<if test="performancesId != null and performancesId != ''">performances_id = #{performancesId},</if>
<if test="title != null and title != ''">title = #{title},</if>
<if test="type != null">type = #{type},</if>
<if test="imgPoster != null and imgPoster != ''">img_poster = #{imgPoster},</if>
<if test="provinceId != null and provinceId != ''">province_id = #{provinceId},</if>
<if test="provinceName != null and provinceName != ''">province_name = #{provinceName},</if>
<if test="cityId != null">city_id = #{cityId},</if>
<if test="cityName != null and cityName != ''">city_name = #{cityName},</if>
<if test="districtId != null">district_id = #{districtId},</if>
<if test="districtName != null and districtName != ''">district_name = #{districtName},</if>
<if test="approvalUrl != null and approvalUrl != ''">approval_url = #{approvalUrl},</if>
<if test="notice != null and notice != ''">notice = #{notice},</if>
<if test="sponsorId != null and sponsorId != ''">sponsor_id = #{sponsorId},</if>
<if test="sponsorType != null and sponsorType != ''">sponsor_type = #{sponsorType},</if>
<if test="sponsor != null and sponsor != ''">sponsor = #{sponsor},</if>
<if test="contacts != null and contacts != ''">contacts = #{contacts},</if>
<if test="mobile != null and mobile != ''">mobile = #{mobile},</if>
<if test="describes != null and describes != ''">describes = #{describes},</if>
<if test="details != null">details = #{details},</if>
<if test="noticeImage != null">notice_image = #{noticeImage},</if>
<if test="timeStart != null">time_start = #{timeStart},</if>
<if test="timeEnd != null">time_end = #{timeEnd},</if>
<if test="auditTime != null">audit_time = #{auditTime},</if>
<if test="rejectTxt != null and rejectTxt != ''">reject_txt = #{rejectTxt},</if>
<if test="sort != null">sort = #{sort},</if>
<if test="comment != null and comment != ''">comment = #{comment},</if>
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
</trim>
where mid = #{mid}
</update>
<delete id="deleteKylinPerformancesById" parameterType="Long">
delete from kylin_performances where mid = #{mid}
</delete>
<delete id="deleteKylinPerformancesByIds" parameterType="String">
delete from kylin_performances where mid in
<foreach item="mid" collection="array" open="(" separator="," close=")">
#{mid}
</foreach>
</delete>
</mapper>
\ No newline at end of file
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