|
|
@@ -461,7 +461,7 @@
|
|
461
|
461
|
inner JOIN province_all.biz_rp_issuance a ON c.id = a.rp_report_id
|
|
462
|
462
|
LEFT JOIN depot_qh.business_rp_outbound d on d.rp_report_id = c.id
|
|
463
|
463
|
LEFT JOIN province_all.biz_unit_info b on c.unit_info_id = b.id
|
|
464
|
|
- where 1=1
|
|
|
464
|
+ where c.status =1
|
|
465
|
465
|
<if test="pageParam.unitName !=null and pageParam.unitName!=''">
|
|
466
|
466
|
and b.dwmc like concat("%",#{pageParam.unitName},"%")
|
|
467
|
467
|
</if>
|
|
|
@@ -474,12 +474,13 @@
|
|
474
|
474
|
<if test="pageParam.unitId !=null and pageParam.unitId!=''">
|
|
475
|
475
|
and c.unit_info_id = #{pageParam.unitId}
|
|
476
|
476
|
</if>
|
|
477
|
|
- <if test="pageParam.unitId !=null and pageParam.unitId!=''">
|
|
|
477
|
+ <if test="pageParam.orgId !=null and pageParam.orgId!=''">
|
|
478
|
478
|
and d.org_Id = #{pageParam.orgId}
|
|
479
|
479
|
</if>
|
|
480
|
480
|
<!-- <if test="pageParam.lsxzName !=null and pageParam.lsxzName!=''">
|
|
481
|
481
|
and a.dwmc like concat("%",#{pageParam.lsxzName},"%")
|
|
482
|
482
|
</if>-->
|
|
|
483
|
+ group by cast(c.rotation_year as char)
|
|
483
|
484
|
ORDER BY c.report_time desc
|
|
484
|
485
|
</select>
|
|
485
|
486
|
<select id="getRpReportByById" resultMap="BaseResultMap2">
|