对比新文件 |
| | |
| | | <?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.EquipmentSpindleStatisticalMapper"> |
| | | |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.EquipmentSpindleStatistical"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | equipment_spindle_statistical |
| | | <where> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentId != null and equipmentSpindleStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentId}),'%') |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentName != null and equipmentSpindleStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentName}),'%') |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.createDate != null and equipmentSpindleStatisticalVo.createDate != ''"> |
| | | AND createDate = #{equipmentSpindleStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentIdList != null and equipmentSpindleStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | | <foreach collection="equipmentSpindleStatisticalVo.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.EquipmentSpindleStatistical"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | equipment_spindle_statistical |
| | | <where> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentId != null and equipmentSpindleStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentId}),'%') |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentName != null and equipmentSpindleStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentName}),'%') |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.createDate != null and equipmentSpindleStatisticalVo.createDate != ''"> |
| | | AND createDate = #{equipmentSpindleStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentIdList != null and equipmentSpindleStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | | <foreach collection="equipmentSpindleStatisticalVo.equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | ORDER BY id ASC |
| | | </select> |
| | | </mapper> |