
All checks were successful
JslGroup/JslDeveloper/JSL_OrganizeInternalOA/pipeline/head This commit looks good
21 lines
781 B
XML
21 lines
781 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.jsl.oa.mapper.ModuleMapper">
|
|
|
|
<select id="getByProjectId" resultType="com.jsl.oa.model.doData.ProjectWorkDO">
|
|
select * from organize_oa.oa_project_work where project_id=#{projectId} and type=0
|
|
<if test="is != 1 ">
|
|
and (principal_id=#{userId} or principal_id is null)
|
|
</if>
|
|
</select>
|
|
|
|
<select id="getBySysId" resultType="com.jsl.oa.model.doData.ProjectWorkDO">
|
|
select * from organize_oa.oa_project_work where pid=#{sysId} and type=1
|
|
<if test="is != 1 ">
|
|
and principal_id=#{userId}
|
|
</if>
|
|
</select>
|
|
</mapper> |