| | |
| | | <if test="farmProductStock.endTime!=null and farmProductStock.endTime!=''"> |
| | | and sfps.time <= #{farmProductStock.endTime} |
| | | </if> |
| | | <if test="farmProductStock.deptId!=null and farmProductStock.deptId!=''"> |
| | | and sfps.dept_id = #{farmProductStock.deptId} |
| | | </if> |
| | | <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''"> |
| | | and sfps.tenant_id = #{farmProductStock.tenantId} |
| | | </if> |
| | | group by sfps.strain_id,ss.url,ss.strain_name |
| | | </select> |
| | | |
| | |
| | | <if test="farmProductStock.endTime!=null and farmProductStock.endTime!=''"> |
| | | and sfps.time <= #{farmProductStock.endTime} |
| | | </if> |
| | | <if test="farmProductStock.deptId!=null and farmProductStock.deptId!=''"> |
| | | and sfps.dept_id = #{farmProductStock.deptId} |
| | | </if> |
| | | <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''"> |
| | | and sfps.tenant_id = #{farmProductStock.tenantId} |
| | | </if> |
| | | group by sfps.strain_id,ss.url,ss.strain_name |
| | | </select> |
| | | |