修改表名
continuous-integration/drone/push Build is passing Details

odoo切换查询方式
YXY 1 year ago
parent c50442b294
commit 5bc3be6cff

@ -19,7 +19,7 @@
<sql id="selectErpLarkRelationVo"> <sql id="selectErpLarkRelationVo">
select id, key, method, create_by, create_time, update_by, update_time, flag, remark, lark_key select id, key, method, create_by, create_time, update_by, update_time, flag, remark, lark_key
from erp_lark_relation from erp_lark_relation_main
</sql> </sql>
<select id="selectErpLarkRelationList" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation" <select id="selectErpLarkRelationList" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation"
@ -39,7 +39,7 @@
</select> </select>
<select id="queryListByKeyList" resultMap="ErpLarkRelationResult"> <select id="queryListByKeyList" resultMap="ErpLarkRelationResult">
select `key`, `method`,lark_key select `key`, `method`,lark_key
from erp_lark_relation from erp_lark_relation_main
where `method` = #{method} and `key` in where `method` = #{method} and `key` in
<foreach collection="keyList" open="(" separator="," close=")" item="item"> <foreach collection="keyList" open="(" separator="," close=")" item="item">
#{item} #{item}
@ -48,7 +48,7 @@
<select id="queryListByKeyListAndRemark" resultMap="ErpLarkRelationResult"> <select id="queryListByKeyListAndRemark" resultMap="ErpLarkRelationResult">
select `key`, `method`,lark_key select `key`, `method`,lark_key
from erp_lark_relation from erp_lark_relation_main
where `method` = #{method} and remark = #{remark} and `key` in where `method` = #{method} and remark = #{remark} and `key` in
<foreach collection="keyList" open="(" separator="," close=")" item="item"> <foreach collection="keyList" open="(" separator="," close=")" item="item">
#{item} #{item}
@ -57,14 +57,14 @@
<select id="queryWaitDeleteRecordList" resultType="java.lang.String"> <select id="queryWaitDeleteRecordList" resultType="java.lang.String">
SELECT lark_key SELECT lark_key
FROM erp_lark_relation FROM erp_lark_relation_main
WHERE DATE (create_time) >= #{currentDay} WHERE DATE (create_time) >= #{currentDay}
and remark = #{remark} and remark = #{remark}
and `method` = #{method} and `method` = #{method}
</select> </select>
<delete id="deleteRecordList"> <delete id="deleteRecordList">
delete FROM erp_lark_relation delete FROM erp_lark_relation_main
WHERE DATE (create_time) >= #{currentDay} WHERE DATE (create_time) >= #{currentDay}
and remark = #{remark} and remark = #{remark}
and `method` = #{method} and `method` = #{method}
@ -72,14 +72,14 @@
<select id="queryListByKey" resultMap="ErpLarkRelationResult"> <select id="queryListByKey" resultMap="ErpLarkRelationResult">
select id, `key`, `method`, lark_key select id, `key`, `method`, lark_key
from erp_lark_relation from erp_lark_relation_main
where `method` = #{method} where `method` = #{method}
and `key` like CONCAT('%', #{key}, '%') and `key` like CONCAT('%', #{key}, '%')
</select> </select>
<insert id="insertErpLarkRelation" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation" <insert id="insertErpLarkRelation" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation"
useGeneratedKeys="true" keyProperty="id"> useGeneratedKeys="true" keyProperty="id">
insert into erp_lark_relation insert into erp_lark_relation_main
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="key != null">key,</if> <if test="key != null">key,</if>
<if test="method != null">method,</if> <if test="method != null">method,</if>
@ -105,7 +105,7 @@
</insert> </insert>
<insert id="batchInsert" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation" useGeneratedKeys="true" <insert id="batchInsert" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation" useGeneratedKeys="true"
keyProperty="id"> keyProperty="id">
insert into erp_lark_relation(`key`,`method`,create_by,create_time,flag,lark_key,remark) insert into erp_lark_relation_main(`key`,`method`,create_by,create_time,flag,lark_key,remark)
values values
<foreach collection="erpLarkRelationList" item="relation" separator=","> <foreach collection="erpLarkRelationList" item="relation" separator=",">
( (
@ -121,7 +121,7 @@
</insert> </insert>
<update id="updateErpLarkRelation" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation"> <update id="updateErpLarkRelation" parameterType="com.ruoyi.flyingbook.domain.ErpLarkRelation">
update erp_lark_relation update erp_lark_relation_main
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="key != null">key = #{key},</if> <if test="key != null">key = #{key},</if>
<if test="method != null">method = #{method},</if> <if test="method != null">method = #{method},</if>
@ -140,12 +140,12 @@
<delete id="deleteErpLarkRelationById" parameterType="Long"> <delete id="deleteErpLarkRelationById" parameterType="Long">
delete delete
from erp_lark_relation from erp_lark_relation_main
where id = #{id} where id = #{id}
</delete> </delete>
<delete id="deleteErpLarkRelationByIds" parameterType="Long"> <delete id="deleteErpLarkRelationByIds" parameterType="Long">
delete from erp_lark_relation where id in delete from erp_lark_relation_main where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

Loading…
Cancel
Save