From b852254d90e7d1955db31db154193ec8ee84d8b3 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 09 九月 2026 10:57:59 +0800
Subject: [PATCH] feat(hrm): 新增员工用工性质、班组归属字段及考勤异常处理优化
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/barcode/MesWmBarcodeService.java | 38 ++++++++++++++++++++++++++++++++++++--
1 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/barcode/MesWmBarcodeService.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/barcode/MesWmBarcodeService.java
index a70cb3e..25003e5 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/barcode/MesWmBarcodeService.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/barcode/MesWmBarcodeService.java
@@ -6,10 +6,13 @@
import cn.iocoder.yudao.module.mes.dal.dataobject.wm.barcode.MesWmBarcodeDO;
import jakarta.validation.Valid;
+import java.util.Collection;
+import java.util.Map;
+
/**
* MES 鏉$爜娓呭崟 Service 鎺ュ彛
*
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
*/
public interface MesWmBarcodeService {
@@ -34,6 +37,14 @@
* @param id 缂栧彿
*/
void deleteBarcode(Long id);
+
+ /**
+ * 鍩轰簬涓氬姟绫诲瀷鍜屼笟鍔$紪鍙锋暟缁勶紝鍒犻櫎鏉$爜
+ *
+ * @param bizType 涓氬姟绫诲瀷
+ * @param bizIds 涓氬姟缂栧彿鏁扮粍
+ */
+ void deleteBarcodeByBizTypeAndBizIds(Integer bizType, Collection<Long> bizIds);
/**
* 鑾峰緱鏉$爜
@@ -75,9 +86,32 @@
*
* @param bizType 涓氬姟绫诲瀷
* @param bizCode 涓氬姟缂栫爜
+ * @param bizName 涓氬姟鍚嶇О
* @return 鐢熸垚鐨勬潯鐮佸唴瀹�
*/
- String generateBarcodeContent(Integer bizType, String bizCode);
+ String generateBarcodeContent(Integer bizType, String bizCode, String bizName);
+
+ /**
+ * 娓叉煋鏉$爜/浜岀淮鐮佸浘鐗囷紙鏈嶅姟绔� zxing 鎴愬浘锛屽嵆鏃堕瑙堢敤 Base64锛�
+ *
+ * @param content 鏉$爜鍐呭
+ * @param format 鏉$爜鏍煎紡 {@link cn.iocoder.yudao.module.mes.enums.wm.BarcodeFormatEnum}
+ * @param width 鍥剧墖瀹藉害
+ * @param height 鍥剧墖楂樺害
+ * @return PNG 鍥剧墖 Base64 data-URL
+ */
+ String renderBarcodeImage(String content, Integer format, Integer width, Integer height);
+
+ /**
+ * 瑙f瀽鏉$爜鍐呭锛堟湇鍔$鎵爜瑙f瀽锛�
+ *
+ * <p>浼樺厛鎸夋潯鐮佸唴瀹圭簿纭懡涓凡鏈夋潯鐮佽褰曪紝杩斿洖涓氬姟瀵硅薄淇℃伅锛�
+ * 鍚﹀垯閬嶅巻鍚敤鐘舵�佺殑鏉$爜閰嶇疆锛屾寜 contentFormat 妯℃澘鍙嶈В鍑哄悇鍗犱綅绗﹀瓧娈点��
+ *
+ * @param content 鎵弿鍒扮殑鏉$爜鍐呭
+ * @return 瑙f瀽缁撴灉锛坢atched/bizType/bizCode 绛夊瓧娈碉級
+ */
+ Map<String, Object> parseBarcodeContent(String content);
/**
* 鏍规嵁鏉$爜閰嶇疆缂栧彿鑾峰彇鐩稿叧鑱旂殑鏉$爜鏁伴噺
--
Gitblit v1.9.3