Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
924222aa
提交
924222aa
authored
7月 15, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
合作加盟需求
上级
f6acc244
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
514 行增加
和
264 行删除
+514
-264
WebsiteRangeDTO.java
...ain/java/com/mmc/iuav/user/model/dto/WebsiteRangeDTO.java
+25
-0
ApplyQO.java
...del/src/main/java/com/mmc/iuav/user/model/qo/ApplyQO.java
+22
-20
ApplyTagEditVO.java
.../main/java/com/mmc/iuav/user/model/vo/ApplyTagEditVO.java
+37
-0
UserApplyTagVO.java
.../main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
+39
-30
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+91
-71
CooperationDao.java
...r/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
+71
-63
UserApplyTagDO.java
...rc/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
+56
-32
WebsiteInfoDO.java
...src/main/java/com/mmc/iuav/user/entity/WebsiteInfoDO.java
+39
-0
CooperationService.java
...in/java/com/mmc/iuav/user/service/CooperationService.java
+33
-26
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+0
-0
banner.txt
csm-service/cms-service-user/src/main/resources/banner.txt
+21
-0
CooperationDao.xml
...service-user/src/main/resources/mapper/CooperationDao.xml
+79
-22
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/dto/WebsiteRangeDTO.java
0 → 100644
浏览文件 @
924222aa
package
com
.
mmc
.
iuav
.
user
.
model
.
dto
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author LW
* @date 2022/4/22 10:02
* 概要:
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
WebsiteRangeDTO
implements
Serializable
{
private
String
address
;
private
String
name
;
private
Double
lon
;
private
Double
lat
;
private
Double
distance
;
}
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/qo/ApplyQO.java
浏览文件 @
924222aa
...
...
@@ -11,36 +11,38 @@ import javax.validation.constraints.NotNull;
/**
* @Author LW
*
* @date 2023/6/27 14:59 概要:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
ApplyQO
{
@ApiModelProperty
(
value
=
"申请加盟类型"
,
example
=
"1"
)
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"申请加盟类型"
,
example
=
"1"
)
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"申请状态"
,
example
=
"0"
)
private
Integer
applyStatus
;
@ApiModelProperty
(
value
=
"申请状态"
,
example
=
"0"
)
private
Integer
applyStatus
;
@ApiModelProperty
(
value
=
"开始时间"
,
example
=
"2023-01-01 00:00:00
"
)
private
String
startTi
me
;
@ApiModelProperty
(
value
=
"认证公司名称"
,
example
=
"科比特
"
)
private
String
companyNa
me
;
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2023-12-31 23:59:59
"
)
private
String
end
Time
;
@ApiModelProperty
(
value
=
"开始时间"
,
example
=
"2023-01-01 00:00:00
"
)
private
String
start
Time
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2023-12-31 23:59:59"
)
private
String
endTime
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10
"
)
@NotNull
(
message
=
"每页显示数
不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1
"
)
@NotNull
(
message
=
"页码
不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
}
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/ApplyTagEditVO.java
0 → 100644
浏览文件 @
924222aa
package
com
.
mmc
.
iuav
.
user
.
model
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author LW
* @date 2023/7/15 10:10
* 概要:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
ApplyTagEditVO
implements
Serializable
{
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"标签id"
)
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"网点名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"服务资质"
)
private
String
content
;
@ApiModelProperty
(
value
=
"服务评价分数"
)
private
Integer
score
;
@ApiModelProperty
(
value
=
"地址信息"
)
private
String
address
;
@ApiModelProperty
(
value
=
"纬度"
)
private
Double
lat
;
@ApiModelProperty
(
value
=
"经度"
)
private
Double
lon
;
}
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
浏览文件 @
924222aa
...
...
@@ -21,44 +21,53 @@ import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
public
class
UserApplyTagVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1004953417393220972L
;
private
static
final
long
serialVersionUID
=
-
1004953417393220972L
;
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"加盟标签id"
)
@NotNull
(
message
=
"加盟标签id不能为空"
,
groups
=
{
Insert
.
class
})
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"加盟标签id"
)
@NotNull
(
message
=
"加盟标签id不能为空"
,
groups
=
{
Insert
.
class
})
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"申请人名称"
)
@NotBlank
(
message
=
"申请人名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
applyName
;
@ApiModelProperty
(
value
=
"申请人名称"
)
@NotBlank
(
message
=
"申请人名称不能为空"
,
groups
=
{
Insert
.
class
})
private
String
applyName
;
@ApiModelProperty
(
value
=
"申请人手机号"
)
@NotBlank
(
message
=
"申请人手机号不能为空"
,
groups
=
{
Insert
.
class
})
private
String
applyPhone
;
@ApiModelProperty
(
value
=
"申请人手机号"
)
@NotBlank
(
message
=
"申请人手机号不能为空"
,
groups
=
{
Insert
.
class
})
private
String
applyPhone
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"附件"
)
private
List
<
AttachmentVO
>
attachmentList
;
@ApiModelProperty
(
value
=
"附件"
)
private
List
<
AttachmentVO
>
attachmentList
;
@ApiModelProperty
(
value
=
"申请时间"
)
private
Date
applyTime
;
@ApiModelProperty
(
value
=
"申请时间"
)
private
Date
applyTime
;
@ApiModelProperty
(
value
=
"加盟类型名称"
)
private
String
cooperationTagName
;
@ApiModelProperty
(
value
=
"加盟类型名称"
)
private
String
cooperationTagName
;
@ApiModelProperty
(
value
=
"审批状态 0:申请中 1:通过 2:驳回"
)
private
Integer
approvalStatus
;
@ApiModelProperty
(
value
=
"认证企业名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"审批状态 0:申请中 1:通过 2:驳回"
)
private
Integer
approvalStatus
;
@ApiModelProperty
(
value
=
"服务资质内容"
)
private
String
content
;
@ApiModelProperty
(
value
=
"服务评价⭐⭐⭐⭐⭐"
)
private
Integer
score
;
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
924222aa
...
...
@@ -4,15 +4,9 @@ import com.mmc.iuav.group.Insert;
import
com.mmc.iuav.group.Update
;
import
com.mmc.iuav.response.ResultBody
;
import
com.mmc.iuav.user.model.qo.ApplyQO
;
import
com.mmc.iuav.user.model.vo.CooperationTagVO
;
import
com.mmc.iuav.user.model.vo.UserApplyTagDetailsVO
;
import
com.mmc.iuav.user.model.vo.UserApplyTagVO
;
import
com.mmc.iuav.user.model.vo.UserCooperationTagVO
;
import
com.mmc.iuav.user.model.vo.*
;
import
com.mmc.iuav.user.service.CooperationService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
io.swagger.annotations.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -27,76 +21,102 @@ import java.util.List;
@RequestMapping
(
"/cooperation/"
)
@RestController
public
class
CooperationController
extends
BaseController
{
@Autowired
private
CooperationService
cooperationService
;
@Autowired
private
CooperationService
cooperationService
;
@ApiOperation
(
value
=
"加盟标签列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"listTag"
)
public
ResultBody
listTag
()
{
return
ResultBody
.
success
(
cooperationService
.
listTag
());
}
@ApiOperation
(
value
=
"加盟标签列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"listTag"
)
public
ResultBody
listTag
()
{
return
ResultBody
.
success
(
cooperationService
.
listTag
());
}
@ApiOperation
(
value
=
"根据id获取标签信息"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"getTagById"
)
public
ResultBody
getTagById
(
@RequestParam
(
"id"
)
Integer
id
)
{
return
cooperationService
.
getTagById
(
id
);
}
@ApiOperation
(
value
=
"根据id获取标签信息"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"getTagById"
)
public
ResultBody
getTagById
(
@RequestParam
(
"id"
)
Integer
id
)
{
return
cooperationService
.
getTagById
(
id
);
}
@ApiOperation
(
value
=
"申请加盟"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"apply"
)
public
ResultBody
apply
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
UserApplyTagVO
userApplyTagVO
,
HttpServletRequest
request
)
{
Integer
userAccountId
=
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
();
userApplyTagVO
.
setUserAccountId
(
userAccountId
);
return
cooperationService
.
apply
(
userApplyTagVO
);
}
@ApiOperation
(
value
=
"申请加盟"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"apply"
)
public
ResultBody
apply
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
UserApplyTagVO
userApplyTagVO
,
HttpServletRequest
request
)
{
Integer
userAccountId
=
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
();
userApplyTagVO
.
setUserAccountId
(
userAccountId
);
return
cooperationService
.
apply
(
userApplyTagVO
);
}
@ApiOperation
(
value
=
"后台-申请列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@PostMapping
(
"listUserApplyTag"
)
public
ResultBody
<
UserApplyTagVO
>
listUserApplyTag
(
@RequestBody
ApplyQO
applyQO
)
{
return
ResultBody
.
success
(
cooperationService
.
listUserApplyTag
(
applyQO
));
}
@ApiOperation
(
value
=
"后台-申请列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagVO
.
class
)})
@PostMapping
(
"listUserApplyTag"
)
public
ResultBody
<
UserApplyTagVO
>
listUserApplyTag
(
@RequestBody
ApplyQO
applyQO
)
{
return
ResultBody
.
success
(
cooperationService
.
listUserApplyTag
(
applyQO
));
}
@ApiOperation
(
value
=
"强制删除
"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"delete
ApplyTag"
)
public
ResultBody
deleteApplyTag
(
Integer
id
)
{
return
ResultBody
.
success
(
cooperationService
.
deleteApplyTag
(
id
)
);
}
@ApiOperation
(
value
=
"后台-编辑服务商信息
"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"editUser
ApplyTag"
)
public
ResultBody
editUserApplyTag
(
@RequestBody
ApplyTagEditVO
applyTagEditVO
)
{
return
cooperationService
.
editUserApplyTag
(
applyTagEditVO
);
}
@ApiOperation
(
value
=
"审批详情"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagDetailsVO
.
class
)})
@GetMapping
(
"applyTagDetails"
)
public
ResultBody
applyTagDetails
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"userAccountId"
)
Integer
userAccountId
)
{
return
cooperationService
.
applyTagDetails
(
id
,
userAccountId
);
}
@ApiOperation
(
value
=
"后台-编辑详情信息"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ApplyTagEditVO
.
class
)})
@GetMapping
(
"editUserApplyTagDetails"
)
public
ResultBody
editUserApplyTagDetails
(
@RequestParam
Integer
id
)
{
return
cooperationService
.
editUserApplyTagDetails
(
id
);
}
@ApiOperation
(
value
=
"审批"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"approvalApplyTag"
)
public
ResultBody
approvalApplyTag
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"status"
)
Boolean
status
)
{
return
cooperationService
.
approvalApplyTag
(
id
,
status
);
}
@ApiOperation
(
value
=
"服务商网点数据"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"/service/bitmap"
)
public
ResultBody
listServiceBitmapData
(
@ApiParam
(
value
=
"类型 注:按照渠道标签的id传入即可"
)
@RequestParam
Integer
type
,
@RequestParam
Integer
pageNo
,
@RequestParam
Integer
pageSize
,
@RequestParam
Double
lon
,
@RequestParam
Double
lat
)
{
return
ResultBody
.
success
(
cooperationService
.
listServiceBitmapData
(
type
,
pageNo
,
pageSize
,
lon
,
lat
));
}
@ApiOperation
(
value
=
"后台设置小程序用户标签"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"changeUserTag"
)
public
ResultBody
changeUserTag
(
@Validated
(
Update
.
class
)
@RequestBody
UserCooperationTagVO
userCooperationTagVO
)
{
return
cooperationService
.
changeUserTag
(
userCooperationTagVO
);
}
@ApiOperation
(
value
=
"强制删除"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"deleteApplyTag"
)
public
ResultBody
deleteApplyTag
(
Integer
id
)
{
return
ResultBody
.
success
(
cooperationService
.
deleteApplyTag
(
id
));
}
@ApiOperation
(
value
=
"获取合作渠道标签"
,
hidden
=
true
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"feignListCooperationTag"
)
public
List
<
CooperationTagVO
>
feignListCooperationTag
()
{
return
cooperationService
.
listTag
();
}
@ApiOperation
(
value
=
"审批详情"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
UserApplyTagDetailsVO
.
class
)})
@GetMapping
(
"applyTagDetails"
)
public
ResultBody
applyTagDetails
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"userAccountId"
)
Integer
userAccountId
)
{
return
cooperationService
.
applyTagDetails
(
id
,
userAccountId
);
}
@ApiOperation
(
value
=
"审批"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"approvalApplyTag"
)
public
ResultBody
approvalApplyTag
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"status"
)
Boolean
status
)
{
return
cooperationService
.
approvalApplyTag
(
id
,
status
);
}
@ApiOperation
(
value
=
"后台设置小程序用户标签"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"changeUserTag"
)
public
ResultBody
changeUserTag
(
@Validated
(
Update
.
class
)
@RequestBody
UserCooperationTagVO
userCooperationTagVO
)
{
return
cooperationService
.
changeUserTag
(
userCooperationTagVO
);
}
@ApiOperation
(
value
=
"获取合作渠道标签"
,
hidden
=
true
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)})
@GetMapping
(
"feignListCooperationTag"
)
public
List
<
CooperationTagVO
>
feignListCooperationTag
()
{
return
cooperationService
.
listTag
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
浏览文件 @
924222aa
package
com
.
mmc
.
iuav
.
user
.
dao
;
import
com.mmc.iuav.user.entity.CooperationTagDO
;
import
com.mmc.iuav.user.entity.TagApplyResourceDO
;
import
com.mmc.iuav.user.entity.UserApplyTagDO
;
import
com.mmc.iuav.user.entity.UserTagDO
;
import
com.mmc.iuav.user.entity.*
;
import
com.mmc.iuav.user.model.qo.ApplyQO
;
import
com.mmc.iuav.user.model.vo.ApplyTagEditVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -16,91 +14,94 @@ import java.util.Set;
*/
@Mapper
public
interface
CooperationDao
{
/**
* 加盟标签列表
*
* @return
*/
List
<
CooperationTagDO
>
listTags
();
/**
* 加盟申请
*
* @param userApplyTagDO
*/
void
addApply
(
UserApplyTagDO
userApplyTagDO
);
/**
* 根据id获取合作申请
*
* @param id
* @return
*/
UserApplyTagDO
getUserApplyTag
(
Integer
id
);
/**
* 修改用户申请
*
* @param userApplyTagDO
*/
void
updateUserApplyTag
(
UserApplyTagDO
userApplyTagDO
);
/**
* 加盟标签列表
*
* @return
*/
List
<
CooperationTagDO
>
listTags
();
/**
* 加盟申请
*
* @param userApplyTagDO
*/
void
addApply
(
UserApplyTagDO
userApplyTagDO
);
/**
* 根据id获取合作申请
*
* @param id
* @return
*/
UserApplyTagDO
getUserApplyTag
(
Integer
id
);
/**
* 修改用户申请
*
* @param userApplyTagDO
*/
void
updateUserApplyTag
(
UserApplyTagDO
userApplyTagDO
);
/**
* 根据用户id查询合作标签信息
*
* @param userAccountId
* @return
*/
List
<
CooperationTagDO
>
listUserCooperationTag
(
Integer
userAccountId
);
/**
* 用户设置渠道等级
*
* @param userTagDO
*/
void
insertUserTag
(
UserTagDO
userTagDO
);
/**
* 用户设置渠道等级
*
* @param userTagDO
*/
void
insertUserTag
(
UserTagDO
userTagDO
);
/**
* 修改用户渠道等级
*
* @param userTagDO
*/
void
updateUserTag
(
UserTagDO
userTagDO
);
/**
* 修改用户渠道等级
*
* @param userTagDO
*/
void
updateUserTag
(
UserTagDO
userTagDO
);
/**
* 根据id查询标签信息
*
* @param id
* @return
*/
CooperationTagDO
getTagById
(
Integer
id
);
/**
* 根据id查询标签信息
*
* @param id
* @return
*/
CooperationTagDO
getTagById
(
Integer
id
);
/**
* 添加加盟入驻的附件资源
*
* @param tagApplyResourceDO 标签应用资源做
*/
void
addApplyResource
(
TagApplyResourceDO
tagApplyResourceDO
);
/**
* 添加加盟入驻的附件资源
*
* @param tagApplyResourceDO 标签应用资源做
*/
void
addApplyResource
(
TagApplyResourceDO
tagApplyResourceDO
);
int
countListUserApplyTag
(
ApplyQO
applyQO
);
int
countListUserApplyTag
(
ApplyQO
applyQO
);
List
<
UserApplyTagDO
>
listUserApplyTag
(
ApplyQO
applyQO
);
List
<
UserApplyTagDO
>
listUserApplyTag
(
ApplyQO
applyQO
);
void
deleteApplyTag
(
Integer
id
);
void
deleteApplyTag
(
Integer
id
);
List
<
TagApplyResourceDO
>
getUserApplyResource
(
Integer
id
);
List
<
TagApplyResourceDO
>
getUserApplyResource
(
Integer
id
);
void
updateApplyTagStatus
(
Integer
id
,
int
i
);
void
updateApplyTagStatus
(
Integer
id
,
int
i
);
int
userTagInfo
(
Integer
cooperationTagId
,
Integer
userAccountId
);
int
userTagInfo
(
Integer
cooperationTagId
,
Integer
userAccountId
);
/**
* 删除用户原来的标签
*
* @param userAccountId
*/
void
removeUserTag
(
Integer
userAccountId
);
/**
* 添加用户合作加盟标签
*
* @param userAccountId
* @param cooperationTagIds
*/
...
...
@@ -108,8 +109,15 @@ public interface CooperationDao {
/**
* 根据用户id查询用户拥有的合作标签
*
* @param uIds
* @return
*/
List
<
CooperationTagDO
>
listUserCooperationTagByUIds
(
@Param
(
"uIds"
)
List
<
Integer
>
uIds
);
void
addWebsiteInfo
(
ApplyTagEditVO
applyTagEditVO
);
int
countServiceBitmapData
(
Integer
type
);
List
<
WebsiteInfoDO
>
listServiceBitmapData
(
Integer
type
,
Double
lon
,
Double
lat
,
int
pageNo
,
Integer
pageSize
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/UserApplyTagDO.java
浏览文件 @
924222aa
package
com
.
mmc
.
iuav
.
user
.
entity
;
import
com.mmc.iuav.user.model.vo.ApplyTagEditVO
;
import
com.mmc.iuav.user.model.vo.UserApplyTagVO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
@@ -15,38 +16,61 @@ import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
public
class
UserApplyTagDO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
7581203992821286124L
;
private
Integer
id
;
private
Integer
cooperationTagId
;
private
Integer
userAccountId
;
private
String
applyName
;
private
String
applyPhone
;
private
String
remark
;
private
Date
createTime
;
private
Integer
applyStatus
;
private
static
final
long
serialVersionUID
=
-
7581203992821286124L
;
private
Integer
id
;
private
Integer
cooperationTagId
;
private
Integer
userAccountId
;
private
String
applyName
;
private
String
applyPhone
;
private
String
remark
;
private
Date
createTime
;
private
Integer
applyStatus
;
private
String
content
;
private
Integer
score
;
/** 辅助字段start */
private
String
tagName
;
/** 辅助字段end */
public
UserApplyTagVO
buildUserApplyTagVO
()
{
return
UserApplyTagVO
.
builder
()
.
id
(
id
)
.
cooperationTagId
(
cooperationTagId
)
.
userAccountId
(
this
.
userAccountId
)
.
applyName
(
this
.
applyName
)
.
applyPhone
(
this
.
applyPhone
)
.
remark
(
this
.
remark
)
.
applyTime
(
createTime
)
.
approvalStatus
(
applyStatus
)
.
cooperationTagName
(
tagName
)
.
build
();
}
/**
* 辅助字段start
*/
private
String
tagName
;
private
String
companyName
;
private
String
address
;
private
String
name
;
private
Double
lat
;
private
Double
lon
;
public
UserApplyTagDO
(
UserApplyTagVO
userApplyTagVO
)
{
this
.
cooperationTagId
=
userApplyTagVO
.
getCooperationTagId
();
this
.
userAccountId
=
userApplyTagVO
.
getUserAccountId
();
this
.
applyName
=
userApplyTagVO
.
getApplyName
();
this
.
applyPhone
=
userApplyTagVO
.
getApplyPhone
();
this
.
remark
=
userApplyTagVO
.
getRemark
();
}
/**
* 辅助字段end
*/
public
UserApplyTagVO
buildUserApplyTagVO
()
{
return
UserApplyTagVO
.
builder
()
.
id
(
id
)
.
cooperationTagId
(
cooperationTagId
)
.
userAccountId
(
this
.
userAccountId
)
.
applyName
(
this
.
applyName
)
.
applyPhone
(
this
.
applyPhone
)
.
remark
(
this
.
remark
)
.
applyTime
(
createTime
)
.
approvalStatus
(
applyStatus
)
.
cooperationTagName
(
tagName
)
.
companyName
(
companyName
)
.
content
(
content
)
.
score
(
score
)
.
build
();
}
public
UserApplyTagDO
(
UserApplyTagVO
userApplyTagVO
)
{
this
.
cooperationTagId
=
userApplyTagVO
.
getCooperationTagId
();
this
.
userAccountId
=
userApplyTagVO
.
getUserAccountId
();
this
.
applyName
=
userApplyTagVO
.
getApplyName
();
this
.
applyPhone
=
userApplyTagVO
.
getApplyPhone
();
this
.
remark
=
userApplyTagVO
.
getRemark
();
}
public
ApplyTagEditVO
buildApplyTagEditVO
()
{
return
ApplyTagEditVO
.
builder
().
id
(
id
)
.
cooperationTagId
(
cooperationTagId
).
name
(
name
)
.
address
(
address
).
lat
(
lat
).
lon
(
lon
)
.
content
(
content
).
score
(
score
)
.
build
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/WebsiteInfoDO.java
0 → 100644
浏览文件 @
924222aa
package
com
.
mmc
.
iuav
.
user
.
entity
;
import
com.mmc.iuav.user.model.dto.WebsiteRangeDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @Author LW
* @date 2022/4/21 20:09 概要:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
WebsiteInfoDO
implements
Serializable
{
private
Integer
id
;
private
String
name
;
private
String
address
;
private
Double
lat
;
private
Double
lon
;
private
Double
distance
;
private
Integer
type
;
private
Integer
userApplyTag
;
public
WebsiteRangeDTO
buildWebsiteRangeDTO
()
{
this
.
distance
=
this
.
distance
==
null
?
0
:
(
BigDecimal
.
valueOf
(
this
.
distance
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_DOWN
)).
doubleValue
();
return
WebsiteRangeDTO
.
builder
()
.
name
(
name
)
.
address
(
address
)
.
lon
(
this
.
lon
)
.
lat
(
this
.
lat
)
.
distance
(
this
.
distance
/
1000
)
.
build
();
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/CooperationService.java
浏览文件 @
924222aa
...
...
@@ -3,52 +3,59 @@ package com.mmc.iuav.user.service;
import
com.mmc.iuav.page.PageResult
;
import
com.mmc.iuav.response.ResultBody
;
import
com.mmc.iuav.user.model.qo.ApplyQO
;
import
com.mmc.iuav.user.model.vo.ApplyTagEditVO
;
import
com.mmc.iuav.user.model.vo.CooperationTagVO
;
import
com.mmc.iuav.user.model.vo.UserApplyTagVO
;
import
com.mmc.iuav.user.model.vo.UserCooperationTagVO
;
import
java.util.List
;
import
java.util.Set
;
/**
* @author: zj @Date: 2023/5/17 21:19
*/
public
interface
CooperationService
{
/**
* 加盟标签列表
*
* @return
*/
List
<
CooperationTagVO
>
listTag
();
/**
* 用户申请加盟
*
* @param cooperationTagVO
* @return
*/
ResultBody
apply
(
UserApplyTagVO
cooperationTagVO
);
/**
* 加盟标签列表
*
* @return
*/
List
<
CooperationTagVO
>
listTag
();
/**
* 用户申请加盟
*
* @param cooperationTagVO
* @return
*/
ResultBody
apply
(
UserApplyTagVO
cooperationTagVO
);
/**
* 后台用户设置小程序用户等级标签
*
* @param userCooperationTagVO
* @return
*/
ResultBody
changeUserTag
(
UserCooperationTagVO
userCooperationTagVO
);
/**
* 根据ID查询标签信息
*
* @param id
* @return
*/
ResultBody
getTagById
(
Integer
id
);
/**
* 根据ID查询标签信息
*
* @param id
* @return
*/
ResultBody
getTagById
(
Integer
id
);
PageResult
listUserApplyTag
(
ApplyQO
applyQO
);
ResultBody
deleteApplyTag
(
Integer
id
);
ResultBody
applyTagDetails
(
Integer
id
,
Integer
userAccountId
);
PageResult
listUserApplyTag
(
ApplyQO
applyQO
);
ResultBody
approvalApplyTag
(
Integer
id
,
Boolean
status
);
ResultBody
deleteApplyTag
(
Integer
id
);
ResultBody
editUserApplyTag
(
ApplyTagEditVO
applyTagEditVO
);
ResultBody
applyTagDetails
(
Integer
id
,
Integer
userAccountI
d
);
ResultBody
editUserApplyTagDetails
(
Integer
i
d
);
ResultBody
approvalApplyTag
(
Integer
id
,
Boolean
status
);
PageResult
listServiceBitmapData
(
Integer
type
,
Integer
pageNo
,
Integer
pageSize
,
Double
lon
,
Double
lat
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
924222aa
差异被折叠。
点击展开。
csm-service/cms-service-user/src/main/resources/banner.txt
0 → 100644
浏览文件 @
924222aa
.".".".
(` `) _.-=-.
'._.--.-; .-` -' '.
.-'`.o ) \ / .-_.--' `\
`;---) \ ; / / ;' _-_.-' `
`;"` ; \ ; . .' _-' \
( ) | | / .-.-' -`
'-.-' \ | .' ` '.-'-\`
/_./\_.|\_\ ; ' .'-'.-.
/ '-._ \` / _;-,
| .-=-.;-._ \ -'-,
\ / `";`-`,-"`)
\ \ '-- `\.\
'. '._ '-- '--'/
`-._ `'----'`;
`"""--.____,/
\\ \
// /`
___// /__
(`(`(---"-`)
csm-service/cms-service-user/src/main/resources/mapper/CooperationDao.xml
浏览文件 @
924222aa
...
...
@@ -29,6 +29,10 @@
(#{userAccountId}, #{d}, NOW())
</foreach>
</insert>
<insert
id=
"addWebsiteInfo"
>
insert into website_info (`name`, address, lat, lon, `type`, user_apply_tag)
values (#{name}, #{address}, #{lat}, #{lon}, #{cooperationTagId}, #{id})
</insert>
<update
id=
"updateUserApplyTag"
parameterType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
UPDATE user_apply_tag
...
...
@@ -51,6 +55,12 @@
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"content != null and content != ''"
>
content = #{content},
</if>
<if
test=
"score != null"
>
score = #{score}
</if>
</set>
WHERE id = #{id};
</update>
...
...
@@ -62,7 +72,10 @@
</update>
<update
id=
"removeUserTag"
>
update user_tag set is_deleted = 1 where user_account_id = #{userAccountId} and is_deleted = 0
update user_tag
set is_deleted = 1
where user_account_id = #{userAccountId}
and is_deleted = 0
</update>
<update
id=
"updateApplyTagStatus"
>
...
...
@@ -84,22 +97,33 @@
</select>
<select
id=
"getUserApplyTag"
resultType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
select id,
cooperation_tag_id,
user_account_id,
apply_name,
apply_phone,
apply_status,
remark,
create_time
from user_apply_tag
where id = #{id}
and is_deleted = 0
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
WHERE ua.id = #{id}
AND ua.is_deleted = 0
</select>
<select
id=
"listUserCooperationTag"
resultType=
"com.mmc.iuav.user.entity.CooperationTagDO"
>
select ct.id,ct.tag_name from cooperation_tag ct LEFT JOIN user_tag ut ON ct.id = ut.cooperation_tag_id
where ct.is_deleted = 0 and ut.is_deleted = 0 and ut.user_account_id = #{userAccountId}
select ct.id, ct.tag_name
from cooperation_tag ct
LEFT JOIN user_tag ut ON ct.id = ut.cooperation_tag_id
where ct.is_deleted = 0
and ut.is_deleted = 0
and ut.user_account_id = #{userAccountId}
</select>
<select
id=
"getTagById"
resultType=
"com.mmc.iuav.user.entity.CooperationTagDO"
>
...
...
@@ -110,20 +134,25 @@
</select>
<select
id=
"countListUserApplyTag"
resultType=
"java.lang.Integer"
>
select count(*)
from user_apply_tag
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
<where>
is_deleted = 0
ua.
is_deleted = 0
<if
test=
"cooperationTagId != null"
>
and cooperation_tag_id = #{cooperationTagId}
and
ua.
cooperation_tag_id = #{cooperationTagId}
</if>
<if
test=
"applyStatus != null"
>
and apply_status = #{applyStatus}
and
ua.
apply_status = #{applyStatus}
</if>
<if
test=
"startTime != null and startTime != '' "
>
and create_time
>
= STR_TO_DATE(#{startTime},'%Y-%m-%d %H:%i:%s')
and
ua.
create_time
>
= STR_TO_DATE(#{startTime},'%Y-%m-%d %H:%i:%s')
</if>
<if
test=
"endTime != null and endTime != '' "
>
and create_time
<
= STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s')
and ua.create_time
<
= STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s')
</if>
<if
test=
"companyName != null and companyName != ''"
>
and ca.company_name like CONCAT("%",#{companyName},"%")
</if>
</where>
</select>
...
...
@@ -137,10 +166,14 @@
ua.apply_status,
ua.remark,
ua.create_time,
ct.tag_name
ua.content,
ua.score,
ct.tag_name,
ca.company_name
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
<where>
ua.is_deleted = 0
<if
test=
"cooperationTagId != null"
>
...
...
@@ -155,6 +188,9 @@
<if
test=
"endTime != null"
>
and ua.create_time
<
= #{endTime}
</if>
<if
test=
"companyName != null and companyName != ''"
>
and ca.company_name like CONCAT("%",#{companyName},"%")
</if>
</where>
order by ua.create_time desc
limit #{pageNo},#{pageSize}
...
...
@@ -175,7 +211,8 @@
</select>
<select
id=
"listUserCooperationTagByUIds"
resultType=
"com.mmc.iuav.user.entity.CooperationTagDO"
>
select ct.id,ct.tag_name,ut.user_account_id from cooperation_tag ct LEFT JOIN user_tag ut ON ct.id = ut.cooperation_tag_id
select ct.id,ct.tag_name,ut.user_account_id from cooperation_tag ct LEFT JOIN user_tag ut ON ct.id =
ut.cooperation_tag_id
where ct.is_deleted = 0 and ut.is_deleted = 0
<if
test=
"uIds != null"
>
<foreach
collection=
"uIds"
item=
"userAccountId"
separator=
","
open=
" and ut.user_account_id in ("
close=
")"
>
...
...
@@ -183,4 +220,23 @@
</foreach>
</if>
</select>
<select
id=
"countServiceBitmapData"
resultType=
"java.lang.Integer"
>
select count(*)
from website_info
where type = #{type}
</select>
<select
id=
"listServiceBitmapData"
resultType=
"com.mmc.iuav.user.entity.WebsiteInfoDO"
>
SELECT id,
`name`,
address,
lat,
lon,
`type`,
user_apply_tag,
st_distance_sphere(point(lon, lat), point(${lon}, ${lat})) as distance
FROM website_info
where type = #{type}
ORDER BY distance ASC
LIMIT #{pageNo}, #{pageSize}
</select>
</mapper>
\ No newline at end of file
csm-service/cms-service-user/src/main/resources/not-check.yml
浏览文件 @
924222aa
...
...
@@ -20,3 +20,4 @@ data-filter:
-
/userapp/back-user/listTest
-
/userapp/company/listCompanyPageBack
-
/userapp/company/getCompanyInfoById
-
/userapp/cooperation/service/bitmap/listServiceBitmapData
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论