浏览代码

图书馆日志管理

wangzhe 2 年之前
父节点
当前提交
18a1399519

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiLibraryBaseinfoServiceImpl.java

@@ -5,6 +5,7 @@ import java.util.List;
 import com.sooka.common.core.text.Convert;
 import com.sooka.common.utils.DateUtils;
 import com.sooka.common.utils.ServletUtils;
+import com.sooka.framework.util.ShiroUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.sooka.system.mapper.TGuijiLibraryBaseinfoMapper;
@@ -52,6 +53,10 @@ public class TGuijiLibraryBaseinfoServiceImpl extends Guiji_Base_Service impleme
         tGuijiLibraryBaseinfo.setInterfaceinfoId("a2044c83-4dc1-43c1-b1fc-4936534ed9ce");
         tGuijiLibraryBaseinfo.setInterfaceinfoName("共享-通化市图书馆-基本信息查询");
         tGuijiLibraryBaseinfo.setInterfacetype("platform_interfacetype_1");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiLibraryBaseinfo.setDeptId(deptId);
+        tGuijiLibraryBaseinfo.setDeptName(deptName);
         add_log(tGuijiLibraryBaseinfo);
         return ls;
     }

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiLibraryBorrowServiceImpl.java

@@ -4,6 +4,7 @@ import java.util.List;
 
 import com.sooka.common.core.text.Convert;
 import com.sooka.common.utils.DateUtils;
+import com.sooka.framework.util.ShiroUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.sooka.system.mapper.TGuijiLibraryBorrowMapper;
@@ -51,6 +52,10 @@ public class TGuijiLibraryBorrowServiceImpl extends Guiji_Base_Service implement
         tGuijiLibraryBorrow.setInterfaceinfoId("9c7ffbdf-56e6-40d1-9bf9-6483ca843774");
         tGuijiLibraryBorrow.setInterfaceinfoName("共享-通化市图书馆-借书信息查询");
         tGuijiLibraryBorrow.setInterfacetype("platform_interfacetype_1");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiLibraryBorrow.setDeptId(deptId);
+        tGuijiLibraryBorrow.setDeptName(deptName);
         add_log(tGuijiLibraryBorrow);
 
         return ls;

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiLibraryCreditpointsServiceImpl.java

@@ -4,6 +4,7 @@ import java.util.List;
 
 import com.sooka.common.core.text.Convert;
 import com.sooka.common.utils.DateUtils;
+import com.sooka.framework.util.ShiroUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.sooka.system.mapper.TGuijiLibraryCreditpointsMapper;
@@ -49,6 +50,10 @@ public class TGuijiLibraryCreditpointsServiceImpl extends Guiji_Base_Service imp
         tGuijiLibraryCreditpoints.setInterfaceinfoId("8bf0954b-b77b-4d85-b352-4a6ec4a54d95");
         tGuijiLibraryCreditpoints.setInterfaceinfoName("共享-通化市图书馆-信用分查询");
         tGuijiLibraryCreditpoints.setInterfacetype("platform_interfacetype_1");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiLibraryCreditpoints.setDeptId(deptId);
+        tGuijiLibraryCreditpoints.setDeptName(deptName);
         add_log(tGuijiLibraryCreditpoints);
         return ls;
     }

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiLibraryGiveServiceImpl.java

@@ -3,6 +3,7 @@ package com.sooka.system.service.impl;
 import java.util.List;
 import com.sooka.common.core.text.Convert;
 import com.sooka.common.utils.DateUtils;
+import com.sooka.framework.util.ShiroUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.sooka.system.mapper.TGuijiLibraryGiveMapper;
@@ -48,6 +49,10 @@ public class TGuijiLibraryGiveServiceImpl extends Guiji_Base_Service implements
         tGuijiLibraryGive.setInterfaceinfoId("93ad1eef-61cc-4a46-b97a-c2f05cec9426");
         tGuijiLibraryGive.setInterfaceinfoName("共享-通化市图书馆-还书信息查询");
         tGuijiLibraryGive.setInterfacetype("platform_interfacetype_1");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiLibraryGive.setDeptId(deptId);
+        tGuijiLibraryGive.setDeptName(deptName);
         add_log(tGuijiLibraryGive);
         return ls;
     }