|
|
@ -44,6 +44,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String listAddTax(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
public String listAddTax(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
|
|
|
long enter = System.currentTimeMillis(); |
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
try { |
|
|
|
try { |
|
|
@ -77,10 +78,12 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
json.put("hjsl", hjsl); |
|
|
|
json.put("hjsl", hjsl); |
|
|
|
json.put("hjje", hjje); |
|
|
|
json.put("hjje", hjje); |
|
|
|
json.put("hjse", hjse); |
|
|
|
json.put("hjse", hjse); |
|
|
|
|
|
|
|
log.info("进项增值税票池-查询首页合计信息耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
} |
|
|
|
} |
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
List<ExtAddTaxInvoice> pageList = super.baseMapper.listAddTaxInvoice(pramsMap); |
|
|
|
List<ExtAddTaxInvoice> pageList = super.baseMapper.listAddTaxInvoice(pramsMap); |
|
|
|
PageInfo<ExtAddTaxInvoice> pageInfo = new PageInfo<>(pageList); |
|
|
|
PageInfo<ExtAddTaxInvoice> pageInfo = new PageInfo<>(pageList); |
|
|
|
|
|
|
|
log.info("进项增值税票池-查询列表信息耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
// 用于页面返回list对象
|
|
|
|
// 用于页面返回list对象
|
|
|
|
if (pageList != null && pageList.size() > 0) { |
|
|
|
if (pageList != null && pageList.size() > 0) { |
|
|
|
|
|
|
|
|
|
|
@ -203,6 +206,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
json.put("total", pageInfo.getTotal()); |
|
|
|
json.put("total", pageInfo.getTotal()); |
|
|
|
List<ExtAddTaxInvoice> resultList = pageInfo.getList(); |
|
|
|
List<ExtAddTaxInvoice> resultList = pageInfo.getList(); |
|
|
|
json.put("datalist", resultList); |
|
|
|
json.put("datalist", resultList); |
|
|
|
|
|
|
|
log.info("进项增值税票池-合计耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
// 统一设置操作异常标识
|
|
|
|
// 统一设置操作异常标识
|
|
|
|
json = super.errorResult(e); |
|
|
|
json = super.errorResult(e); |
|
|
@ -212,6 +216,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object listOther(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
public Object listOther(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
|
|
|
long enter = System.currentTimeMillis(); |
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
try { |
|
|
|
try { |
|
|
@ -242,12 +247,14 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
json.put("hjsl", hjsl); |
|
|
|
json.put("hjsl", hjsl); |
|
|
|
json.put("hjje", hjje); |
|
|
|
json.put("hjje", hjje); |
|
|
|
json.put("hjse", hjse); |
|
|
|
json.put("hjse", hjse); |
|
|
|
|
|
|
|
log.info("其他客票-查询首页合计信息耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
} |
|
|
|
} |
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
log.info("开始进行分页查询"); |
|
|
|
log.info("开始进行分页查询"); |
|
|
|
List<ExtOtherInvoice> pageList = super.baseMapper.listOtherInvoice(pramsMap); |
|
|
|
List<ExtOtherInvoice> pageList = super.baseMapper.listOtherInvoice(pramsMap); |
|
|
|
log.info("查询结果为 {}",pageList); |
|
|
|
log.info("查询结果为 {}",pageList); |
|
|
|
PageInfo<ExtOtherInvoice> pageInfo = new PageInfo<>(pageList); |
|
|
|
PageInfo<ExtOtherInvoice> pageInfo = new PageInfo<>(pageList); |
|
|
|
|
|
|
|
log.info("其他客票-查询列表信息耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
// 用于页面返回list对象
|
|
|
|
// 用于页面返回list对象
|
|
|
|
if (pageList != null && pageList.size() > 0) { |
|
|
|
if (pageList != null && pageList.size() > 0) { |
|
|
|
int start = (int)pageInfo.getStartRow(); |
|
|
|
int start = (int)pageInfo.getStartRow(); |
|
|
@ -295,6 +302,7 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl<ExtInvoicePoolD |
|
|
|
json.put("total", pageInfo.getTotal()); |
|
|
|
json.put("total", pageInfo.getTotal()); |
|
|
|
List<ExtOtherInvoice> resultList = pageInfo.getList(); |
|
|
|
List<ExtOtherInvoice> resultList = pageInfo.getList(); |
|
|
|
json.put("datalist", resultList); |
|
|
|
json.put("datalist", resultList); |
|
|
|
|
|
|
|
log.info("其他客票-合计耗时:{}",System.currentTimeMillis()-enter); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
// 统一设置操作异常标识
|
|
|
|
// 统一设置操作异常标识
|
|
|
|
json = super.errorResult(e); |
|
|
|
json = super.errorResult(e); |
|
|
|