Explorar el Código

1、修改更新频率表

zhoux hace 1 año
padre
commit
8d63241f11
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/main/resources/mapper/CompanyMapper.xml

+ 3 - 1
src/main/resources/mapper/CompanyMapper.xml

@@ -269,6 +269,7 @@
             cp_id,
             app_code,
             qty,
+            op_update_time,
         </trim>
         )
         values
@@ -278,10 +279,11 @@
             #{cpId},
             #{appCode},
             #{qty},
+            now(),
         </trim>
         )
         on conflict (menu_uuid,cp_id,app_code) do update set
-        qty = excluded."qty" ;
+        qty = excluded."qty", op_update_time = now();
     </insert>
 
     <select id="selectMenuByUuid" resultMap="ResultMenuMap">