| | |
| | | <select id="getTraceabilityList" resultType="org.springblade.modules.traceability.vo.TraceabilityVO"> |
| | | select st.* from sys_traceability st |
| | | left join sys_recovery sr on st.recovery_id = sr.id |
| | | left join sys_land sl on sr.land_id = sl.id |
| | | where 1=1 |
| | | <if test="traceability.code!=null and traceability.code!=''"> |
| | | and st.code like concat('%',#{traceability.code},'%') |
| | |
| | | <if test="traceability.tenantId!=null and traceability.tenantId!=''"> |
| | | and st.tenant_id = #{traceability.tenantId} |
| | | </if> |
| | | <if test="traceability.farmId!=null and traceability.farmId!=''"> |
| | | and sl.farm_id = #{traceability.farmId} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectRevorid" resultType="java.lang.String"> |