代码迁移
This commit is contained in:
parent
22232fbbf7
commit
539c46bbab
|
|
@ -226,12 +226,7 @@ public class BackReceiveController extends BaseController {
|
||||||
@PostMapping("/endBack")
|
@PostMapping("/endBack")
|
||||||
public AjaxResult endBack(@RequestBody BackApplyInfo record) {
|
public AjaxResult endBack(@RequestBody BackApplyInfo record) {
|
||||||
try {
|
try {
|
||||||
int res = backReceiveService.endBack(record);
|
return AjaxResult.success(backReceiveService.endBack(record));
|
||||||
if (res > 0) {
|
|
||||||
return AjaxResult.success("接收成功");
|
|
||||||
} else {
|
|
||||||
return AjaxResult.error("接收失败");
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue