实训场地管理增加属性:适用专业(添加+修改+查询条件+列表)+操作栏增加删除功能
This commit is contained in:
1 parent
0bf7d961ab
commit
973cc0e7e3
4 files changed
+60
-4
No files matched your search
+12
@@ -4,6 +4,7 @@ import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -67,6 +68,17 @@ public class TrainTrainingSiteController extends BaseController
|
||||
return toAjax(trainTrainingSiteService.insertTrainTrainingSite(trainTrainingSite));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除实训场地 (RESTful DELETE /train/training-site/{siteIds})
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('train:site:edit')")
|
||||
@Log(title = "实训场地", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{siteIds}")
|
||||
public AjaxResult remove(@PathVariable String[] siteIds)
|
||||
{
|
||||
return toAjax(trainTrainingSiteService.deleteTrainTrainingSiteBySiteIds(siteIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改实训场地 (RESTful PUT /train/training-site/{siteId})
|
||||
*/
|
||||
|
||||
@@ -29,10 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectTrainTrainingSiteVo"/>
|
||||
where del_flag = '0'
|
||||
<if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||
<if test="siteLocation != null and siteLocation != ''"> and site_location = #{siteLocation}</if>
|
||||
<if test="siteLocation != null and siteLocation != ''"> and site_location like concat('%', #{siteLocation}, '%')</if>
|
||||
<if test="capacity != null "> and capacity = #{capacity}</if>
|
||||
<if test="siteDevice != null and siteDevice != ''"> and site_device = #{siteDevice}</if>
|
||||
<if test="siteStatus != null "> and site_status = #{siteStatus}</if>
|
||||
<if test="major != null and major != ''"> and major like concat('%', #{major}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user