|
@@ -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` > -1
|
|
165
|
+ order by l.sort_no ASC
|
|
166
|
+
|
165
|
167
|
</select>
|
166
|
168
|
|
167
|
169
|
|