Jelajahi Sumber

通知詳情頁面

pengjing 1 tahun lalu
induk
melakukan
34f9949b3a

+ 76 - 12
h5app/src/views/pages/wxMessage/companyInfo.vue

@@ -1,27 +1,27 @@
 <template>
   <ion-content>
     <div class="user_info_title">
-      您好!惠州就业驿站给您推荐《java工程师》的岗位,请查阅!
+      您好!惠州就业驿站给您推荐《{{jobMgrModel.qzProfessionName}}》的岗位,请查阅!
     </div>
     <div class="user_panel user_baseinfo">
       <div class="user_info_img">
         <div class="user_text">
-          <h4>惠州市xx科技有限公司</h4>
-          <p>java工程师</p>
+          <h4>{{companyInfo.companyName}}</h4>
+          <p>{{jobMgrModel.zpProfessionName}}</p>
         </div>
       </div>
       <div class="user_info_flex">
         <div>
-          <h6>5000 ~ 8000</h6>
+          <h6>{{postInfo.minSalary}} ~ {{postInfo.maxSalary}}</h6>
           <p>薪资</p>
         </div>
         <div>
-          <h6>大专</h6>
+          <h6>{{postInfo.cultureLevelName}}</h6>
           <p>学历</p>
         </div>
       </div>
       <div class="user_info_text">
-        <span>惠州市惠城区xx信息所</span>
+        <span>{{companyInfo.companyAddress}}</span>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
@@ -30,11 +30,11 @@
       </div>
       <div class="user_info_label user_info_border">
         <ion-label>联系人</ion-label>
-        <ion-text>张经理</ion-text>
+        <ion-text>{{companyInfo.userName}}</ion-text>
       </div>
       <div class="user_info_label">
         <ion-label>联系电话</ion-label>
-        <ion-text>13444444444</ion-text>
+        <ion-text>{{companyInfo.userMobile}}</ion-text>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
@@ -42,14 +42,78 @@
         <h6>岗位要求</h6>
       </div>
       <div class="user_info_label2">
-        <p>1、熟悉xxxx</p>
-        <p>2、熟悉xxxx</p>
-        <p>3、熟悉xxxx</p>
-        <p>4、熟悉xxxx</p>
+        <p>{{postInfo.postDesc}}</p>
       </div>
     </div>
   </ion-content>
 </template>
+<script>
+import {defineComponent, ref} from "vue";
+import {getListById} from "../../../api/recommendmgt";
+import {getUrlParams} from "../../../utils/urlUtils";
+import {alertController} from "@ionic/vue";
+import dayjs from "dayjs";
+import {getCompanyById} from "../../../api/company";
+import {getPostByID} from "../../../api/post";
+
+const presentAlert = async (message) => {
+  const alert = await alertController.create({
+    header: '错误!',
+    message: message,
+    buttons: [
+      '确定'
+    ],
+  });
+
+  await alert.present();
+}
+
+export default defineComponent({
+  name: "wxMessage_jobUserInfo",
+  setup() {
+    const loading = ref(true);
+    const urlParams = getUrlParams();
+    const recommendmgtid = urlParams["recommendmgtid"];
+    const jobMgrModel = ref({});
+    const companyInfo = ref({});
+    const postInfo = ref({});
+    const getMgrData = async (id) => {
+      loading.value = true;
+      getListById(id).then((data) => {
+        jobMgrModel.value = data;
+        getCompanyInfo(jobMgrModel.value.companyId);
+        getPostByInfo(jobMgrModel.value.postID);
+      })
+      loading.value = false;
+    };
+
+    const getCompanyInfo = async (id) => {
+      getCompanyById(id).then((data) => {
+        companyInfo.value = data;
+      });
+    };
+
+    const getPostByInfo = async (id) => {
+      getPostByID(id).then((data) => {
+        postInfo.value = data;
+      });
+    };
+
+    if (recommendmgtid) {
+      getMgrData(recommendmgtid);
+    } else {
+      presentAlert("未获取到岗位推荐ID");
+    }
+
+    return {
+      jobMgrModel,
+      companyInfo,
+      postInfo,
+      dayjs
+    }
+  }
+});
+</script>
 <style lang="less">
 @border_color: #f1f5f7;
 @p_color: #8c8f93;

