| | |
| | | <select id="selectLandList" resultType="java.util.HashMap"> |
| | | select id, land_name as landName |
| | | from sys_land |
| | | where dept_id = #{userid} |
| | | where farm_id = #{userid} |
| | | and is_deleted = 0 |
| | | </select> |
| | | <!--土地总面积--> |
| | |
| | | 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="traceability.tenantId!=null and traceability.tenantId!=''"> |
| | | and st.tenant_id = #{traceability.tenantId} |
| | | </if> |
| | | <if test="traceability.deptId != null and traceability.deptId != ''"> |
| | | and st.dept_id = #{traceability.deptId} |
| | | </if> |
| | | <if test="traceability.bind !=null and traceability.bind !=''"> |
| | | and st.bind = #{traceability.bind} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义查询溯源码分页数据--> |