|
@@ -315,6 +315,8 @@ public class RecruitApiController {
|
|
|
@ApiImplicitParam(name = "salaryForm", value = "薪资形式(字典:计件,计时,定额)", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "salaryForm", value = "薪资形式(字典:计件,计时,定额)", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "isOnline", value = "是否上架", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "isOnline", value = "是否上架", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "ageRequirement", value = "年龄要求", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "ageRequirement", value = "年龄要求", required = false, paramType = "form"),
|
|
|
|
|
+ @ApiImplicitParam(name = "location", value = "经纬度", required = false, paramType = "form"),
|
|
|
|
|
+ @ApiImplicitParam(name = "addressName", value = "定位地址名称", required = false, paramType = "form"),
|
|
|
})
|
|
})
|
|
|
public MessageResult<Map> createRecruit(
|
|
public MessageResult<Map> createRecruit(
|
|
|
@RequestParam(value="id",defaultValue="") String id,
|
|
@RequestParam(value="id",defaultValue="") String id,
|
|
@@ -332,6 +334,8 @@ public class RecruitApiController {
|
|
|
@RequestParam(value="isOnline",defaultValue="true") Boolean isOnline,
|
|
@RequestParam(value="isOnline",defaultValue="true") Boolean isOnline,
|
|
|
@RequestParam(value="ageRequirement",defaultValue="") String ageRequirement,
|
|
@RequestParam(value="ageRequirement",defaultValue="") String ageRequirement,
|
|
|
@RequestParam(value="images",defaultValue="") String images,
|
|
@RequestParam(value="images",defaultValue="") String images,
|
|
|
|
|
+ @RequestParam(value="location",defaultValue="") String location,
|
|
|
|
|
+ @RequestParam(value="addressName",defaultValue="") String addressName,
|
|
|
@RequestAttribute String subject){
|
|
@RequestAttribute String subject){
|
|
|
|
|
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
@@ -368,6 +372,14 @@ public class RecruitApiController {
|
|
|
recruitInformationInfo.setImages(images);
|
|
recruitInformationInfo.setImages(images);
|
|
|
recruitInformationInfo.setAgeRequirement(ageRequirement);
|
|
recruitInformationInfo.setAgeRequirement(ageRequirement);
|
|
|
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(location)) {
|
|
|
|
|
+ String[] locationArr = location.split(",");
|
|
|
|
|
+ recruitInformationInfo.setLongitude(new BigDecimal(locationArr[0]));
|
|
|
|
|
+ recruitInformationInfo.setLatitude(new BigDecimal(locationArr[1]));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ recruitInformationInfo.setAddressName(addressName);
|
|
|
|
|
+
|
|
|
recruitInformationInfoService.update(recruitInformationInfo);
|
|
recruitInformationInfoService.update(recruitInformationInfo);
|
|
|
} else {
|
|
} else {
|
|
|
RecruitInformationInfo recruitInformationInfo = new RecruitInformationInfo();
|
|
RecruitInformationInfo recruitInformationInfo = new RecruitInformationInfo();
|
|
@@ -395,6 +407,14 @@ public class RecruitApiController {
|
|
|
recruitInformationInfo.setImages(images);
|
|
recruitInformationInfo.setImages(images);
|
|
|
recruitInformationInfo.setIsTopping(false);
|
|
recruitInformationInfo.setIsTopping(false);
|
|
|
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(location)) {
|
|
|
|
|
+ String[] locationArr = location.split(",");
|
|
|
|
|
+ recruitInformationInfo.setLongitude(new BigDecimal(locationArr[0]));
|
|
|
|
|
+ recruitInformationInfo.setLatitude(new BigDecimal(locationArr[1]));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ recruitInformationInfo.setAddressName(addressName);
|
|
|
|
|
+
|
|
|
recruitInformationInfoService.insert(recruitInformationInfo);
|
|
recruitInformationInfoService.insert(recruitInformationInfo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -520,7 +540,10 @@ public class RecruitApiController {
|
|
|
recruitInformationInfo.setSettlementMethodN(dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod()));
|
|
recruitInformationInfo.setSettlementMethodN(dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod()));
|
|
|
recruitInformationInfo.setSalaryFormN(dataDictionaryService.findNameByCatalogNameAndValue("薪资形式",recruitInformationInfo.getSalaryForm()));
|
|
recruitInformationInfo.setSalaryFormN(dataDictionaryService.findNameByCatalogNameAndValue("薪资形式",recruitInformationInfo.getSalaryForm()));
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (recruitInformationInfo.getLongitude() != null && recruitInformationInfo.getLatitude() != null) {
|
|
|
|
|
+ String location = recruitInformationInfo.getLongitude() + "," + recruitInformationInfo.getLatitude();
|
|
|
|
|
+ recruitInformationInfo.setLocation(location);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
returnMap.put("recruitInformationInfo",recruitInformationInfo);
|
|
returnMap.put("recruitInformationInfo",recruitInformationInfo);
|
|
|
returnMap.put("enterpriseInfo",enterpriseInfo);
|
|
returnMap.put("enterpriseInfo",enterpriseInfo);
|