From 3a36e69c9904ea1c5d6719382f4342a5b37db5a6 Mon Sep 17 00:00:00 2001
From: cuilei <ray_tsu1@163.com>
Date: 星期二, 15 七月 2025 17:54:18 +0800
Subject: [PATCH] 企业微信H5 OAuth2登录问题处理(适配沃克现场)
---
lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml b/lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml
index b504640..1d272bc 100644
--- a/lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml
+++ b/lxzn-module-mdc-common/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentMapper.xml
@@ -2,4 +2,39 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.mdc.mapper.EquipmentMapper">
+ <insert id="insertTableData">
+ INSERT INTO ${tableName} SELECT * FROM ${lastTableName} WHERE CollectTime < '${date}'
+ </insert>
+
+ <select id="insertNoTableData">
+ SELECT * INTO ${tableName} FROM ${lastTableName} WHERE CollectTime < '${date}'
+ </select>
+
+ <delete id="deleteTableData">
+ delete from ${tableName} where CollectTime < '${day}'
+ </delete>
+
+ <select id="checkTableExists" resultType="java.lang.String">
+ SELECT name FROM SysObjects Where XType='U' AND name = '${saveTableName}'
+ </select>
+
+
+ <select id="checkTableDataNum" resultType="java.lang.Integer">
+ SELECT COUNT(CollectTime) num FROM ${saveTableName} WHERE CollectTime < '${day}'
+ </select>
+
+ <select id="listByProds" resultType="org.jeecg.modules.mdc.entity.Equipment">
+ SELECT
+ t1.*
+ FROM
+ Equipment t1
+ LEFT JOIN mdc_equipment t2 ON t1.EquipmentID = t2.equipment_id
+ LEFT JOIN mdc_production_equipment t3 ON t2.id = t3.equipment_id
+ <where>
+ t3.production_id IN
+ <foreach collection="proIds" index="index" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </where>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3