Browse Source

发票详情查询去除企业限制

ch 3 years ago
parent
commit
f255f447af

+ 3 - 3
sc-service/src/main/java/com/huyi/service/invoice/controller/OwnInvoiceController.java

@@ -97,12 +97,12 @@ public class OwnInvoiceController extends BaseController {
     @GetMapping(value = "/{ziiId}")
     public AjaxResult getContractInfo(@PathVariable("ziiId") String ziiId, QueryRequest request) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
         //获取用户信息
-        LoginUser userInfo = tokenService.getLoginUser();
+//        LoginUser userInfo = tokenService.getLoginUser();
         //企业id
-        String companyId = userInfo.getSysUser().getCompanyId();
+//        String companyId = userInfo.getSysUser().getCompanyId();
         LambdaQueryWrapper<ZcInvoiceInf> lambdaQueryWrapper = new LambdaQueryWrapper<>();
         //公司编号
-        lambdaQueryWrapper.eq(ZcInvoiceInf::getZiiCompanyId,companyId);
+//        lambdaQueryWrapper.eq(ZcInvoiceInf::getZiiCompanyId,companyId);
         //发票id
         lambdaQueryWrapper.eq(ZcInvoiceInf::getZiiId,ziiId);
         List<ZcInvoiceInf>  invoiceInfList =   zcInvoiceInfService.findZcInvoiceInfs(lambdaQueryWrapper);