Commit 7ad3f568 authored by tianyiming's avatar tianyiming

一码通数据初始化同步至es修改

parent 027724e5
......@@ -24,4 +24,7 @@ public interface SuperviseInfoMapper extends BaseMapper<SuperviseInfo> {
void deleteDataAll(@Param("records") List<String> records);
EsElevator selectElevatorEsList(String record);
void updateEsRecordBatch(@Param("recordList") List<String> recordList);
}
......@@ -9,6 +9,13 @@
</foreach>
</update>
<update id="updateEsRecordBatch">
UPDATE idx_biz_jg_use_info SET "IS_NOT_ES" = 1 WHERE "RECORD" IN
<foreach collection="recordList" separator="," item="record" open="(" close=")">
#{record}
</foreach>
</update>
<select id="selectUnitCodeList" resultType="java.util.Map">
SELECT
ui."USE_UNIT_CREDIT_CODE" unitCode,
......
......@@ -1808,7 +1808,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
System.out.println("批量存入es1000条数据耗时:" + cost);
long start1 = System.currentTimeMillis();
superviseInfoMapper.updateRecordBatch(recordList);
superviseInfoMapper.updateEsRecordBatch(recordList);
long end1 = System.currentTimeMillis();
long cost1 = end1 - start1;
System.out.println("批量更新1000条业务数据耗时:" + cost1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment