Commit 73180c07 authored by suhuiguang's avatar suhuiguang

1.注销增加权限校验

parent f569a745
......@@ -158,7 +158,7 @@ public class RegUnitInfoController extends BaseController {
}
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@TycloudOperation(ApiLevel = UserType.AGENCY)
@DeleteMapping(value = "/{unitCode}/logOut")
@ApiOperation(httpMethod = "DELETE", value = "企业注销", notes = "企业注销")
public ResponseModel unitLogOut(@PathVariable String unitCode){
......
......@@ -190,7 +190,6 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
if(regUnitInfo == null){
return Boolean.FALSE;
}
tzsAuthServiceImpl.setRequestContext();
String companyId = regUnitInfo.getAmosCompanySeq();
// 1.删除已经创建的 企业信息
if (StringUtils.isNotEmpty(companyId)) {
......
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