Browse Source

项目 我参与的

zyh
小久哥 3 years ago
parent
commit
14439a203b
  1. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/project/ProjectDO.java
  2. 2
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/project/ProjectDO.java

@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.farm.dal.dataobject.project;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.util.*;
@ -54,10 +55,12 @@ public class ProjectDO extends BaseDO {
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date planStartTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date planEndTime;
/**
*

2
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java

@ -155,7 +155,7 @@ public class ProjectServiceImpl implements ProjectService {
if (ObjectUtil.isNotEmpty(pageDTO.getMyProject()) && pageDTO.getMyProject()){
//查看我参与的项目
queryWrapperX.last(" and JSON_CONTAINS(members, '"+ getLoginUserId()+"')");
queryWrapperX.last(" and JSON_CONTAINS(members, '"+ getLoginUserId()+"') OR creator = "+ getLoginUserId());
}
List<ProjectDO> list = projectMapper.selectList(queryWrapperX);

Loading…
Cancel
Save