Mr.Shi
2023-08-17 a99b32aee78f130d44f5353b30b001f96c84977a
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}
@@ -478,11 +478,11 @@
    <if test="userId != null">
      AND  `CREATE_USER` = #{userId}
    </if>
    <if test="startDate != null">
      AND  a.`CREATE_TIME` >= #{startDate}
    <if test="startDate != null and startDate != ''">
      AND  `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') >= `CREATE_TIME`
    </if>
    group by  `CREATE_USER`
   <!-- order by `CREATE_TIME` desc-->