|
@ -4,7 +4,9 @@ import com.yihu.jw.base.dao.voluntary.VoluntaryRecruitmentPeopleDao;
|
|
|
import com.yihu.jw.base.service.voluntary.VoluntaryRecruitmentCompanyService;
|
|
|
import com.yihu.jw.base.service.voluntary.VoluntaryRecruitmentService;
|
|
|
import com.yihu.jw.entity.voluntary.VoluntaryRecruitmentCompanyDO;
|
|
|
import com.yihu.jw.hospital.dict.service.WlyyHospitalSysDictService;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
@ -35,6 +37,8 @@ public class VoluntaryRecruitmentEndpoint extends EnvelopRestEndpoint {
|
|
|
private VoluntaryRecruitmentCompanyService companyService;
|
|
|
@Autowired
|
|
|
private VoluntaryRecruitmentPeopleDao peopleDao;
|
|
|
@Autowired
|
|
|
private WlyyHospitalSysDictService wlyyHospitalSysDictService;
|
|
|
|
|
|
@PostMapping(value = "add")
|
|
|
@ApiOperation(value = "企业报名")
|
|
@ -75,7 +79,6 @@ public class VoluntaryRecruitmentEndpoint extends EnvelopRestEndpoint {
|
|
|
e.printStackTrace();
|
|
|
return PageEnvelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "existsByPhone")
|
|
@ -125,12 +128,29 @@ public class VoluntaryRecruitmentEndpoint extends EnvelopRestEndpoint {
|
|
|
@RequestParam(value = "station", required = true) String station){
|
|
|
try {
|
|
|
voluntaryRecruitmentService.arrange(companyId, day, time, peoples, station);
|
|
|
return success("报名成功");
|
|
|
return success("安排成功");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@ApiOperation("查询字典")
|
|
|
@GetMapping(value= "findDict")
|
|
|
public MixEnvelop findDict(@ApiParam(name = "name", value = "name", required = false)
|
|
|
@RequestParam(value = "name", required = false)String name,
|
|
|
@ApiParam(name = "modelName", value = "modelName", required = false)
|
|
|
@RequestParam(value = "modelName", required = false)String modelName,
|
|
|
@ApiParam(name = "code", value = "code", required = false)
|
|
|
@RequestParam(value = "code", required = false)String code,
|
|
|
@ApiParam(name = "value", value = "value", required = false)
|
|
|
@RequestParam(value = "value", required = false)String value,
|
|
|
@ApiParam(name = "page", value = "page", required = false)
|
|
|
@RequestParam(value = "page", required = false) Integer page,
|
|
|
@ApiParam(name = "pageSize", value = "pageSize", required = false)
|
|
|
@RequestParam(value = "pageSize", required = false)Integer pageSize){
|
|
|
|
|
|
return wlyyHospitalSysDictService.findDictsByNameCode(modelName,name,code,value,page,pageSize);
|
|
|
}
|
|
|
|
|
|
}
|