融合服务:新增申请量统计功能
This commit is contained in:
parent
2a453b02d8
commit
866bbd1faf
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE `tb_fuse`
|
||||||
|
ADD COLUMN `visits` bigint COMMENT '访问量',
|
||||||
|
ADD COLUMN `apply_count` bigint COMMENT '申请量';
|
|
@ -27,6 +27,10 @@ public class TbFuseDTO {
|
||||||
private String type;
|
private String type;
|
||||||
@ApiModelProperty(value = "应用领域")
|
@ApiModelProperty(value = "应用领域")
|
||||||
private String applicationArea;
|
private String applicationArea;
|
||||||
|
@ApiModelProperty(value = "浏览量")
|
||||||
|
private Long visits;
|
||||||
|
@ApiModelProperty(value = "申请量")
|
||||||
|
private Long applyCount;
|
||||||
@ApiModelProperty(value = "所属部门")
|
@ApiModelProperty(value = "所属部门")
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
@ApiModelProperty(value = "创建人")
|
@ApiModelProperty(value = "创建人")
|
||||||
|
|
|
@ -38,6 +38,14 @@ public class TbFuseEntity extends BaseEntity {
|
||||||
* 应用领域
|
* 应用领域
|
||||||
*/
|
*/
|
||||||
private String applicationArea;
|
private String applicationArea;
|
||||||
|
/**
|
||||||
|
* 浏览量
|
||||||
|
*/
|
||||||
|
private Long visits;
|
||||||
|
/**
|
||||||
|
* 申请量
|
||||||
|
*/
|
||||||
|
private Long applyCount;
|
||||||
/**
|
/**
|
||||||
* 所属部门
|
* 所属部门
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -254,6 +254,8 @@ public class TbFuseServiceImpl extends CrudServiceImpl<TbFuseDao, TbFuseEntity,
|
||||||
public Integer addFuse(TbFuseDTO dto) {
|
public Integer addFuse(TbFuseDTO dto) {
|
||||||
TbFuseEntity fuseEntity = new TbFuseEntity();
|
TbFuseEntity fuseEntity = new TbFuseEntity();
|
||||||
BeanUtils.copyProperties(dto, fuseEntity);
|
BeanUtils.copyProperties(dto, fuseEntity);
|
||||||
|
fuseEntity.setVisits(0L);
|
||||||
|
fuseEntity.setApplyCount(0L);
|
||||||
int result = fuseDao.insert(fuseEntity);
|
int result = fuseDao.insert(fuseEntity);
|
||||||
dto.getFuseResourceList().forEach(fuseResourceDTO -> {
|
dto.getFuseResourceList().forEach(fuseResourceDTO -> {
|
||||||
fuseResourceDTO.setId(IdWorker.getId(fuseResourceDTO));
|
fuseResourceDTO.setId(IdWorker.getId(fuseResourceDTO));
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE `tb_fuse`
|
||||||
|
ADD COLUMN `visits` bigint COMMENT '访问量',
|
||||||
|
ADD COLUMN `apply_count` bigint COMMENT '申请量';
|
Loading…
Reference in New Issue