福途教育网
专业的教育资讯网站

当前位置:福途教育网 > 会计师 > 正文

税号和纳税人识别号是否一样(税号和纳税人识别号是否一样怎么填)

时间:2023/3/25 19:32:24 编辑:福途教育 标签:会计师

榜单说明:福途教育网榜单是编辑部门通过资料收集整理,并基于互联网大数据统计及人为根据市场和参数条件变化的分析而得出本站站内排序!排名不分先后,仅供参考,具体价格等信息以实地考察为准。

2024年【会计师】申请条件/费用/专业咨询 >>

会计师申请条件是什么?会计师费用是多少?会计师专业都有哪些?

点击咨询

    本文解答了关于《税号和纳税人识别号是否一样》相关内容,同时关于1、税号和纳税人识别号是否一样怎么查,2、税号和纳税人识别号是否一样呢,3、税号和纳税人识别号是否一样怎么填,4、税号与纳税人识别号一样吗,5、纳税人识别号和税务识别号一样吗,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    税号和纳税人识别号是否一样(税号和纳税人识别号是否一样怎么填)

    税号和纳税人识别号是否一样

    String oldTaxNo = "";

    String oldTaxpayerNo = "";

    Map params = new HashMap();

    params.put("companyName", companyName);

    List cpyEntities = companyDao.queryEntity(params);

    if (null != cpyEntities && cpyEntities.size() > 0) {

    CompanyEntity oldCompany = cpyEntities.get(0);

    oldTaxNo = oldCompany.getTaxNo();

    oldTaxpayerNo = oldCompany.getTaxpayerNo();

    if (!StringUtil.isEmptyWithTrim(oldTaxNo)) {

    if (taxNo.equals(oldTaxNo)

    taxpayerNo.equals(oldTaxpayerNo)) {

    String usccStr = oldCompany.getUscc();//统一社会信用代码

    if (!StringUtil.isEmptyWithTrim(usccStr)) {

    status="EXIST_USCC_SUCCESS";

    } else {

    status="EXIST_SUCCESS";

    }

    companyId = oldCompany.getId();

    companyInfoId = oldCompany.getCompanyInfoId();

    //比较一下,把数据修改一下

    CompanyEntity companyEntity = new CompanyEntity();

    companyEntity.setId(oldCompany.getId());

    companyEntity.setTaxNo(taxNo);

    companyEntity.setTaxpayerNo(taxpayerNo);

    companyDao.update(companyEntity);

    } else {

    status="EXIST_FAILED";

    }

    } else {

    status="EXIST_NULL_TAXNO";

    companyId = oldCompany.getId();

    companyInfoId = oldCompany.getCompanyInfoId();

    }

    }

    if (StringUtil.isEmptyWithTrim(companyId)) {

    CompanyEntity companyEntity = new CompanyEntity();

    companyEntity.setCompanyName(companyName);

    companyEntity.setTaxNo(taxNo);

    companyEntity.setTaxpayerNo(taxpayerNo);

    companyEntity.setCreateDatetime(new Date());

    companyEntity.setStatus(1);

    companyId = (String) this.companyDao.insertBean(companyEntity);

    CompanyTaxEntity taxEntity = new CompanyTaxEntity();

    taxEntity.setCompanyId(companyId);

    this.taxDao.insertBean(taxEntity);

    companyInfoId = taxEntity.getId();

    }

    if (StringUtil.isEmptyWithTrim(companyInfoId)) {

    Map queryParams = new HashMap();

    queryParams.put("companyId", companyId);

    List taxEntities = this.taxDao.queryEntity(queryParams);

    if (null != taxEntities && taxEntities.size() > 0) {

    CompanyTaxEntity taxEntity = taxEntities.get(0);

    companyInfoId = taxEntity.getId();

    }

    }

    map.put("status", status);

    map.put("companyId", companyId);

    map.put("companyInfoId", companyInfoId);

    return map;

    }

    @Override

    public List> queryPassedCompanyList(Integer pageNo,

    Map pMap) {

    List> cpyList = new ArrayList>();

    int pageSize = 99999999;

    List cpyInfoList = cpyDaoh.queryDashboardInfo(pageNo, pageSize, pMap);

    if (null != cpyInfoList && cpyInfoList.size() > 0) {

    for (int i = 0; i < cpyInfoList.size(); i++) {

    CompanyDashboardInfoEntity cpyInfo = cpyInfoList.get(i);

    Map cpyMap = new HashMap();

    cpyMap.put("companyName", cpyInfo.getCompanyName());

    cpyMap.put("companyId", cpyInfo.getCompanyId());

    cpyMap.put("orderNo", cpyInfo.getOrderNo());

    cpyMap.put("status", cpyInfo.getStatus());

    cpyList.add(cpyMap);

    }

    }

    return cpyList;

    }

    @Override

    public Integer queryPassedCompanyListCount(Map pMap) {

    return cpyDaoh.queryDashboardInfoCount(pMap);

    }

    @Override

    public Integer queryCompanyAuditStatus(String companyId) {

    Integer status = 0;

    Map queryParams = new HashMap();

    queryParams.put("companyId", companyId);

    CompanyOrderEntity orderEntity = orderDao.queryEntity(queryParams);

    if (null != orderEntity) {

    status = orderEntity.getStatus();

    }

    return status;

    }

    @Override

    public CompanyEntity queryCompanyById(String companyId) {

    return companyDao.getById(companyId);

    }

    @Override

    public CompanyTaxEntity queryCompanyTaxById(String companyInfoId) {

    return taxDao.getById(companyInfoId);

    }

    @Override

    public PropertyTaxEntity queryPropertyTaxById(String companyInfoId) {

    return zoneDao.getById(companyInfoId);

    }

    @Override

    public Integer queryRegisterStatus(String companyId) {

    Integer status = 0;

    Map queryParams = new HashMap();

    queryParams.put("companyId", companyId);

    CompanyOrderEntity orderEntity = orderDao.queryEntity(queryParams);

    if (null != orderEntity) {

    status = orderEntity.getRegisterStatus();

    }

    return status;

    }

    @Override

    public CompanyOrderEntity queryOrderEntity(String companyId) {

    Map queryParams = new HashMap();

    queryParams.put("companyId", companyId);

    return orderDao.queryEntity(queryParams);

    }

    @Override

    public String buildOrderNo() {

    String orderNo = "FV00" + DateUtils.format(new Date(), "yyMMddHHmm") + SerialNumberUtils.generateNumber(3);

    return orderNo;

    }

    @Override

    public String insertCompanyOrder(CompanyOrderEntity orderEntity) {

    if (null == orderEntity

    StringUtil.isEmptyWithTrim(orderEntity.getCompanyId())) return null;

    String orderNo = this.buildOrderNo();

    orderEntity.setOrderNo(orderNo);

    String orderId = (String) this.orderDao.insertBean(orderEntity);

    return orderNo;

    }

    @Override

    public CompanyInfoEntity querySettlementCompanyInfo(String companyId) {

    Map queryParams = new HashMap();

    queryParams.put("companyId", companyId);

    CompanyInfoEntity companyInfo = cpyInfoDao.queryEntity(queryParams);

    return companyInfo;

    }

    @Override

    public String queryUsccByCompanyId(String companyId) {

    Map queryParams = new HashMap();

    queryParams.put("id", companyId);

    CompanyEntity entity = companyDao.queryEntity(queryParams);

    if (null != entity) {

    return entity.getUscc();

    }

    return null;

    }

    }

    总结:以上是编辑:【曦落】整理及AI智能原创关于《

    税号和纳税人识别号是否一样

    》优质内容解答希望能帮助到您。

以上手机版 税号和纳税人识别号是否一样(税号和纳税人识别号是否一样怎么填) 小编为您整理税号和纳税人识别号是否一样(税号和纳税人识别号是否一样怎么填)的全部内容,以上内容仅供参考。

点击查看 会计师 更多内容

热门推荐

最新文章