src/main/java/org/springblade/modules/farm/mapper/FarmingRecordMapper.xml
@@ -43,6 +43,7 @@ <if test="farmingRecord.farmId!=null and farmingRecord.farmId!=''"> and sl.farm_id = #{farmingRecord.farmId} </if> ORDER BY sfr.create_time DESC </select> <!--自定义查询农事记录分页数据--> @@ -88,6 +89,7 @@ <if test="farmingRecord.farmId!=null and farmingRecord.farmId!=''"> and sl.farm_id = #{farmingRecord.farmId} </if> ORDER BY sfr.create_time DESC </select> <select id="selectFarmingRecordPages" resultType="org.springblade.modules.farm.vo.FarmingRecordVO"> src/main/java/org/springblade/modules/recovery/mapper/RecoveryMapper.xml
@@ -33,6 +33,7 @@ <if test="recovery.tenantId!=null and recovery.tenantId!=''"> and sr.tenant_id = #{recovery.tenantId} </if> ORDER BY sr.create_time DESC </select> <!--查询当前前缀已有的溯源码编号,取倒数7位的最大值-->