first commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.tbsf.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* TB司法房记录表 house
|
||||
*
|
||||
* @author llz
|
||||
*/
|
||||
public class House extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 司法房主键 */
|
||||
private Integer id;
|
||||
/** 标题 */
|
||||
private String title;
|
||||
/** 标的物表格 */
|
||||
private String content;
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ruoyi.tbsf.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.tbsf.domain.House;
|
||||
|
||||
/**
|
||||
* TB司法房 数据层
|
||||
*
|
||||
* @author llz
|
||||
*/
|
||||
public interface HouseMapper
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询司法房集合
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<House> selectHouseList(String keyword);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ruoyi.tbsf.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.tbsf.domain.House;
|
||||
|
||||
/**
|
||||
* 司法房 服务层
|
||||
*
|
||||
* @author llz
|
||||
*/
|
||||
public interface IHouseService
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询司法房集合
|
||||
*
|
||||
* @param keyword 关键字
|
||||
* @return 司法房集合
|
||||
*/
|
||||
public List<House> selectHouseList(String keyword);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.ruoyi.tbsf.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.tbsf.domain.House;
|
||||
import com.ruoyi.tbsf.mapper.HouseMapper;
|
||||
import com.ruoyi.tbsf.service.IHouseService;
|
||||
|
||||
/**
|
||||
* 司法房 服务层处理
|
||||
*
|
||||
* @author llz
|
||||
*/
|
||||
@Service
|
||||
public class HouseServiceImpl implements IHouseService
|
||||
{
|
||||
@Autowired
|
||||
private HouseMapper houseMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询司法房集合
|
||||
*
|
||||
* @param keyword 关键字
|
||||
* @return 司法房集合
|
||||
*/
|
||||
@Override
|
||||
public List<House> selectHouseList(String keyword)
|
||||
{
|
||||
return houseMapper.selectHouseList(keyword);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?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.ruoyi.tbsf.mapper.HouseMapper">
|
||||
|
||||
<resultMap type="House" id="HouseResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="content" column="content" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectHouseList" parameterType="String" resultMap="HouseResult">
|
||||
select id, title, content from house
|
||||
<where>
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND title like concat('%', #{keyword}, '%')
|
||||
OR content like concat('%', #{keyword}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user