1.添加基地id

main
862857010@qq.com 2 years ago
parent 82596c06bc
commit 0309c10a35
  1. 2
      cjy-module-traceability/cjy-module-traceability-biz/src/main/java/com/cjy/traceability/module/traceability/controller/admin/growrecord/vo/GrowRecordPageReqVO.java
  2. 4
      cjy-module-traceability/cjy-module-traceability-biz/src/main/resources/mapper/growrecord/GrowRecordMapper.xml

@ -43,5 +43,7 @@ public class GrowRecordPageReqVO extends PageParam {
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
//地块id
private Integer baseId;
}

@ -35,7 +35,9 @@
<if test="reqVO.productName !=null and reqVO.productName!=''">
and t2.product_name like concat('%',#{reqVO.productName},'%')
</if>
<if test="reqVO.baseId !=null and reqVO.baseId !=''">
and t5.base_id=#{reqVO.baseId}
</if>
<if test="reqVO.plantTime !=null and reqVO.plantTime!=''">
and t1.plant_time between #{reqVO.plantTime[0]} and #{reqVO.plantTime[1]}
</if>

Loading…
Cancel
Save