处理课程删除以及订单查询

master
shijie 4 years ago
parent eb3975b6c9
commit 6f5a7d2105
  1. 2
      src/main/java/com/yipin/liuwanr/mapper/CourseMapper.java
  2. 2
      src/main/java/com/yipin/liuwanr/mapper/OrderMapper.java

@ -94,7 +94,7 @@ public interface CourseMapper {
//删除课程
@Update({"<script>",
"UPDATE course SET isdel = 1 where courseId in "
+ "<foreach collection = 'list' item='c' open='(' separator=',' close=')'>"
+ "<foreach collection = 'courseId' item='c' open='(' separator=',' close=')'>"
+ " #{c}"
+ "</foreach>",
"</script> "})

@ -54,7 +54,7 @@ public interface OrderMapper {
" <if test='cityId !=null'>and o.cityId = #{cityId} </if>",
" <if test='orderType !=null'>and o.orderType = #{orderType} </if>",
" <if test='orderStatus !=null'>and o.orderStatus = #{orderStatus} </if>",
" <if test='searchContent!=null'> and o.orderNumber like CONCAT('%',#{searchContent},'%') or c.customerName like CONCAT('%',#{searchContent},'%')</if>",
" <if test='searchContent!=null'> and (o.orderNumber like CONCAT('%',#{searchContent},'%') or c.customerName like CONCAT('%',#{searchContent},'%'))</if>",
"order by o.orderDate desc",
"</script> "})
List<Order> queryOrder(Order order);

Loading…
Cancel
Save