浏览代码

接口查询空指针

wangzhe 2 年之前
父节点
当前提交
8168df7618

+ 9 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiNaturalresourcesBdcdjxxServiceImpl.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.TGuijiNaturalresourcesBdcdjxxMapper;
@@ -52,6 +53,10 @@ public class TGuijiNaturalresourcesBdcdjxxServiceImpl extends Guiji_Base_Service
             tGuijiNaturalresourcesBdcdjxx.setInterfaceinfoId("f190c491-f71d-486d-b50d-870e526dbab6");
             tGuijiNaturalresourcesBdcdjxx.setInterfaceinfoName("共享-不动产-商业服务");
         }
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiNaturalresourcesBdcdjxx.setDeptId(deptId);
+        tGuijiNaturalresourcesBdcdjxx.setDeptName(deptName);
         add_log(tGuijiNaturalresourcesBdcdjxx);
         return ls;
     }
@@ -62,6 +67,10 @@ public class TGuijiNaturalresourcesBdcdjxxServiceImpl extends Guiji_Base_Service
 
         tGuijiNaturalresourcesBdcdjxx.setInterfaceinfoId("e7e57001-4a54-40a8-bad1-711a1eb6b46e");
         tGuijiNaturalresourcesBdcdjxx.setInterfaceinfoName("共享-不动产-其他信息");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiNaturalresourcesBdcdjxx.setDeptId(deptId);
+        tGuijiNaturalresourcesBdcdjxx.setDeptName(deptName);
         add_log(tGuijiNaturalresourcesBdcdjxx);
         return ls;
     }

+ 9 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiNaturalresourcesBdcdjzxxServiceImpl.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.TGuijiNaturalresourcesBdcdjzxxMapper;
@@ -51,6 +52,10 @@ public class TGuijiNaturalresourcesBdcdjzxxServiceImpl extends Guiji_Base_Servic
             tGuijiNaturalresourcesBdcdjzxx.setInterfaceinfoId("7b0c12dd-550b-4d43-9513-619a55257a89");
             tGuijiNaturalresourcesBdcdjzxx.setInterfaceinfoName("共享-不动产-商业服务证信息");
         }
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiNaturalresourcesBdcdjzxx.setDeptId(deptId);
+        tGuijiNaturalresourcesBdcdjzxx.setDeptName(deptName);
         add_log(tGuijiNaturalresourcesBdcdjzxx);
         return ls;
     }
@@ -61,6 +66,10 @@ public class TGuijiNaturalresourcesBdcdjzxxServiceImpl extends Guiji_Base_Servic
         List ls = tGuijiNaturalresourcesBdcdjzxxMapper.selectTGuijiNaturalresourcesBdcdjxxQtList(tGuijiNaturalresourcesBdcdjzxx);
         tGuijiNaturalresourcesBdcdjzxx.setInterfaceinfoId("共享-不动产-其他证信息");
         tGuijiNaturalresourcesBdcdjzxx.setInterfaceinfoName("1d2e2b62-105c-4c88-ab88-a9b806a9d34e");
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiNaturalresourcesBdcdjzxx.setDeptId(deptId);
+        tGuijiNaturalresourcesBdcdjzxx.setDeptName(deptName);
         add_log(tGuijiNaturalresourcesBdcdjzxx);
         return ls;
     }

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TGuijiNaturalresourcesQlrjbxxServiceImpl.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.TGuijiNaturalresourcesQlrjbxxMapper;
@@ -52,6 +53,10 @@ public class TGuijiNaturalresourcesQlrjbxxServiceImpl extends Guiji_Base_Service
             tGuijiNaturalresourcesQlrjbxx.setInterfaceinfoId("1138f726-87af-45f6-b67c-c061d3f514b0");
             tGuijiNaturalresourcesQlrjbxx.setInterfaceinfoName("共享-不动产-其他基本信息");
         }
+        Long deptId = ShiroUtils.getSysUser().getDept().getDeptId();
+        String deptName = ShiroUtils.getSysUser().getDept().getDeptName();
+        tGuijiNaturalresourcesQlrjbxx.setDeptId(deptId);
+        tGuijiNaturalresourcesQlrjbxx.setDeptName(deptName);
         add_log(tGuijiNaturalresourcesQlrjbxx);