Commit d63c6f69 by naan1993

修改dept表名为sys_dept

parent f3ce1e2e
......@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
......@@ -14,6 +15,7 @@ import java.io.Serializable;
* @author stylefeng
* @since 2017-07-11
*/
@TableName("sys_dept")
public class Dept extends Model<Dept> {
private static final long serialVersionUID = 1L;
......
......@@ -11,11 +11,11 @@
ELSE
'false'
END
) as isOpen from dept
) as isOpen from sys_dept
</select>
<select id="list" resultType="map">
select * from dept
select * from sys_dept
<if test="condition != null and condition != ''">
where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
</if>
......
......@@ -27,7 +27,7 @@
or name like CONCAT('%',#{name},'%'))
</if>
<if test="deptid != null and deptid != 0">
and (deptid = #{deptid} or deptid in ( select id from dept where pids like CONCAT('%[', #{deptid}, ']%') ))
and (deptid = #{deptid} or deptid in ( select id from sys_dept where pids like CONCAT('%[', #{deptid}, ']%') ))
</if>
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment