|
|
@@ -12,7 +12,6 @@ import cn.tr.module.sys.tenant.mapper.SysTenantMapper;
|
|
|
import cn.tr.module.sys.tenant.service.ISysTenantService;
|
|
|
import cn.tr.module.sys.tenant.vo.SysTenantCommonVO;
|
|
|
import cn.tr.plugin.mybatis.base.BaseController;
|
|
|
-import cn.tr.plugin.security.context.LoginUserContextHolder;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -20,7 +19,6 @@ import lombok.AllArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
/**
|
|
|
* 医院列表控制器
|
|
|
@@ -57,6 +55,7 @@ public class SysTenantController extends BaseController{
|
|
|
@ApiOperation(value="添加医院列表(超管)",notes = "权限: sys:tenant:add")
|
|
|
@PostMapping("/add")
|
|
|
@SaCheckPermission("sys:tenant:add")
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult<Boolean> add(@RequestBody@Validated(Insert.class) SysTenantAddDTO source) {
|
|
|
return CommonResult.success(sysTenantService.insertSysTenant(source));
|
|
|
}
|
|
|
@@ -84,4 +83,11 @@ public class SysTenantController extends BaseController{
|
|
|
source.setId(LoginUserStrategy.tr.getTenantId());
|
|
|
return CommonResult.success(sysTenantService.updateSysTenantById(SysTenantMapper.INSTANCE.toAddTOPO(source)));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperationSupport(author = "lf",order = 4)
|
|
|
+ @ApiOperation(value="查询医院的小程序二维码",notes = "权限: 无")
|
|
|
+ @PostMapping("/queryQCode/{tenantId}")
|
|
|
+ public CommonResult<String> edit(@PathVariable("tenantId") String tenantId) {
|
|
|
+ return CommonResult.success(null);
|
|
|
+ }
|
|
|
}
|