|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?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">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcNewsMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcNews" id="SzxcNewsResult">
|
|
|
|
|
@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="type" column="type" />
|
|
|
|
|
<result property="picture" column="picture" />
|
|
|
|
|
<result property="content" column="content" />
|
|
|
|
|
<result property="leave" column="leave" />
|
|
|
|
|
<result property="sort" column="sort" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcNewsVo">
|
|
|
|
|
select id, title, type, picture, content, leave, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_news
|
|
|
|
|
select id, title, type, picture, content, sort, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_news
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcNewsList" parameterType="SzxcNews" resultMap="SzxcNewsResult">
|
|
|
|
|
@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
|
|
<if test="picture != null and picture != ''"> and picture = #{picture}</if>
|
|
|
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
|
<if test="leave != null and leave != ''"> and leave = #{leave}</if>
|
|
|
|
|
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
|
@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="type != null">type,</if>
|
|
|
|
|
<if test="picture != null">picture,</if>
|
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
|
<if test="leave != null">leave,</if>
|
|
|
|
|
<if test="sort != null">sort,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="type != null">#{type},</if>
|
|
|
|
|
<if test="picture != null">#{picture},</if>
|
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
|
<if test="leave != null">#{leave},</if>
|
|
|
|
|
<if test="sort != null">#{sort},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
|
|
<if test="picture != null">picture = #{picture},</if>
|
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
|
<if test="leave != null">leave = #{leave},</if>
|
|
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
|