|
|
@@ -61,17 +61,14 @@ public class CarSettleController extends BaseController {
|
|
|
@ApiOperation(value = "[2]根据订单号查询费用明细")
|
|
|
public HttpResult<OrderVo> queryFeeDetail(@RequestSingleParam(value = "orderNo") @Valid String orderNo) {
|
|
|
//查询已承保的子订单号
|
|
|
- //测试使用
|
|
|
-// List<InsAreaCompany> areaList =insAreaCompanyService.query()
|
|
|
-// .eq(StringUtils.isNotEmpty(orderNo),"orderno",orderNo)
|
|
|
-// .eq("orderstatus","3")
|
|
|
-// .or()
|
|
|
-// .eq("orderstatus","2").list();//3已承保
|
|
|
+ List<InsAreaCompany> areaList =insAreaCompanyService.query()
|
|
|
+ .eq(StringUtils.isNotEmpty(orderNo),"orderno",orderNo)
|
|
|
+ .eq("orderstatus","2").list();//3已承保
|
|
|
|
|
|
- List<InsAreaCompany> areaList = insAreaCompanyService.query()
|
|
|
- .eq("orderno", orderNo)
|
|
|
- .and(wrapper -> wrapper.eq("orderstatus", "3").or().eq("orderstatus", "2"))
|
|
|
- .list();//3已承保
|
|
|
+// List<InsAreaCompany> areaList = insAreaCompanyService.query()
|
|
|
+// .eq("orderno", orderNo)
|
|
|
+// .and(wrapper -> wrapper.eq("orderstatus", "3").or().eq("orderstatus", "2"))
|
|
|
+// .list();//3已承保
|
|
|
if(areaList!=null && areaList.size()>0){
|
|
|
return insOrdersService.getByCompanyId(areaList.get(0).getId(),"accountingUser");
|
|
|
}else{
|