Helius
2021-03-12 62bf99d419e470f5556f21682d0d8ee8b9e20412
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.matrix.system.hive.dao;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.app.dto.ServiceOrderListDto;
import com.matrix.system.app.vo.ServiceOrderListVo;
import com.matrix.system.hive.bean.SysProjServices;
import com.matrix.system.shopXcx.api.dto.ErpServiceOrderListDto;
import com.matrix.system.shopXcx.api.vo.ErpServiceOrderListVo;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
 
/**
 *
 * @date 2016-07-03 20:57
 */
 
 
public interface SysProjServicesDao{
 
    public int insert(SysProjServices sysProjServices);
       
    public int update(SysProjServices sysProjServices);
    
    public int deleteByIds(@Param("list") List<Long> list);
    
    public int deleteById(Long id);
    
    public List<SysProjServices> selectInPage(@Param("record") SysProjServices sysProjServices, @Param("pageVo") PaginationVO pageVo);
 
    public List<SysProjServices> selectByModel(@Param("record") SysProjServices sysProjServices);
    
    public int  selectTotalRecord(@Param("record") SysProjServices sysProjServices);
 
    public SysProjServices  selectById(Long id);
 
    public void updateOrderTime(@Param("consumeTime") Date createTime, @Param("id") Long id);
 
    List<ServiceOrderListVo> selectApiServiceOrderListInPage(@Param("record") ServiceOrderListDto serviceOrderListDto, @Param("pageVo") PaginationVO pageVo);
 
    int selectApiServiceOrderListTotal(@Param("record") ServiceOrderListDto serviceOrderListDto);
 
    /**
     * 小程序端查询客户预约单
     * @param orderListDto
     * @return
     */
    List<ErpServiceOrderListVo> findWxServiceOrderList(ErpServiceOrderListDto orderListDto);
 
    /**
     * 小程序端查询客户预约单详情
     * @param id
     * @return
     */
    ErpServiceOrderListVo findWxServiceOrderById(Long id);
 
    /**
     * 查询预约时间在1小时之内且没有通知过的服务单
     * @return
     */
    List<SysProjServices> selectNeedNoticeService();
 
    /**
     * 设置服务单为已通知
     * @param noticedIds
     * @return
     */
    int updateNoticeTimes(@Param("list")List<Long> noticedIds);
 
    List<SysProjServices> selectProjServicesByOrderItemId(@Param("itemId") Long itemId);
}