|
|
@@ -3,8 +3,10 @@ package com.jpsoft.employment.modules.base.controller;
|
|
|
import com.github.pagehelper.Page;
|
|
|
import com.jpsoft.employment.modules.base.dto.WishInfoUserRecordDTO;
|
|
|
import com.jpsoft.employment.modules.base.entity.RegUser;
|
|
|
+import com.jpsoft.employment.modules.base.entity.StudentAspirations;
|
|
|
import com.jpsoft.employment.modules.base.entity.WishInfo;
|
|
|
import com.jpsoft.employment.modules.base.service.RegUserService;
|
|
|
+import com.jpsoft.employment.modules.base.service.StudentAspirationsService;
|
|
|
import com.jpsoft.employment.modules.base.service.WishInfoService;
|
|
|
import com.jpsoft.employment.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
|
@@ -35,6 +37,9 @@ public class WishInfoUserRecordController {
|
|
|
|
|
|
@Autowired
|
|
|
private RegUserService regUserService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private StudentAspirationsService studentAspirationsService;
|
|
|
|
|
|
|
|
|
@ApiOperation(value="创建空记录")
|
|
|
@@ -228,7 +233,7 @@ public class WishInfoUserRecordController {
|
|
|
@ApiOperation(value="列表")
|
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
|
public MessageResult<Map> pageList(
|
|
|
- String id,
|
|
|
+ String wishInfoId,String status,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
HttpServletRequest request){
|
|
|
@@ -242,10 +247,14 @@ public class WishInfoUserRecordController {
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("id_","asc"));
|
|
|
+ sortList.add(new Sort("create_time","desc"));
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(wishInfoId)) {
|
|
|
+ searchParams.put("wishInfoId",wishInfoId);
|
|
|
+ }
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
+ if (StringUtils.isNotEmpty(status)) {
|
|
|
+ searchParams.put("status",status);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -262,6 +271,14 @@ public class WishInfoUserRecordController {
|
|
|
wishInfoUserRecord.setStudentName(wishInfo.getStudentName());
|
|
|
wishInfoUserRecord.setStudentType(wishInfo.getStudentType());
|
|
|
}
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(wishInfoUserRecord.getStudentAspirationsId())){
|
|
|
+ StudentAspirations studentAspirations = studentAspirationsService.get(wishInfoUserRecord.getStudentAspirationsId());
|
|
|
+ if(studentAspirations!=null){
|
|
|
+ wishInfoUserRecord.setAspirationsName(studentAspirations.getName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|