Commit 02e2e5da authored by suhuiguang's avatar suhuiguang

refact(注册开通):流程调整

1.接口及流程调整,开通接口相关调整
parent 78d5ec14
......@@ -33,11 +33,6 @@ public class BaseController {
* 监管/行政审批局
*/
public static final String COMPANY_TYPE_SUPERVISION = "supervision";
/**
* 企业
*/
public static final String COMPANY_TYPE_COMPANY = "company";
/**
* 获取token
......@@ -47,6 +42,11 @@ public class BaseController {
}
/**
* 企业
*/
public static final String COMPANY_TYPE_COMPANY = "company";
/**
* 用户选择信心redis获取
**/
protected ReginParams getSelectedOrgInfo() {
......
......@@ -165,4 +165,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty(value = "质量保证体系(请上传符合要求的自我声明)")
private JSONArray quaSystemCert;
@ApiModelProperty(value = "登录单位类型")
private String companyLevel;
}
......@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.module.common.api.dto.BaseEnterpriseCertDto;
import com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum;
import com.yeejoin.amos.boot.module.jyjc.api.dto.InspectionCompanyPublicityDto;
import com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcOpeningApplication;
import com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel;
......@@ -134,7 +135,7 @@ public class JyjcOpeningApplicationController extends BaseController {
@GetMapping(value = "/detail")
@ApiOperation(httpMethod = "GET", value = "根据sequenceNbr查询单个", notes = "根据sequenceNbr查询单个")
public ResponseModel<JyjcOpeningApplicationModel> selectOne(@RequestParam(value = "sequenceNbr", required = false) Long sequenceNbr) {
return ResponseHelper.buildResponse(jyjcOpeningApplicationServiceImpl.queryDetail(sequenceNbr));
return ResponseHelper.buildResponse(jyjcOpeningApplicationServiceImpl.queryDetail(sequenceNbr, getSelectedOrgInfo().getCompany()));
}
/**
......
......@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.biz.common.entity.DataDictionary;
import com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl;
......@@ -335,4 +337,16 @@ public class CommonServiceImpl {
}) : "";
}
public static String getCompanyLevel(CompanyBo company) {
String companyLevel = "";
if (company.getLevel().equals(BaseController.COMPANY_TYPE_COMPANY)) {
companyLevel = BaseController.COMPANY_TYPE_COMPANY;
} else {
companyLevel = BaseController.COMPANY_TYPE_SUPERVISION;
}
return companyLevel;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment