Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
85fe7891
Commit
85fe7891
authored
Nov 16, 2020
by
wuwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加评论标签
parent
ec506e95
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
269 additions
and
2 deletions
+269
-2
bootstrap.yml
ace-gate/src/main/resources/bootstrap.yml
+1
-1
AppraiseLabeInfoDTO.java
...ithub/wxiaoqi/security/admin/dto/AppraiseLabeInfoDTO.java
+21
-0
AppraiseLabelInfo.java
...thub/wxiaoqi/security/admin/entity/AppraiseLabelInfo.java
+94
-0
AppraiseLabelInfoBiz.java
...thub/wxiaoqi/security/admin/biz/AppraiseLabelInfoBiz.java
+52
-0
AppraiseLabelInfoMapper.java
...xiaoqi/security/admin/mapper/AppraiseLabelInfoMapper.java
+21
-0
AppraiseLabelInfoController.java
...aoqi/security/admin/rest/AppraiseLabelInfoController.java
+14
-0
AdminAppraiseLabelInfoController.java
...ty/admin/rest/admin/AdminAppraiseLabelInfoController.java
+29
-0
AppraiseLabelInfoMapper.xml
...min/src/main/resources/mapper/AppraiseLabelInfoMapper.xml
+36
-0
AccessTokenService.java
.../com/xxfc/platform/summit/service/AccessTokenService.java
+1
-1
No files found.
ace-gate/src/main/resources/bootstrap.yml
View file @
85fe7891
...
@@ -16,7 +16,7 @@ spring:
...
@@ -16,7 +16,7 @@ spring:
cloud
:
cloud
:
nacos
:
nacos
:
config
:
config
:
server-addr
:
127.0.0.1:884
8
server-addr
:
127.0.0.1:884
9
#共用配置,暂定一个
#共用配置,暂定一个
shared-dataids
:
common-dev.yaml,mongodb-log-dev.yaml
shared-dataids
:
common-dev.yaml,mongodb-log-dev.yaml
namespace
:
chw_spcloud
namespace
:
chw_spcloud
...
...
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/AppraiseLabeInfoDTO.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
dto
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
lombok.Data
;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/8/23 16:27
*/
@Data
public
class
AppraiseLabeInfoDTO
extends
PageParam
{
private
String
name
;
private
Integer
type
;
private
Integer
enable
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/AppraiseLabelInfo.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 评价标签
*
* @author wuweizhi
* @email 18178966185@163.com
* @date 2020-11-16 14:07:35
*/
@Data
@Table
(
name
=
"appraise_label_info"
)
public
class
AppraiseLabelInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
@ApiModelProperty
(
""
)
private
Integer
id
;
/**
* 标签名称
*/
@Column
(
name
=
"name"
)
@ApiModelProperty
(
value
=
"标签名称"
)
private
String
name
;
/**
* 分值
*/
@Column
(
name
=
"point"
)
@ApiModelProperty
(
value
=
"分值"
)
private
Integer
point
;
/**
* 1-全部,2-房车,3-机车,4-游艇,5豪车
*/
@Column
(
name
=
"type"
)
@ApiModelProperty
(
value
=
"1-全部,2-房车,3-机车,4-游艇,5豪车"
)
private
Integer
type
;
/**
* 是否启用:0、否,1、是
*/
@Column
(
name
=
"enable"
)
@ApiModelProperty
(
value
=
"是否启用:0、否,1、是"
)
private
Integer
enable
;
/**
* 是否删除:0、否,1、是
*/
@Column
(
name
=
"is_del"
)
@ApiModelProperty
(
value
=
"是否删除:0、否,1、是"
)
private
Integer
isDel
;
/**
*
*/
@Column
(
name
=
"crt_time"
)
@ApiModelProperty
(
value
=
""
,
hidden
=
true
)
private
Long
crtTime
;
/**
*
*/
@Column
(
name
=
"upd_time"
)
@ApiModelProperty
(
value
=
""
,
hidden
=
true
)
private
Long
updTime
;
/**
* 规则:[{"star":1,"point":20,"level":"一般"}]
*/
@Column
(
name
=
"rules"
)
@ApiModelProperty
(
value
=
"规则:[{\"star\":1,\"point\":20,\"level\":\"一般\"}]"
)
private
String
rules
;
/**
* 排序
*/
@Column
(
name
=
"sort"
)
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
sort
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppraiseLabelInfoBiz.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
biz
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.admin.dto.AppraiseLabeInfoDTO
;
import
com.github.wxiaoqi.security.admin.dto.CompanyApplyFindDTO
;
import
com.github.wxiaoqi.security.admin.entity.CompanyInfo
;
import
com.github.wxiaoqi.security.admin.vo.CompanyApplyVo
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo
;
import
com.github.wxiaoqi.security.admin.mapper.AppraiseLabelInfoMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
* 评价标签
*
* @author wuweizhi
* @email 18178966185@163.com
* @date 2020-11-16 14:07:35
*/
@Service
@Slf4j
@Transactional
public
class
AppraiseLabelInfoBiz
extends
BaseBiz
<
AppraiseLabelInfoMapper
,
AppraiseLabelInfo
>
{
public
List
<
AppraiseLabelInfo
>
getList
(
AppraiseLabeInfoDTO
appraiseLabeInfoDTO
){
return
mapper
.
selectList
(
appraiseLabeInfoDTO
);
}
public
ObjectRestResponse
selectList
(
AppraiseLabeInfoDTO
appraiseLabeInfoDTO
){
PageHelper
.
startPage
(
appraiseLabeInfoDTO
.
getPage
(),
appraiseLabeInfoDTO
.
getLimit
());
PageInfo
<
AppraiseLabelInfo
>
pageInfo
=
new
PageInfo
<>(
getList
(
appraiseLabeInfoDTO
));
return
ObjectRestResponse
.
succ
(
PageDataVO
.
pageInfo
(
pageInfo
));
}
public
void
saveOrUpd
(
AppraiseLabelInfo
appraiseLabelInfo
){
Long
id
=
appraiseLabelInfo
.
getId
()
==
null
?
0L
:
appraiseLabelInfo
.
getId
();
if
(
id
>
0L
){
updateSelectiveById
(
appraiseLabelInfo
);
}
else
{
insertSelective
(
appraiseLabelInfo
);
}
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/AppraiseLabelInfoMapper.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
mapper
;
import
com.github.wxiaoqi.security.admin.dto.AppraiseLabeInfoDTO
;
import
com.github.wxiaoqi.security.admin.dto.CompanyApplyFindDTO
;
import
com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo
;
import
com.github.wxiaoqi.security.admin.vo.CompanyApplyVo
;
import
tk.mybatis.mapper.common.Mapper
;
import
java.util.List
;
/**
* 评价标签
*
* @author wuweizhi
* @email 18178966185@163.com
* @date 2020-11-16 14:07:35
*/
public
interface
AppraiseLabelInfoMapper
extends
Mapper
<
AppraiseLabelInfo
>
{
List
<
AppraiseLabelInfo
>
selectList
(
AppraiseLabeInfoDTO
appraiseLabeInfoDTO
);
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppraiseLabelInfoController.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
rest
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.admin.biz.AppraiseLabelInfoBiz
;
import
com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"app/appraiseLabelInfo"
)
public
class
AppraiseLabelInfoController
extends
BaseController
<
AppraiseLabelInfoBiz
,
AppraiseLabelInfo
>
{
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/admin/AdminAppraiseLabelInfoController.java
0 → 100644
View file @
85fe7891
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
rest
.
admin
;
import
com.github.wxiaoqi.security.admin.biz.AppraiseLabelInfoBiz
;
import
com.github.wxiaoqi.security.admin.dto.AppraiseLabeInfoDTO
;
import
com.github.wxiaoqi.security.admin.dto.CompanyApplyFindDTO
;
import
com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo
;
import
com.github.wxiaoqi.security.admin.entity.CompanyInfo
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"backstage/appraiseLabelInfo"
)
public
class
AdminAppraiseLabelInfoController
extends
BaseController
<
AppraiseLabelInfoBiz
,
AppraiseLabelInfo
>
{
@GetMapping
(
"tag/selectList"
)
@ApiModelProperty
(
"标签列表"
)
public
ObjectRestResponse
applySelectList
(
AppraiseLabeInfoDTO
appraiseLabeInfoDTO
)
{
return
baseBiz
.
selectList
(
appraiseLabeInfoDTO
);
}
@PostMapping
(
"tag/upd"
)
@ApiModelProperty
(
"修改标签"
)
public
ObjectRestResponse
upd
(
@RequestBody
AppraiseLabelInfo
appraiseLabelInfo
)
{
baseBiz
.
saveOrUpd
(
appraiseLabelInfo
);
return
ObjectRestResponse
.
succ
();
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/resources/mapper/AppraiseLabelInfoMapper.xml
0 → 100644
View file @
85fe7891
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.github.wxiaoqi.security.admin.mapper.AppraiseLabelInfoMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo"
id=
"appraiseLabelInfoMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"point"
column=
"point"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"enable"
column=
"enable"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"crtTime"
column=
"crt_time"
/>
<result
property=
"updTime"
column=
"upd_time"
/>
<result
property=
"rules"
column=
"rules"
/>
<result
property=
"sort"
column=
"sort"
/>
</resultMap>
<select
id=
"selectList"
resultType=
"com.github.wxiaoqi.security.admin.entity.AppraiseLabelInfo"
parameterType=
"com.github.wxiaoqi.security.admin.dto.AppraiseLabeInfoDTO"
>
SELECT
*
FROM appraise_label_info a
where a.is_del = 0
<if
test=
"name != null and name != ''"
>
AND ( a.`name` like concat('%',#{name},'%'))
</if>
<if
test=
"type != null "
>
AND a.`type`= #{type}
</if>
<if
test=
"enable != null"
>
AND a.enable = #{enable}
</if>
order by a.upd_time DESC
</select>
</mapper>
\ No newline at end of file
xx-summit/xx-summit-server/src/main/java/com/xxfc/platform/summit/service/AccessTokenService.java
View file @
85fe7891
...
@@ -54,7 +54,7 @@ public class AccessTokenService {
...
@@ -54,7 +54,7 @@ public class AccessTokenService {
{
{
JSONObject
obj
=
JSONObject
.
parseObject
(
accessTokenRedis
).
getJSONObject
(
wy_appid
);
JSONObject
obj
=
JSONObject
.
parseObject
(
accessTokenRedis
).
getJSONObject
(
wy_appid
);
AccessToken
accessToken
=
new
AccessToken
(
obj
.
getString
(
"json"
),
obj
.
getString
(
"accessToken"
),
obj
.
getInteger
(
"expiresIn"
),
obj
.
getLong
(
"expiredTime"
));
AccessToken
accessToken
=
new
AccessToken
(
obj
.
getString
(
"json"
),
obj
.
getString
(
"accessToken"
),
obj
.
getInteger
(
"expiresIn"
),
obj
.
getLong
(
"expiredTime"
));
if
(
null
!=
accessToken
&&
accessToken
.
isAvailable
()){
if
(
accessToken
.
isAvailable
()){
return
accessToken
;
return
accessToken
;
}
}
summbitRedisTemplate
.
delete
(
wy_appid
);
summbitRedisTemplate
.
delete
(
wy_appid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment