视频大屏高支模查询

This commit is contained in:
haozq 2025-04-18 08:55:00 +08:00
parent 4ff1d437e9
commit 788748ddfd
7 changed files with 78 additions and 4 deletions

View File

@ -8,6 +8,8 @@ import lombok.Data;
*/
@Data
public class ConstInfoVo {
private String keyWord;
/**
* 删除的文件
*/

View File

@ -183,7 +183,7 @@ public class ConstInfoServiceImpl implements ConstInfoService {
}
num=mapper.deleteData(vo);
if(num>0){
return AjaxResult.success("修改成功");
return AjaxResult.success("删除成功");
}
}catch (Exception e){
log.error(e.toString(),e);

View File

@ -0,0 +1,20 @@
package com.bonus.base.screen.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author 黑子
*/
@Api(tags = "劳务分包实体类控制层")
@RestController
@RequestMapping("/subContract")
public class SubContractController {
}

View File

@ -0,0 +1,14 @@
package com.bonus.base.screen.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @author 黑子
*/
@Mapper
public interface SubContractMapper {
}

View File

@ -0,0 +1,13 @@
package com.bonus.base.screen.service;
/**
* 大屏劳务实名制 业务接口层
* @author 黑子
*/
public interface SubContractService {
}

View File

@ -0,0 +1,14 @@
package com.bonus.base.screen.service.impl;
import com.bonus.base.screen.service.SubContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @author 黑子
* 大屏劳务实名制 业务处理成
*/
@Slf4j
@Service
public class SubContractServiceImpl implements SubContractService {
}

View File

@ -16,15 +16,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id=#{id}
</update>
<update id="deleteData">
update tb_const_info set del_flag=1 and update_time=now() where id=#{id}
update tb_const_info set del_flag=1 , update_time=now() where id=#{id}
</update>
<select id="getPageList" resultType="com.bonus.base.basic.domain.ConstInfoVo">
select tci.id, tci.name, tci.type_id typeId ,tdt.type_code typeCode ,tdt.type_name typeName, tci.create_time createTime ,tci.update_time updateTime , tci.is_active isActive ,
tci.remark, tci.background_image backImage , tci.config_data configData
tci.remark, tci.background_image backImage , tci.config_data configData,tci.code
from tb_const_info tci
left join tb_dev_type tdt on tdt.id=tci.type_id
where tci.del_flag=0
<if test="keyWord!=null and keyWord!=''">
and(
tci.name like concat('%',#{keyWord},'%') or
tdt.type_name like concat('%',#{keyWord},'%') or
tci.remark like concat('%',#{keyWord},'%') or
tci.code like concat('%',#{keyWord},'%')
)
</if>
<if test="typeId!=null and typeId!=''">
and tci.type_id=#{typeId}
</if>
</select>
<select id="querySelected" resultType="com.bonus.base.basic.domain.ConstInfoVo">
select tci.id , tci.name
@ -37,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--数据查询-->
<select id="getNumByParam" resultType="java.lang.Integer">
select count(1)
from tb_const_info
from tb_const_info tci
where del_flag=0
<if test="param.id!=null and param.id!=''">
and id!=#{param.id}