|  |  |  | 
|---|
|  |  |  | Taxes queryModel = pageWrap.getModel(); | 
|---|
|  |  |  | if(!user.getType().equals(Constants.ONE)){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"非企业用户无法进行该业务查询"); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | queryWrapper.eq(Taxes::getCompanyId,user.getCompanyId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(!Objects.isNull(queryModel)){ | 
|---|
|  |  |  | queryWrapper.ge(pageWrap.getModel().getStartDate() != null,Taxes::getCreateDate, (pageWrap.getModel().getStartDate())); | 
|---|
|  |  |  | 
|---|
|  |  |  | taxDetial.setTotalFee(insuranceApply.getCurrentFee()); | 
|---|
|  |  |  | taxDetial.setType(Constants.ZERO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | taxDetailJoinMapper.insertBatchSomeColumn(taxDetialList); | 
|---|
|  |  |  | taxDetailJoinMapper.insert(taxDetialList); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //存储待办信息 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(CollectionUtils.isNotEmpty(taxDetailList)){ | 
|---|
|  |  |  | taxDetailJoinMapper.insertBatchSomeColumn(taxDetailList); | 
|---|
|  |  |  | taxDetailJoinMapper.insert(taxDetailList); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"无可开票数据,操作失败"); | 
|---|
|  |  |  | } | 
|---|