融合服务:新增申请量统计功能

This commit is contained in:
lizhicheng 2022-09-07 15:42:00 +08:00
parent 2a453b02d8
commit 866bbd1faf
5 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,3 @@
ALTER TABLE `tb_fuse`
ADD COLUMN `visits` bigint COMMENT '访问量',
ADD COLUMN `apply_count` bigint COMMENT '申请量';

View File

@ -27,6 +27,10 @@ public class TbFuseDTO {
private String type;
@ApiModelProperty(value = "应用领域")
private String applicationArea;
@ApiModelProperty(value = "浏览量")
private Long visits;
@ApiModelProperty(value = "申请量")
private Long applyCount;
@ApiModelProperty(value = "所属部门")
private Long deptId;
@ApiModelProperty(value = "创建人")

View File

@ -38,6 +38,14 @@ public class TbFuseEntity extends BaseEntity {
* 应用领域
*/
private String applicationArea;
/**
* 浏览量
*/
private Long visits;
/**
* 申请量
*/
private Long applyCount;
/**
* 所属部门
*/

View File

@ -254,6 +254,8 @@ public class TbFuseServiceImpl extends CrudServiceImpl<TbFuseDao, TbFuseEntity,
public Integer addFuse(TbFuseDTO dto) {
TbFuseEntity fuseEntity = new TbFuseEntity();
BeanUtils.copyProperties(dto, fuseEntity);
fuseEntity.setVisits(0L);
fuseEntity.setApplyCount(0L);
int result = fuseDao.insert(fuseEntity);
dto.getFuseResourceList().forEach(fuseResourceDTO -> {
fuseResourceDTO.setId(IdWorker.getId(fuseResourceDTO));

View File

@ -0,0 +1,3 @@
ALTER TABLE `tb_fuse`
ADD COLUMN `visits` bigint COMMENT '访问量',
ADD COLUMN `apply_count` bigint COMMENT '申请量';