|
@@ -23,6 +23,7 @@ import com.fs.his.dto.ExpressInfoDTO;
|
|
|
import com.fs.his.enums.ShipperCodeEnum;
|
|
import com.fs.his.enums.ShipperCodeEnum;
|
|
|
import com.fs.his.param.*;
|
|
import com.fs.his.param.*;
|
|
|
import com.fs.his.service.IFsExportTaskService;
|
|
import com.fs.his.service.IFsExportTaskService;
|
|
|
|
|
+import com.fs.his.service.IFsExternalOrderService;
|
|
|
import com.fs.his.service.IFsExpressService;
|
|
import com.fs.his.service.IFsExpressService;
|
|
|
import com.fs.his.service.IFsStoreOrderFinanceAuditService;
|
|
import com.fs.his.service.IFsStoreOrderFinanceAuditService;
|
|
|
import com.fs.his.service.IFsStoreOrderService;
|
|
import com.fs.his.service.IFsStoreOrderService;
|
|
@@ -462,6 +463,9 @@ public class FsStoreOrderController extends BaseController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsStoreOrderFinanceAuditService fsStoreOrderFinanceAuditService;
|
|
private IFsStoreOrderFinanceAuditService fsStoreOrderFinanceAuditService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsExternalOrderService fsExternalOrderService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 财务审核列表
|
|
* 财务审核列表
|
|
|
*/
|
|
*/
|
|
@@ -491,6 +495,67 @@ public class FsStoreOrderController extends BaseController
|
|
|
userName));
|
|
userName));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 财务审核-订单详情
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('his:storeOrder:financeAuditList')")
|
|
|
|
|
+ @GetMapping("/financeAuditDetail")
|
|
|
|
|
+ public AjaxResult financeAuditDetail(@RequestParam("orderId") Long orderId, @RequestParam("orderType") Integer orderType) {
|
|
|
|
|
+ if (orderType != null && orderType == 0) {
|
|
|
|
|
+ return AjaxResult.success(fsExternalOrderService.selectExternalOrderDetailVO(orderId));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
|
|
+ FsStoreOrder order = fsStoreOrderService.selectFsStoreOrderByOrderId(orderId);
|
|
|
|
|
+ result.put("order", order);
|
|
|
|
|
+ result.put("orderCode", order.getOrderCode());
|
|
|
|
|
+ result.put("totalPrice", order.getTotalPrice());
|
|
|
|
|
+ result.put("payPrice", order.getPayPrice());
|
|
|
|
|
+ result.put("status", order.getStatus());
|
|
|
|
|
+ result.put("deliverySn", order.getDeliverySn());
|
|
|
|
|
+ result.put("deliveryName", order.getDeliveryName());
|
|
|
|
|
+ result.put("deliveryType", order.getDeliveryType());
|
|
|
|
|
+ result.put("deliveryStatus", order.getDeliveryStatus());
|
|
|
|
|
+ result.put("userName", order.getUserName());
|
|
|
|
|
+ result.put("userPhone", order.getUserPhone());
|
|
|
|
|
+ result.put("userAddress", order.getRemark());
|
|
|
|
|
+ List<FsStoreOrderItem> items = fsStoreOrderService.selectFsStoreOrderItemList(orderId.toString());
|
|
|
|
|
+ result.put("productList", items);
|
|
|
|
|
+ return AjaxResult.success(result);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 财务审核-查询物流
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('his:storeOrder:financeAuditList')")
|
|
|
|
|
+ @GetMapping("/financeAuditExpress")
|
|
|
|
|
+ public R financeAuditExpress(@RequestParam("orderId") Long orderId, @RequestParam("orderType") Integer orderType) {
|
|
|
|
|
+ if (orderType != null && orderType == 0) {
|
|
|
|
|
+ return R.ok().put("data", fsExternalOrderService.getExpress(orderId));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return getExpress(orderId);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('his:storeOrder:financeAuditList')")
|
|
|
|
|
+ @GetMapping("/financeAuditSyncExpress")
|
|
|
|
|
+ public R financeAuditSyncExpress(@RequestParam("orderId") Long orderId, @RequestParam("orderType") Integer orderType) {
|
|
|
|
|
+ if (orderType != null && orderType == 0) {
|
|
|
|
|
+ return fsExternalOrderService.syncExpress(orderId);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return R.ok().put("data", fsStoreOrderService.syncExpress(orderId));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Log(title = "财务审核", businessType = BusinessType.EXPORT)
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('his:storeOrder:financeAuditList')")
|
|
|
|
|
+ @GetMapping("/financeAuditExport")
|
|
|
|
|
+ public AjaxResult financeAuditExport(FsStoreOrderFinanceAudit query) {
|
|
|
|
|
+ List<FsStoreOrderFinanceAudit> list = fsStoreOrderFinanceAuditService.selectFsStoreOrderFinanceAuditList(query);
|
|
|
|
|
+ ExcelUtil<FsStoreOrderFinanceAudit> util = new ExcelUtil<>(FsStoreOrderFinanceAudit.class);
|
|
|
|
|
+ return util.exportExcel(list, "财务审核数据");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@GetMapping("/getCustomerOrderList")
|
|
@GetMapping("/getCustomerOrderList")
|
|
|
public TableDataInfo getCustomerOrderList(FsStoreOrderParam param) {
|
|
public TableDataInfo getCustomerOrderList(FsStoreOrderParam param) {
|
|
|
startPage();
|
|
startPage();
|