diff --git a/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java b/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java index 3f7de4bb..5943b0fc 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java +++ b/dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java @@ -885,11 +885,11 @@ public class BaseInvoiceController extends AbstractController { gfshList = UserInfoUtil.getGfshAll(getUserInfo().getOrg()); } - //todo合并分支后把checkList加上可以让用户不使用上级权限就可以进行认证 + //TODO 合并分支后把checkList加上可以让用户不使用上级权限就可以进行认证 pramsMap.put("gfsh",gfshList); - pramsMap.put("sign","88"); + pramsMap.put("sign","99"); if (StringUtils.isNotBlank(companyCode)){ @@ -966,6 +966,12 @@ public class BaseInvoiceController extends AbstractController { }else { String companyCode = (String) map.get("companyCode"); String gfsh = (String)map.get("gfsh"); + List gfshList = new ArrayList<>(); + if(StringUtils.isBlank(gfsh) && "99".equals(gfsh)){ + gfshList=UserInfoUtil.getGfshAll(getUserInfo().getOrg()); + }else { + gfshList.add(gfsh); + } String gxType = (String) map.get("gxType"); if (StringUtils.isBlank(gxType)){ @@ -976,6 +982,7 @@ public class BaseInvoiceController extends AbstractController { map.put("dbName", getUserInfo().getDbName()); List taxList = getUserInfo().getOrg(); map.put("taxList", taxList); + map.put("gfsh",gfshList); map.put("qsflag", getUserInfo().getQsStatus()); // List gfshList = new ArrayList<>(); // if (!"99".equals(gfsh) && StringUtils.isNotBlank(gfsh)) { @@ -1020,13 +1027,8 @@ public class BaseInvoiceController extends AbstractController { pramsMap.put("loginName", getLoginName()); pramsMap.put("userName", getUserName()); pramsMap.put("gxType", gxType); - List gfshList = UserInfoUtil.getGfshAll(getUserInfo().getOrg()); + pramsMap.put("gfsh", gfshList); - if (!gfshList.isEmpty()) { - pramsMap.put("gfsh", gfshList); - } else { - return ResponseEntity.ok(R.error("购方信息不能为空!")); - } } diff --git a/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml b/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml index 71a44234..a58ddff9 100644 --- a/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml +++ b/dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml @@ -35,6 +35,7 @@ + @@ -1343,6 +1344,7 @@ (@total := @total + tax_amount) AS max_tax, invoice_type, comp_code, + uuid, invoice_code, invoice_no, gf_name, @@ -1377,6 +1379,7 @@ and auth_status in('0','5','6') and export_mark = '0' and invoice_status = '0' + and company = #{company} and t.gf_tax_no in @@ -1433,6 +1436,7 @@ and auth_status in('0','5','6') and export_mark = '0' and invoice_status = '0' + and company = #{company} and t.gf_tax_no in