张涛 1年前
父节点
当前提交
66f81f1952
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5
    3
      src/main/resources/mapper/TaCheckItemMapper.xml

+ 5
- 3
src/main/resources/mapper/TaCheckItemMapper.xml 查看文件

@@ -152,16 +152,18 @@
152 152
         AND t.`status` > - 1;
153 153
     </select>
154 154
     <select id="getExportByCheck" resultType="com.example.civilizedcity.vo.CheckLocExport">
155
-
156 155
         SELECT
157 156
         t.*,
158
-        t.full_score * t.num AS subtotal
157
+        t.full_score * t.num AS subtotal,
158
+        l.sort_no
159 159
         FROM
160
-        ta_check_item t
160
+        ta_check_item t INNER JOIN td_loc_type l ON l.type_id=t.type_id
161 161
         WHERE
162 162
         t.check_id = #{checkId}
163 163
         AND t.item_type = #{itemType}
164 164
         AND t.`status` &gt; -1
165
+        order by l.sort_no ASC
166
+
165 167
     </select>
166 168
 
167 169