| | |
| | | equipment_spindle_statistical |
| | | <where> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentId != null and equipmentSpindleStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentId}),'%') |
| | | AND equipmentID LIKE '%' + #{equipmentSpindleStatisticalVo.equipmentId} + '%' |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentName != null and equipmentSpindleStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentName}),'%') |
| | | AND equipmentName LIKE '%' + #{equipmentSpindleStatisticalVo.equipmentName} + '%' |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.createDate != null and equipmentSpindleStatisticalVo.createDate != ''"> |
| | | AND createDate LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.createDate}),'%') |
| | | AND createDate = #{equipmentSpindleStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentIdList != null and equipmentSpindleStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | |
| | | equipment_spindle_statistical |
| | | <where> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentId != null and equipmentSpindleStatisticalVo.equipmentId != ''"> |
| | | AND equipmentID LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentId}),'%') |
| | | AND equipmentID LIKE '%' + #{equipmentSpindleStatisticalVo.equipmentId} + '%' |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentName != null and equipmentSpindleStatisticalVo.equipmentName != ''"> |
| | | AND equipmentName LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.equipmentName}),'%') |
| | | AND equipmentName LIKE '%' + #{equipmentSpindleStatisticalVo.equipmentName} + '%' |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.createDate != null and equipmentSpindleStatisticalVo.createDate != ''"> |
| | | AND createDate LIKE CONCAT(CONCAT('%',#{equipmentSpindleStatisticalVo.createDate}),'%') |
| | | AND createDate = #{equipmentSpindleStatisticalVo.createDate} |
| | | </if> |
| | | <if test="equipmentSpindleStatisticalVo.equipmentIdList != null and equipmentSpindleStatisticalVo.equipmentIdList.size() > 0"> |
| | | AND equipmentID IN |
| | |
| | | </where> |
| | | ORDER BY id ASC |
| | | </select> |
| | | |
| | | <select id="getMaxDate" resultType="java.util.Date"> |
| | | SELECT MAX( createDate ) createDate FROM equipment_spindle_statistical WHERE equipmentID = #{equipmentId} |
| | | </select> |
| | | </mapper> |