fix: 系统功能大优化,仅可查看自己创建的业务数据。

This commit is contained in:
tianyongbao
2024-05-17 14:09:54 +08:00
parent ab4189a401
commit 8d08061fef
48 changed files with 149 additions and 252 deletions

View File

@@ -74,6 +74,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -61,6 +61,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="state != null and state != ''"> and a.state = #{state}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.type asc,a.update_time desc
</select>

View File

@@ -78,6 +78,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and to_char(a.create_time, 'yyyy-MM-dd')>=#{startTime}
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -43,6 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.bill_date asc,a.update_time desc
</select>

View File

@@ -59,9 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="billDate!=null and billDate !=''">
and #{billDate}=to_char(a.bill_date, 'yyyy-MM-dd')
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.bill_date desc
</select>

View File

@@ -37,6 +37,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and #{queryDateEnd}>=to_char(a.query_date, 'yyyy-MM-dd')
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.query_date desc
</select>
@@ -120,7 +122,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
credit_report_query_record a
where
a.del_flag = '0'
<!-- 数据范围过滤 -->
${params.dataScope}
order by
a.query_institution desc
</select>
</mapper>

View File

@@ -44,6 +44,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="lenders != null and lenders != ''"> and a.lenders = #{lenders}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -64,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and #{endMonth}>=to_char(a.bill_date, 'yyyy-MM')
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.bill_date_period desc
</select>

View File

@@ -62,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -27,6 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -78,6 +78,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and #{endDate}>=to_char(a.repayment_date, 'yyyy-MM-dd')
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.repayment_date desc
</select>

View File

@@ -128,6 +128,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and #{endMonth}>=to_char(a.installment_date, 'yyyy-MM')
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.installment_date desc
</select>

View File

@@ -65,6 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="merchantName != null and merchantName != ''"> and a.merchant_name like '%'|| #{merchantName}||'%'</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>

View File

@@ -45,6 +45,8 @@
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
</mapper>