|
@@ -164,6 +164,7 @@ public class RecruitApiController {
|
|
|
}
|
|
|
|
|
|
searchParams.put("status","1");
|
|
|
+ searchParams.put("isOnline",true);
|
|
|
Page<RecruitInformationInfo> page = recruitInformationInfoService.pageSearchMobile(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
for(RecruitInformationInfo recruitInformationInfo : page.getResult()){
|
|
|
recruitInformationInfo.setSettlementMethodN(dataDictionaryService.findNameByCatalogNameAndValue("结算方式",recruitInformationInfo.getSettlementMethod()));
|
|
@@ -294,6 +295,7 @@ public class RecruitApiController {
|
|
|
@ApiImplicitParam(name = "workArea", value = "工作地区", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "address", value = "详细地址", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "salaryForm", value = "薪资形式(字典:计件,计时,定额)", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "isOnline", value = "是否上架", required = false, paramType = "form"),
|
|
|
})
|
|
|
public MessageResult<Map> createRecruit(
|
|
|
@RequestParam(value="id",defaultValue="") String id,
|
|
@@ -308,6 +310,7 @@ public class RecruitApiController {
|
|
|
@RequestParam(value="workArea",defaultValue="") String workArea,
|
|
|
@RequestParam(value="address",defaultValue="") String address,
|
|
|
@RequestParam(value="salaryForm",defaultValue="") String salaryForm,
|
|
|
+ @RequestParam(value="isOnline",defaultValue="true") Boolean isOnline,
|
|
|
@RequestAttribute String subject){
|
|
|
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
@@ -340,6 +343,7 @@ public class RecruitApiController {
|
|
|
recruitInformationInfo.setWorkArea(workArea);
|
|
|
recruitInformationInfo.setAddress(address);
|
|
|
recruitInformationInfo.setSalaryForm(salaryForm);
|
|
|
+ recruitInformationInfo.setIsOnline(isOnline);
|
|
|
|
|
|
recruitInformationInfoService.update(recruitInformationInfo);
|
|
|
} else {
|
|
@@ -363,6 +367,7 @@ public class RecruitApiController {
|
|
|
recruitInformationInfo.setWorkArea(workArea);
|
|
|
recruitInformationInfo.setAddress(address);
|
|
|
recruitInformationInfo.setSalaryForm(salaryForm);
|
|
|
+ recruitInformationInfo.setIsOnline(isOnline);
|
|
|
|
|
|
recruitInformationInfoService.insert(recruitInformationInfo);
|
|
|
}
|
|
@@ -377,6 +382,45 @@ public class RecruitApiController {
|
|
|
return msgResult;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="修改招聘信息")
|
|
|
+ @RequestMapping(value = "updateRecruitOnline",method = RequestMethod.POST)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "ID", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "isOnline", value = "上架状态", required = false, paramType = "form"),
|
|
|
+ })
|
|
|
+ public MessageResult<Map> updateRecruitOnline(
|
|
|
+ @RequestParam(value="id",defaultValue="") String id,
|
|
|
+ @RequestParam(value="isOnline",defaultValue="true") Boolean isOnline,
|
|
|
+ @RequestAttribute String subject){
|
|
|
+
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
+ try {
|
|
|
+
|
|
|
+ PersonInfo personInfo = personInfoService.get(subject);
|
|
|
+ if (personInfo == null) {
|
|
|
+ throw new Exception("未登录");
|
|
|
+ }
|
|
|
+
|
|
|
+ RecruitInformationInfo recruitInformationInfo = recruitInformationInfoService.get(id);
|
|
|
+ if(recruitInformationInfo == null){
|
|
|
+ throw new Exception("未找到岗位");
|
|
|
+ }
|
|
|
+ recruitInformationInfo.setUpdateBy(subject);
|
|
|
+ recruitInformationInfo.setUpdateTime(new Date());
|
|
|
+ recruitInformationInfo.setIsOnline(isOnline);
|
|
|
+ recruitInformationInfoService.update(recruitInformationInfo);
|
|
|
+
|
|
|
+
|
|
|
+ msgResult.setResult(true);
|
|
|
+ }catch (Exception e){
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(e.getMessage());
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value="招聘信息详细(公开接口")
|
|
|
@RequestMapping(value = "recruitDetail",method = RequestMethod.POST)
|
|
|
@ApiImplicitParams({
|
|
@@ -536,9 +580,11 @@ public class RecruitApiController {
|
|
|
@RequestMapping(value = "myEmployment",method = RequestMethod.POST)
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "status", value = "发布中1,待审核0,未通过2", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "isOnline", value = "是否上架", required = false, paramType = "form"),
|
|
|
})
|
|
|
public MessageResult<Map> myEmployment(
|
|
|
@RequestParam(value="status",defaultValue="1") String status,
|
|
|
+ @RequestParam(value="isOnline",defaultValue="") Boolean isOnline,
|
|
|
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
|
|
|
@RequestAttribute String subject){
|
|
@@ -559,6 +605,9 @@ public class RecruitApiController {
|
|
|
searchParams.put("enterpriseId",personInfo.getEnterpriseId());
|
|
|
|
|
|
searchParams.put("status",status);
|
|
|
+ if(isOnline != null) {
|
|
|
+ searchParams.put("isOnline", isOnline);
|
|
|
+ }
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("a.create_time","desc"));
|