Przeglądaj źródła

待审核和已审核处下增加驳回订单

hxl13994548489 1 rok temu
rodzic
commit
06d0e260e0

+ 11 - 0
src/main/java/com/ydtech/modules/order/controller/ExternalOrderController.java

@@ -154,4 +154,15 @@ public class ExternalOrderController {
 
         return HttpResult.ok("操作成功");
     }
+
+
+    /**
+     * 驳回分页列表
+     */
+    @PostMapping("/getAllRejectOrders")
+    @ApiOperation("驳回分页列表")
+    public HttpResult<Object> getAllRejectOrders(@RequestBody RejectPageQueryVo rejectPageQueryVo){
+        Page page = buildPageRequest(rejectPageQueryVo.getPageDto());
+        return HttpResult.ok(insAreaCompanyService.getAllRejectOrders(page, rejectPageQueryVo));
+    }
 }

+ 7 - 0
src/main/java/com/ydtech/modules/order/dao/InsAreaCompanyMapper.java

@@ -338,6 +338,13 @@ public interface InsAreaCompanyMapper extends BaseMapper<InsAreaCompany> {
      * @date: 2024/9/28
      **/
     HashMap<String, Object> costCenterTotal(@Param("taskStatisticsVo") TaskStatisticsVo taskStatisticsVo);
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/9/30 8:55
+     *  @Description:  查询所有的驳回订单信息
+     */
+    Page<InsAreaCompany> getAllRejectOrders(@Param("") Page page, @Param("vo") RejectPageQueryVo rejectPageQueryVo);
 }
 
 

+ 7 - 1
src/main/java/com/ydtech/modules/order/service/InsAreaCompanyService.java

@@ -251,5 +251,11 @@ public interface InsAreaCompanyService extends IService<InsAreaCompany> {
      * @return
      */
     Map<String, String> getSubOrderCountDTO(List<String> orderNo);
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/9/30 8:54
+     *  @Description: 财务查询所有的驳回订单数据
+     */
+    Page<InsAreaCompany> getAllRejectOrders(Page page, RejectPageQueryVo rejectPageQueryVo);
 }

+ 10 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsAreaCompanyServiceImpl.java

@@ -1051,6 +1051,16 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
         List<SubOrderCountDTO> subOrderCountDTO = baseMapper.getSubOrderCountDTO(orderNo);
         return subOrderCountDTO.stream().collect(Collectors.toMap(x -> x.getOrderNo() + x.getOrderStatus(), SubOrderCountDTO::getCount));
     }
+     /**
+      *  @version
+      *  @author: hxl
+      *  @Date: 2024/9/30 8:54
+      *  @Description:  查询驳回的订单信息
+      */
+    @Override
+    public Page<InsAreaCompany> getAllRejectOrders(Page page, RejectPageQueryVo rejectPageQueryVo) {
+        return baseMapper.getAllRejectOrders(page,rejectPageQueryVo);
+    }
 
 }
 

+ 37 - 0
src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

@@ -2571,4 +2571,41 @@
         group by orderno, orderstatus
     </select>
 
+    <select id="getAllRejectOrders" resultType="com.ydtech.modules.order.entity.InsAreaCompany">
+        select
+        iac.id,
+        iac.orderno,
+        iac.agreement_id,
+        iac.jqpremium,
+        iac.sypremium,
+        iac.jypremium,
+        iac.taxamount,
+        iac.sumpremium,
+        io.licenseno,
+        ifa.audittime,
+        ifa.audituser as auditname,
+        ifa.rejectinfo,
+        "1" as orderExternalStatus
+        FROM
+        ins_fee_audit ifa
+        LEFT JOIN
+        ins_area_company iac on iac.id = ifa.ins_order_no
+        LEFT JOIN
+        ins_orders io on iac.orderno = io.orderno
+        left join
+        sys_user su  on su.id= ifa.audituser
+        WHERE
+        ifa.auditstatus = 2  and  IFNULL(iac.del_flag,'') != '0'
+        <if test="vo.id  != null  and  vo.id!=''">
+            and  iac.id = #{vo.id}
+        </if>
+        <if test="vo.licenseno  != null  and  vo.licenseno!='' ">
+            and io.licenseno like  CONCAT('%', #{vo.licenseno}, '%')
+        </if>
+        <if test="vo.auditname  != null  and  vo.auditname!='' ">
+            and  su.name like  CONCAT('%', #{vo.auditname}, '%')
+        </if>
+        order by  io.createtime
+    </select>
+
 </mapper>