Browse Source

1.大中型台账查询SQL优化

GouGengquan 10 months ago
parent
commit
e0b765337d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dao/src/main/resources/mapper/MajorStatisticalStatementMapper.xml

+ 2 - 2
dao/src/main/resources/mapper/MajorStatisticalStatementMapper.xml

@@ -28,8 +28,8 @@
                report.evaluate_amount AS evaluateAmount,
                fund.real_amount AS productionRealAmount,
                report.repertory_out_time AS repertoryOutTime,
-               (SELECT name FROM user WHERE user.id = JSON_EXTRACT(report.signatory,'$[0]')) AS firstReporter,
-               (SELECT name FROM user WHERE user.id = JSON_EXTRACT(report.signatory,'$[1]')) AS secReporter,
+               report.main_worker AS firstReporter,
+               report.minor_worker AS secReporter,
                (
                    SELECT user.name
                    FROM work_flow_node_instance AS instance,