|
@@ -179,7 +179,7 @@
|
|
|
where ad_id in (#{ids,jdbcType=VARCHAR})
|
|
where ad_id in (#{ids,jdbcType=VARCHAR})
|
|
|
</delete>
|
|
</delete>
|
|
|
<select id="selectAll" resultMap="ResultMapWithBLOBs">
|
|
<select id="selectAll" resultMap="ResultMapWithBLOBs">
|
|
|
- SELECT * FROM ADDRESS where COMPANYID=#{companyId}
|
|
|
|
|
|
|
+ SELECT * FROM ADDRESS where COMPANYID=#{companyId} ORDER BY AD_ID DESC
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectCountByName" resultType="int">
|
|
<select id="selectCountByName" resultType="int">
|
|
|
SELECT count(*) FROM ADDRESS
|
|
SELECT count(*) FROM ADDRESS
|