This commit is contained in:
parent
05ced2ac44
commit
d44071565e
@ -71,6 +71,16 @@ public class PerformController extends BaseController {
|
|||||||
return success(performService.selectPerformById(id));
|
return success(performService.selectPerformById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取演出详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:perform:query')")
|
||||||
|
@GetMapping(value = "/normal/{id}")
|
||||||
|
public AjaxResult getInfoNormal(@PathVariable("id") Long id) {
|
||||||
|
return success(performService.getInfoNormal(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增演出
|
* 新增演出
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,13 @@ public interface PerformMapper
|
|||||||
*/
|
*/
|
||||||
public Perform selectPerformById(Long id);
|
public Perform selectPerformById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询演出
|
||||||
|
*
|
||||||
|
* @param id 演出主键
|
||||||
|
* @return 演出
|
||||||
|
*/
|
||||||
|
public Perform getInfoNormal(Long id);
|
||||||
/**
|
/**
|
||||||
* 查询演出列表
|
* 查询演出列表
|
||||||
*
|
*
|
||||||
|
@ -19,6 +19,15 @@ public interface IPerformService {
|
|||||||
*/
|
*/
|
||||||
public Perform selectPerformById(Long id);
|
public Perform selectPerformById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询演出
|
||||||
|
*
|
||||||
|
* @param id 演出主键
|
||||||
|
* @return 演出
|
||||||
|
*/
|
||||||
|
public Perform getInfoNormal(Long id);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询演出列表
|
* 查询演出列表
|
||||||
*
|
*
|
||||||
|
@ -42,6 +42,11 @@ public class PerformServiceImpl implements IPerformService {
|
|||||||
return performMapper.selectPerformById(id);
|
return performMapper.selectPerformById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Perform getInfoNormal(Long id) {
|
||||||
|
return performMapper.getInfoNormal(id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询演出列表
|
* 查询演出列表
|
||||||
*
|
*
|
||||||
|
@ -43,6 +43,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="getInfoNormal" parameterType="Long" resultMap="PerformResult">
|
||||||
|
<include refid="selectPerformVo"/>
|
||||||
|
where id = #{id} and status = '1'
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertPerform" parameterType="Perform" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertPerform" parameterType="Perform" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into perform
|
insert into perform
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
Loading…
Reference in New Issue
Block a user