|
|
|
@ -4,6 +4,7 @@ |
|
|
|
|
<resultMap id="BlockResult" type="com.cjy.traceability.module.traceability.dal.dataobject.block.BlockDO"> |
|
|
|
|
<result column="id" property="id"/> |
|
|
|
|
<result column="block_name" property="blockName"/> |
|
|
|
|
<result column="block_area" property="blockArea"/> |
|
|
|
|
</resultMap> |
|
|
|
|
<!-- |
|
|
|
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|
|
|
@ -49,7 +50,7 @@ |
|
|
|
|
order by t2.create_time desc |
|
|
|
|
</select> |
|
|
|
|
<select id="selectList" resultMap="BlockResult"> |
|
|
|
|
select t1.id,t1.block_name from traceability_block t1 where t1.deleted = false and t1.base_id =#{baseId} |
|
|
|
|
select t1.id,t1.block_name,t1.block_area 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) |
|
|
|
|