| | |
| | | <if test="dataTime == null and dataTime == ''"> |
| | | AND SUBSTRING ( CONVERT ( VARCHAR ( 10 ), t1.create_time, 120 ), 1, 7 ) = SUBSTRING ( CONVERT ( VARCHAR ( 10 ), GETDATE( ), 120 ), 1, 7 ) |
| | | </if> |
| | | and t3.name = #{name} and t3.detection_standard = #{detectionStandard} |
| | | and t3.name = #{name} and t3.detection_standard = #{detectionStandard} order by t2.create_time desc |
| | | </select> |
| | | <!-- <if test="dataTime != null and dataTime != ''">--> |
| | | <!-- AND SUBSTRING ( CONVERT ( VARCHAR ( 10 ), t1.create_time, 120 ), 1, 7 ) = SUBSTRING ( CONVERT ( VARCHAR ( 10 ), #{dataTime}, 120 ), 2, 7 )--> |
| | |
| | | <if test="dataTime == null and dataTime == ''"> |
| | | AND SUBSTRING ( CONVERT ( VARCHAR ( 10 ), t1.create_time, 120 ), 1, 7 ) = SUBSTRING ( CONVERT ( VARCHAR ( 10 ), GETDATE( ), 120 ), 1, 7 ) |
| | | </if> |
| | | and t3.cycle_unit = #{cycleUnit} |
| | | and t3.cycle_unit = #{cycleUnit} order by t1.create_time desc |
| | | </select> |
| | | <!-- <if test="dataTime != null and dataTime != ''">--> |
| | | <!-- AND SUBSTRING ( CONVERT ( VARCHAR ( 10 ), t1.create_time, 120 ), 1, 7 ) = SUBSTRING ( CONVERT ( VARCHAR ( 10 ), #{dataTime}, 120 ), 2, 7 )--> |