| | |
| | | <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} |