Kaynağa Gözat

付费打印2

wangzhuo 1 yıl önce
ebeveyn
işleme
fa4b772727

+ 25 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warehouse/finance/TPaymentController.java

@@ -243,4 +243,29 @@ public class TPaymentController extends BaseController {
         return toAjax(tFeeService.setPrintTime(fId, printDate));
     }
 
+
+    /**
+     * 获取财务数据主详细信息
+     */
+//    @PreAuthorize("@ss.hasPermi('finance:payment:query')")
+    @GetMapping(value = "/print/info/{fId}")
+    public AjaxResult getPayPrintData(@PathVariable("fId") Long fId) {
+        Map<String, Object> dataMap = tFeeService.selectTFeeById(fId);
+        tFeeService.firmIdToName(dataMap);
+        tFeeService.getUserName(dataMap);
+        return AjaxResult.success(dataMap);
+    }
+
+    /**
+     * 付费打印
+     */
+//    @PreAuthorize("@ss.hasPermi('finance:payment:printTimes')")
+    @PutMapping("/printTimes")
+    public AjaxResult payPrintTimes(@RequestBody() Map<String, String> data) {
+        String id = data.get("id");
+        Long fId = Long.valueOf(id);
+        String printDate = data.get("printDate");
+        return toAjax(tFeeService.payPrintTimes(fId, printDate));
+    }
+
 }