|
|
|
@ -121,6 +121,9 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
public Object listRzFpxx(@RequestBody Map<String, Object> map) { |
|
|
|
|
String gfsh = (String)map.get("gfsh"); |
|
|
|
|
String companyCode = (String) map.get("companyCode"); |
|
|
|
|
if (StringUtils.isBlank(gfsh)||StringUtils.isBlank(companyCode)){ |
|
|
|
|
return ResponseEntity.ok(R.error(CommonConstants.GFSH_OR_COMPANYCODE_MISS)); |
|
|
|
|
} |
|
|
|
|
String invoiceType = (String)map.get("invoiceType"); |
|
|
|
|
String invoiceSource = (String)map.get("invoiceSource"); |
|
|
|
|
String kpksrq = (String)map.get("kpksrq"); |
|
|
|
@ -219,38 +222,11 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
pramsMap.put("voucherNumber", map.get("voucherNumber")); |
|
|
|
|
List<Tax> taxList = getUserInfo().getOrg(); |
|
|
|
|
pramsMap.put("taxList", taxList); |
|
|
|
|
if (!StringUtils.isNotBlank(gfsh)){ |
|
|
|
|
pramsMap.put("sign","88"); |
|
|
|
|
} |
|
|
|
|
List<String> gfshList = new ArrayList<>(); |
|
|
|
|
if (!"99".equals(gfsh) && StringUtils.isNotBlank(gfsh)) { |
|
|
|
|
gfshList.add(gfsh); |
|
|
|
|
} else { |
|
|
|
|
// gfshList = UserInfoUtil.getGfshAll(getUserInfo().getOrg());
|
|
|
|
|
gfshList = getGfshList(gfshList,getUserInfo().getCompanyCodes()); |
|
|
|
|
} |
|
|
|
|
pramsMap.put("gfsh", gfshList); |
|
|
|
|
|
|
|
|
|
boolean flag = checkList(gfshList); |
|
|
|
|
pramsMap.put("gfsh", gfsh); |
|
|
|
|
|
|
|
|
|
pramsMap.put("companyCode",companyCode); |
|
|
|
|
|
|
|
|
|
if (flag){ |
|
|
|
|
pramsMap.put("sign","88"); |
|
|
|
|
log.info("登陆账号无税号"); |
|
|
|
|
} |
|
|
|
|
//所属组织
|
|
|
|
|
// List<String> companyCodeList = new ArrayList<>();
|
|
|
|
|
// if (StringUtils.isNotBlank(companyCode)){
|
|
|
|
|
// companyCodeList.add(companyCode);
|
|
|
|
|
// }else {
|
|
|
|
|
// companyCodeList = getUserInfo().getCompanyCodes();
|
|
|
|
|
// }
|
|
|
|
|
if (StringHelper.isNotBlank(companyCode) && "99".equals(companyCode)){ |
|
|
|
|
pramsMap.put("companyCodes",getUserInfo().getCompanyCodes()); |
|
|
|
|
log.info("组织机构====>{}",pramsMap.get("companyCodes")); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(companyCode)){ |
|
|
|
|
pramsMap.put("companyCode",companyCode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(taxRate) && !"99".equals(taxRate)){ |
|
|
|
|
// List<String> rates = new ArrayList<>();
|
|
|
|
|