Commit 2f9f2348 by zhanghj

V1.0.0--日志列表增加所属组织

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18631 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 57a8a00d
...@@ -94,6 +94,10 @@ public class OperateLog implements Serializable{ ...@@ -94,6 +94,10 @@ public class OperateLog implements Serializable{
* *
*/ */
private String operateTypeName; private String operateTypeName;
/**
* 所属组织
*/
private String orgName;
private List<Integer> ids; private List<Integer> ids;
...@@ -211,5 +215,11 @@ public class OperateLog implements Serializable{ ...@@ -211,5 +215,11 @@ public class OperateLog implements Serializable{
public void setIds(List<Integer> ids) { public void setIds(List<Integer> ids) {
this.ids = ids; this.ids = ids;
} }
public String getOrgName() {
return orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
} }
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="operateTypeName" jdbcType="VARCHAR" property="operateTypeName" /> <result column="operateTypeName" jdbcType="VARCHAR" property="operateTypeName" />
<result column="orgName" jdbcType="VARCHAR" property="orgName" />
</resultMap> </resultMap>
<sql id="base_Column"> <sql id="base_Column">
...@@ -31,9 +32,11 @@ ...@@ -31,9 +32,11 @@
</if> </if>
select select
<include refid="base_Column" /> <include refid="base_Column" />
,sdd.data_value as operateTypeName ,sdd.data_value as operateTypeName, so.name as orgName
from sys_operate_log sol from sys_operate_log sol
left join sys_dict_data sdd on sol.operate_type = sdd.data_key left join sys_dict_data sdd on sol.operate_type = sdd.data_key
left join sys_user su on sol.create_by = su.id
left join sys_organization so on su.org_id = so.id
<where> <where>
log_status = 1 log_status = 1
<if test="menuName != null and menuName != ''"> <if test="menuName != null and menuName != ''">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!