Initial commit

This commit is contained in:
南宁网宿科技
2023-06-03 23:56:49 +08:00
commit 912944faea
821 changed files with 74279 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentAlarmMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*,
b.merchant_name,b.merchant_code
FROM apps_equipment_alarm a
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.equipmentCode != null">
AND a.equipment_code LIKE CONCAT('%', #{param.equipmentCode}, '%')
</if>
<if test="param.alarmType != null">
AND a.alarm_type LIKE CONCAT('%', #{param.alarmType}, '%')
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.handleTime != null">
AND a.handle_time LIKE CONCAT('%', #{param.handleTime}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.merchantCode != null">
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.merchantName != null">
AND b.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
</if>
<if test="param.merchantCode != null">
AND b.merchant_code = #{param.merchantCode}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentAlarm">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentAlarm">
<include refid="selectSql"></include>
</select>
</mapper>