质量问题修改5

master
zhaoxiaolin 1 year ago
parent 87f1c95e9d
commit c1aa782bde

@ -127,8 +127,13 @@ public class MesReportWorkController extends BaseController {
*/
@RequiresPermissions("mes:reportWork:edit")
@PutMapping("/reportSap")
public R reportSap(@RequestBody MesReportWork mesReportWork) {
return mesReportWorkService.reportSap(mesReportWork);
public AjaxResult reportSap(@RequestBody MesReportWork mesReportWork) {
R r = mesReportWorkService.reportSap(mesReportWork);
if(r.getCode()==200){
return AjaxResult.success();
}else{
return AjaxResult.error("报工失败:"+r.getMsg());
}
}
/**

@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.List;
import com.op.common.core.domain.R;
import com.op.common.core.web.domain.AjaxResult;
import com.op.mes.domain.*;
import com.op.mes.domain.dto.LineChartDto;
import com.op.mes.domain.dto.SysFactoryDto;

Loading…
Cancel
Save