吉安感知网项目-后端
linwei
4 days ago 51a551a7f8eae7654f973d45cd2fa2952774673d
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/mapper/GdSupplyDemandMapper.xml
@@ -115,14 +115,15 @@
            <include refid="gdSupplyDemandCondition"/>
            <if test="deptIdList != null and deptIdList.size > 0">
                AND (
                    create_dept IN
                    <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")">
                        #{deptId}
                    </foreach>
                    OR apply_target_dept_id IN
                    <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")">
                        #{deptId}
                    </foreach>
                create_dept::text IN
                <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")">
                    #{deptId}::text
                </foreach>
                OR
                apply_target_dept_id::text IN
                <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")">
                    #{deptId}::text
                </foreach>
                )
            </if>
        </where>
@@ -141,13 +142,13 @@
            </if>
            <if test="param.deptList != null and param.deptList.size > 0">
                AND (
                    create_dept IN
                    create_dept::text IN
                    <foreach collection="param.deptList" item="deptId" open="(" separator="," close=")">
                        #{deptId}
                        #{deptId}::text
                    </foreach>
                    OR apply_target_dept_id IN
                    OR apply_target_dept_id::text IN
                    <foreach collection="param.deptList" item="deptId" open="(" separator="," close=")">
                        #{deptId}
                        #{deptId}::text
                    </foreach>
                )
            </if>