From c1a9747777ea9aee817f306475c94031e5559cc4 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 23 四月 2025 20:04:12 +0800
Subject: [PATCH] 项目、工程按照录入时间升序排列
---
business/src/main/resources/mapper/ProjectProcessMapper.xml | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/business/src/main/resources/mapper/ProjectProcessMapper.xml b/business/src/main/resources/mapper/ProjectProcessMapper.xml
index 2df3a94..53e153c 100644
--- a/business/src/main/resources/mapper/ProjectProcessMapper.xml
+++ b/business/src/main/resources/mapper/ProjectProcessMapper.xml
@@ -160,7 +160,7 @@
</if>
${query.params.dataScope}
</where>
-
+ ORDER BY PI.gmt_create ASC
</select>
@@ -179,11 +179,26 @@
SELECT TPP.process_ins_id FROM t_project_engineering TPE INNER JOIN t_project_process TPP ON TPE.id = TPP.project_id AND TPE.deleted = 0 AND TPP.project_type = 'ENGINEERING'
</select>
- <select id="getHisByteId" resultType="com.ycl.domain.vo.FlowableVarVO">
+ <resultMap id="flowableVarVOResultMap" type="com.ycl.domain.vo.FlowableVarVO">
+ <id property="ID_" column="ID_"/>
+ <result property="PROC_INST_ID_" column="PROC_INST_ID_"/>
+ <result property="EXECUTION_ID_" column="EXECUTION_ID_"/>
+ <result property="NAME_" column="NAME_"/>
+ <result property="VAR_TYPE_" column="VAR_TYPE_"/>
+ <result property="BYTEARRAY_ID_" column="BYTEARRAY_ID_"/>
+ <result property="DOUBLE_" column="DOUBLE_"/>
+ <result property="LONG_" column="LONG_"/>
+ <result property="TEXT_" column="TEXT_"/>
+ <result property="TEXT2_" column="TEXT2_"/>
+ <result property="CREATE_TIME_" column="CREATE_TIME_"/>
+ <result property="LAST_UPDATED_TIME_" column="LAST_UPDATED_TIME_"/>
+ </resultMap>
+
+ <select id="getHisByteId" resultMap="flowableVarVOResultMap">
SELECT ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, VAR_TYPE_, BYTEARRAY_ID_ FROM act_hi_varinst WHERE PROC_INST_ID_ = #{processInsId} AND NAME_ = #{keyName}
</select>
- <select id="getRuByteId" resultType="com.ycl.domain.vo.FlowableVarVO">
+ <select id="getRuByteId" resultMap="flowableVarVOResultMap">
SELECT ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, TYPE_ as VAR_TYPE_, BYTEARRAY_ID_ FROM act_ru_variable WHERE PROC_INST_ID_ = #{processInsId} AND NAME_ = #{keyName}
</select>
--
Gitblit v1.8.0