作者 朱兆平

update: 用户查询接口,返回字段取消password.安全考虑

@@ -31,6 +31,11 @@ @@ -31,6 +31,11 @@
31 user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by, 31 user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by,
32 update_date, remarks, del_flag, online, expiry_date 32 update_date, remarks, del_flag, online, expiry_date
33 </sql> 33 </sql>
  34 + <sql id="Safe_Column_List">
  35 + id, company_id, office_id, login_name, no, name, email, phone, mobile,
  36 + user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by,
  37 + update_date, remarks, del_flag, online, expiry_date
  38 + </sql>
34 <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > 39 <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
35 select 40 select
36 <include refid="Base_Column_List" /> 41 <include refid="Base_Column_List" />
@@ -39,7 +44,7 @@ @@ -39,7 +44,7 @@
39 </select> 44 </select>
40 <select id="selectAllUser" resultMap="BaseResultMap" parameterType="com.tianbo.warehouse.model.KakoUser" > 45 <select id="selectAllUser" resultMap="BaseResultMap" parameterType="com.tianbo.warehouse.model.KakoUser" >
41 select 46 select
42 - <include refid="Base_Column_List" /> 47 + <include refid="Safe_Column_List" />
43 from sys_user 48 from sys_user
44 <where> 49 <where>
45 and del_flag= '0' 50 and del_flag= '0'