qushaowei
2025-05-30 d000f6408f4baa0a0f87d4eda39bc8b9b543ed5b
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 )-->