From 18975859f0cd4889073b4ea582c175a46e2fcba6 Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期三, 06 九月 2023 13:36:12 +0800 Subject: [PATCH] 4238789 --- zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java index 33cfa6d..d8ed24f 100644 --- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java @@ -13,10 +13,7 @@ import com.ruoyi.common.utils.uuid.IdUtils; import com.ruoyi.domain.*; import com.ruoyi.mapper.ZfPetMapper; -import com.ruoyi.service.ZAuthorityService; -import com.ruoyi.service.ZInfoUserService; -import com.ruoyi.service.ZfMasterService; -import com.ruoyi.service.ZfPetService; +import com.ruoyi.service.*; import lombok.extern.slf4j.Slf4j; import org.apache.poi.util.StringUtil; import org.springframework.beans.factory.annotation.Autowired; @@ -25,6 +22,7 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -192,6 +190,9 @@ } } + @Resource + ZfLogService zfLogService; + @Override public AjaxResult updateData(ZfPet zfPet) { ZInfoUser myself = zInfoUserService.getMyself(); @@ -208,6 +209,13 @@ throw new RuntimeException("浣犳病鏈夋潈闄愭搷浣滄瀹跺涵鐨勬暟鎹�"); } + //鎿嶄綔鍚庡姞鍏ユ棩蹇� + ZfLog zfLog = new ZfLog(); + zfLog.setUpdateTime(LocalDateTime.now()); + zfLog.setModule("榄呭疇"); + zfLog.setUpdater(zInfoUserService.getMyself().getNickName()); + zfLogService.save(zfLog); + if(updateById(zfPet)){ return AjaxResult.success(); }else { -- Gitblit v1.9.1