Sfoglia il codice sorgente

接收推送的项目只查自己用户的

tags/24080901
PoffyZhang 1 anno fa
parent
commit
17ff06395d
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java Vedi File

@@ -19,6 +19,8 @@ import com.ningdatech.pmapi.gov.model.vo.*;
import com.ningdatech.pmapi.gov.service.*;
import com.ningdatech.pmapi.projectdeclared.utils.GenerateProjectCodeUtil;
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq;
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails;
import com.ningdatech.pmapi.user.util.LoginUserUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
@@ -87,10 +89,13 @@ public class GovProjectCollectionManage {
* @return
*/
public PageVo<GovBizProjectListVO> list(ProjectListReq req) {
UserInfoDetails user = LoginUserUtil.loginUserDetail();

Page<GovBizProjectBaseinfo> page = req.page();
LambdaQueryWrapper<GovBizProjectBaseinfo> wrapper = Wrappers.lambdaQuery(GovBizProjectBaseinfo.class)
.like(StringUtils.isNotBlank(req.getProjectName()),GovBizProjectBaseinfo::getBaseProjName,req.getProjectName())
.like(StringUtils.isNotBlank(req.getBuildOrg()),GovBizProjectBaseinfo::getBaseBuildDeprt,req.getBuildOrg())
.eq(GovBizProjectBaseinfo::getBaseBuildDeprtDing,user.getEmpPosUnitCode())
.orderByDesc(GovBizProjectBaseinfo::getBizTime);
baseinfoService.page(page,wrapper);



Loading…
Annulla
Salva