jiaosong
2023-08-16 920cf792a417df327b3875b571bc5923296c92db
server/src/main/resources/mappers/WorkorderRecordExtMapper.xml
@@ -453,11 +453,11 @@
    <if test="materialName != null and materialName !=''">
      AND  (c.`name` like concat('%', #{materialName},'%') or c.`code` like concat('%', #{materialName},'%'))
    </if>
    <if test="startDate != null">
      AND  a.`CREATE_TIME` >= #{startDate}
    <if test="startDate != null and startDate != ''">
      AND  a.`CREATE_TIME` >= concat(#{startDate},' 00:00:00')
    </if>
    <if test="endDate != null">
      AND   #{endDate} >= a.`CREATE_TIME`
    <if test="endDate != null and endDate != ''">
      AND   concat(#{endDate},' 23:59:59') >= a.`CREATE_TIME`
    </if>
    <if test="userId != null">
      AND  a.`CREATE_USER` = #{userId}