查询逻辑更改
All checks were successful
JslGroup/JslDeveloper/JSL_OrganizeInternalOA/pipeline/head This commit looks good

This commit is contained in:
176yunxuan 2024-03-15 18:47:52 +08:00
parent 424fddd2ed
commit 746ddee34a
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ public class ModuleServiceImpl implements ModuleService {
//判断是否是项目负责人 //判断是否是项目负责人
int is = 1; int is = 1;
if(!pid.equals(userId)){ if(!pid.equals(userId)){
log.info("不是负责人");
is = 0; is = 0;
} }

View File

@ -8,7 +8,7 @@
<select id="getByProjectId" resultType="com.jsl.oa.model.doData.ProjectWorkDO"> <select id="getByProjectId" resultType="com.jsl.oa.model.doData.ProjectWorkDO">
select * from organize_oa.oa_project_work where project_id=#{projectId} and type=0 select * from organize_oa.oa_project_work where project_id=#{projectId} and type=0
<if test="is != 1 "> <if test="is != 1 ">
and principal_id=#{userId} and (principal_id=#{userId} or principal_id is null)
</if> </if>
</select> </select>