查看我的项目, 修改配置
This commit is contained in:
+2
-7
@@ -25,13 +25,8 @@ public class WxCpConfigure {
|
|||||||
public WxCpService wxCpService(){
|
public WxCpService wxCpService(){
|
||||||
|
|
||||||
WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl();
|
WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl();
|
||||||
|
config.setCorpId("wwb9f9734e8e124761");
|
||||||
// config.setCorpId("wwb9f9734e8e124761");
|
config.setCorpSecret("B2bdszjVvby6jfbZf-TQOGeslpOEzLFUYWHldYxtkWA");
|
||||||
// config.setCorpSecret("B2bdszjVvby6jfbZf-TQOGeslpOEzLFUYWHldYxtkWA");
|
|
||||||
|
|
||||||
config.setCorpId("ww17f8d10783494584");
|
|
||||||
config.setCorpSecret("i5t-rh8bXeNCgihcYPrG9ZPpWkivzPJ69sv570osk6I");
|
|
||||||
|
|
||||||
|
|
||||||
WxCpServiceImpl wxCpService = new WxCpServiceImpl();
|
WxCpServiceImpl wxCpService = new WxCpServiceImpl();
|
||||||
wxCpService.setWxCpConfigStorage(config);
|
wxCpService.setWxCpConfigStorage(config);
|
||||||
|
|||||||
+3
@@ -22,4 +22,7 @@ public class ProjectPageDTO extends PageDTO {
|
|||||||
|
|
||||||
@ApiModelProperty("true 草稿 false已发布")
|
@ApiModelProperty("true 草稿 false已发布")
|
||||||
private Boolean draft;
|
private Boolean draft;
|
||||||
|
|
||||||
|
@ApiModelProperty("true查看我参与的项目")
|
||||||
|
private Boolean myProject;
|
||||||
}
|
}
|
||||||
+6
@@ -29,6 +29,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import com.zsw.base.R;
|
import com.zsw.base.R;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -55,6 +56,7 @@ import static cn.iocoder.yudao.module.farm.enums.ErrorCodeConstants.*;
|
|||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Validated
|
@Validated
|
||||||
|
@Slf4j
|
||||||
public class ProjectServiceImpl implements ProjectService {
|
public class ProjectServiceImpl implements ProjectService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
@@ -151,6 +153,10 @@ public class ProjectServiceImpl implements ProjectService {
|
|||||||
queryWrapperX.eqIfPresent(ProjectDO::getCreator, getLoginUserId());
|
queryWrapperX.eqIfPresent(ProjectDO::getCreator, getLoginUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ObjectUtil.isNotEmpty(pageDTO.getMyProject()) && pageDTO.getMyProject()){
|
||||||
|
//查看我参与的项目
|
||||||
|
queryWrapperX.last(" and JSON_CONTAINS(members, '"+ getLoginUserId()+"')");
|
||||||
|
}
|
||||||
|
|
||||||
List<ProjectDO> list = projectMapper.selectList(queryWrapperX);
|
List<ProjectDO> list = projectMapper.selectList(queryWrapperX);
|
||||||
if (ObjectUtil.isEmpty(list)){
|
if (ObjectUtil.isEmpty(list)){
|
||||||
|
|||||||
Reference in New Issue
Block a user