|
|
|
@ -6,14 +6,12 @@ package com.foreverwin.mesnac.anomaly.controller;
|
|
|
|
|
* @Since 2021-08-23
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.dto.PartsManufacturing;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.ReportService;
|
|
|
|
|
import com.foreverwin.mesnac.integration.model.IntegrationLog;
|
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/REPORT")
|
|
|
|
@ -39,4 +37,13 @@ public class Report {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/surplusReturnTable")
|
|
|
|
|
public R surplusReturnTable(String item,String itemDescription){
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(reportService.surplusReturnTable(item,itemDescription));
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|