Browse Source

续期详情显示Bug修复

anderx 8 years ago
parent
commit
15515c6b46
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/main/java/com/goafanti/common/mapper/DemandMapper.xml

+ 2 - 3
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -76,10 +76,9 @@
 				group by  commodity_id ) t on d.id=t.commodity_id
     left join (select count(0) as x,commodity_id from t_order
 				where order_status != 4 and order_status != 0
-				group by  commodity_id ) t2 on d.id=t.commodity_id 
+				group by  commodity_id ) t2 on d.id=t2.commodity_id 
     where d.id =  #{id,jdbcType=VARCHAR}
-
-  </select>
+	</select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
     delete from demand
     where id = #{id,jdbcType=VARCHAR}