|
|
|
@ -139,12 +139,11 @@ public class BillTableController {
|
|
|
|
|
}
|
|
|
|
|
BillTableEntity entity = billTableService.getInfo(id);
|
|
|
|
|
if (entity != null) {
|
|
|
|
|
try {
|
|
|
|
|
billTableService.saveOrUpdate(billTableForm, id, false);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ActionResult.fail("修改数据失败");
|
|
|
|
|
String result = billTableService.saveOrUpdate(billTableForm, id, false);
|
|
|
|
|
if (result.contains("success")) {
|
|
|
|
|
return ActionResult.success("创建成功");
|
|
|
|
|
}
|
|
|
|
|
return ActionResult.success("更新成功");
|
|
|
|
|
return ActionResult.fail(result);
|
|
|
|
|
} else {
|
|
|
|
|
return ActionResult.fail("更新失败,数据不存在");
|
|
|
|
|
}
|
|
|
|
@ -235,7 +234,7 @@ public class BillTableController {
|
|
|
|
|
@Operation(summary = "结算录入")
|
|
|
|
|
public ActionResult entry(@PathVariable("id") String id, @RequestBody @Valid BillTableForm billTableForm) {
|
|
|
|
|
String result = billTableService.entry(id, billTableForm);
|
|
|
|
|
if (result.contains("成功")){
|
|
|
|
|
if (result.contains("成功")) {
|
|
|
|
|
return ActionResult.success(result);
|
|
|
|
|
}
|
|
|
|
|
return ActionResult.fail(result);
|
|
|
|
|