From f0968dbdfd956ae035cbc994ccb4eb374b6c8074 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 05 三月 2025 16:47:39 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/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