Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
4b81f81d
提交
4b81f81d
authored
7月 24, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CooperationDao(add)
上级
771a60b5
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
164 行增加
和
40 行删除
+164
-40
CompanyInfoVO.java
...c/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
+15
-7
CooperationTagVO.java
...ain/java/com/mmc/iuav/user/model/vo/CooperationTagVO.java
+4
-5
UserApplyTagVO.java
.../main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
+10
-0
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+8
-0
CooperationDao.java
...r/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
+4
-0
CompanyAuthDO.java
...src/main/java/com/mmc/iuav/user/entity/CompanyAuthDO.java
+3
-0
CompanyInfoDO.java
...src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
+18
-0
UserApplyTagDO.java
...rc/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
+8
-0
CooperationService.java
...in/java/com/mmc/iuav/user/service/CooperationService.java
+2
-0
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+12
-1
CompanyAuthDao.xml
...service-user/src/main/resources/mapper/CompanyAuthDao.xml
+24
-15
CooperationDao.xml
...service-user/src/main/resources/mapper/CooperationDao.xml
+55
-12
not-check.yml
...service/cms-service-user/src/main/resources/not-check.yml
+1
-0
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
浏览文件 @
4b81f81d
...
@@ -22,27 +22,27 @@ import java.io.Serializable;
...
@@ -22,27 +22,27 @@ import java.io.Serializable;
public
class
CompanyInfoVO
implements
Serializable
{
public
class
CompanyInfoVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3247519744829926132L
;
private
static
final
long
serialVersionUID
=
3247519744829926132L
;
@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
=
"单位类型,0科比特,1加盟公司"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"单位类型,0科比特,1加盟公司"
,
example
=
"0"
)
@NotNull
(
message
=
"单位类型不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"单位类型不能为空"
,
groups
=
{
Insert
.
class
})
private
Integer
companyType
;
private
Integer
companyType
;
@ApiModelProperty
(
value
=
"单位名称"
,
example
=
"科比特"
)
@ApiModelProperty
(
value
=
"单位名称"
,
example
=
"科比特"
)
@NotNull
(
message
=
"单位名称不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"单位名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
companyName
;
private
String
companyName
;
@ApiModelProperty
(
value
=
"单位全称"
,
example
=
"浙江科比特创新科技有限公司"
)
@ApiModelProperty
(
value
=
"单位全称"
,
example
=
"浙江科比特创新科技有限公司"
)
private
String
fullName
;
private
String
fullName
;
@ApiModelProperty
(
value
=
"省份名称"
,
example
=
"广东省"
)
@ApiModelProperty
(
value
=
"省份名称"
,
example
=
"广东省"
)
@NotNull
(
message
=
"省份名称不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"省份名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
province
;
private
String
province
;
@ApiModelProperty
(
value
=
"城市名称"
,
example
=
"深圳市"
)
@ApiModelProperty
(
value
=
"城市名称"
,
example
=
"深圳市"
)
@NotNull
(
message
=
"城市名称不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"城市名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
city
;
private
String
city
;
@ApiModelProperty
(
value
=
"县区名称"
,
example
=
"南山区"
)
@ApiModelProperty
(
value
=
"县区名称"
,
example
=
"南山区"
)
@NotNull
(
message
=
"县区名称不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"县区名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
district
;
private
String
district
;
@ApiModelProperty
(
value
=
"详细地址"
,
example
=
"西丽街道万科云城国际创新谷6栋"
)
@ApiModelProperty
(
value
=
"详细地址"
,
example
=
"西丽街道万科云城国际创新谷6栋"
)
@NotNull
(
message
=
"详细地址不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"详细地址不能为空"
,
groups
=
{
Insert
.
class
})
private
String
address
;
private
String
address
;
@ApiModelProperty
(
value
=
"联系人"
,
example
=
"lx"
)
@ApiModelProperty
(
value
=
"联系人"
,
example
=
"lx"
)
private
String
companyUserName
;
private
String
companyUserName
;
...
@@ -50,4 +50,12 @@ public class CompanyInfoVO implements Serializable {
...
@@ -50,4 +50,12 @@ public class CompanyInfoVO implements Serializable {
private
String
phoneNum
;
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
private
String
remark
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"品牌名称"
,
example
=
"科比特"
)
private
String
brandName
;
@ApiModelProperty
(
value
=
"品牌logo"
,
example
=
"http://"
)
private
String
brandLogo
;
}
}
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CooperationTagVO.java
浏览文件 @
4b81f81d
package
com
.
mmc
.
iuav
.
user
.
model
.
vo
;
package
com
.
mmc
.
iuav
.
user
.
model
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
...
@@ -22,13 +21,13 @@ public class CooperationTagVO implements Serializable {
...
@@ -22,13 +21,13 @@ public class CooperationTagVO implements Serializable {
private
static
final
long
serialVersionUID
=
8884567706797525506L
;
private
static
final
long
serialVersionUID
=
8884567706797525506L
;
@ApiModelProperty
(
value
=
"id"
)
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"合作标签名称"
)
@ApiModelProperty
(
value
=
"合作标签名称"
,
example
=
"企业名称"
)
private
String
tagName
;
private
String
tagName
;
@ApiModelProperty
(
value
=
"合作标签img"
)
@ApiModelProperty
(
value
=
"合作标签img"
,
example
=
"http://"
)
private
String
tagImg
;
private
String
tagImg
;
@ApiModelProperty
(
value
=
"合作标签描述"
)
@ApiModelProperty
(
value
=
"合作标签描述"
,
example
=
"描述"
)
private
String
tagDescription
;
private
String
tagDescription
;
@ApiModelProperty
(
value
=
"注意事项"
)
@ApiModelProperty
(
value
=
"注意事项"
,
example
=
"注意事项"
)
private
String
tagRequire
;
private
String
tagRequire
;
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
private
Date
createTime
;
...
...
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
浏览文件 @
4b81f81d
...
@@ -80,5 +80,15 @@ public class UserApplyTagVO implements Serializable {
...
@@ -80,5 +80,15 @@ public class UserApplyTagVO implements Serializable {
@ApiModelProperty
(
value
=
"营业执照"
,
example
=
"http://"
)
@ApiModelProperty
(
value
=
"营业执照"
,
example
=
"http://"
)
private
String
licenseImg
;
private
String
licenseImg
;
@ApiModelProperty
(
value
=
"地址信息"
,
example
=
"广东省"
,
required
=
true
)
@NotBlank
(
message
=
"地址信息不能为空"
,
groups
=
{
Insert
.
class
})
private
String
address
;
@ApiModelProperty
(
value
=
"纬度"
,
example
=
"22.5749"
,
required
=
true
)
@NotNull
(
message
=
"纬度不能为空"
,
groups
=
{
Insert
.
class
})
private
Double
lat
;
@ApiModelProperty
(
value
=
"经度"
,
example
=
"113.992563"
,
required
=
true
)
@NotNull
(
message
=
"经度不能为空"
,
groups
=
{
Insert
.
class
})
private
Double
lon
;
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
4b81f81d
...
@@ -50,6 +50,14 @@ public class CooperationController extends BaseController {
...
@@ -50,6 +50,14 @@ public class CooperationController extends BaseController {
return
cooperationService
.
apply
(
userApplyTagVO
);
return
cooperationService
.
apply
(
userApplyTagVO
);
}
}
@ApiOperation
(
value
=
"app-已申请的品牌与logo列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@GetMapping
(
"appBrandList"
)
public
ResultBody
<
CompanyInfoVO
>
appBrandList
()
{
return
cooperationService
.
appBrandList
();
}
@ApiOperation
(
value
=
"后台-申请列表"
)
@ApiOperation
(
value
=
"后台-申请列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@PostMapping
(
"listUserApplyTag"
)
@PostMapping
(
"listUserApplyTag"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
浏览文件 @
4b81f81d
...
@@ -129,4 +129,8 @@ public interface CooperationDao {
...
@@ -129,4 +129,8 @@ public interface CooperationDao {
void
deleteApplyResource
(
Integer
id
);
void
deleteApplyResource
(
Integer
id
);
void
insertApplyResource
(
List
<
AttachmentVO
>
list
);
void
insertApplyResource
(
List
<
AttachmentVO
>
list
);
void
updateCompanyInfo
(
UserApplyTagDO
userApplyTagDO
);
List
<
CompanyInfoDO
>
appBrandList
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/CompanyAuthDO.java
浏览文件 @
4b81f81d
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
...
@@ -28,6 +29,8 @@ public class CompanyAuthDO implements Serializable {
...
@@ -28,6 +29,8 @@ public class CompanyAuthDO implements Serializable {
private
String
licenseImg
;
private
String
licenseImg
;
@ApiModelProperty
(
value
=
"企业认证状态,0未通过,1已通过"
)
@ApiModelProperty
(
value
=
"企业认证状态,0未通过,1已通过"
)
private
Integer
authStatus
;
private
Integer
authStatus
;
@ApiModelProperty
(
value
=
"企业认证id"
)
private
Integer
companyInfoId
;
public
CompanyAuthDO
(
CompanyAuthVO
companyAuthVO
)
{
public
CompanyAuthDO
(
CompanyAuthVO
companyAuthVO
)
{
this
.
userAccountId
=
companyAuthVO
.
getUserAccountId
();
this
.
userAccountId
=
companyAuthVO
.
getUserAccountId
();
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
浏览文件 @
4b81f81d
package
com
.
mmc
.
iuav
.
user
.
entity
;
package
com
.
mmc
.
iuav
.
user
.
entity
;
import
com.mmc.iuav.user.model.vo.CompanyInfoVO
;
import
com.mmc.iuav.user.model.vo.CompanyInfoVO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
...
@@ -27,9 +29,20 @@ public class CompanyInfoDO implements Serializable {
...
@@ -27,9 +29,20 @@ public class CompanyInfoDO implements Serializable {
private
String
phoneNum
;
private
String
phoneNum
;
private
String
remark
;
private
String
remark
;
private
Integer
backUserAccountId
;
private
Integer
backUserAccountId
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"品牌名称"
,
example
=
"科比特"
)
private
String
brandName
;
@ApiModelProperty
(
value
=
"品牌logo"
,
example
=
"http://"
)
private
String
brandLogo
;
public
CompanyInfoVO
buildCompanyInfoVO
()
{
public
CompanyInfoVO
buildCompanyInfoVO
()
{
return
CompanyInfoVO
.
builder
().
id
(
id
).
companyType
(
companyType
).
companyName
(
companyName
).
fullName
(
fullName
).
province
(
province
)
return
CompanyInfoVO
.
builder
().
id
(
id
).
companyType
(
companyType
).
companyName
(
companyName
).
fullName
(
fullName
).
province
(
province
)
.
brandName
(
brandName
)
.
brandLogo
(
brandLogo
)
.
userAccountId
(
userAccountId
)
.
city
(
city
).
district
(
district
).
address
(
address
).
companyUserName
(
companyUserName
).
phoneNum
(
phoneNum
).
remark
(
remark
).
build
();
.
city
(
city
).
district
(
district
).
address
(
address
).
companyUserName
(
companyUserName
).
phoneNum
(
phoneNum
).
remark
(
remark
).
build
();
}
}
...
@@ -45,5 +58,10 @@ public class CompanyInfoDO implements Serializable {
...
@@ -45,5 +58,10 @@ public class CompanyInfoDO implements Serializable {
this
.
companyUserName
=
companyInfo
.
getCompanyUserName
();
this
.
companyUserName
=
companyInfo
.
getCompanyUserName
();
this
.
phoneNum
=
companyInfo
.
getPhoneNum
();
this
.
phoneNum
=
companyInfo
.
getPhoneNum
();
this
.
remark
=
companyInfo
.
getRemark
();
this
.
remark
=
companyInfo
.
getRemark
();
this
.
userAccountId
=
companyInfo
.
getUserAccountId
();
this
.
brandName
=
companyInfo
.
getBrandName
();
this
.
brandLogo
=
companyInfo
.
getBrandLogo
();
}
}
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
浏览文件 @
4b81f81d
...
@@ -30,6 +30,8 @@ public class UserApplyTagDO implements Serializable {
...
@@ -30,6 +30,8 @@ public class UserApplyTagDO implements Serializable {
private
Integer
applyStatus
;
private
Integer
applyStatus
;
private
String
content
;
private
String
content
;
private
Integer
score
;
private
Integer
score
;
@ApiModelProperty
(
value
=
"企业认证id"
)
private
Integer
companyInfoId
;
/**
/**
* 辅助字段start
* 辅助字段start
...
@@ -72,6 +74,9 @@ public class UserApplyTagDO implements Serializable {
...
@@ -72,6 +74,9 @@ public class UserApplyTagDO implements Serializable {
.
brandLogo
(
this
.
brandLogo
)
.
brandLogo
(
this
.
brandLogo
)
.
licenseImg
(
this
.
licenseImg
)
.
licenseImg
(
this
.
licenseImg
)
.
attachmentList
(
this
.
attachmentList
)
.
attachmentList
(
this
.
attachmentList
)
.
address
(
this
.
address
)
.
lat
(
this
.
lat
)
.
lon
(
this
.
lon
)
.
build
();
.
build
();
}
}
...
@@ -83,6 +88,9 @@ public class UserApplyTagDO implements Serializable {
...
@@ -83,6 +88,9 @@ public class UserApplyTagDO implements Serializable {
this
.
remark
=
userApplyTagVO
.
getRemark
();
this
.
remark
=
userApplyTagVO
.
getRemark
();
this
.
brandLogo
=
userApplyTagVO
.
getBrandLogo
();
this
.
brandLogo
=
userApplyTagVO
.
getBrandLogo
();
this
.
brandName
=
userApplyTagVO
.
getBrandName
();
this
.
brandName
=
userApplyTagVO
.
getBrandName
();
this
.
address
=
userApplyTagVO
.
getAddress
();
this
.
lon
=
userApplyTagVO
.
getLon
();
this
.
lat
=
userApplyTagVO
.
getLat
();
}
}
public
ApplyTagEditVO
buildApplyTagEditVO
()
{
public
ApplyTagEditVO
buildApplyTagEditVO
()
{
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/CooperationService.java
浏览文件 @
4b81f81d
...
@@ -58,4 +58,6 @@ public interface CooperationService {
...
@@ -58,4 +58,6 @@ public interface CooperationService {
ResultBody
editUserApplyTagDetails
(
Integer
id
);
ResultBody
editUserApplyTagDetails
(
Integer
id
);
PageResult
listServiceBitmapData
(
Integer
type
,
Integer
pageNo
,
Integer
pageSize
,
Double
lon
,
Double
lat
);
PageResult
listServiceBitmapData
(
Integer
type
,
Integer
pageNo
,
Integer
pageSize
,
Double
lon
,
Double
lat
);
ResultBody
appBrandList
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
4b81f81d
...
@@ -49,14 +49,16 @@ public class CooperationServiceImpl implements CooperationService {
...
@@ -49,14 +49,16 @@ public class CooperationServiceImpl implements CooperationService {
return
ResultBody
.
error
(
ResultEnum
.
COMPANY_NOT_AUTH_ERROR
);
return
ResultBody
.
error
(
ResultEnum
.
COMPANY_NOT_AUTH_ERROR
);
}
}
Integer
cooperationTagId
=
userApplyTagVO
.
getCooperationTagId
();
Integer
cooperationTagId
=
userApplyTagVO
.
getCooperationTagId
();
if
(
cooperationTagId
==
1
||
cooperationTagId
==
2
)
{
if
(
cooperationTagId
==
1
)
{
if
(
""
.
equals
(
userApplyTagVO
.
getBrandName
())
||
userApplyTagVO
.
getBrandName
()
==
null
)
{
if
(
""
.
equals
(
userApplyTagVO
.
getBrandName
())
||
userApplyTagVO
.
getBrandName
()
==
null
)
{
return
ResultBody
.
error
(
ResultEnum
.
THE_BRAND_NAME_CANNOT_BE_EMPTY
);
return
ResultBody
.
error
(
ResultEnum
.
THE_BRAND_NAME_CANNOT_BE_EMPTY
);
}
else
if
(
""
.
equals
(
userApplyTagVO
.
getBrandLogo
())
||
userApplyTagVO
.
getBrandLogo
()
==
null
)
{
}
else
if
(
""
.
equals
(
userApplyTagVO
.
getBrandLogo
())
||
userApplyTagVO
.
getBrandLogo
()
==
null
)
{
return
ResultBody
.
error
(
ResultEnum
.
THE_BRAND_LOGO_CANNOT_BE_EMPTY
);
return
ResultBody
.
error
(
ResultEnum
.
THE_BRAND_LOGO_CANNOT_BE_EMPTY
);
}
}
}
}
UserApplyTagDO
userApplyTagDO
=
new
UserApplyTagDO
(
userApplyTagVO
);
UserApplyTagDO
userApplyTagDO
=
new
UserApplyTagDO
(
userApplyTagVO
);
userApplyTagDO
.
setCompanyInfoId
(
companyAuthDO
.
getCompanyInfoId
());
cooperationDao
.
addApply
(
userApplyTagDO
);
cooperationDao
.
addApply
(
userApplyTagDO
);
List
<
AttachmentVO
>
attachmentList
=
userApplyTagVO
.
getAttachmentList
();
List
<
AttachmentVO
>
attachmentList
=
userApplyTagVO
.
getAttachmentList
();
for
(
AttachmentVO
attachmentVO
:
attachmentList
)
{
for
(
AttachmentVO
attachmentVO
:
attachmentList
)
{
...
@@ -64,6 +66,8 @@ public class CooperationServiceImpl implements CooperationService {
...
@@ -64,6 +66,8 @@ public class CooperationServiceImpl implements CooperationService {
new
TagApplyResourceDO
(
attachmentVO
,
userApplyTagDO
.
getId
());
new
TagApplyResourceDO
(
attachmentVO
,
userApplyTagDO
.
getId
());
cooperationDao
.
addApplyResource
(
tagApplyResourceDO
);
cooperationDao
.
addApplyResource
(
tagApplyResourceDO
);
}
}
cooperationDao
.
updateCompanyInfo
(
userApplyTagDO
);
return
ResultBody
.
success
();
return
ResultBody
.
success
();
}
}
...
@@ -209,4 +213,11 @@ public class CooperationServiceImpl implements CooperationService {
...
@@ -209,4 +213,11 @@ public class CooperationServiceImpl implements CooperationService {
.
stream
().
map
(
WebsiteInfoDO:
:
buildWebsiteRangeDTO
).
collect
(
Collectors
.
toList
());
.
stream
().
map
(
WebsiteInfoDO:
:
buildWebsiteRangeDTO
).
collect
(
Collectors
.
toList
());
return
PageResult
.
buildPage
(
pageNo
,
pageSize
,
count
,
list
);
return
PageResult
.
buildPage
(
pageNo
,
pageSize
,
count
,
list
);
}
}
@Override
public
ResultBody
appBrandList
()
{
List
<
CompanyInfoDO
>
companyInfoDOS
=
cooperationDao
.
appBrandList
();
List
<
CompanyInfoVO
>
collect
=
companyInfoDOS
.
stream
().
map
(
CompanyInfoDO:
:
buildCompanyInfoVO
).
collect
(
Collectors
.
toList
());
return
ResultBody
.
success
(
collect
);
}
}
}
csm-service/cms-service-user/src/main/resources/mapper/CompanyAuthDao.xml
浏览文件 @
4b81f81d
...
@@ -4,28 +4,37 @@
...
@@ -4,28 +4,37 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mmc.iuav.user.dao.CompanyAuthDao"
>
<mapper
namespace=
"com.mmc.iuav.user.dao.CompanyAuthDao"
>
<!-- <resultMap id="companyAuthResultMAp" type="com.mmc.iuav.user.entity.CompanyAuthDO">-->
<!-- <resultMap id="companyAuthResultMAp" type="com.mmc.iuav.user.entity.CompanyAuthDO">-->
<!-- <id column="id" property="id"/>-->
<!-- <id column="id" property="id"/>-->
<!-- <result property="authStatus" column="auth_status"/>-->
<!-- <result property="authStatus" column="auth_status"/>-->
<!-- <result property="userAccountId" column="user_account_id"/>-->
<!-- <result property="userAccountId" column="user_account_id"/>-->
<!-- <result property="companyName" column="company_name"/>-->
<!-- <result property="companyName" column="company_name"/>-->
<!-- <result property="creditCode" column="credit_code"/>-->
<!-- <result property="creditCode" column="credit_code"/>-->
<!-- <result property="licenseImg" column="license_img"/>-->
<!-- <result property="licenseImg" column="license_img"/>-->
<!-- </resultMap>-->
<!-- </resultMap>-->
<insert
id=
"addCompanyAuth"
parameterType=
"com.mmc.iuav.user.entity.CompanyAuthDO"
<insert
id=
"addCompanyAuth"
parameterType=
"com.mmc.iuav.user.entity.CompanyAuthDO"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into company_auth(user_account_id,
company_name,credit_code,license_img,auth_status,
create_time)
insert into company_auth(user_account_id,
company_name, credit_code, license_img, auth_status,
create_time)
values (#{userAccountId}, #{companyName}, #{creditCode}, #{licenseImg}, #{authStatus}, NOW())
values (#{userAccountId}, #{companyName}, #{creditCode}, #{licenseImg}, #{authStatus}, NOW())
</insert>
</insert>
<!-- <select id="getCompanyAuth" resultMap="companyAuthResultMAp">-->
<!-- <select id="getCompanyAuth" resultMap="companyAuthResultMAp">-->
<!-- select id,user_account_id,company_name,credit_code,license_img,auth_status-->
<!-- select id,user_account_id,company_name,credit_code,license_img,auth_status-->
<!-- from company_auth where user_account_id = #{userAccountId}-->
<!-- from company_auth where user_account_id = #{userAccountId}-->
<!-- </select>-->
<!-- </select>-->
<select
id=
"getCompanyAuth"
resultType=
"com.mmc.iuav.user.entity.CompanyAuthDO"
>
<select
id=
"getCompanyAuth"
resultType=
"com.mmc.iuav.user.entity.CompanyAuthDO"
>
select id,user_account_id,company_name,credit_code,license_img,auth_status
SELECT cm.id,
from company_auth where user_account_id = #{userAccountId} and is_deleted = 0
cm.user_account_id,
cm.company_info_id,
cm.is_leader,
cm.create_time,
ci.company_name,
ci.credit_code,
ci.license_img
FROM company_member cm
LEFT JOIN company_info ci ON ci.id = cm.company_info_id
WHERE ci.is_deleted = 0
</select>
</select>
</mapper>
</mapper>
csm-service/cms-service-user/src/main/resources/mapper/CooperationDao.xml
浏览文件 @
4b81f81d
...
@@ -21,6 +21,9 @@
...
@@ -21,6 +21,9 @@
<result
property=
"brandName"
column=
"brand_name"
/>
<result
property=
"brandName"
column=
"brand_name"
/>
<result
property=
"brandLogo"
column=
"brand_logo"
/>
<result
property=
"brandLogo"
column=
"brand_logo"
/>
<result
property=
"licenseImg"
column=
"license_img"
/>
<result
property=
"licenseImg"
column=
"license_img"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"lat"
column=
"lat"
/>
<result
property=
"lon"
column=
"lon"
/>
<collection
property=
"attachmentList"
ofType=
"com.mmc.iuav.user.entity.TagApplyResourceDO"
<collection
property=
"attachmentList"
ofType=
"com.mmc.iuav.user.entity.TagApplyResourceDO"
select=
"getUserApplyResource"
select=
"getUserApplyResource"
column=
"{id=id}"
>
column=
"{id=id}"
>
...
@@ -31,10 +34,8 @@
...
@@ -31,10 +34,8 @@
<insert
id=
"addApply"
parameterType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
useGeneratedKeys=
"true"
<insert
id=
"addApply"
parameterType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into user_apply_tag(cooperation_tag_id, user_account_id, apply_name, apply_phone, remark, create_time,
insert into user_apply_tag(cooperation_tag_id, user_account_id, apply_name, apply_phone, remark, create_time)
brand_name, brand_logo)
values (#{cooperationTagId}, #{userAccountId}, #{applyName}, #{applyPhone}, #{remark}, NOW())
values (#{cooperationTagId}, #{userAccountId}, #{applyName}, #{applyPhone}, #{remark}, NOW(), #{brandName},
#{brandLogo})
</insert>
</insert>
<insert
id=
"insertUserTag"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.iuav.user.entity.UserTagDO"
<insert
id=
"insertUserTag"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.iuav.user.entity.UserTagDO"
...
@@ -77,7 +78,7 @@
...
@@ -77,7 +78,7 @@
lon = #{lon},
lon = #{lon},
</if>
</if>
<if
test=
"cooperationTagId != null"
>
<if
test=
"cooperationTagId != null"
>
type
= #{cooperationTagId}
`type`
= #{cooperationTagId}
</if>
</if>
</set>
</set>
where id = #{websiteId}
where id = #{websiteId}
...
@@ -219,15 +220,19 @@
...
@@ -219,15 +220,19 @@
ua.content,
ua.content,
ua.score,
ua.score,
ct.tag_name,
ct.tag_name,
ca.company_name,
ci.company_name,
ua.brand_name,
ci.brand_name,
ua.brand_logo,
ci.brand_logo,
ca.credit_code,
ci.credit_code,
ca.license_img
ci.license_img,
ci.address,
ci.lat,
ci.lon
FROM
FROM
user_apply_tag ua
user_apply_tag ua
INNER JOIN cooperation_tag ct ON ua.cooperation_tag_id = ct.id
INNER JOIN cooperation_tag ct ON ua.cooperation_tag_id = ct.id
INNER JOIN company_auth ca ON ca.user_account_id = ua.user_account_id
INNER JOIN company_member cm ON cm.user_account_id = ua.user_account_id
INNER JOIN company_info ci ON cm.company_info_id = ci.id
<where>
<where>
ua.is_deleted = 0
ua.is_deleted = 0
<if
test=
"cooperationTagId != null"
>
<if
test=
"cooperationTagId != null"
>
...
@@ -243,7 +248,7 @@
...
@@ -243,7 +248,7 @@
and ua.create_time
<
= #{endTime}
and ua.create_time
<
= #{endTime}
</if>
</if>
<if
test=
"companyName != null and companyName != ''"
>
<if
test=
"companyName != null and companyName != ''"
>
and c
a
.company_name like CONCAT("%",#{companyName},"%")
and c
i
.company_name like CONCAT("%",#{companyName},"%")
</if>
</if>
</where>
</where>
order by ua.create_time desc
order by ua.create_time desc
...
@@ -324,4 +329,42 @@
...
@@ -324,4 +329,42 @@
</foreach>
</foreach>
</insert>
</insert>
<update
id=
"updateCompanyInfo"
parameterType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
UPDATE company_info
<set>
<if
test=
" lat != null and lat != '' "
>
lat = #{lat},
</if>
<if
test=
" lon != null and lon != '' "
>
lon = #{lon},
</if>
<if
test=
" address != null and address != '' "
>
address = #{address},
</if>
<if
test=
" brandName != null and brandName != '' "
>
brand_name = #{brandName},
</if>
<if
test=
" brandLogo != null and brandLogo != '' "
>
brand_logo = #{brandLogo},
</if>
update_time=NOW()
</set>
where id = #{companyInfoId}
</update>
<select
id=
"appBrandList"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
SELECT cm.user_account_id,
cm.company_info_id,
cm.is_leader,
ci.brand_name,
ci.brand_logo,
ci.address,
ci.lon,
ci.lat,
ci.company_name,
ci.id
FROM company_member cm
LEFT JOIN company_info ci ON cm.company_info_id = ci.id
</select>
</mapper>
</mapper>
csm-service/cms-service-user/src/main/resources/not-check.yml
浏览文件 @
4b81f81d
...
@@ -22,3 +22,4 @@ data-filter:
...
@@ -22,3 +22,4 @@ data-filter:
-
/userapp/company/listCompanyPageBack
-
/userapp/company/listCompanyPageBack
-
/userapp/company/getCompanyInfoById
-
/userapp/company/getCompanyInfoById
-
/userapp/cooperation/service/bitmap
-
/userapp/cooperation/service/bitmap
-
/userapp/cooperation/appBrandList
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论