liujie
2023-05-22 9f2315d92cc93f8f431805a10ea9ce3f79fa7eb2
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
package com.stylefeng.guns.modular.system.service.impl;
 
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.system.model.DemandListVo;
import com.stylefeng.guns.modular.system.model.TQuote;
import com.stylefeng.guns.modular.system.dao.TQuoteMapper;
import com.stylefeng.guns.modular.system.service.ITQuoteService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Objects;
 
/**
 * <p>
 * 报价 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2023-02-13
 */
@Service
public class TQuoteServiceImpl extends ServiceImpl<TQuoteMapper, TQuote> implements ITQuoteService {
 
    @Override
    public List<DemandListVo> queryDemandList(Page<DemandListVo> objectPage, String time, Integer state, Integer userId, String account) {
        String sTime=null;
        String eTime =null;
        if(Objects.nonNull(time)&& !"".equals(time)){
            sTime = time.split(" - ")[0]+" 00:00:01";
            eTime = time.split(" - ")[1]+" 23:59:59";
        }
        return this.baseMapper.queryDemandList(objectPage,sTime,eTime,state,userId,account);
    }
 
    @Override
    public List<DemandListVo> queryDemandListExport(String time, Integer state, Integer userId, String account) {
        String sTime=null;
        String eTime =null;
        if(Objects.nonNull(time) && !"".equals(time)){
            sTime = time.split(" - ")[0]+" 00:00:01";
            eTime = time.split(" - ")   [1]+" 23:59:59";
        }
        return this.baseMapper.queryDemandListExport(sTime,eTime,state,userId,account);
    }
}