hr~ пре 3 недеља
родитељ
комит
fc9fc89ab3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lot/src/main/resources/mapper/SpuCategoryMapper.xml

+ 2 - 2
lot/src/main/resources/mapper/SpuCategoryMapper.xml

@@ -81,10 +81,10 @@
     </delete>
 
     <insert id="insertLotCategoryRelation">
-        INSERT INTO lot_category_relation (lot_id, category_id, del_flag)
+        INSERT INTO lot_category_relation (lot_id, category_id, del_flag, create_time)
         VALUES
         <foreach collection="categoryIds" item="categoryId" separator=",">
-            (#{lotId}, #{categoryId}, 0)
+            (#{lotId}, #{categoryId}, 0, CURRENT_TIMESTAMP)
         </foreach>
     </insert>