| | |
| | | "from t_order_task t\n" + |
| | | "where year(t.send_date)=#{year}") |
| | | Month getSendNum(@Param("year")int year); |
| | | |
| | | @Select("select b.name as name1,avg(a.time) as num1,min(a.time) as num2,max(a.time) as num3 from t_order_task a LEFT JOIN t_customer b on a.customer_id=b.id where date_sub(curdate(), interval 1 month) <= date(a.send_date) and a.status=1 and a.area_id=#{arg0} and a.area_section_id=#{arg1} GROUP BY b.name") |
| | | @Results({ |
| | | @Result(column="name1", property="customerName", jdbcType = JdbcType.VARCHAR), |
| | | @Result(column="num1", property="time", jdbcType = JdbcType.INTEGER), |
| | | @Result(column="num2", property="num", jdbcType = JdbcType.INTEGER), |
| | | @Result(column="num3", property="level", jdbcType = JdbcType.INTEGER)}) |
| | | List<OrderTask> groupByTime(String areaId, String selectId); |
| | | } |