| | |
| | | <if test="recovery.tenantId!=null and recovery.tenantId!=''"> |
| | | and sr.tenant_id = #{recovery.tenantId} |
| | | </if> |
| | | ORDER BY sr.create_time DESC |
| | | </select> |
| | | |
| | | <!--查询当前前缀已有的溯源码编号,取倒数7位的最大值--> |
| | |
| | | |
| | | <!--查询农产品采收记录信息--> |
| | | <select id="getRecoveryDetail" resultType="org.springblade.modules.recovery.vo.RecoveryVO"> |
| | | select sr.id,sr.strain_id strainId,sr.land_id landId,sr.time,ss.strain_name strainName,ss.url, |
| | | select sr.id,sr.strain_id strainId,sr.land_id landId,sr.time,ss.strain_name strainName,ss.url,sr.farm_plant_id farmPlantId, |
| | | case |
| | | when sfp.plant = '0' then '有机' |
| | | when sfp.plant = 1 then '绿色' |