|
|
|
@ -850,23 +850,7 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
@SysLog("调用智能勾选查询接口") |
|
|
|
|
@ResponseBody |
|
|
|
|
public Object sgrzzngxcx(@RequestBody Map<String, Object> map) { |
|
|
|
|
// String gfsh = (String)map.get("gfsh");
|
|
|
|
|
// String invoiceType = (String)map.get("invoiceType");
|
|
|
|
|
// String invoiceSource = (String)map.get("invoiceSource");
|
|
|
|
|
// String kpksrq = (String)map.get("kpksrq");
|
|
|
|
|
// String kpjsrq = (String)map.get("kpjsrq");
|
|
|
|
|
// String qszt = (String)map.get("qszt");
|
|
|
|
|
// String qsfs = (String)map.get("qsfs");
|
|
|
|
|
// String businessCode = (String)map.get("businessCode");
|
|
|
|
|
// String invoiceNo = (String)map.get("invoiceNo");
|
|
|
|
|
// String qsksrq = (String)map.get("qsksrq");
|
|
|
|
|
// String qsjsrq = (String)map.get("qsjsrq");
|
|
|
|
|
// String xfmc = (String)map.get("xfmc");
|
|
|
|
|
// String position = (String)map.get("position");
|
|
|
|
|
// String fpzt = (String)map.get("invoiceStatus");
|
|
|
|
|
// String sfkrz = (String)map.get("sfkrz");
|
|
|
|
|
// String qsr = (String)map.get("qsr");
|
|
|
|
|
// String bzdh = (String) map.get("bzdh");
|
|
|
|
|
|
|
|
|
|
String inAccountStatus = (String) map.get("inAccountStatus"); |
|
|
|
|
String companyCode = (String) map.get("companyCode"); |
|
|
|
|
String gfsh = (String) map.get("gfsh"); |
|
|
|
@ -889,7 +873,6 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(inAccountStatus)){ |
|
|
|
|
if (StringUtils.isBlank(inAccountStatus)) { |
|
|
|
|
return ResponseEntity.ok(R.error("入账状态不能为空")); |
|
|
|
|
} |
|
|
|
@ -913,33 +896,6 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
|
|
|
|
|
Map<String, Object> pramsMap = new HashMap<>(16); |
|
|
|
|
|
|
|
|
|
// pramsMap.put("bzdh", bzdh);
|
|
|
|
|
// pramsMap.put("payment", map.get("payment"));
|
|
|
|
|
// pramsMap.put("paymentStatus", map.get("paymentStatus"));
|
|
|
|
|
// pramsMap.put("paymentDateStart", map.get("paymentDateStart"));
|
|
|
|
|
// pramsMap.put("paymentDateEnd", map.get("paymentDateEnd"));
|
|
|
|
|
// pramsMap.put("settlementNo", map.get("settlementNo"));
|
|
|
|
|
// pramsMap.put("voucherNumber", map.get("voucherNumber"));
|
|
|
|
|
// pramsMap.put("snVoucherNumber", map.get("snVoucherNumber"));
|
|
|
|
|
// pramsMap.put("postingTimeEnd", map.get("postingTimeEnd"));
|
|
|
|
|
// pramsMap.put("postingTimeStart", map.get("postingTimeStart"));
|
|
|
|
|
// pramsMap.put("imageNumber", map.get("imageNumber"));
|
|
|
|
|
// if (map.get("accountPeriod") != null && !"".equals(map.get("accountPeriod"))) {
|
|
|
|
|
// String accountPeriod = map.get("accountPeriod").toString().substring(0,7);
|
|
|
|
|
// pramsMap.put("accountPeriod", accountPeriod);
|
|
|
|
|
// log.info("accountPeriod:{}",accountPeriod);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (sfkrz != null) {
|
|
|
|
|
// if (!"99".equals(sfkrz)) {
|
|
|
|
|
// pramsMap.put("sfkrz", sfkrz);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (invoiceSource != null) {
|
|
|
|
|
// if (!"99".equals(invoiceSource)) {
|
|
|
|
|
// pramsMap.put("invoiceSource", invoiceSource);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
pramsMap.put("inAccountStatus", inAccountStatus); |
|
|
|
|
pramsMap.put("company", company); |
|
|
|
|
pramsMap.put("company", "BIGB"); |
|
|
|
@ -973,87 +929,6 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
pramsMap.put("companyCode", companyCode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (!StringUtils.isBlank(invoiceType)) {
|
|
|
|
|
// if (!"99".equals(invoiceType)) {
|
|
|
|
|
// pramsMap.put("invoiceType", invoiceType);
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("发票类型不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// if (StringUtils.isNotBlank(fpzt)) {
|
|
|
|
|
// pramsMap.put("fpzt", fpzt);
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("发票状态不能为空"));
|
|
|
|
|
// }
|
|
|
|
|
// pramsMap.put("businessCode", "99");
|
|
|
|
|
// if (!StringUtils.isBlank(qszt)) {
|
|
|
|
|
// if (!"99".equals(qszt)) {
|
|
|
|
|
// pramsMap.put("qszt", qszt);
|
|
|
|
|
// if ("1".equals(qszt)) {
|
|
|
|
|
// if (!StringUtils.isBlank(qsksrq)) {
|
|
|
|
|
// pramsMap.put("qsksrq", qsksrq);
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("签收开始日期不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// if (!StringUtils.isBlank(qsjsrq)) {
|
|
|
|
|
// pramsMap.put("qsjsrq", qsjsrq);
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("签收结束日期不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// if (!StringUtils.isBlank(qsfs)) {
|
|
|
|
|
// // 表示全部
|
|
|
|
|
// if (!"99".equals(qsfs)) {
|
|
|
|
|
// pramsMap.put("qsfs", qsfs);
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("签收方式不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// pramsMap.put("businessCode", businessCode);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("签收状态不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// String qsflag = getUserInfo().getQsStatus();
|
|
|
|
|
// if ("1".equals(qsflag)) {
|
|
|
|
|
// pramsMap.put("qszt", "1");
|
|
|
|
|
// }
|
|
|
|
|
// if (!StringUtils.isBlank(kpksrq)) {
|
|
|
|
|
// pramsMap.put("kpksrq", kpksrq);
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("开票开始日期不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
// if (!StringUtils.isBlank(kpjsrq)) {
|
|
|
|
|
// pramsMap.put("kpjsrq", kpjsrq);
|
|
|
|
|
// } else {
|
|
|
|
|
// return ResponseEntity.ok(R.error("开票结束日期不能为空!"));
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!StringUtils.isBlank(position)) {
|
|
|
|
|
// pramsMap.put("username", getUserName());
|
|
|
|
|
// pramsMap.put("position", position);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //发票号码
|
|
|
|
|
// if (!StringUtils.isBlank(invoiceNo)) {
|
|
|
|
|
// if(invoiceNo.length()==8){
|
|
|
|
|
// pramsMap.put("invoiceNo", invoiceNo);
|
|
|
|
|
// }else {
|
|
|
|
|
// pramsMap.put("eleInvoiceNo", invoiceNo);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// if (!StringUtils.isBlank(xfmc)) {
|
|
|
|
|
// pramsMap.put("xfmc", xfmc);
|
|
|
|
|
// }
|
|
|
|
|
// if (!StringUtils.isBlank(qsr)) {
|
|
|
|
|
// pramsMap.put("qsr", qsr);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
return ResponseEntity |
|
|
|
|
.ok(R.ok().put("data", baseInvoiceManualCheckService.inTellingCheck(pramsMap))); |
|
|
|
@ -1063,6 +938,8 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
return ResponseEntity.ok(R.error(CommonConstants.MSG_ERR_DEFAULT)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|