| | |
| | | <if test="planDate != null"> |
| | | AND `a`.`PLAN_DATE` = #{planDate} |
| | | </if> |
| | | <if test="planDateStartDate != null and planDateStartDate != ''"> |
| | | AND `a`.`PLAN_DATE` >= concat(#{planDateStartDate},' 00:00:00') |
| | | </if> |
| | | <if test="planDateEndDate != null and planDateEndDate != ''"> |
| | | AND concat(#{planDateEndDate},' 23:59:59') >= `a`.`PLAN_DATE` |
| | | </if> |
| | | <if test="materialId != null"> |
| | | AND `a`.`MATERIAL_ID` = #{materialId} |
| | | </if> |
| | |
| | | <if test="usermodelInvalidTime != null"> |
| | | AND `usermodel`.`INVALID_TIME` = #{usermodelInvalidTime} |
| | | </if> |
| | | <if test="startDate != null"> |
| | | AND `a`.`PLAN_DATE` >= #{startDate} |
| | | </if> |
| | | <if test="endDate != null"> |
| | | AND #{endDate} >= `a`.`PLAN_DATE` |
| | | </if> |
| | | <!-- <if test="startDate != null">--> |
| | | <!-- AND `a`.`PLAN_DATE` >= #{startDate}--> |
| | | <!-- </if>--> |
| | | <!-- <if test="endDate != null">--> |
| | | <!-- AND #{endDate} >= `a`.`PLAN_DATE`--> |
| | | <!-- </if>--> |
| | | <if test="mixParam != null and mixParam!=''"> |
| | | AND (mmodel.name like concat('%',#{mixParam},'%') or mmodel.code like concat('%',#{mixParam},'%') or pmodel.name like concat('%',#{mixParam},'%')) |
| | | </if> |