wang-hao-jie
2021-12-07 8a82baca367e2fb25d8fa55d21f9b25f5ece74df
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/OrderTaskMapper.java
@@ -27,4 +27,13 @@
    @Select("SELECT a.*,b.name as temp FROM t_order_task a LEFT JOIN t_customer b ON a.customer_id=b.id ${ew.customSqlSegment} ")
    @Results({@Result(column="temp", property="customerName", jdbcType = JdbcType.VARCHAR)})
    List<OrderTask> list2(@Param(Constants.WRAPPER) QueryWrapper<OrderTask> wrapper2);
    @Select("SELECT sum(num) FROM t_order_task")
    int sumNum();
    @Select("SELECT count(id) FROM t_order_task where status=#{arg0}")
    int sumStatus(int type);
    @Select("SELECT count(id) FROM t_order_task where likes=1")
    int countLike();
}