From 5dacdee9b54c78372b68140e2b068d03a620eab9 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 02 七月 2025 19:00:52 +0800
Subject: [PATCH] 修改bug

---
 ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/RecruitController.java |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/RecruitController.java b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/RecruitController.java
index 3cb9b8f..02ac3e0 100644
--- a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/RecruitController.java
+++ b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/RecruitController.java
@@ -15,6 +15,7 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 
+import javax.annotation.Resource;
 import java.util.*;
 
 /**
@@ -25,25 +26,28 @@
 @Controller
 @RequestMapping("/recruit")
 public class RecruitController {
-
+    
     private String PREFIX = "/system/recruit/";
-
+    
     @Autowired
     private ITRegionService regionService;
-
+    
     @Autowired
     private IRecruitService recruitService;
-
+    @Resource
+    private ShiroExtUtil shiroExtUtil;
+    
     /**
      * 跳转到列表页
+     *
      * @return
      */
     @GetMapping("/showRecruit")
-    public String showRecruit(){
+    public String showRecruit() {
         return PREFIX + "recruit.html";
     }
-
-
+    
+    
     /**
      * 跳转到添加页
      * @return
@@ -118,13 +122,13 @@
     @PostMapping("/addRecruit")
     public ResultUtil addRecruit(Recruit recruit){
         try {
-            recruit.setCompanyType(ShiroExtUtil.getUser().getRoleType());
-            recruit.setCompanyId(ShiroExtUtil.getUser().getObjectId());
+            recruit.setCompanyType(shiroExtUtil.getUser().getRoleType());
+            recruit.setCompanyId(shiroExtUtil.getUser().getObjectId());
             recruit.setProvinceName(regionService.selectOne(new EntityWrapper<TRegion>().eq("code", recruit.getProvinceCode())).getName());
             recruit.setCityName(regionService.selectOne(new EntityWrapper<TRegion>().eq("code", recruit.getCityCode())).getName());
             recruit.setFirstPageShow(2);
             recruit.setCreateTime(new Date());
-            recruit.setInsertUser(ShiroExtUtil.getUser().getId());
+            recruit.setInsertUser(shiroExtUtil.getUser().getId());
             if (recruit.getInterviewOrNot() == 1) {
                 recruit.setStartSalary(0D);
                 recruit.setEndSalary(0D);

--
Gitblit v1.7.1