|
|
@@ -8,6 +8,7 @@ import com.uas.service.donate.service.ProjectRecodeService;
|
|
|
import com.uas.service.donate.service.ProjectService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
@@ -91,7 +92,8 @@ public class ProjectRecodeController {
|
|
|
* 根据捐款单号找到该条捐款单据
|
|
|
*/
|
|
|
@ResponseBody
|
|
|
- public ProjectRecode findOne(Long id){
|
|
|
+ @RequestMapping(value = "/detail/{id}",method = RequestMethod.GET)
|
|
|
+ public ProjectRecode findOne(@PathVariable("id") Long id){
|
|
|
return projectRecodeService.findOne(id);
|
|
|
}
|
|
|
}
|