From aa3bd3741b94f50f0c1d7e3a137bb681d7421294 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 03 三月 2025 09:59:21 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/service/pp/TagStyleService.java | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/TagStyleService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/TagStyleService.java
index 7ceda70..9a591b1 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/pp/TagStyleService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/TagStyleService.java
@@ -1,20 +1,28 @@
package com.example.erp.service.pp;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
+import com.example.erp.entity.pp.FlowCard;
import com.example.erp.entity.pp.TagStyle;
+import com.example.erp.mapper.pp.FlowCardMapper;
import com.example.erp.mapper.pp.TagStyleMapper;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
+import java.util.Map;
@Service
@DS("pp")
public class TagStyleService {
private final TagStyleMapper tagStyleMapper;
- public TagStyleService(TagStyleMapper tagStyleMapper) {
+ final
+ FlowCardMapper flowCardMapper;
+
+ public TagStyleService(TagStyleMapper tagStyleMapper, FlowCardMapper flowCardMapper) {
this.tagStyleMapper = tagStyleMapper;
+ this.flowCardMapper = flowCardMapper;
}
public Boolean saveTag(TagStyle tagStyle) {
@@ -47,4 +55,17 @@
tagStyle.setId(null);
return tagStyleMapper.insert(tagStyle)>0;
}
+
+ public Boolean updatePrintNumberSv(Map<String, Object> object) {
+ List<FlowCard> flowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("printList")), FlowCard.class);
+ if (!flowCardList.isEmpty()) {
+ for (FlowCard flowCard : flowCardList) {
+ // 鏇存柊鎵撳嵃鐘舵��
+ flowCardMapper.updatePrintNumberMp( flowCard.getProcessId(), flowCard.getOrderNumber());
+ }
+ return true;
+ } else {
+ return false;
+ }
+ }
}
--
Gitblit v1.8.0