|
|
|
@ -217,7 +217,11 @@ public class AbnormalBillController {
|
|
|
|
|
@RequestParam List<String> ncGroupAndNcCodes,
|
|
|
|
|
@RequestParam List<String> dutyCauseType,
|
|
|
|
|
@RequestParam List<String> dutyType){
|
|
|
|
|
return R.ok(abnormalBillService.anomalyReport(abnormalBill, abnormalBillDispose,ncGroupAndNcCodes,dutyCauseType,dutyType));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(abnormalBillService.anomalyReport(abnormalBill, abnormalBillDispose,ncGroupAndNcCodes,dutyCauseType,dutyType));
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed("质量异常提报失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -227,7 +231,12 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/anomalyReportDevice")
|
|
|
|
|
public R anomalyReportDevice(AbnormalBill abnormalBill, AbnormalBillDispose abnormalBillDispose){
|
|
|
|
|
return R.ok(abnormalBillService.anomalyReportDevice(abnormalBill,abnormalBillDispose));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(abnormalBillService.anomalyReportDevice(abnormalBill,abnormalBillDispose));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("设备异常提报失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -239,12 +248,21 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/cancelBrowse")
|
|
|
|
|
public R cancelBrowse(String handle, String cancelBrowse,String code,String cancelSendUserGroup){
|
|
|
|
|
return R.ok( abnormalBillService.cancelBrowse(handle,cancelBrowse,code,cancelSendUserGroup));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok( abnormalBillService.cancelBrowse(handle,cancelBrowse,code,cancelSendUserGroup));
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed("取消失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/backLog")
|
|
|
|
|
public R backLog(AbnormalBillDto abnormalBillDto){
|
|
|
|
|
return R.ok(abnormalBillService.backLog(abnormalBillDto));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(abnormalBillService.backLog(abnormalBillDto));
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed("检索失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -254,7 +272,12 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/findAllByAbnormalNo")
|
|
|
|
|
public R findAllByAbnormalNo(AbnormalBill abnormalBill){
|
|
|
|
|
return R.ok(abnormalBillService.findAllByAbnormalNo(abnormalBill));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(abnormalBillService.findAllByAbnormalNo(abnormalBill));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("检索失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -262,7 +285,12 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/findAllByAbnormalNoDevice")
|
|
|
|
|
public R findAllByAbnormalNoDevice(AbnormalBill abnormalBill){
|
|
|
|
|
return R.ok(abnormalBillService.findAllByAbnormalNoDevice(abnormalBill));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(abnormalBillService.findAllByAbnormalNoDevice(abnormalBill));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("设备异常响应检索失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -272,8 +300,12 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/resProcessing")
|
|
|
|
|
public R resProcessing(AbnormalBill abnormalBill){
|
|
|
|
|
abnormalBillService.resProcessing(abnormalBill);
|
|
|
|
|
return R.ok();
|
|
|
|
|
try{
|
|
|
|
|
abnormalBillService.resProcessing(abnormalBill);
|
|
|
|
|
return R.ok();
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed("响应处理失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -284,8 +316,12 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/programConfirm")
|
|
|
|
|
public R programConfirm(AbnormalBill abnormalBill,AbnormalBillDispose abnormalBillDispose){
|
|
|
|
|
abnormalBillService.programConfirm(abnormalBill,abnormalBillDispose);
|
|
|
|
|
return R.ok();
|
|
|
|
|
try{
|
|
|
|
|
abnormalBillService.programConfirm(abnormalBill,abnormalBillDispose);
|
|
|
|
|
return R.ok();
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("方案确认失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -298,8 +334,12 @@ public class AbnormalBillController {
|
|
|
|
|
public R dutyConfirm(AbnormalBill abnormalBill,AbnormalBillDispose abnormalBillDispose,
|
|
|
|
|
@RequestParam List<String> dutyCauseType,
|
|
|
|
|
@RequestParam List<String> dutyType){
|
|
|
|
|
abnormalBillService.dutyConfirm(abnormalBill,abnormalBillDispose,dutyCauseType,dutyType);
|
|
|
|
|
return R.ok();
|
|
|
|
|
try{
|
|
|
|
|
abnormalBillService.dutyConfirm(abnormalBill,abnormalBillDispose,dutyCauseType,dutyType);
|
|
|
|
|
return R.ok();
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return R.failed("判责提交失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -310,25 +350,42 @@ public class AbnormalBillController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/anomalyShutDown")
|
|
|
|
|
public R anomalyShutDown(AbnormalBill abnormalBill,AbnormalBillDispose abnormalBillDispose){
|
|
|
|
|
abnormalBillService.anomalyShutDown(abnormalBill,abnormalBillDispose);
|
|
|
|
|
return R.ok();
|
|
|
|
|
try{
|
|
|
|
|
abnormalBillService.anomalyShutDown(abnormalBill,abnormalBillDispose);
|
|
|
|
|
return R.ok();
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("闭环关闭失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/findResrceBySfc")
|
|
|
|
|
public R findResrceBySfc(SfcDispatchDto sfcDispatch){
|
|
|
|
|
return R.ok(sfcDispatchCommonService.findResrceBySfc(sfcDispatch));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(sfcDispatchCommonService.findResrceBySfc(sfcDispatch));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("根据sfc查找设备失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/show")
|
|
|
|
|
public R showFile(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
|
|
return R.ok(fileUploadedService.showFile(request,response));
|
|
|
|
|
try{
|
|
|
|
|
return R.ok(fileUploadedService.showFile(request,response));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("显示图片失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/delete")
|
|
|
|
|
public R delete(String ftpPath,String fileName){
|
|
|
|
|
fileUploadedService.deleteFile(ftpPath,fileName);
|
|
|
|
|
// abnormalBillService.deleteFileInDatabase(ftpPath,fileName);
|
|
|
|
|
return R.ok();
|
|
|
|
|
try{
|
|
|
|
|
fileUploadedService.deleteFile(ftpPath,fileName);
|
|
|
|
|
return R.ok();
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed("图片删除失败,"+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/findUploadPictureByAbnormalBo")
|
|
|
|
|