feat:增加小票打印模块

This commit is contained in:
石崇礼 2025-01-14 14:48:16 +08:00
parent 25af267b39
commit 7d971f4d13
4 changed files with 70 additions and 0 deletions

BIN
lib/autoreplyprint.jar Normal file

Binary file not shown.

View File

@ -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();
}
}

View File

@ -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();
}

View File

@ -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);
}
}