|
|
@@ -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}
|