|
|
@@ -14,6 +14,7 @@ import com.jpsoft.employment.modules.common.dto.Sort;
|
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -46,7 +47,7 @@ public class VolunteerApi {
|
|
|
MessageResult msgResult = new MessageResult<>();
|
|
|
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
|
- searchParams.put("isShelves",true);
|
|
|
+// searchParams.put("isShelves",true);
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("create_time","desc"));
|
|
|
@@ -64,8 +65,19 @@ public class VolunteerApi {
|
|
|
public MessageResult detail(String id) {
|
|
|
MessageResult msgResult = new MessageResult<>();
|
|
|
|
|
|
+ List<Map> list = new ArrayList<>();
|
|
|
+
|
|
|
VolunteerTasks volunteerTasks = volunteerTasksService.get(id);
|
|
|
|
|
|
+ Map<String,Object> searchParams = new HashMap<>();
|
|
|
+ searchParams.put("volunteerTasksId",id);
|
|
|
+
|
|
|
+ List<Sort> sortList = new ArrayList<>();
|
|
|
+ sortList.add(new Sort("create_time","desc"));
|
|
|
+
|
|
|
+ List<VolunteerSignRecord> volunteerSignRecordList = volunteerSignRecordService.pageSearch(searchParams,1,1000,false,sortList);
|
|
|
+ volunteerTasks.setVolunteerSignRecordList(volunteerSignRecordList);
|
|
|
+
|
|
|
msgResult.setResult(true);
|
|
|
msgResult.setData(volunteerTasks);
|
|
|
|