|
@@ -30,15 +30,15 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getItemsLast" parameterMap="pm_AppXunjianVO" resultMap="TBusItemsResult">
|
|
<select id="getItemsLast" parameterMap="pm_AppXunjianVO" resultMap="TBusItemsResult">
|
|
-select * from t_bus_items
|
|
|
|
-where parent_id != '0'
|
|
|
|
-and bus_items_id not in
|
|
|
|
-(select bus_items_id from t_bus_items where parent_id in (select bus_items_id from t_bus_items where parent_id='0'))
|
|
|
|
- and bus_items_id not in
|
|
|
|
-(
|
|
|
|
-select bus_items_id from t_bus_enterprise_items_mapping where bus_enterprise_id=#{busEnterpriseId}
|
|
|
|
- )
|
|
|
|
- and parent_id = #{parentId}
|
|
|
|
|
|
+ select * from t_bus_items
|
|
|
|
+ where parent_id != '0'
|
|
|
|
+ and bus_items_id not in
|
|
|
|
+ (select bus_items_id from t_bus_items where parent_id in (select bus_items_id from t_bus_items where parent_id='0'))
|
|
|
|
+ and bus_items_id not in
|
|
|
|
+ (
|
|
|
|
+ select bus_items_id from t_bus_enterprise_items_mapping where bus_enterprise_id=#{busEnterpriseId}
|
|
|
|
+ )
|
|
|
|
+ and parent_id = #{parentId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getBusInspectionIsRiskByEnterpriseCount" parameterMap="pm_AppXunjianVO" resultType="int">
|
|
<select id="getBusInspectionIsRiskByEnterpriseCount" parameterMap="pm_AppXunjianVO" resultType="int">
|