|
@@ -10,6 +10,7 @@ import com.jpsoft.employment.modules.common.dto.Sort;
|
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
|
import com.jpsoft.employment.modules.job.entity.*;
|
|
|
import com.jpsoft.employment.modules.job.service.*;
|
|
|
+import com.jpsoft.employment.modules.sys.entity.DataDictionary;
|
|
|
import com.jpsoft.employment.modules.sys.entity.User;
|
|
|
import com.jpsoft.employment.modules.sys.service.DataDictionaryService;
|
|
|
import com.jpsoft.employment.modules.sys.service.UserService;
|
|
@@ -18,6 +19,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import net.sf.json.JSONObject;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.hslf.record.CString;
|
|
|
import org.slf4j.Logger;
|
|
@@ -220,6 +222,49 @@ public class RecruitmentApiController {
|
|
|
WorkCategory workCategory = workCategoryService.get(recruitment.getPosition());
|
|
|
recruitment.setPositionName(workCategory.getName());
|
|
|
|
|
|
+ if(StringUtils.isNotEmpty(recruitment.getWelfare())) {
|
|
|
+ String welfare = recruitment.getWelfare();
|
|
|
+
|
|
|
+ List<String> tagList = new ArrayList<>();
|
|
|
+
|
|
|
+ JSONObject jsonObject = JSONObject.fromObject(welfare);
|
|
|
+ if(jsonObject!=null&&jsonObject.size()>0){
|
|
|
+
|
|
|
+ String checkboxGroup1="";
|
|
|
+ String dynamicTags="";
|
|
|
+
|
|
|
+ if(jsonObject.get("checkboxGroup1")!=null){
|
|
|
+ checkboxGroup1 = jsonObject.get("checkboxGroup1").toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ if(jsonObject.get("dynamicTags")!=null){
|
|
|
+ dynamicTags = jsonObject.get("dynamicTags").toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(checkboxGroup1)){
|
|
|
+ recruitment.setCheckboxGroup1(checkboxGroup1);
|
|
|
+
|
|
|
+ String[] checkboxGroupArray = checkboxGroup1.split(",");
|
|
|
+ for (String dicId:checkboxGroupArray) {
|
|
|
+ DataDictionary dataDictionary = dataDictionaryService.get(dicId);
|
|
|
+ if(dataDictionary!=null){
|
|
|
+ tagList.add(dataDictionary.getName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(dynamicTags)){
|
|
|
+ recruitment.setDynamicTags(dynamicTags);
|
|
|
+ String[] dynamicTagArray = dynamicTags.split(",");
|
|
|
+ for (String name:dynamicTagArray) {
|
|
|
+ tagList.add(name);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ recruitment.setTagList(tagList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//热度
|
|
|
// int heatNum = userBrowseService.findNumberByRId(recruitment.getId());
|
|
|
// if(heatNum < 0 ){
|
|
@@ -318,7 +363,9 @@ public class RecruitmentApiController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "id", value = "id", required = true, paramType = "form")
|
|
|
})
|
|
|
- public MessageResult<Map> getCompanyDetails(String id,String token) {
|
|
|
+ public MessageResult<Map> getCompanyDetails(
|
|
|
+ String id,
|
|
|
+ String token) {
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|