|
|
@@ -98,8 +98,13 @@ public class SaleSampleController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/{id}/send", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
- public List<PurchaseProofingSend> getProofingSends(@PathVariable("id") Long id) {
|
|
|
- return purchaseProofingService.findSendsByItemId(id);
|
|
|
+ public PurchaseProofingSend getProofingSends(@PathVariable("id") Long id) {
|
|
|
+ List<PurchaseProofingSend> sends = purchaseProofingService.findSendsByItemId(id);
|
|
|
+ if(sends.size() > 0) {
|
|
|
+ return sends.get(0);
|
|
|
+ } else {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|