package org.jeecg.modules.arj.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.jeecg.modules.arj.entity.LineChanliangtongji;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Select;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 产量统计 Mapper 接口
|
* </p>
|
*
|
* @author jinjun.huang
|
* @since 2022-11-21
|
*/
|
@Mapper
|
@Repository
|
public interface LineChanliangtongjiMapper extends BaseMapper<LineChanliangtongji> {
|
/**
|
|
* @return
|
*/
|
@Select("select hjzs,chengpin from line_chanliangtongji a, head b where a.head_id = b.id and head_id in (select id from head where day(reportTime) = day(now()))")
|
List<LineChanliangtongji> queryDay();
|
|
/**
|
* @return
|
*/
|
@Select("select hjzs,chengpin from line_chanliangtongji a, head b where a.head_id = b.id and head_id in (select id from head where week(reportTime) = week(now()))")
|
List<LineChanliangtongji> queryWeek();
|
|
@Select("select hjzs,chengpin from line_chanliangtongji a, head b where a.head_id = b.id and head_id in (select id from head where month(reportTime) = month(now()))")
|
List<LineChanliangtongji> queryMonth();
|
|
@Select("select hjzs,chengpin from line_chanliangtongji a, head b where a.head_id = b.id and head_id in (select id from head where month(reportTime) = #{n})")
|
List<LineChanliangtongji> queryMonthN(int n);
|
}
|