TestingPointDIMapper.xml 728 B

12345678910111213141516
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.gyee.wisdom.alarm.sharding.mapper.TestingPointDIMapper">
  4. <select id="selectByStationAndModel" parameterType="java.util.Map" resultType="com.gyee.wisdom.alarm.sharding.entity.TestingPointDI" >
  5. select * from testingpointdi2 a
  6. <where>
  7. 1=1
  8. <if test="station !=null and station !=''">
  9. and a.modelid like '%${station}%'
  10. </if>
  11. <if test="modelId !=null and modelId !=''">
  12. and a.model like '%${modelId}%'
  13. </if>
  14. </where>
  15. </select>
  16. </mapper>