Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
6cf51690
提交
6cf51690
authored
5月 30, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
企业认证修改
上级
3669bf26
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
4 行删除
+8
-4
CompanyAuthVO.java
...c/main/java/com/mmc/iuav/user/model/vo/CompanyAuthVO.java
+2
-2
CompanyAuthController.java
...a/com/mmc/iuav/user/controller/CompanyAuthController.java
+6
-2
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CompanyAuthVO.java
浏览文件 @
6cf51690
...
@@ -25,8 +25,8 @@ public class CompanyAuthVO implements Serializable {
...
@@ -25,8 +25,8 @@ public class CompanyAuthVO implements Serializable {
@ApiModelProperty
(
value
=
"id"
)
@ApiModelProperty
(
value
=
"id"
)
@NotNull
(
message
=
"id创建修改不能为空"
,
groups
=
{
Update
.
class
})
@NotNull
(
message
=
"id创建修改不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"用户id"
)
@ApiModelProperty
(
value
=
"用户id"
,
hidden
=
true
)
@NotNull
(
message
=
"用户id不能为空"
,
groups
=
{
Insert
.
class
,
Update
.
class
})
//
@NotNull(message = "用户id不能为空", groups = { Insert.class, Update.class})
private
Integer
userAccountId
;
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"企业名称"
)
@ApiModelProperty
(
value
=
"企业名称"
)
@NotBlank
(
message
=
"企业名称"
,
groups
=
{
Insert
.
class
,
Update
.
class
})
@NotBlank
(
message
=
"企业名称"
,
groups
=
{
Insert
.
class
,
Update
.
class
})
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CompanyAuthController.java
浏览文件 @
6cf51690
...
@@ -11,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -11,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* @author: zj
* @author: zj
* @Date: 2023/5/17 13:33
* @Date: 2023/5/17 13:33
...
@@ -18,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -18,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
@Api
(
tags
=
"企业认证相关"
)
@Api
(
tags
=
"企业认证相关"
)
@RequestMapping
(
"/company-auth/"
)
@RequestMapping
(
"/company-auth/"
)
@RestController
@RestController
public
class
CompanyAuthController
{
public
class
CompanyAuthController
extends
BaseController
{
@Autowired
@Autowired
private
CompanyAuthService
companyAuthService
;
private
CompanyAuthService
companyAuthService
;
...
@@ -26,7 +28,9 @@ public class CompanyAuthController {
...
@@ -26,7 +28,9 @@ public class CompanyAuthController {
@ApiOperation
(
value
=
"提交企业认证"
)
@ApiOperation
(
value
=
"提交企业认证"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
public
ResultBody
add
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
CompanyAuthVO
companyAuthVO
){
public
ResultBody
add
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
CompanyAuthVO
companyAuthVO
,
HttpServletRequest
request
){
Integer
userAccountId
=
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
();
companyAuthVO
.
setUserAccountId
(
userAccountId
);
return
companyAuthService
.
add
(
companyAuthVO
);
return
companyAuthService
.
add
(
companyAuthVO
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论