This commit is contained in:
wangliwen 2022-04-25 19:59:40 +08:00
parent 2ff2137b81
commit 9312095dfa
4 changed files with 26 additions and 20 deletions

View File

@ -68,6 +68,7 @@ public class DemandDataController {
if (tDemandDataDTO.getId() == null) {
return null;
}
logger.info("-------------------1.保存申请表单成功--------------------------");
// 仿照请求接口 /act/running/startOfBusinessKey
ProcessStartDTO processStartDTO = new ProcessStartDTO();

View File

@ -55,7 +55,8 @@ public class ResourceController {
@ApiImplicitParam(name = "type", value = "类型", paramType = "query", required = true, dataType = "String"),
//@ApiImplicitParam(name = "name", value = "资源名称", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType = "String")
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "creator", value = "创建者用户id", paramType = "query", dataType = "String")
})
//@RequiresPermissions("resource:resource:page")
public Result<PageData<ResourceDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params) {

View File

@ -1,10 +1,10 @@
package io.renren.modules.resource.entity;
import com.baomidou.mybatisplus.annotation.*;
import io.renren.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
/**
@ -16,14 +16,14 @@ import java.util.Date;
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("tb_data_resource")
public class ResourceEntity {
public class ResourceEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.INPUT)
private Long id;
// /**
// * 主键
// */
// @TableId(type = IdType.INPUT)
// private Long id;
/**
* 类型基础设施数据资源等
*/
@ -72,16 +72,16 @@ public class ResourceEntity {
* 删除标志0:正常1:已删除9其他
*/
private Integer delFlag;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private Long creator;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
// /**
// * 创建人
// */
// @TableField(fill = FieldFill.INSERT)
// private Long creator;
// /**
// * 创建时间
// */
// @TableField(fill = FieldFill.INSERT)
// private Date createDate;
/**
* 修改人
*/

View File

@ -65,9 +65,13 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
public QueryWrapper<ResourceEntity> getWrapper(Map<String, Object> params) {
QueryWrapper<ResourceEntity> wrapper = new QueryWrapper<>();
wrapper.eq("type", params.get("type").toString())
.eq("del_flag", 0)
//.like(StringUtils.isNotBlank(params.get("name").toString()),"name", params.get("name").toString())
.orderByDesc("create_date");
if (params.containsKey("creator")) { //查该用户创建的资源
wrapper.eq("creator", params.get("creator").toString());
} else { // 公共页只出正常的
wrapper.eq("del_flag", 0);
}
return wrapper;
}