Przeglądaj źródła

web-岗位、求职人员推荐筛选条件调整

liao-sea 8 miesięcy temu
rodzic
commit
ad17f74470

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

@@ -106,18 +106,35 @@
                 <when test="parentProfessionID != null and parentProfessionID!=''">
                     and c.ParentProfessionID = #{parentProfessionID}
                 </when>
+
                 <when test="professionID != null and professionID != '' and (inviteProfessionName == null or inviteProfessionName == '') and (companyName == null or companyName == '') ">
                     and a.ProfessionID = #{professionID}
                 </when>
+
+
                 <when test="professionID != null and professionID != '' and (inviteProfessionName == null or inviteProfessionName == '') and (companyName != null and companyName != '')">
                     and ( a.ProfessionID = #{professionID} or b.CompanyName like Concat('%',#{companyName},'%') )
                 </when>
+                <when test="(professionID == null or professionID == '') and (inviteProfessionName == null or inviteProfessionName == '') and (companyName != null and companyName != '')">
+                    and  b.CompanyName like Concat('%',#{companyName},'%')
+                </when>
+
+
                 <when test="professionID != null and professionID != '' and inviteProfessionName != null and inviteProfessionName != ''  and (companyName == null or companyName == '') ">
                     and ( a.ProfessionID = #{professionID} or c.professionname like Concat('%',#{inviteProfessionName},'%') )
                 </when>
+                <when test="(professionID == null or professionID == '') and inviteProfessionName != null and inviteProfessionName != ''  and (companyName == null or companyName == '') ">
+                    and  c.professionname like Concat('%',#{inviteProfessionName},'%')
+                </when>
+
+
                 <when test="professionID != null and professionID != '' and inviteProfessionName != null and inviteProfessionName != ''  and companyName != null and companyName!='' ">
                     and ( a.ProfessionID = #{professionID} or ( b.CompanyName like Concat('%',#{companyName},'%') and c.professionname like Concat('%',#{inviteProfessionName},'%') ) )
                 </when>
+                <when test="(professionID == null or professionID == '')  and inviteProfessionName != null and inviteProfessionName != ''  and companyName != null and companyName!='' ">
+                    and ( b.CompanyName like Concat('%',#{companyName},'%') and c.professionname like Concat('%',#{inviteProfessionName},'%') )
+                </when>
+
                 <otherwise>and 1=1</otherwise>
             </choose>
             <if test="cultureRank!=null and cultureRank!=''">

+ 4 - 1
vue/src/views/companyService/post/recommend.vue

@@ -277,6 +277,9 @@ export default defineComponent({
     const getAllSites = () => {
       getSiteList({pageIndex:1,pageSize:9999}).then((result :any) => {
         siteList.value = result.list;
+        if(searchParams.regionCode){
+          siteList.value = siteList.value.filter(x=>x.regionCode==searchParams.regionCode);
+        }
       })
     }
 
@@ -317,7 +320,6 @@ export default defineComponent({
     // 岗位名称变更
     function professionChange(value: any) {
       searchParams.huntProfessionName = value;
-      console.log("当前搜索的求职岗位名称",value);
     }
 
     const onSearch = () => {
@@ -329,6 +331,7 @@ export default defineComponent({
       regionList.value = data;
     });
 
+
     const loadData = async function () {
       formState.loading = true;
       getAllSites();