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