From d6cdb0c27432063727bbd74c9add5ba161235ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Thu, 6 Jun 2024 17:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=94=AF=E4=BB=98bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/tag/controller/OilTagController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/controller/OilTagController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/controller/OilTagController.java index 0de398696..a6334e271 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/controller/OilTagController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/controller/OilTagController.java @@ -11,9 +11,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.fuint.business.order.vo.AllOrderInfoVo; import com.fuint.business.order.vo.Excel.DayExcel; import com.fuint.business.tag.entity.OilTag; +import com.fuint.business.tag.entity.TagCode; import com.fuint.business.tag.entity.TagCodeRecord; import com.fuint.business.tag.service.OilTagService; import com.fuint.business.tag.service.TagCodeRecordService; +import com.fuint.business.tag.service.TagCodeService; import com.fuint.business.tag.util.TagUtils; import com.fuint.business.tag.vo.OilTagVO; import com.fuint.business.tag.vo.OilTagVoExcel; @@ -50,6 +52,9 @@ public class OilTagController extends BaseController { @Resource private TagCodeRecordService tagCodeRecordService; + @Resource + private TagCodeService tagCodeService; + @Resource private TagUtils tagUtils; /** @@ -180,6 +185,11 @@ public class OilTagController extends BaseController { this.tagCodeRecordService.removeById(tagCodeRecord.getId()); oilTag.setStatus("0"); this.oilTagService.updateById(oilTag); + TagCode tagCode = tagCodeService.getById(oilTag.getTagCodeId()); + String[] split = tagCode.getCollection().split("storeId"); + String[] split1 = split[1].split("sn"); + tagCode.setCollection(split[0]+"sn"+split1[1]); + tagCodeService.updateById(tagCode); return getSuccessResult("解绑成功!"); } /* TagCodeRecord tagCodeRecord = this.tagCodeRecordService.getById(id);