feat:增加小票打印模块
This commit is contained in:
parent
25af267b39
commit
7d971f4d13
Binary file not shown.
|
@ -0,0 +1,30 @@
|
||||||
|
package com.dpkj.modules.receiptsPrint.controller;
|
||||||
|
|
||||||
|
import com.dpkj.modules.receiptsPrint.service.ReceiptsPrintService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小票打印控制层
|
||||||
|
*
|
||||||
|
* @author <a href="https://gitee.com/shi-chongli">石头人</a>
|
||||||
|
* @version 1.0
|
||||||
|
* @since 2025-01-14 14:25:49
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/receiptsPrint")
|
||||||
|
public class ReceiptsPrintController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ReceiptsPrintService receiptsPrintService;
|
||||||
|
|
||||||
|
@GetMapping("/test")
|
||||||
|
private void test(){
|
||||||
|
this.receiptsPrintService.test();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.dpkj.modules.receiptsPrint.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小票打印服务接口
|
||||||
|
*
|
||||||
|
* @author <a href="https://gitee.com/shi-chongli">石头人</a>
|
||||||
|
* @version 1.0
|
||||||
|
* @since 2025-01-14 14:23:35
|
||||||
|
*/
|
||||||
|
public interface ReceiptsPrintService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测试
|
||||||
|
*/
|
||||||
|
void test();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.dpkj.modules.receiptsPrint.service.impl;
|
||||||
|
|
||||||
|
import com.caysn.autoreplyprint.AutoReplyPrint;
|
||||||
|
import com.dpkj.modules.receiptsPrint.service.ReceiptsPrintService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author <a href="https://gitee.com/shi-chongli">石头人</a>
|
||||||
|
* @since 2025-01-14 14:24:15
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class ReceiptsPrintServiceImpl implements ReceiptsPrintService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void test() {
|
||||||
|
System.out.println(AutoReplyPrint.CP_CharacterSet_CHINA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue