Commit 0a84b0be by zhanghj

V1.3.0--增加订单进度操作人的用户名称

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22720 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 54b4f05d
...@@ -2,6 +2,8 @@ package com.glsx.ordercenter.pojo; ...@@ -2,6 +2,8 @@ package com.glsx.ordercenter.pojo;
import java.util.Date; import java.util.Date;
import com.glsx.ordercenter.pojo.user.SysUser;
public class SysOrderStatus { public class SysOrderStatus {
private Integer id; private Integer id;
...@@ -31,6 +33,11 @@ public class SysOrderStatus { ...@@ -31,6 +33,11 @@ public class SysOrderStatus {
return id; return id;
} }
/**
* 用户信息
*/
private SysUser user;
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
...@@ -122,4 +129,13 @@ public class SysOrderStatus { ...@@ -122,4 +129,13 @@ public class SysOrderStatus {
public void setIsShow(Byte isShow) { public void setIsShow(Byte isShow) {
this.isShow = isShow; this.isShow = isShow;
} }
public SysUser getUser() {
return user;
}
public void setUser(SysUser user) {
this.user = user;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
<result column="phone2" jdbcType="VARCHAR" property="phone2" /> <result column="phone2" jdbcType="VARCHAR" property="phone2" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="is_show" jdbcType="TINYINT" property="isShow" /> <result column="is_show" jdbcType="TINYINT" property="isShow" />
<association property="user" javaType="com.glsx.ordercenter.pojo.user.SysUser">
<result column="name" jdbcType="VARCHAR" property="name" />
</association>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
...@@ -182,10 +185,14 @@ ...@@ -182,10 +185,14 @@
<select id="getOrderProgress" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="getOrderProgress" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> sos.id, sos.order_id, sos.active_status, sos.update_time, sos.update_by,
from sys_order_status sos.reason, sos.property1, sos.property2, sos.phone1, sos.phone2,
where order_id = #{orderId} sos.remark, sos.is_show,
and is_show = 1 su.name
from sys_order_status sos
left join sys_user su on sos.update_by = su.id
where sos.order_id = #{orderId}
and sos.is_show = 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!