Explorar el Código

接口代码提交

xiao547607 hace 3 años
padre
commit
ba2f323ec6

+ 2 - 0
common/src/main/java/com/jpsoft/employment/modules/job/entity/Recruitment.java

@@ -24,6 +24,8 @@ public class Recruitment {
     private String companyLogo;
     private String companyScale;
     private String companyScaleN;
+    private String companyIndustry;
+    private String companyIndustryN;
         @ApiModelProperty(value = "标题")
     private String title;
         @ApiModelProperty(value = "招聘所属地区")

+ 1 - 2
common/src/main/resources/mapper/job/Recruitment.xml

@@ -169,8 +169,7 @@
 	where id_=#{id}
 	</update>
 	<select id="get" parameterType="string" resultMap="RecruitmentMap">
-		select 
-id_,company_id,title_,area_,address_,position_,position_message,requirements_,position_number,work_year,education_,position_sex,read_times,wage_type,is_discuss_personally,contact_person,tel_,status_,approve_status,reading_times,collection_times,delivery_times,create_by,create_time,update_by,update_time,del_flag,work_category_id		from job_recruitment where id_=#{0}
+		select * from job_recruitment where id_=#{0}
 	</select>
 	<select id="exist" parameterType="string" resultType="int">
 		select count(*) from job_recruitment where id_=#{0}

+ 3 - 0
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/RecruitmentApiController.java

@@ -183,8 +183,11 @@ public class RecruitmentApiController {
             recruitment.setCompanyName(company.getName());
             recruitment.setCompanyLogo(company.getLogo());
             recruitment.setCompanyScale(company.getScale());
+            recruitment.setCompanyIndustry(company.getIndustry());
             String scaleN = dataDictionaryService.getName(company.getScale());
             recruitment.setCompanyScaleN(scaleN);
+            String industryN = dataDictionaryService.getName(company.getIndustry());
+            recruitment.setCompanyIndustryN(industryN);
 
             City city = cityService.get(recruitment.getArea());
             recruitment.setAreaN(city.getCityName());