|
|
|
@ -5,6 +5,7 @@ |
|
|
|
|
<result column="id" property="id"/> |
|
|
|
|
<result column="block_name" property="blockName"/> |
|
|
|
|
<result column="block_area" property="blockArea"/> |
|
|
|
|
<result column="block_type" property="blockType"/> |
|
|
|
|
</resultMap> |
|
|
|
|
<!-- |
|
|
|
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|
|
|
@ -50,7 +51,7 @@ |
|
|
|
|
order by t2.create_time desc |
|
|
|
|
</select> |
|
|
|
|
<select id="selectList" resultMap="BlockResult"> |
|
|
|
|
select t1.id,t1.block_name,t1.block_area from traceability_block t1 where t1.deleted = false and t1.base_id =#{baseId} |
|
|
|
|
select t1.id,t1.block_name,t1.block_area,t1.block_type from traceability_block t1 where t1.deleted = false and t1.base_id =#{baseId} |
|
|
|
|
|
|
|
|
|
<if test="status == 2"> |
|
|
|
|
and t1.id not in (select t2.block_id from traceability_cropper t2 where t2.deleted = false and t2.plant_end = 1) |
|
|
|
|