Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
e1f2656b
提交
e1f2656b
authored
7月 04, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
单位管理修改
上级
b24293ce
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
+4
-3
CompanyInfoVO.java
...c/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
+0
-1
PmsClient.java
...ser/src/main/java/com/mmc/iuav/user/client/PmsClient.java
+1
-1
CompanyController.java
.../java/com/mmc/iuav/user/controller/CompanyController.java
+3
-1
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
浏览文件 @
e1f2656b
...
...
@@ -31,7 +31,6 @@ public class CompanyInfoVO implements Serializable {
@NotNull
(
message
=
"单位名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
companyName
;
@ApiModelProperty
(
value
=
"单位全称"
,
example
=
"浙江科比特创新科技有限公司"
)
@NotNull
(
message
=
"单位全称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
fullName
;
@ApiModelProperty
(
value
=
"省份名称"
,
example
=
"广东省"
)
@NotNull
(
message
=
"省份名称不能为空"
,
groups
=
{
Insert
.
class
})
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/client/PmsClient.java
浏览文件 @
e1f2656b
...
...
@@ -27,7 +27,7 @@ public class PmsClient {
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
add
(
"token"
,
token
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
null
,
headers
);
ResponseEntity
<
ResultBody
>
responseEntity
=
restTemplate
.
exchange
(
pmsAppUri
+
"/pms/backstage/work/queryWorkServiceCount"
+
"?
i
d="
+
id
,
HttpMethod
.
GET
,
entity
,
ResultBody
.
class
);
ResponseEntity
<
ResultBody
>
responseEntity
=
restTemplate
.
exchange
(
pmsAppUri
+
"/pms/backstage/work/queryWorkServiceCount"
+
"?
companyI
d="
+
id
,
HttpMethod
.
GET
,
entity
,
ResultBody
.
class
);
ResultBody
body
=
responseEntity
.
getBody
();
if
(
body
.
getCode
().
equals
(
ResultEnum
.
SUCCESS
.
getResultCode
())){
Integer
count
=
(
Integer
)
body
.
getResult
();
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CompanyController.java
浏览文件 @
e1f2656b
package
com
.
mmc
.
iuav
.
user
.
controller
;
import
com.mmc.iuav.group.Insert
;
import
com.mmc.iuav.response.ResultBody
;
import
com.mmc.iuav.user.model.qo.CompanyInfoQO
;
import
com.mmc.iuav.user.model.vo.CompanyInfoVO
;
...
...
@@ -9,6 +10,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
/**
...
...
@@ -25,7 +27,7 @@ public class CompanyController extends BaseController{
@ApiOperation
(
value
=
"新增"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"add"
)
public
ResultBody
add
(
@RequestBody
CompanyInfoVO
companyInfo
){
public
ResultBody
add
(
@
Validated
(
Insert
.
class
)
@
RequestBody
CompanyInfoVO
companyInfo
){
return
companyService
.
addCompanyInfo
(
companyInfo
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论