Example #1
0
 /**
  * 保存配置
  *
  * @return
  * @throws JDBCException
  */
 public String saveAcctConfig() throws JDBCException {
   List<TCountyAcct> acctList = new ArrayList<TCountyAcct>();
   if (StringHelper.isNotEmpty(acctListStr)) {
     Type type = new TypeToken<List<TCountyAcct>>() {}.getType();
     Gson gson = new Gson();
     acctList = gson.fromJson(acctListStr, type);
   }
   acctConfigComponent.saveAcctConfig(acctList, optr);
   return JSON;
 }
Example #2
0
 /**
  * 查询账户明细
  *
  * @return
  * @throws JDBCException
  */
 public String queryAcctDetail() throws JDBCException {
   getRoot().setPage(acctConfigComponent.queryAcctDetail(acctId, start, limit));
   return JSON_PAGE;
 }
Example #3
0
 /**
  * 删除配置
  *
  * @return
  * @throws JDBCException
  */
 public String deleteAcctConfig() throws JDBCException {
   acctConfigComponent.deleteAcctConfig(acctIds, optr.getOptr_id());
   return JSON;
 }
Example #4
0
 public String queryAllColony() throws JDBCException {
   getRoot().setRecords(acctConfigComponent.findViewDict(DictKey.CUST_COLONY.toString()));
   return JSON_RECORDS;
 }
Example #5
0
 public String queryAcctConfigForAdd() throws JDBCException {
   getRoot().setRecords(acctConfigComponent.queryAcctConfigForAdd(countyId, colony));
   return JSON_RECORDS;
 }
Example #6
0
 public String queryAcctConfig() throws JDBCException {
   getRoot().setPage(acctConfigComponent.queryAcctConfig(countyId, colony, start, limit));
   return JSON_PAGE;
 }