+ 89 - 24
h5app/src/views/pages/wxMessage/jobUserInfo.vue

@@ -1,7 +1,7 @@
 <template>
   <ion-content>
     <div class="user_info_title">
-      您好!惠州就业驿站给您推荐《java工程师》的简历,请查阅!
+      您好!惠州就业驿站给您推荐《{{jobMgrModel.zpProfessionName}}》的简历,请查阅!
     </div>
     <div class="user_panel user_baseinfo">
       <div class="user_info_img">
@@ -10,30 +10,30 @@
                onerror="this.src='@/assets/icon/icon-user-2x.png'"/>
         </div>
         <div class="user_text">
-          <h4>张三</h4>
-          <p>java工程师</p>
+          <h4>{{jobUserInfo.name}}</h4>
+          <p>{{jobMgrModel.qzProfessionName}}</p>
         </div>
       </div>
       <div class="user_info_flex">
         <div>
-          <h6></h6>
+          <h6>{{jobUserInfo.genderName}}</h6>
           <p>性别</p>
         </div>
         <div>
-          <h6>24</h6>
+          <h6>{{jobUserInfo.age}}</h6>
           <p>年龄</p>
         </div>
         <div>
-          <h6>本科</h6>
+          <h6>{{jobUserInfo.cultureName}}</h6>
           <p>学历</p>
         </div>
         <div>
-          <h6>3</h6>
+          <h6>{{jobUserInfo.age}}</h6>
           <p>经验</p>
         </div>
       </div>
       <div class="user_info_text">
-        <span>待业,惠州市惠城区xxx街道</span>
+        <span>{{jobUserInfo.jobStatusName}},{{jobUserInfo.address}}</span>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
@@ -42,33 +42,29 @@
       </div>
       <div class="user_info_label user_info_border">
         <ion-label>电话</ion-label>
-        <ion-text>123456789</ion-text>
+        <ion-text>{{jobUserInfo.userMobile}}</ion-text>
       </div>
       <div class="user_info_label">
         <ion-label>邮箱</ion-label>
-        <ion-text>张xx</ion-text>
+        <ion-text>{{jobUserInfo.email}}</ion-text>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
       <div class="user_panel_title">
         <h6>教育经历</h6>
       </div>
-      <div class="user_info_label2">
-        <h6>惠州学院</h6>
-        <p>软件开发 | 2021毕业</p>
+      <div class="user_info_label2" v-for="(it,key) in educationList" :key="key">
+        <h6>{{it.schoolName}}</h6>
+        <p>{{it.major}} | {{dayjs(it.overTime).format('YYYY')}}毕业</p>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
       <div class="user_panel_title">
         <h6>工作经历</h6>
       </div>
-      <div class="user_info_label2">
-        <h6>惠州市xx科技有限公司</h6>
-        <p>java开发 | 2019-01 ~ 2020-01</p>
-      </div>
-      <div class="user_info_label2">
-        <h6>广州市xx科技有限公司</h6>
-        <p>java开发 | 2019-01 ~ 2020-01</p>
+      <div class="user_info_label2" v-for="(it,key) in experienceList" :key="key">
+        <h6>{{it.workAddress}}</h6>
+        <p>{{it.duties}}  |  {{dayjs(it.startTime).format('YYYY-MM')}}~{{dayjs(it.endTime).format('YYYY-MM')}}</p>
       </div>
     </div>
     <div class="user_panel user_baseinfo">
@@ -76,14 +72,83 @@
         <h6>个人技能</h6>
       </div>
       <div class="user_info_label2">
-        <p>1、熟悉xxxx</p>
-        <p>2、熟悉xxxx</p>
-        <p>3、熟悉xxxx</p>
-        <p>4、熟悉xxxx</p>
+        <p>
+          {{jobUserInfo.personalSkills}}
+        </p>
       </div>
     </div>
   </ion-content>
 </template>
