Prechádzať zdrojové kódy

提交药品单添加日志

lighter 2 rokov pred
rodič
commit
375482a046

+ 3 - 1
src/main/java/thyyxxk/webserver/service/zhuyuanyiji/MedicineManagementService.java

@@ -1,6 +1,7 @@
 package thyyxxk.webserver.service.zhuyuanyiji;
 
 import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.ss.formula.functions.T;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
@@ -10,9 +11,9 @@ import thyyxxk.webserver.entity.medicaltechnology.FetchMedicines;
 import thyyxxk.webserver.entity.medicaltechnology.MedicinePage;
 import thyyxxk.webserver.entity.medicaltechnology.PoisonousAnesthetics;
 import thyyxxk.webserver.service.PublicServer;
-import thyyxxk.webserver.utils.DateUtil;
 import thyyxxk.webserver.utils.ResultVoUtil;
 import thyyxxk.webserver.utils.StringUtil;
+import thyyxxk.webserver.utils.TokenUtil;
 
 import java.math.BigDecimal;
 import java.util.*;
@@ -57,6 +58,7 @@ public class MedicineManagementService {
         newMedicinePage.setPageNo(pageNo);
         dao.insertNewPageNo(newMedicinePage);
         dao.submitMedicinePages(newMedicinePage);
+        log.info("【操作员:{}】提交药品单:{}", TokenUtil.getTokenUserId(), newMedicinePage);
         return ResultVoUtil.success(dao.selectMedicinePages(newMedicinePage));
     }