|
@@ -45,8 +45,9 @@ public class RiskInspectionRecordController extends BaseController {
|
|
|
@PostMapping("/punch")
|
|
@PostMapping("/punch")
|
|
|
public R<Map<String, Long>> punch(@Validated(AddGroup.class) @RequestBody MobilePunchBo bo) {
|
|
public R<Map<String, Long>> punch(@Validated(AddGroup.class) @RequestBody MobilePunchBo bo) {
|
|
|
Long recordId = inspectionRecordService.submitPunch(bo);
|
|
Long recordId = inspectionRecordService.submitPunch(bo);
|
|
|
|
|
+ // 字段名与移动端 uniapp 保持一致 (punchId)
|
|
|
Map<String, Long> data = new HashMap<>(2);
|
|
Map<String, Long> data = new HashMap<>(2);
|
|
|
- data.put("recordId", recordId);
|
|
|
|
|
|
|
+ data.put("punchId", recordId);
|
|
|
return R.ok(data);
|
|
return R.ok(data);
|
|
|
}
|
|
}
|
|
|
|
|
|