| | |
| | | LEFT JOIN sys_land l ON t.land_id = l.id |
| | | LEFT JOIN sys_stockfactory f ON f.id=t.stock_id |
| | | LEFT JOIN blade_user u ON u.id=t.task_user |
| | | where t.is_deleted = 0 and t.status=#{task.status} |
| | | where t.is_deleted = 0 |
| | | <if test="task.taskUser!=null and task.taskUser!=''"> |
| | | and t.task_user=#{task.taskUser} |
| | | </if> |
| | | <if test="task.status!=null and task.status!='' or task.status == 0 " > |
| | | and t.status=#{task.status} |
| | | </if> |
| | | <if test="task.farmId!=null and task.farmId!=''"> |
| | | and l.farm_id = #{task.farmId} |
| | | </if> |
| | | <if test="task.User!=null and task.User!=''"> |
| | | and t.create_user=#{task.User} |
| | | </if> |
| | | ORDER BY t.create_time DESC |
| | | </select> |
| | | |
| | | <!--统计待处理任务数量--> |