本文解答了关于《税号和纳税人识别号是否一样》相关内容,同时关于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
Map pMap) {
List
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智能原创关于《税号和纳税人识别号是否一样
》优质内容解答希望能帮助到您。