中扬CRM客户关系管理系统
LSH
2023-09-11 17580e07751d7abaac48071a8ec0e743fdfb35fc
src/main/java/com/zy/crm/manager/mapper/OrderMapper.java
@@ -7,6 +7,7 @@
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.HashMap;
import java.util.List;
@Mapper
@@ -17,6 +18,16 @@
    Order selectOrderByNewestUuid(@Param("hostId") Long hostId);
    List<Order> listByPage(Page<Order> page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId , @Param("condition") String condition);
    List<Order> listByPage(Page<Order> page, @Param("hostId") Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId, @Param("condition") String condition, @Param("status") Integer status);
    Double selectMoneyByYearAndStatus(String year, Integer status);//获取指定年份和订单状态总交易金额
    Double selectMoneyByUserAndYearAndStatus(Long userId, String year, Integer status);//获取指定用户、年份和订单状态总交易金额
    Integer selectCountByUserYearAndStatus(Long userId, String year, Integer status);//获取指定年份和订单状态总数量
    List<Order> selectTopMoney();//查询交易额前7名员工
    List<HashMap<String, Object>> selectCurrentYearMonthSuccess();//获取当前年度12个月的交易成功金额数据
}