qushaowei
2025-06-13 4b27dd367eae2f24958c6bb857fb6959dcdb7a4a
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionOrderMapper.xml
@@ -332,7 +332,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.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 )-->
@@ -361,7 +361,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 )-->