+<script>
+import {defineComponent, ref} from "vue";
+import {getListById} from "../../../api/recommendmgt";
+import {getUrlParams} from "../../../utils/urlUtils";
+import {getEducationList, getExperienceList, getJobUserById} from "../../../api/jobUserInfo";
+import {alertController} from "@ionic/vue";
+import dayjs from "dayjs";
+
+const presentAlert = async (message) => {
+  const alert = await alertController.create({
+    header: '错误!',
+    message: message,
+    buttons: [
+      '确定'
+    ],
+  });
+
+  await alert.present();
+}
+
+export default defineComponent({
+  name: "wxMessage_jobUserInfo",
+  setup() {
+    const loading = ref(true);
+    const urlParams = getUrlParams();
+    const recommendmgtid = urlParams["recommendmgtid"];
+    const jobMgrModel = ref({});
+    const jobUserInfo = ref({});
+    const educationList = ref([]);
+    const experienceList = ref([]);
+    const getMgrData = async (id) => {
+      loading.value = true;
+      getListById(id).then((data) => {
+        jobMgrModel.value = data;
+        getJobUserInfo(jobMgrModel.value.jobuserId);
+      })
+      loading.value = false;
+    };
+
+    const getJobUserInfo = async (id) => {
+      getJobUserById(id).then((data) => {
+        jobUserInfo.value = data;
+      });
+
+      getEducationList(id).then((data) => {
+        educationList.value = data;
+      });
+
+      getExperienceList(id).then((data) => {
+        experienceList.value = data;
+      });
+    };
+
+    console.log("recommendmgtid:" + recommendmgtid)
+    if (recommendmgtid) {
+      getMgrData(recommendmgtid);
+    } else {
+      presentAlert("未获取到岗位推荐ID");
+    }
+
+    return {
+      jobMgrModel,
+      jobUserInfo,
+      educationList,
+      experienceList,
+      dayjs
+    }
+  }
+});
+</script>
 <style lang="less">
 @border_color: #f1f5f7;
 @p_color: #8c8f93;

+ 6 - 0
src/main/java/com/hz/employmentsite/config/WebConfiguration.java

@@ -62,6 +62,12 @@ public class WebConfiguration implements WebMvcConfigurer {
         excludePath.add("/api/system/file/downFileToUrl/**");  //下载附件
         excludePath.add("/api/common/getQRCode");
         excludePath.add("/api/user/getUserInfo");
+        excludePath.add("/api/jobUserService/jobUser/getDataByID");
+        excludePath.add("/api/jobUserService/jobUser/getEducationList");
+        excludePath.add("/api/jobUserService/jobUser/getExperienceList");
+        excludePath.add("/api/companyService/company/getCompanyByID");
+        excludePath.add("/api/jobusermgr/recommendmgt/getListById");
+        excludePath.add("/api/companyService/post/getPostByID");
         excludePath.add("/api/wx/**");
         excludePath.add("/static/**");  //静态资源
         excludePath.add("/mobile/**");  //静态资源

+ 2 - 0
src/main/java/com/hz/employmentsite/vo/jobUserManager/RecommendMgtVo.java

@@ -20,4 +20,6 @@ public class RecommendMgtVo extends PcRecommendMgt {
     public String jobPeopleIsReadName;
     public String pushName;
     public String genderName;
+    public String jobuserId;
+    public String companyId;
 }

+ 1 - 0
src/main/resources/mapping/cquery/RecommendMgtCQuery.xml

@@ -8,6 +8,7 @@
         f.professionname as zpprofessionname,f2.professionname as qzprofessionname,
         dic1.`name` as recommendtypename,dic2.`name` as entrystatename,dic3.`name` as postisreadname,
         dic4.`name` as jobpeopleisreadname,g.`name` as pushname, dic5.`name` as gendername
+        ,e.jobuserId,c.companyId
         from pc_recommend_mgt a
         left join pc_post b on a.PostID = b.PostID
         left join pc_company c on b.CompanyID = c.CompanyID