farm模块-字典完善

This commit is contained in:
顾君禹
2025-08-21 16:02:18 +08:00
parent 701ba57d23
commit 1cf8291dc1
16 changed files with 32 additions and 18 deletions

View File

@@ -118,9 +118,7 @@
<if test="status != null">
AND status = #{status}
</if>
<if test="deleted != null">
AND deleted = #{deleted}
</if>
AND deleted = 0
</where>
</sql>

View File

@@ -13,5 +13,6 @@
select count(*)
from farm_base_info
where tenant_id = #{tenantId}
and deleted = 0
</select>
</mapper>

View File

@@ -44,9 +44,7 @@
<if test="req.useStatus != null">
AND t.use_status = #{req.useStatus}
</if>
<if test="req.deleted != null">
AND t.deleted = #{req.deleted}
</if>
AND t.deleted = 0
</where>
</select>

View File

@@ -14,5 +14,6 @@
select *
from farm_model_cycle
where model_id = #{modelId}
and deleted = 0
</select>
</mapper>

View File

@@ -14,5 +14,6 @@
select *
from farm_model_environment_index
where cycle_id = #{cycleId}
and deleted = 0
</select>
</mapper>

View File

@@ -11,6 +11,9 @@
<select id="selectByCycleId" parameterType="String"
resultType="cn.iocoder.yudao.module.farm.dal.dataobject.modelfarmingoperation.ModelFarmingOperationDO">
select *
from farm_model_farming_operation
where cycle_id = #{cycleId}
and deleted = 0
</select>
</mapper>

View File

@@ -14,5 +14,6 @@
select *
from farm_model_farming_operation_input
where farming_id = #{farmingId}
and deleted = 0
</select>
</mapper>

View File

@@ -14,5 +14,6 @@
select *
from farm_model_pest_disease_weed
where cycle_id = #{cycleId}
and deleted = 0
</select>
</mapper>

View File

@@ -14,5 +14,6 @@
select *
from farm_model_weather_disaster
where cycle_id = #{cycleId}
and deleted = 0
</select>
</mapper>

View File

@@ -14,5 +14,6 @@
from farm_personnel_management
where tenant_id = #{tenantId}
and account_status = 0
and deleted = 0
</select>
</mapper>

View File

@@ -13,10 +13,12 @@
select count(plant_species_code)
from farm_production_plan
where tenant_id = #{tenantId}
and deleted = 0
</select>
<select id="getTotalArea" parameterType="Long" resultType="java.lang.Double">
select sum(total_area)
from farm_production_plan
where tenant_id = #{tenantId}
and deleted = 0
</select>
</mapper>

View File

@@ -46,6 +46,7 @@
<if test="req.useStatus != null">
AND t.use_status = #{req.useStatus}
</if>
AND t.deleted = 0
</where>
</select>