|
|
|
@ -60,15 +60,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryCollect(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("number", "0"); |
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<CustomsCollectVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 合计信息,仅第一页时需要统计,减少数据库压力
|
|
|
|
|
if (curr == 1) { |
|
|
|
@ -85,7 +76,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
|
List<CustomsCollectVO> pageList = super.baseMapper.queryCollect(pramsMap); |
|
|
|
|
PageInfo<CustomsCollectVO> pageInfo = new PageInfo<>(pageList); |
|
|
|
@ -109,7 +99,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -119,7 +109,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
|
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
List<String> gfTaxNoList = (List<String>) pramsMap.get("gfTaxNoList"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
@ -147,7 +137,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
|
List<CustomsCollectVO> pageList = super.baseMapper.queryInsertCustoms(pramsMap); |
|
|
|
|
log.info("pageList=======>{}",pageList); |
|
|
|
|
log.info("pageList=======>{}", pageList); |
|
|
|
|
PageInfo<CustomsCollectVO> pageInfo = new PageInfo<>(pageList); |
|
|
|
|
json.put("hasNext", pageInfo.isHasNextPage()); |
|
|
|
|
json.put("nextPage", pageInfo.getNextPage()); |
|
|
|
@ -177,7 +167,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
log.info("json=====>{}",json); |
|
|
|
|
log.info("json=====>{}", json); |
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -186,14 +176,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryManualSign(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<CustomsCollectVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 合计信息,仅第一页时需要统计,减少数据库压力
|
|
|
|
|
if (curr == 1) { |
|
|
|
@ -248,7 +230,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -257,21 +239,12 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryRzcxByPage(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNo"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("number", "0"); |
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<CustomsRzcxVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
|
List<CustomsRzcxVO> pageList = super.baseMapper.queryRzcxByPage(pramsMap); |
|
|
|
|
log.info("pageList={}",pageList.size()); |
|
|
|
|
log.info("pageList={}", pageList.size()); |
|
|
|
|
PageInfo<CustomsRzcxVO> pageInfo = new PageInfo<>(pageList); |
|
|
|
|
json.put("hasNext", pageInfo.isHasNextPage()); |
|
|
|
|
json.put("nextPage", pageInfo.getNextPage()); |
|
|
|
@ -279,14 +252,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
// 用于页面展示
|
|
|
|
|
List<CustomsRzcxVO> resultList = pageInfo.getList(); |
|
|
|
|
if (resultList != null && resultList.size() > 0) { |
|
|
|
|
// List<DictdetaModel> lyModels = dictdetaServcice.selectDictdeta("jksSources");
|
|
|
|
|
// List<DictdetaModel> qsztModels = dictdetaServcice.selectDictdeta("qsStatus");
|
|
|
|
|
// List<DictdetaModel> qsfsModels = dictdetaServcice.selectDictdeta("qsType");
|
|
|
|
|
// List<DictdetaModel> glztModels = dictdetaServcice.selectDictdeta("GLZT");
|
|
|
|
|
// List<DictdetaModel> rzztModels = dictdetaServcice.selectDictdeta("rzhYesorno");
|
|
|
|
|
// List<DictdetaModel> rzclztModels = dictdetaServcice.selectDictdeta("authStatus");
|
|
|
|
|
// List<DictdetaModel> rzlxModels = dictdetaServcice.selectDictdeta("BDK_STATUS");
|
|
|
|
|
// List<DictdetaModel> cxrzModels = dictdetaServcice.selectDictdeta("CXRZ_STATUS");
|
|
|
|
|
int i = 1; |
|
|
|
|
for (CustomsRzcxVO vo : resultList) { |
|
|
|
|
vo.setXh(String.valueOf((curr - 1) * size + i)); |
|
|
|
@ -295,13 +260,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
// 字典值转换
|
|
|
|
|
vo.setGlzt(dictdetaServcice.queryDictName(DictConstant.GLZT, vo.getGlzt())); |
|
|
|
|
vo.setDataSources(dictdetaServcice.queryDictName(DictConstant.JKSCJFS, vo.getDataSources())); |
|
|
|
|
// if (lyModels!=null){
|
|
|
|
|
// for (DictdetaModel model : lyModels){
|
|
|
|
|
// if (model.getDictcode().equals(vo.getDataSources())){
|
|
|
|
|
// vo.setDataSources(model.getDictname());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
vo.setQsStatus(dictdetaServcice.queryDictName(DictConstant.QS_STATUS, vo.getQsStatus())); |
|
|
|
|
String qsType = vo.getQsType(); |
|
|
|
|
vo.setQsType(dictdetaServcice.queryDictName(DictConstant.QS_TYPE, qsType)); |
|
|
|
@ -314,7 +272,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -323,15 +281,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryVatRzcx(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNo"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("number", "0"); |
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<ExportInvoiceRzcxVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
@ -369,7 +318,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -378,15 +327,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryCustomsRzcx(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNo"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("number", "0"); |
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<ExportCustomsRzcxVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
@ -433,7 +373,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -442,14 +382,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject querySign(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("taxAmountSum", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<CustomsCollectVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
@ -486,7 +418,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
|
|
|
|
@ -496,12 +428,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryCustomsRefundConfirmList(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
json.put("hjse", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<String[]>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
|
|
|
|
|
if (curr == 1) { |
|
|
|
@ -546,7 +472,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -555,15 +481,6 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryExportInvoiceList(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("hjsl", "0"); |
|
|
|
|
json.put("hjje", "0"); |
|
|
|
|
json.put("hjse", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<ExportInvoiceRzcxVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
@ -600,7 +517,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
@ -609,15 +526,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
public JSONObject queryExportCustomsList(Map<String, Object> pramsMap, int curr, int size) { |
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
|
|
|
|
|
|
List<String> gfTaxNoList = (List<String>)pramsMap.get("gfTaxNoList"); |
|
|
|
|
|
|
|
|
|
if (gfTaxNoList.size() == 0) { |
|
|
|
|
// 未从getUserInfo()获取到购方税号信息
|
|
|
|
|
json.put("hjsl", "0"); |
|
|
|
|
json.put("hjse", "0"); |
|
|
|
|
json.put("total", "0"); |
|
|
|
|
json.put("datalist", new ArrayList<ExportCustomsRzcxVO>()); |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); |
|
|
|
|
// 查询发票上的购方信息
|
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
@ -652,7 +561,7 @@ public class CustomsCollectServiceImpl extends MpBaseServiceImpl<CustomsCollectD |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
json.put("datalist", resultList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json; |
|
|
|
|
} |
|
|
|
|