定时任务
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
liukang 2025-02-12 10:28:44 +08:00
parent 05ced2ac44
commit d44071565e
5 changed files with 38 additions and 0 deletions

View File

@ -71,6 +71,16 @@ public class PerformController extends BaseController {
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));
}
/**
* 新增演出
*/

View File

@ -19,6 +19,13 @@ public interface PerformMapper
*/
public Perform selectPerformById(Long id);
/**
* 查询演出
*
* @param id 演出主键
* @return 演出
*/
public Perform getInfoNormal(Long id);
/**
* 查询演出列表
*

View File

@ -19,6 +19,15 @@ public interface IPerformService {
*/
public Perform selectPerformById(Long id);
/**
* 查询演出
*
* @param id 演出主键
* @return 演出
*/
public Perform getInfoNormal(Long id);
/**
* 查询演出列表
*

View File

@ -42,6 +42,11 @@ public class PerformServiceImpl implements IPerformService {
return performMapper.selectPerformById(id);
}
@Override
public Perform getInfoNormal(Long id) {
return performMapper.getInfoNormal(id);
}
/**
* 查询演出列表
*

View File

@ -43,6 +43,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</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 into perform
<trim prefix="(" suffix=")" suffixOverrides=",">