| | |
| | | MPJLambdaWrapper<Taxes> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Taxes.class); |
| | | queryWrapper.selectAs(Solutions::getName,Taxes::getSolutionName); |
| | | queryWrapper.selectAs(SystemUser::getRealname,Taxes::getCancelUserName); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,Taxes::getSolutionId); |
| | | queryWrapper.leftJoin(SystemUser.class,SystemUser::getId,Taxes::getCancelUserId); |
| | | Taxes model =taxesJoinMapper.selectById(id); |
| | | if(model==null || !Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | taxDetial.setTaxId(taxes.getId()); |
| | | taxDetial.setTotalFee(taxesInvoicingVO.getAmount()); |
| | | taxDetial.setFee(taxesInvoicingVO.getAmount()); |
| | | taxDetial.setInsuranceApplyId(taxes.getApplyId()); |
| | | taxDetial.setInsuranceApplyId(taxes.getInsuranceApplyId()); |
| | | if(taxesInvoicingVO.getType().equals(Constants.ZERO)){ |
| | | taxDetial.setType(taxesInvoicingVO.getType()); |
| | | }else if(taxesInvoicingVO.getType().equals(Constants.ONE)){ |
| | |
| | | taxDetial.setTotalFee(chTaxes.getPrice()); |
| | | taxDetial.setFee(chTaxes.getPrice()); |
| | | taxDetial.setDelTaxId(chTaxes.getId()); |
| | | taxDetial.setInsuranceApplyId(taxes.getInsuranceApplyId()); |
| | | taxDetial.setType(Constants.TWO); |
| | | taxDetailList.add(taxDetial); |
| | | } |