对比新文件 |
| | |
| | | <?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="org.jeecg.modules.mdc.mapper.EquipmentElectricStatisticalMapper"> |
| | | |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.EquipmentElectricStatistical"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | equipment_electric_statistical |
| | | <where> |
| | | <if test="equipmentElectricStatisticalVo.equipmentId != null and equipmentElectricStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentId}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentName != null and equipmentElectricStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentName}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.axistype != null and equipmentElectricStatisticalVo.axistype != ''"> |
| | | AND axisType = #{equipmentElectricStatisticalVo.axistype} |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.createDate != null and equipmentElectricStatisticalVo.createDate != ''"> |
| | | AND createDate = #{equipmentElectricStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentIdList != null and equipmentElectricStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | | <foreach collection="equipmentElectricStatisticalVo.equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | ORDER BY id ASC |
| | | </select> |
| | | |
| | | <select id="list" resultType="org.jeecg.modules.mdc.entity.EquipmentElectricStatistical"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | equipment_electric_statistical |
| | | <where> |
| | | <if test="equipmentElectricStatisticalVo.equipmentId != null and equipmentElectricStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentId}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentName != null and equipmentElectricStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentName}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.axistype != null and equipmentElectricStatisticalVo.axistype != ''"> |
| | | AND axisType = #{equipmentElectricStatisticalVo.axistype} |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.createDate != null and equipmentElectricStatisticalVo.createDate != ''"> |
| | | AND createDate = #{equipmentElectricStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentIdList != null and equipmentElectricStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | | <foreach collection="equipmentElectricStatisticalVo.equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | ORDER BY id ASC |
| | | </select> |
| | | |
| | | <select id="getElectricValue" resultType="org.jeecg.modules.mdc.dto.EquipmentElectricStatisticalDto"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | equipment_electric_statistical |
| | | <where> |
| | | <if test="equipmentElectricStatisticalVo.equipmentId != null and equipmentElectricStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentId}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentName != null and equipmentElectricStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentElectricStatisticalVo.equipmentName}),'%') |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.axistype != null and equipmentElectricStatisticalVo.axistype != ''"> |
| | | AND axisType = #{equipmentElectricStatisticalVo.axistype} |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.startDate != null and equipmentElectricStatisticalVo.startDate != '' and equipmentElectricStatisticalVo.endDate != null and equipmentElectricStatisticalVo.endDate != ''"> |
| | | AND createDate BETWEEN #{equipmentElectricStatisticalVo.startDate} AND #{ equipmentElectricStatisticalVo.endDate } |
| | | </if> |
| | | <if test="equipmentElectricStatisticalVo.equipmentIdList != null and equipmentElectricStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | | <foreach collection="equipmentElectricStatisticalVo.equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | ORDER BY id ASC |
| | | </select> |
| | | </mapper> |