|
@@ -32,26 +32,24 @@ public class ApsReportRecordController {
|
|
|
private ApsReportRecordsService apsReportRecordsService;
|
|
|
|
|
|
/**
|
|
|
- * 取消报工
|
|
|
+ * 取消报工
|
|
|
+ *
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/cancelRecord")
|
|
|
public R cancelRecord(@RequestBody Map<String, String> req) {
|
|
|
- try {
|
|
|
- log.info("取消报工;参数为:{}", req);
|
|
|
- return apsReportRecordsService.cancelRecord(req);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- return R.error("取消报工错误");
|
|
|
- }
|
|
|
+ log.info("取消报工;参数为:{}", req);
|
|
|
+ return apsReportRecordsService.cancelRecord(req);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 开工
|
|
|
*/
|
|
|
@PostMapping("/startReport")
|
|
|
- public R startReport(@RequestBody StartRePortReq req){
|
|
|
+ public R startReport(@RequestBody StartRePortReq req) {
|
|
|
+ log.info("开工;参数为:{}", req);
|
|
|
return apsReportRecordsService.startReport(req);
|
|
|
}
|
|
|
|
|
@@ -59,7 +57,8 @@ public class ApsReportRecordController {
|
|
|
* 报工保存
|
|
|
*/
|
|
|
@PostMapping("/saveReport")
|
|
|
- public R saveReport(@RequestBody SaveReportReq req){
|
|
|
+ public R saveReport(@RequestBody SaveReportReq req) {
|
|
|
+ log.info("报工保存;参数为:{}", req);
|
|
|
return apsReportRecordsService.saveReport(req);
|
|
|
}
|
|
|
|
|
@@ -67,7 +66,8 @@ public class ApsReportRecordController {
|
|
|
* 开工之后,查询是否存在未开工的合并工序
|
|
|
*/
|
|
|
@PostMapping("/checkMergeProcess")
|
|
|
- public R checkMergeProcess(@RequestBody ApsReportRecordsDo req){
|
|
|
+ public R checkMergeProcess(@RequestBody ApsReportRecordsDo req) {
|
|
|
+ log.info("开工之后,查询是否存在未开工的合并工序;参数为:{}", req);
|
|
|
return apsReportRecordsService.checkMergeProcess(req);
|
|
|
}
|
|
|
|
|
@@ -75,7 +75,8 @@ public class ApsReportRecordController {
|
|
|
* 小卷开工
|
|
|
*/
|
|
|
@PostMapping("/smallRollStartReport")
|
|
|
- public R smallRollStartReport(@RequestBody SmallRollStartReportReq req){
|
|
|
+ public R smallRollStartReport(@RequestBody SmallRollStartReportReq req) {
|
|
|
+ log.info("小卷开工;参数为:{}", req);
|
|
|
return apsReportRecordsService.smallRollStartReport(req);
|
|
|
}
|
|
|
}
|