Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
049ecd66
提交
049ecd66
authored
7月 31, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
单位、加盟修改、优化
上级
484bb7d5
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
167 行增加
和
111 行删除
+167
-111
pom.xml
cms-common/cms-common-model/pom.xml
+1
-1
CompanyInfoVO.java
...c/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
+4
-0
CompanyController.java
.../java/com/mmc/iuav/user/controller/CompanyController.java
+7
-0
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+1
-2
CompanyInfoDO.java
...src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
+19
-1
UserApplyTagDO.java
...rc/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
+18
-34
CompanyService.java
...c/main/java/com/mmc/iuav/user/service/CompanyService.java
+2
-0
AuthServiceImpl.java
.../java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
+4
-1
CompanyServiceImpl.java
...va/com/mmc/iuav/user/service/impl/CompanyServiceImpl.java
+11
-0
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+18
-22
CompanyDao.xml
...cms-service-user/src/main/resources/mapper/CompanyDao.xml
+27
-8
CooperationDao.xml
...service-user/src/main/resources/mapper/CooperationDao.xml
+54
-41
RealNameAuthDao.xml
...ervice-user/src/main/resources/mapper/RealNameAuthDao.xml
+1
-1
没有找到文件。
cms-common/cms-common-model/pom.xml
浏览文件 @
049ecd66
...
...
@@ -43,7 +43,7 @@
<dependency>
<groupId>
com.google.protobuf
</groupId>
<artifactId>
protobuf-java
</artifactId>
<version>
3.1
1.4
</version>
<version>
3.1
6.3
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
...
...
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
浏览文件 @
049ecd66
...
...
@@ -68,4 +68,8 @@ public class CompanyInfoVO implements Serializable {
private
String
brandLogo
;
@ApiModelProperty
(
value
=
"管理员标识"
)
private
Integer
leader
;
@ApiModelProperty
(
value
=
"服务资质信息"
,
example
=
"5星店铺"
)
private
String
content
;
@ApiModelProperty
(
value
=
"评分"
,
example
=
"*****"
)
private
Integer
score
;
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CompanyController.java
浏览文件 @
049ecd66
...
...
@@ -57,6 +57,13 @@ public class CompanyController extends BaseController {
return
companyService
.
getCompanyInfoById
(
id
);
}
@ApiOperation
(
value
=
"pc-后台用户id单位查询"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CompanyInfoVO
.
class
)})
@GetMapping
(
"getCompanyInfoByBUId"
)
public
ResultBody
<
CompanyInfoVO
>
getCompanyInfoByBUId
(
@RequestParam
Integer
backUserAccountId
)
{
return
companyService
.
getCompanyInfoByBUId
(
backUserAccountId
);
}
@ApiOperation
(
value
=
"单位列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CompanyInfoVO
.
class
)})
@PostMapping
(
"listCompanyPage"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
049ecd66
...
...
@@ -65,7 +65,6 @@ public class CooperationController extends BaseController {
return
cooperationService
.
appBrandMessage
(
userAccountId
);
}
@ApiOperation
(
value
=
"后台-申请列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@PostMapping
(
"listUserApplyTag"
)
...
...
@@ -98,7 +97,7 @@ public class CooperationController extends BaseController {
return
ResultBody
.
success
(
cooperationService
.
listServiceBitmapData
(
type
,
pageNo
,
pageSize
,
lon
,
lat
));
}
@ApiOperation
(
value
=
"强制删除"
)
@ApiOperation
(
value
=
"强制删除
加盟商标签
"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"deleteApplyTag"
)
public
ResultBody
deleteApplyTag
(
Integer
id
)
{
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
浏览文件 @
049ecd66
package
com
.
mmc
.
iuav
.
user
.
entity
;
import
com.mmc.iuav.user.model.vo.ApplyTagEditVO
;
import
com.mmc.iuav.user.model.vo.CompanyAuthVO
;
import
com.mmc.iuav.user.model.vo.CompanyInfoVO
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -42,16 +43,31 @@ public class CompanyInfoDO implements Serializable {
@ApiModelProperty
(
value
=
"品牌logo"
,
example
=
"http://"
)
private
String
brandLogo
;
@ApiModelProperty
(
value
=
"服务资质信息"
,
example
=
"5星店铺"
)
private
String
content
;
@ApiModelProperty
(
value
=
"评分"
,
example
=
"*****"
)
private
Integer
score
;
private
Integer
leader
;
public
CompanyInfoDO
(
ApplyTagEditVO
applyTagEditVO
)
{
this
.
address
=
applyTagEditVO
.
getAddress
();
this
.
lon
=
applyTagEditVO
.
getLon
();
this
.
lat
=
applyTagEditVO
.
getLat
();
this
.
content
=
applyTagEditVO
.
getContent
();
this
.
score
=
applyTagEditVO
.
getScore
();
}
public
CompanyInfoVO
buildCompanyInfoVO
()
{
return
CompanyInfoVO
.
builder
().
id
(
id
).
companyType
(
companyType
).
companyName
(
companyName
).
fullName
(
fullName
).
province
(
province
)
.
brandName
(
brandName
)
.
brandLogo
(
brandLogo
)
.
userAccountId
(
userAccountId
)
.
lon
(
this
.
lon
).
lat
(
this
.
lat
).
creditCode
(
this
.
creditCode
).
licenseImg
(
this
.
licenseImg
).
leader
(
this
.
leader
)
.
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
)
.
content
(
this
.
getContent
())
.
score
(
this
.
getScore
())
.
build
();
}
public
CompanyAuthVO
buildCompanyAuthVO
()
{
...
...
@@ -75,5 +91,7 @@ public class CompanyInfoDO implements Serializable {
this
.
brandLogo
=
companyInfo
.
getBrandLogo
();
this
.
lon
=
companyInfo
.
getLon
();
this
.
lat
=
companyInfo
.
getLat
();
this
.
content
=
companyInfo
.
getContent
();
this
.
score
=
companyInfo
.
getScore
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
浏览文件 @
049ecd66
...
...
@@ -28,28 +28,14 @@ public class UserApplyTagDO implements Serializable {
private
String
remark
;
private
Date
createTime
;
private
Integer
applyStatus
;
private
String
content
;
private
Integer
score
;
@ApiModelProperty
(
value
=
"企业认证id"
)
private
Integer
companyInfoId
;
/**
* 辅助字段start
*/
@ApiModelProperty
(
value
=
"申请品牌"
)
private
String
tagName
;
private
String
companyName
;
private
String
address
;
private
String
name
;
private
Double
lat
;
private
Double
lon
;
@ApiModelProperty
(
value
=
"品牌名称"
,
example
=
"科比特"
)
private
String
brandName
;
@ApiModelProperty
(
value
=
"品牌logo"
,
example
=
"http://"
)
private
String
brandLogo
;
@ApiModelProperty
(
value
=
"营业执照"
,
example
=
"http://"
)
private
String
licenseImg
;
@ApiModelProperty
(
value
=
"用户认证企业"
)
private
CompanyInfoDO
companyInfoDO
;
@ApiModelProperty
(
value
=
"附件"
,
example
=
"http://"
)
private
List
<
AttachmentVO
>
attachmentList
;
...
...
@@ -67,16 +53,16 @@ public class UserApplyTagDO implements Serializable {
.
applyTime
(
createTime
)
.
approvalStatus
(
applyStatus
)
.
cooperationTagName
(
tagName
)
.
companyName
(
companyName
)
.
content
(
content
)
.
score
(
score
)
.
brandName
(
this
.
brandName
)
.
brandLogo
(
this
.
brandLogo
)
.
licenseImg
(
this
.
licenseImg
)
.
attachmentList
(
this
.
attachmentList
)
.
address
(
this
.
address
)
.
lat
(
this
.
lat
)
.
lon
(
this
.
lon
)
.
content
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getContent
())
.
score
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getScore
())
.
companyName
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getCompanyName
())
.
brandName
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getBrandName
())
.
brandLogo
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getBrandLogo
())
.
licenseImg
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getLicenseImg
())
.
address
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getAddress
())
.
lat
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getLat
())
.
lon
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getLon
())
.
build
();
}
...
...
@@ -86,18 +72,16 @@ public class UserApplyTagDO implements Serializable {
this
.
applyName
=
userApplyTagVO
.
getApplyName
();
this
.
applyPhone
=
userApplyTagVO
.
getApplyPhone
();
this
.
remark
=
userApplyTagVO
.
getRemark
();
this
.
brandLogo
=
userApplyTagVO
.
getBrandLogo
();
this
.
brandName
=
userApplyTagVO
.
getBrandName
();
this
.
address
=
userApplyTagVO
.
getAddress
();
this
.
lon
=
userApplyTagVO
.
getLon
();
this
.
lat
=
userApplyTagVO
.
getLat
();
}
public
ApplyTagEditVO
buildApplyTagEditVO
()
{
return
ApplyTagEditVO
.
builder
().
id
(
id
)
.
cooperationTagId
(
cooperationTagId
).
name
(
name
)
.
address
(
address
).
lat
(
lat
).
lon
(
lon
)
.
content
(
content
).
score
(
score
)
.
cooperationTagId
(
cooperationTagId
).
name
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getCompanyName
())
.
address
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getAddress
())
.
lat
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getLat
())
.
lon
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getLon
())
.
content
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getContent
())
.
score
(
this
.
companyInfoDO
==
null
?
null
:
this
.
companyInfoDO
.
getScore
())
.
build
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/CompanyService.java
浏览文件 @
049ecd66
...
...
@@ -145,4 +145,6 @@ public interface CompanyService {
* @return
*/
ResultBody
listCompanyMembers
(
Integer
companyInfoId
,
LoginSuccessDTO
userLoginInfoFromRedis
,
Integer
pageNo
,
Integer
pageSize
);
ResultBody
<
CompanyInfoVO
>
getCompanyInfoByBUId
(
Integer
backUserAccountId
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
浏览文件 @
049ecd66
...
...
@@ -100,7 +100,7 @@ public class AuthServiceImpl implements AuthService {
userAccountDO
.
setSource
(
wxLoginVO
.
getSource
());
userAccountService
.
insertUserAccount
(
userAccountDO
);
userAccountVO
=
userAccountDO
.
buildUserAccountVO
();
payClient
.
createWallet
(
userAccountDO
.
getId
());
//
payClient.createWallet(userAccountDO.getId());
// 查询之前有没有实名过
RealNameAuthDO
nameAuthByUnionId
=
realNameAuthDao
.
getRealNameAuthBakByUnionId
(
unionId
);
if
(
nameAuthByUnionId
!=
null
)
{
...
...
@@ -123,6 +123,9 @@ public class AuthServiceImpl implements AuthService {
stringRedisTemplate
.
opsForValue
().
set
(
token
,
JSONObject
.
toJSONString
(
loginSuccessDTO
),
JwtConstant
.
EXPIRATION
,
TimeUnit
.
MILLISECONDS
);
if
(
1
==
1
)
{
throw
new
RuntimeException
();
}
return
ResultBody
.
success
(
AppUserSucVO
.
builder
().
token
(
token
).
uid
(
userAccountVO
.
getUid
()).
phoneNum
(
userAccountVO
.
getPhoneNum
())
.
nickName
(
userAccountVO
.
getNickName
()).
userAccountId
(
userAccountVO
.
getId
()).
sessionKey
(
sessionKey
).
portType
(
100
).
authStatus
(
companyAuthStatus
).
build
());
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CompanyServiceImpl.java
浏览文件 @
049ecd66
...
...
@@ -203,4 +203,15 @@ public class CompanyServiceImpl implements CompanyService {
List
<
UserAccountVO
>
userAccountVOS
=
userAccountDOS
.
stream
().
map
(
UserAccountDO:
:
buildUserAccountVO
).
collect
(
Collectors
.
toList
());
return
ResultBody
.
success
(
PageResult
.
buildPage
(
pageNo
,
pageSize
,
count
,
userAccountVOS
));
}
@Override
public
ResultBody
<
CompanyInfoVO
>
getCompanyInfoByBUId
(
Integer
backUserAccountId
)
{
// 获取公司id
CompanyInfoDO
companyInfoDO
=
companyDao
.
getCompanyInfoByBackUserAccountId
(
backUserAccountId
);
if
(
companyInfoDO
!=
null
)
{
companyInfoDO
.
setLicenseImg
(
null
);
return
ResultBody
.
success
(
companyInfoDO
.
buildCompanyInfoVO
());
}
return
ResultBody
.
success
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
049ecd66
...
...
@@ -69,8 +69,8 @@ public class CooperationServiceImpl implements CooperationService {
return
ResultBody
.
error
(
ResultEnum
.
TAG_ALREADY_EXIST_ERROR
);
}
// 判断企业认证
Company
AuthDO
companyAuthDO
=
companyAuthDao
.
getCompanyAuth
(
userApplyTagVO
.
getUserAccountId
());
if
(
companyAuthDO
==
null
)
{
Company
InfoDO
appCompanyInfoUId
=
companyDao
.
getAppCompanyInfoUId
(
userApplyTagVO
.
getUserAccountId
());
if
(
appCompanyInfoUId
==
null
)
{
return
ResultBody
.
error
(
ResultEnum
.
COMPANY_NOT_AUTH_ERROR
);
}
Integer
cooperationTagId
=
userApplyTagVO
.
getCooperationTagId
();
...
...
@@ -81,9 +81,7 @@ public class CooperationServiceImpl implements CooperationService {
return
ResultBody
.
error
(
ResultEnum
.
THE_BRAND_LOGO_CANNOT_BE_EMPTY
);
}
}
UserApplyTagDO
userApplyTagDO
=
new
UserApplyTagDO
(
userApplyTagVO
);
userApplyTagDO
.
setCompanyInfoId
(
companyAuthDO
.
getCompanyInfoId
());
cooperationDao
.
addApply
(
userApplyTagDO
);
List
<
AttachmentVO
>
attachmentList
=
userApplyTagVO
.
getAttachmentList
();
for
(
AttachmentVO
attachmentVO
:
attachmentList
)
{
...
...
@@ -91,8 +89,13 @@ public class CooperationServiceImpl implements CooperationService {
new
TagApplyResourceDO
(
attachmentVO
,
userApplyTagDO
.
getId
());
cooperationDao
.
addApplyResource
(
tagApplyResourceDO
);
}
cooperationDao
.
updateCompanyInfo
(
userApplyTagDO
);
// 修改单位的位置、品牌信息
appCompanyInfoUId
.
setLon
(
userApplyTagVO
.
getLon
());
appCompanyInfoUId
.
setLat
(
userApplyTagVO
.
getLat
());
appCompanyInfoUId
.
setAddress
(
userApplyTagVO
.
getAddress
());
appCompanyInfoUId
.
setBrandLogo
(
userApplyTagVO
.
getBrandLogo
());
appCompanyInfoUId
.
setBrandName
(
userApplyTagVO
.
getBrandName
());
companyDao
.
updateCompanyInfo
(
appCompanyInfoUId
);
return
ResultBody
.
success
();
}
...
...
@@ -144,7 +147,7 @@ public class CooperationServiceImpl implements CooperationService {
// 初始化返回对象
UserApplyTagDetailsVO
userApplyTagDetailsVO
=
new
UserApplyTagDetailsVO
();
// 获取企业认证信息
Company
AuthDO
companyAuthDO
=
companyAuthDao
.
getCompanyAuth
(
userAccountId
);
Company
InfoDO
companyInfoDO
=
companyDao
.
getAppCompanyInfoUId
(
userAccountId
);
// 获取申请信息
UserApplyTagDO
userApplyTag
=
cooperationDao
.
getUserApplyTag
(
id
);
// 获取附件信息
...
...
@@ -156,9 +159,9 @@ public class CooperationServiceImpl implements CooperationService {
.
collect
(
Collectors
.
toList
());
userApplyTagDetailsVO
.
setAttachmentList
(
list
);
}
userApplyTagDetailsVO
.
setCompanyName
(
company
Auth
DO
.
getCompanyName
());
userApplyTagDetailsVO
.
setLicenseImg
(
company
Auth
DO
.
getLicenseImg
());
userApplyTagDetailsVO
.
setCreditCode
(
company
Auth
DO
.
getCreditCode
());
userApplyTagDetailsVO
.
setCompanyName
(
company
Info
DO
.
getCompanyName
());
userApplyTagDetailsVO
.
setLicenseImg
(
company
Info
DO
.
getLicenseImg
());
userApplyTagDetailsVO
.
setCreditCode
(
company
Info
DO
.
getCreditCode
());
userApplyTagDetailsVO
.
setRemark
(
userApplyTag
.
getRemark
());
return
ResultBody
.
success
(
userApplyTagDetailsVO
);
}
...
...
@@ -255,8 +258,6 @@ public class CooperationServiceImpl implements CooperationService {
// 编辑服务商信息
UserApplyTagDO
userApplyTagDO
=
new
UserApplyTagDO
();
userApplyTagDO
.
setId
(
applyTagEditVO
.
getId
());
userApplyTagDO
.
setContent
(
applyTagEditVO
.
getContent
());
userApplyTagDO
.
setScore
(
applyTagEditVO
.
getScore
());
userApplyTagDO
.
setRemark
(
applyTagEditVO
.
getRemark
());
cooperationDao
.
updateUserApplyTag
(
userApplyTagDO
);
userApplyTagDO
.
setAttachmentList
(
applyTagEditVO
.
getAttachmentList
());
...
...
@@ -268,16 +269,11 @@ public class CooperationServiceImpl implements CooperationService {
cooperationDao
.
insertApplyResource
(
userApplyTagDO
.
getAttachmentList
());
}
}
// 保存网点之前判断该网点是否存在 存在则修改不存在则新增
WebsiteInfoDO
websiteInfoDO
=
cooperationDao
.
getWebsiteInfoByUserApplyId
(
applyTagEditVO
.
getId
());
if
(
websiteInfoDO
==
null
)
{
// 保存网点信息
cooperationDao
.
addWebsiteInfo
(
applyTagEditVO
);
}
else
{
applyTagEditVO
.
setWebsiteId
(
websiteInfoDO
.
getId
());
// 修改网点信息
cooperationDao
.
updateWebsiteInfo
(
applyTagEditVO
);
}
// 修改单位网点位置信息
CompanyInfoDO
companyInfoDO
=
companyDao
.
getAppCompanyInfoUId
(
userApplyTag
.
getUserAccountId
());
CompanyInfoDO
companyInfoDO1
=
new
CompanyInfoDO
(
applyTagEditVO
);
companyInfoDO1
.
setId
(
companyInfoDO
.
getId
());
companyDao
.
updateCompanyInfo
(
companyInfoDO1
);
return
ResultBody
.
success
();
}
...
...
csm-service/cms-service-user/src/main/resources/mapper/CompanyDao.xml
浏览文件 @
049ecd66
...
...
@@ -25,7 +25,7 @@
<update
id=
"removeCompanyInfo"
>
update company_info set is_deleted = 1 where id = #{id}
</update>
<update
id=
"updateCompanyInfo"
>
<update
id=
"updateCompanyInfo"
parameterType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
update company_info
<set>
<if
test=
"companyType != null"
>
...
...
@@ -62,7 +62,25 @@
phone_num = #{phoneNum},
</if>
<if
test=
"remark != null"
>
remark = #{remark}
remark = #{remark},
</if>
<if
test=
"content != null"
>
content = #{content},
</if>
<if
test=
"score != null"
>
score = #{score}
</if>
<if
test=
"brandLogo != null"
>
brand_logo = #{brandLogo},
</if>
<if
test=
"brandName != null"
>
brand_name = #{brandName},
</if>
<if
test=
"licenseImg != null"
>
license_img = #{licenseImg},
</if>
<if
test=
"creditCode != null"
>
credit_code = #{creditCode}
</if>
</set>
where
...
...
@@ -83,7 +101,7 @@
<select
id=
"getCompanyInfoById"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
,content, score
from company_info
where id = #{id} and is_deleted = 0
</select>
...
...
@@ -103,7 +121,7 @@
<select
id=
"listCompanyPage"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
parameterType=
"com.mmc.iuav.user.model.qo.CompanyInfoQO"
>
select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
,content, score
from company_info
where is_deleted = 0
<if
test=
"companyName != null"
>
...
...
@@ -118,7 +136,7 @@
<select
id=
"getCompanyInfoByBackUserAccountId"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address, ci.company_user_name,
ci.phone_num, ci.remark, ci.create_time,ci.brand_logo, ci.brand_name, ci.license_img, ci.credit_code
ci.phone_num, ci.remark, ci.create_time,ci.brand_logo, ci.brand_name, ci.license_img, ci.credit_code
, ci.content, ci.score
FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id
WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0
</select>
...
...
@@ -133,7 +151,7 @@
<select
id=
"listCompanyInfoByUID"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address,
ci.company_user_name,
ci.phone_num, ci.remark, ci.create_time, cbu.back_user_account_id
ci.phone_num, ci.remark, ci.create_time, cbu.back_user_account_id
,ci.content, ci.score
FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id
WHERE ci.is_deleted = 0
<if
test=
"backUserIds != null"
>
...
...
@@ -153,7 +171,7 @@
</select>
<select
id=
"getCompanyInfoByName"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, phone_num, remark, create_time
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, phone_num, remark, create_time
, content, score
from company_info
where company_name = #{companyName} and is_deleted = 0
</select>
...
...
@@ -171,7 +189,8 @@
ci.license_img,
ci.brand_name,
ci.brand_logo,
cm.is_leader as leader
cm.is_leader as leader,
ci.content, ci.score
FROM
company_info ci
INNER JOIN company_member cm ON ci.id = cm.company_info_id
...
...
csm-service/cms-service-user/src/main/resources/mapper/CooperationDao.xml
浏览文件 @
049ecd66
...
...
@@ -5,7 +5,7 @@
<mapper
namespace=
"com.mmc.iuav.user.dao.CooperationDao"
>
<resultMap
id=
"UserApplyTag
List
"
type=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
<resultMap
id=
"UserApplyTag
ResultMap
"
type=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"cooperationTagId"
column=
"cooperation_tag_id"
/>
<result
property=
"userAccountId"
column=
"user_account_id"
/>
...
...
@@ -14,16 +14,20 @@
<result
property=
"applyStatus"
column=
"apply_status"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"score"
column=
"score"
/>
<result
property=
"tagName"
column=
"tag_name"
/>
<result
property=
"companyName"
column=
"company_name"
/>
<result
property=
"brandName"
column=
"brand_name"
/>
<result
property=
"brandLogo"
column=
"brand_logo"
/>
<result
property=
"licenseImg"
column=
"license_img"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"lat"
column=
"lat"
/>
<result
property=
"lon"
column=
"lon"
/>
<association
property=
"companyInfoDO"
javaType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
<id
property=
"id"
column=
"company_info_id"
/>
<result
property=
"companyName"
column=
"company_name"
/>
<result
property=
"brandName"
column=
"brand_name"
/>
<result
property=
"brandLogo"
column=
"brand_logo"
/>
<result
property=
"licenseImg"
column=
"license_img"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"lat"
column=
"lat"
/>
<result
property=
"lon"
column=
"lon"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"score"
column=
"score"
/>
</association>
<collection
property=
"attachmentList"
ofType=
"com.mmc.iuav.user.entity.TagApplyResourceDO"
select=
"getUserApplyResource"
column=
"{id=id}"
>
...
...
@@ -145,23 +149,27 @@
where is_deleted = 0
</select>
<select
id=
"getUserApplyTag"
resultType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
SELECT ua.id,
ua.cooperation_tag_id,
ua.user_account_id,
ua.apply_name,
ua.apply_phone,
ua.apply_status,
ua.remark,
ua.content,
ua.score,
ua.create_time,
wi.address,
wi.`name`,
wi.lat,
wi.lon
FROM user_apply_tag ua
LEFT JOIN website_info wi ON ua.id = wi.user_apply_tag
<select
id=
"getUserApplyTag"
resultMap=
"UserApplyTagResultMap"
>
SELECT
ua.id,
ua.cooperation_tag_id,
ua.user_account_id,
ua.apply_name,
ua.apply_phone,
ua.apply_status,
ua.remark,
ua.create_time,
ci.id as company_info_id,
ci.address,
ci.company_name AS `name`,
ci.lat,
ci.lon,
ci.content,
ci.score
FROM
user_apply_tag ua
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 ua.id = #{id}
AND ua.is_deleted = 0
</select>
...
...
@@ -183,9 +191,11 @@
</select>
<select
id=
"countListUserApplyTag"
resultType=
"java.lang.Integer"
>
select count(*)
from user_apply_tag ua
from
user_apply_tag ua
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>
ua.is_deleted = 0
<if
test=
"cooperationTagId != null"
>
...
...
@@ -201,13 +211,13 @@
and ua.create_time
<
= STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s')
</if>
<if
test=
"companyName != null and companyName != ''"
>
and c
a
.company_name like CONCAT("%",#{companyName},"%")
and c
i
.company_name like CONCAT("%",#{companyName},"%")
</if>
</where>
</select>
<select
id=
"listUserApplyTag"
resultMap=
"UserApplyTag
List
"
>
<select
id=
"listUserApplyTag"
resultMap=
"UserApplyTag
ResultMap
"
>
SELECT
ua.id,
ua.cooperation_tag_id,
...
...
@@ -217,9 +227,8 @@
ua.apply_status,
ua.remark,
ua.create_time,
ua.content,
ua.score,
ct.tag_name,
ci.id as company_info_id,
ci.company_name,
ci.brand_name,
ci.brand_logo,
...
...
@@ -227,7 +236,9 @@
ci.license_img,
ci.address,
ci.lat,
ci.lon
ci.lon,
ci.content,
ci.score
FROM
user_apply_tag ua
INNER JOIN cooperation_tag ct ON ua.cooperation_tag_id = ct.id
...
...
@@ -280,9 +291,11 @@
</if>
</select>
<select
id=
"countServiceBitmapData"
resultType=
"java.lang.Integer"
>
select count(*)
from website_info
where type = #{type}
SELECT count(*)
FROM
user_apply_tag uat
INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id
WHERE ct.id = #{type}
</select>
<select
id=
"listServiceBitmapData"
resultType=
"com.mmc.iuav.user.entity.WebsiteInfoDO"
>
SELECT
...
...
@@ -392,7 +405,7 @@
</select>
<select
id=
"appBrandMessage"
resultMap=
"UserApplyTag
List
"
>
<select
id=
"appBrandMessage"
resultMap=
"UserApplyTag
ResultMap
"
>
SELECT ua.id,
ua.cooperation_tag_id,
ua.user_account_id,
...
...
@@ -401,8 +414,6 @@
ua.apply_status,
ua.remark,
ua.create_time,
ua.content,
ua.score,
ct.tag_name,
ci.company_name,
ci.brand_name,
...
...
@@ -411,7 +422,9 @@
ci.license_img,
ci.address,
ci.lat,
ci.lon
ci.lon,
ci.content,
ci.score
FROM user_apply_tag ua
INNER JOIN cooperation_tag ct ON ua.cooperation_tag_id = ct.id
INNER JOIN company_member cm ON cm.user_account_id = ua.user_account_id
...
...
csm-service/cms-service-user/src/main/resources/mapper/RealNameAuthDao.xml
浏览文件 @
049ecd66
...
...
@@ -85,7 +85,7 @@
select rna.id, rna.user_account_id, rna.union_id, rna.front_id_img, rna.back_id_img, rna.id_number, rna.user_name, rna.sex, rna.nationality,
rna.birthday, rna.address, rna.issue, rna.start_date, rna.end_date, rna.is_fake_front, rna.is_fake_back, rna.check_status, rna.remark,
rna.create_time
from real_name_auth rna
from real_name_auth
_bak
rna
where rna.union_id = #{unionId} and rna.is_deleted = 0 and rna.check_status = 1
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论