|
|
@@ -537,52 +537,27 @@
|
|
537
|
537
|
</select>
|
|
538
|
538
|
<select id="selectRK" parameterType="java.util.Map" resultType="java.util.HashMap">
|
|
539
|
539
|
SELECT
|
|
540
|
|
- detail.house_id,
|
|
541
|
|
- notice.id,
|
|
542
|
|
- notice.process_instance_id,
|
|
543
|
|
- notice.bill_type,
|
|
544
|
|
- style.styles,
|
|
545
|
|
- style.imgdata,
|
|
546
|
|
- storehouse.storehouse_name
|
|
|
540
|
+ store.storehouse_id house_id,
|
|
|
541
|
+ styleS.styles,
|
|
|
542
|
+ styleS.imgdata,
|
|
|
543
|
+ store.storehouse_name
|
|
547
|
544
|
FROM
|
|
548
|
|
- business_delivery_storage_notice notice
|
|
549
|
|
- LEFT JOIN business_store_ware_detail detail ON detail.zid = notice.id
|
|
550
|
|
- AND type = 'notice'
|
|
551
|
|
- JOIN (
|
|
552
|
|
- SELECT
|
|
553
|
|
- notice2.agree_time,
|
|
554
|
|
- detail2.house_id
|
|
555
|
|
- FROM
|
|
556
|
|
- business_delivery_storage_notice notice2
|
|
557
|
|
- LEFT JOIN business_store_ware_detail detail2 ON detail2.zid = notice2.id
|
|
558
|
|
- AND type = 'notice'
|
|
559
|
|
- ) no2 ON no2.agree_time = notice.agree_time
|
|
560
|
|
- AND no2.house_id = detail.house_id
|
|
561
|
|
- LEFT JOIN depot_style style ON style.indexid = detail.house_id
|
|
562
|
|
- LEFT JOIN basic_storehouse storehouse ON storehouse.storehouse_id = detail.house_id
|
|
563
|
|
- WHERE notice.in_application = '1'
|
|
564
|
|
- AND notice.bill_type = #{billType}
|
|
565
|
|
- AND style.type = #{type}
|
|
566
|
|
- GROUP BY style.styles
|
|
|
545
|
+ basic_storehouse store
|
|
|
546
|
+ LEFT JOIN basic_warehouse ware ON ware.storehouse_id = store.storehouse_id
|
|
|
547
|
+ LEFT JOIN depot_style styleS ON styleS.indexid = store.storehouse_id
|
|
|
548
|
+ WHERE ware.crk_status = '2' AND styleS.type = #{type}
|
|
567
|
549
|
</select>
|
|
568
|
550
|
<select id="selectCK" parameterType="java.util.Map" resultType="java.util.HashMap">
|
|
569
|
551
|
SELECT
|
|
570
|
|
- detail.house_id,
|
|
571
|
|
- notice.id,
|
|
572
|
|
- notice.process_instance_id,
|
|
573
|
|
- notice.bill_type,
|
|
574
|
|
- style.styles,
|
|
575
|
|
- style.imgdata,
|
|
576
|
|
- storehouse.storehouse_name
|
|
577
|
|
- FROM
|
|
578
|
|
- business_delivery_storage_notice notice
|
|
579
|
|
- LEFT JOIN business_store_ware_detail detail ON detail.zid = notice.id and type='notice'
|
|
580
|
|
- LEFT JOIN depot_style style ON style.indexid = detail.house_id
|
|
581
|
|
- LEFT JOIN basic_storehouse storehouse ON storehouse.storehouse_id = detail.house_id
|
|
582
|
|
- WHERE notice.in_application = '1'
|
|
583
|
|
- AND notice.bill_type = #{billType}
|
|
584
|
|
- AND style.type = #{type}
|
|
585
|
|
- GROUP BY style.styles
|
|
|
552
|
+ store.storehouse_id house_id,
|
|
|
553
|
+ styleS.styles,
|
|
|
554
|
+ styleS.imgdata,
|
|
|
555
|
+ store.storehouse_name
|
|
|
556
|
+ FROM
|
|
|
557
|
+ basic_storehouse store
|
|
|
558
|
+ LEFT JOIN basic_warehouse ware ON ware.storehouse_id = store.storehouse_id
|
|
|
559
|
+ LEFT JOIN depot_style styleS ON styleS.indexid = store.storehouse_id
|
|
|
560
|
+ WHERE ware.crk_status = '4' AND styleS.type = #{type}
|
|
586
|
561
|
</select>
|
|
587
|
562
|
<select id="selectHouseState" parameterType="java.util.Map" resultType="java.util.HashMap">
|
|
588
|
563
|
SELECT
|