|
|
@@ -34,6 +34,7 @@
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
<result column="sa_salecode" property="sa_salecode" jdbcType="VARCHAR" />
|
|
|
<result column="sa_sendstatus" property="sa_sendstatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="sa_saleid" property="sa_saleid" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
@@ -351,6 +352,21 @@
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="sa_saleid != null" >
|
|
|
+ sa_saleid = #{sa_saleid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="sa_salecode != null" >
|
|
|
+ sa_salecode = #{sa_salecode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sa_turnstatus != null" >
|
|
|
+ sa_turnstatus = #{sa_turnstatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sa_turnstatuscode != null" >
|
|
|
+ sa_turnstatuscode = #{sa_turnstatuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sa_turndate != null" >
|
|
|
+ sa_turndate = #{sa_turndate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where sa_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -465,4 +481,8 @@
|
|
|
where sd_id = #{item.id,jdbcType=INTEGER}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
+
|
|
|
+ <select id="checkToSale" parameterType="Long" resultType="int">
|
|
|
+ select count(1) from saledown where sa_id = #{id} and sa_turnstatuscode='TURNSALE'
|
|
|
+ </select>
|
|
|
</mapper>
|