Commit cd5b5991 by zhanghj

V1.2.0--取消单增加取消人姓名,去掉重复的IndentLogmodel

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22218 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 05859e5d
...@@ -13,11 +13,22 @@ ...@@ -13,11 +13,22 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, indent_id, indent_status, remark, create_by, create_time id, indent_id, indent_status, remark, create_by, create_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<select id="get" parameterType="com.glsx.ordercenter.pojo.SysIndentLog" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from sys_indent_log from sys_indent_log
where id = #{id,jdbcType=INTEGER} <where>
<if test="id != null">
and id = #{id}
</if>
<if test="indentId != null">
and indent_id = #{indentId}
</if>
<if test="indentStatus != null">
and indent_status = #{indentStatus}
</if>
</where>
</select> </select>
<insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysIndentLog"> <insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysIndentLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -68,13 +79,14 @@ ...@@ -68,13 +79,14 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<select id="listIndentLog" resultType="com.glsx.ordercenter.pojo.SysIndentLogModel"> <select id="listIndentLog" resultType="com.glsx.ordercenter.pojo.SysIndentLog">
SELECT SELECT
sil.indent_id AS indentId, sil.indent_id AS indentId,
sil.indent_status AS indentStatus, sil.indent_status AS indentStatus,
sil.remark AS remark, sil.remark AS remark,
sil.create_by as createBy,
sil.create_time AS createTime, sil.create_time AS createTime,
su. NAME AS createBy su. NAME AS operatorName
FROM FROM
sys_indent_log sil sys_indent_log sil
LEFT JOIN sys_user su ON sil.create_by = su.id LEFT JOIN sys_user su ON sil.create_by = su.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!