智慧农业后台管理
guoshilong
2022-08-05 cfb7666e7952cca8b59437ae155329947e6a3df0
采收记录和农事记录按创建时间降序排序
2 files modified
3 ■■■■■ changed files
src/main/java/org/springblade/modules/farm/mapper/FarmingRecordMapper.xml 2 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/recovery/mapper/RecoveryMapper.xml 1 ●●●● patch | view | raw | blame | history
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位的最大值-->