|
@@ -9,6 +9,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
import shop.alien.entity.result.R;
|
|
import shop.alien.entity.result.R;
|
|
|
import shop.alien.entity.store.LawFirm;
|
|
import shop.alien.entity.store.LawFirm;
|
|
|
import shop.alien.entity.store.vo.LawFirmPaymentVO;
|
|
import shop.alien.entity.store.vo.LawFirmPaymentVO;
|
|
|
|
|
+import shop.alien.entity.store.vo.LawyerConsultationOrderVO;
|
|
|
|
|
+import shop.alien.store.service.LawyerConsultationOrderService;
|
|
|
import shop.alien.store.service.StoreLawFirmService;
|
|
import shop.alien.store.service.StoreLawFirmService;
|
|
|
import shop.alien.util.myBaticsPlus.QueryBuilder;
|
|
import shop.alien.util.myBaticsPlus.QueryBuilder;
|
|
|
|
|
|
|
@@ -33,6 +35,8 @@ import java.util.List;
|
|
|
public class StoreLawFirmController {
|
|
public class StoreLawFirmController {
|
|
|
|
|
|
|
|
private final StoreLawFirmService storeLawFirmService;
|
|
private final StoreLawFirmService storeLawFirmService;
|
|
|
|
|
+
|
|
|
|
|
+ private final LawyerConsultationOrderService lawyerConsultationOrderService;
|
|
|
|
|
|
|
|
@ApiOperation(value = "新增律所", notes = "新增律所信息,支持同时添加收款账号列表。如果统一社会信用代码(creditCode)已存在,将自动执行更新操作。收款账号(payment_account)必须唯一,不能重复添加。")
|
|
@ApiOperation(value = "新增律所", notes = "新增律所信息,支持同时添加收款账号列表。如果统一社会信用代码(creditCode)已存在,将自动执行更新操作。收款账号(payment_account)必须唯一,不能重复添加。")
|
|
|
@ApiOperationSupport(order = 1)
|
|
@ApiOperationSupport(order = 1)
|
|
@@ -203,4 +207,57 @@ public class StoreLawFirmController {
|
|
|
int pageSize = size > 0 ? size : 10;
|
|
int pageSize = size > 0 ? size : 10;
|
|
|
return storeLawFirmService.getPaymentPageWithFirm(pageNum, pageSize, firmId, paymentAccount, firmName, creditCode, status, certificationStatus, directorName, createdTimeStart, createdTimeEnd);
|
|
return storeLawFirmService.getPaymentPageWithFirm(pageNum, pageSize, firmId, paymentAccount, firmName, creditCode, status, certificationStatus, directorName, createdTimeStart, createdTimeEnd);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "中台律师咨询订单列表", notes = "分页查询律师咨询订单列表,支持律师名称、订单状态、订单编号搜索")
|
|
|
|
|
+ @ApiOperationSupport(order = 12)
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "page", value = "页数(默认1)", dataType = "int", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "size", value = "页容(默认10)", dataType = "int", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "lawyerName", value = "律师名称(支持模糊查询)", dataType = "String", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "orderStatus", value = "订单状态, 0:待支付, 1:待接单, 2:进行中, 3:已完成, 4:已取消, 5:已退款", dataType = "Integer", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "orderNumber", value = "订单编号(支持精确查询)", dataType = "String", paramType = "query")
|
|
|
|
|
+ })
|
|
|
|
|
+ @GetMapping("/lawyerConsultationOrderList")
|
|
|
|
|
+ public R<IPage<LawyerConsultationOrderVO>> getLawyerConsultationOrderList(
|
|
|
|
|
+ @RequestParam(value = "page", defaultValue = "1") int page,
|
|
|
|
|
+ @RequestParam(value = "size", defaultValue = "10") int size,
|
|
|
|
|
+ @RequestParam(value = "lawyerName", required = false) String lawyerName,
|
|
|
|
|
+ @RequestParam(value = "orderStatus", required = false) Integer orderStatus,
|
|
|
|
|
+ @RequestParam(value = "orderNumber", required = false) String orderNumber) {
|
|
|
|
|
+ log.info("StoreLawFirmController.getLawyerConsultationOrderList?page={},size={},lawyerName={},orderStatus={},orderNumber={}",
|
|
|
|
|
+ page, size, lawyerName, orderStatus, orderNumber);
|
|
|
|
|
+ int pageNum = page > 0 ? page : 1;
|
|
|
|
|
+ int pageSize = size > 0 ? size : 10;
|
|
|
|
|
+ return lawyerConsultationOrderService.getConsultationOrderList(pageNum, pageSize, orderNumber, null, null, lawyerName, orderStatus);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "中台律师咨询订单详情", notes = "根据订单ID获取律师咨询订单详细信息,包含订单信息和律师信息")
|
|
|
|
|
+ @ApiOperationSupport(order = 13)
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "lawyerOrderId", value = "订单ID", dataType = "String", paramType = "query", required = true)
|
|
|
|
|
+ })
|
|
|
|
|
+ @GetMapping("/lawyerConsultationOrderDetail")
|
|
|
|
|
+ public R<LawyerConsultationOrderVO> getLawyerConsultationOrderDetail(
|
|
|
|
|
+ @RequestParam(value = "lawyerOrderId", required = true) String lawyerOrderId) {
|
|
|
|
|
+ log.info("StoreLawFirmController.getLawyerConsultationOrderDetail?lawyerOrderId={}", lawyerOrderId);
|
|
|
|
|
+ return R.data(lawyerConsultationOrderService.getConsultationOrderDetail(lawyerOrderId));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "导出律师咨询订单列表", notes = "导出律师咨询订单列表到Excel,支持律师名称、订单状态、订单编号筛选")
|
|
|
|
|
+ @ApiOperationSupport(order = 14)
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "lawyerName", value = "律师名称(支持模糊查询)", dataType = "String", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "orderStatus", value = "订单状态, 0:待支付, 1:待接单, 2:进行中, 3:已完成, 4:已取消, 5:已退款", dataType = "Integer", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "orderNumber", value = "订单编号(支持精确查询)", dataType = "String", paramType = "query")
|
|
|
|
|
+ })
|
|
|
|
|
+ @GetMapping("/exportLawyerConsultationOrder")
|
|
|
|
|
+ public void exportLawyerConsultationOrder(
|
|
|
|
|
+ @RequestParam(value = "lawyerName", required = false) String lawyerName,
|
|
|
|
|
+ @RequestParam(value = "orderStatus", required = false) Integer orderStatus,
|
|
|
|
|
+ @RequestParam(value = "orderNumber", required = false) String orderNumber,
|
|
|
|
|
+ HttpServletResponse response) throws IOException {
|
|
|
|
|
+ log.info("StoreLawFirmController.exportLawyerConsultationOrder?lawyerName={},orderStatus={},orderNumber={}",
|
|
|
|
|
+ lawyerName, orderStatus, orderNumber);
|
|
|
|
|
+ lawyerConsultationOrderService.exportConsultationOrderList(response, lawyerName, orderStatus, orderNumber);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|