ZeroLiYi 1 anno fa
parent
commit
9afe2f3584

+ 1 - 2
src/main/java/com/chinaitop/depot/rp/controller/BusinessRpReportController.java

@@ -229,8 +229,7 @@ public class BusinessRpReportController {
229 229
     @ApiOperation(value="轮换计划接收列表", notes = "查询数据列表,支持分页")
230 230
     public PageInfo<Map<String,Object>> getRecList(BusinessRpReportPageParam businessRpReportPageParam) throws Exception {
231 231
         System.out.println("----------------------------");
232
-        System.out.println(businessRpReportPageParam);
233
-        
232
+
234 233
         List<Map<String,Object>> list = businessRpReportService.getRecList(businessRpReportPageParam);
235 234
         PageInfo<Map<String,Object>> pageInfo = new PageInfo<>(list);
236 235
         return pageInfo;

+ 3 - 2
src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpReportMapper.xml

@@ -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">