|
|
@@ -14,7 +14,14 @@
|
|
|
<result column="bo_recorddate" property="bo_recorddate" jdbcType="TIMESTAMP" />
|
|
|
<result column="companyId" property="companyId" jdbcType="INTEGER" />
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterName" property="updaterName" jdbcType="VARCHAR" />
|
|
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="creatorId" property="creatorId" jdbcType="INTEGER" />
|
|
|
+ <result column="creatorName" property="creatorName" jdbcType="VARCHAR" />
|
|
|
+ <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<result column="bo_text1" property="bo_text1" jdbcType="VARCHAR" />
|
|
|
<result column="bo_text2" property="bo_text2" jdbcType="VARCHAR" />
|
|
|
<result column="bo_text3" property="bo_text3" jdbcType="VARCHAR" />
|
|
|
@@ -27,8 +34,8 @@
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
bo_id, bo_motherid, bo_mothercode, bo_mothername, bo_version, bo_status, bo_statuscode,
|
|
|
- bo_recorderid, bo_recorder, bo_recorddate, companyId, updaterId, updateTime, bo_text1,
|
|
|
- bo_text2, bo_text3, bo_text4, bo_text5
|
|
|
+ bo_recorderid, bo_recorder, bo_recorddate, companyId, updaterId,updaterName,updateTime, bo_text1,
|
|
|
+ bo_text2, bo_text3, bo_text4, bo_text5,creatorName,creatorId,createTime
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
|
|
@@ -116,6 +123,12 @@
|
|
|
<if test="bo_text5 != null" >
|
|
|
bo_text5,
|
|
|
</if>
|
|
|
+ <if test="bo_text5 != null" >
|
|
|
+ bo_text5,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ createTime,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="bo_motherid != null" >
|
|
|
@@ -169,6 +182,9 @@
|
|
|
<if test="bo_text5 != null" >
|
|
|
#{bo_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Bom" >
|
|
|
@@ -273,7 +289,13 @@
|
|
|
</where>
|
|
|
ORDER BY BO_ID DESC
|
|
|
</select>
|
|
|
- <select id="getCountFromMake" parameterType="java.lang.Long" resultType="int">
|
|
|
- SELECT COUNT(*) FROM MAKE WHERE MA_PRODID = #{id}
|
|
|
- </select>
|
|
|
+ <select id="getCountFromMake" parameterType="java.lang.Long" resultType="int">
|
|
|
+ SELECT COUNT(*) FROM MAKE WHERE MA_PRODID = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="updateCreator">
|
|
|
+ update bom set creatorId = #{userId} , creatorName=#{userName} where bo_id=#{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|