|
|
@@ -562,18 +562,25 @@
|
|
562
|
562
|
</select>
|
|
563
|
563
|
<!-- 查询粮情专卡的数据 -->
|
|
564
|
564
|
<select id="queryLqzkData" resultType="java.util.Map" parameterType="java.util.Map">
|
|
565
|
|
- SELECT house_type "houseType",sub_type "subType" ,recorder "recorder" FROM storage_foodbasicinfo
|
|
566
|
|
- WHERE 1=1 AND seal_status=1 AND history_status=0
|
|
|
565
|
+ SELECT
|
|
|
566
|
+ foods.house_type "houseType",
|
|
|
567
|
+ foods.sub_type "subType",
|
|
|
568
|
+ keeper.`name` "recorder"
|
|
|
569
|
+ FROM
|
|
|
570
|
+ storage_foodbasicinfo foods
|
|
|
571
|
+ LEFT JOIN basic_keeper_house house ON house.house_Id = foods.house_id
|
|
|
572
|
+ LEFT JOIN basic_keeper keeper ON house.keeper_Id = keeper.id
|
|
|
573
|
+ WHERE 1=1 AND seal_status=1 AND history_status=0
|
|
567
|
574
|
<if test="orgId != null">
|
|
568
|
|
- and org_id=#{orgId}
|
|
|
575
|
+ and foods.org_id=#{orgId}
|
|
569
|
576
|
</if>
|
|
570
|
577
|
<if test="houseId != null">
|
|
571
|
|
- and house_id=#{houseId}
|
|
|
578
|
+ and foods.house_id=#{houseId}
|
|
572
|
579
|
</if>
|
|
573
|
580
|
<if test="wareId != null">
|
|
574
|
|
- and warehouse_id=#{wareId}
|
|
|
581
|
+ and foods.warehouse_id=#{wareId}
|
|
575
|
582
|
</if>
|
|
576
|
|
- ORDER BY id DESC
|
|
|
583
|
+ ORDER BY foods.id DESC
|
|
577
|
584
|
</select>
|
|
578
|
585
|
<!-- 查询周粮情分析数据 -->
|
|
579
|
586
|
<select id="getThreeTempData" parameterType="java.util.Map" resultType="java.util.Map">
|