项目-标准评估

This commit is contained in:
caozhen
2023-09-13 15:37:01 +08:00
parent 19f42b4977
commit 15f9f8b820
6 changed files with 261 additions and 41 deletions
@@ -73,4 +73,6 @@ public interface ILawsAssessService extends IService<LawsAssess> {
* @return
*/
LawsAssess queryById(String id);
List<LawsAssess> getAllByProjectId(String projectId);
}
@@ -1,12 +1,16 @@
package com.jero.modules.projectLibrary.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jero.modules.projectLibrary.entity.LawsAssess;
import com.jero.modules.projectLibrary.mapper.LawsAssessMapper;
import com.jero.modules.projectLibrary.service.ILawsAssessService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jero.common.exception.JeroBootException;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -115,4 +119,14 @@ public class LawsAssessServiceImpl extends ServiceImpl<LawsAssessMapper, LawsAss
public LawsAssess queryById(String id) {
return getById(id);
}
@Override
public List<LawsAssess> getAllByProjectId(String projectId) {
if (StringUtils.isBlank(projectId)){
return new ArrayList<>();
}
LambdaQueryWrapper<LawsAssess> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(LawsAssess::getProjectId, projectId);
return list(wrapper);
}
}