Преглед изворни кода

fix:发票待处理查询修改

CAYK\miaosen.zhao пре 6 месеци
родитељ
комит
1578597660
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/main/resources/mapper/invoicemanage/InvoiceBasicInfoMapper.xml

+ 2 - 0
src/main/resources/mapper/invoicemanage/InvoiceBasicInfoMapper.xml

@@ -77,7 +77,9 @@
 				LEFT JOIN c_supplier_info t6 ON t2.c_supplier_info_id = t6.id
 				LEFT JOIN c_enterprise t7 ON t6.c_enterprise_id = t7.id
 		left join trading_platform t8 on t1.trading_platform_id = t8.id
+		left join c_sys_user t9 on t9.login_name = t1.user_create
 		WHERE t1.id = #{id}
+		AND (t9.project_manager = #{userId} or t9.project_manager is null )
 		ORDER BY t1.gmt_modified Desc
 	</select>