diff --git a/WebRoot/WEB-INF/classes/com/jsh/action/basic/AccountAction.class b/WebRoot/WEB-INF/classes/com/jsh/action/basic/AccountAction.class index 5852e80a..161572a9 100644 Binary files a/WebRoot/WEB-INF/classes/com/jsh/action/basic/AccountAction.class and b/WebRoot/WEB-INF/classes/com/jsh/action/basic/AccountAction.class differ diff --git a/WebRoot/pages/manage/account.jsp b/WebRoot/pages/manage/account.jsp index 10eeac95..4d174153 100644 --- a/WebRoot/pages/manage/account.jsp +++ b/WebRoot/pages/manage/account.jsp @@ -74,7 +74,7 @@
- +
diff --git a/src/com/jsh/action/basic/AccountAction.java b/src/com/jsh/action/basic/AccountAction.java index 8a7ea06f..768a04cd 100644 --- a/src/com/jsh/action/basic/AccountAction.java +++ b/src/com/jsh/action/basic/AccountAction.java @@ -64,7 +64,7 @@ public class AccountAction extends BaseAction Account Account = new Account(); Account.setName(model.getName()); Account.setSerialNo(model.getSerialNo()); - Account.setInitialAmount(model.getInitialAmount()); + Account.setInitialAmount(model.getInitialAmount()!=null ? model.getInitialAmount() : 0); Account.setCurrentAmount(model.getCurrentAmount()); Account.setRemark(model.getRemark()); accountService.create(Account); @@ -139,7 +139,7 @@ public class AccountAction extends BaseAction Account Account = accountService.get(model.getAccountID()); Account.setName(model.getName()); Account.setSerialNo(model.getSerialNo()); - Account.setInitialAmount(model.getInitialAmount()); + Account.setInitialAmount(model.getInitialAmount()!=null ? model.getInitialAmount() : 0); Account.setCurrentAmount(model.getCurrentAmount()); Account.setRemark(model.getRemark()); accountService.update(Account);