|
@@ -21,7 +21,6 @@ import com.ydtech.utils.StringUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -175,4 +174,27 @@ public class InsOrdersController extends BaseController {
|
|
|
String userId = getUserId();
|
|
String userId = getUserId();
|
|
|
return insOrdersService.exportPolicyInsuranceReport(policyInsuranceReportReqVo, userId);
|
|
return insOrdersService.exportPolicyInsuranceReport(policyInsuranceReportReqVo, userId);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/4/17 15:32
|
|
|
|
|
+ * @Description: 添加待客录单查询订单接口
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/queryPageHospitalityOrder")
|
|
|
|
|
+ @ApiOperation(value = "通过用户id和订单状态查询待客录单接口+分页")
|
|
|
|
|
+ public HttpResult<BasePageResult<InsOrders>> queryPageHospitalityOrder(@RequestBody OrderQueryVo orderQueryVo) {
|
|
|
|
|
+ if(orderQueryVo.getUserId()==null || "".equals(orderQueryVo.getUserId())){
|
|
|
|
|
+ return HttpResult.error("待客录单人员id不能为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ if(orderQueryVo.getOrderStatus()==null || "".equals(orderQueryVo.getOrderStatus())){
|
|
|
|
|
+ return HttpResult.error("订单状态不能为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ try{
|
|
|
|
|
+ BasePageResult<InsOrders> quoteResult = this.insOrdersService.queryPageHospitalityOrder(orderQueryVo);
|
|
|
|
|
+ return HttpResult.ok("success", quoteResult);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return HttpResult.error("查询失败"+e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|