春风项目四线(合箱线、总装线)
懒羊羊
2024-01-17 1391b345457a70d9449bb51e797c54039a3b0a53
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.jcdm.main.bs.orderScheduling.service.impl;
 
import java.util.List;
 
import cn.hutool.core.util.StrUtil;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.bs.orderScheduling.mapper.BsOrderSchedulingMapper;
import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling;
import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService;
 
/**
 * 订单排产Service业务层处理
 * 
 * @author jiang
 * @date 2024-01-13
 */
@Service
public class BsOrderSchedulingServiceImpl implements IBsOrderSchedulingService 
{
    @Autowired
    private BsOrderSchedulingMapper bsOrderSchedulingMapper;
 
    /**
     * 查询订单排产
     * 
     * @param id 订单排产主键
     * @return 订单排产
     */
    @Override
    public BsOrderScheduling selectBsOrderSchedulingById(Long id)
    {
        return bsOrderSchedulingMapper.selectBsOrderSchedulingById(id);
    }
 
    /**
     * 查询订单排产列表
     * 
     * @param bsOrderScheduling 订单排产
     * @return 订单排产
     */
    @Override
    public List<BsOrderScheduling> selectBsOrderSchedulingList(BsOrderScheduling bsOrderScheduling)
    {
 
//        if(StrUtil.isNotBlank(bsOrderScheduling.getOperateTime())){
////            String[] dateArray = gson.fromJson(jsonString, String[].class);
//
//        }
        return bsOrderSchedulingMapper.selectBsOrderSchedulingList(bsOrderScheduling);
    }
 
    /**
     * 新增订单排产
     * 
     * @param bsOrderScheduling 订单排产
     * @return 结果
     */
    @Override
    public int insertBsOrderScheduling(BsOrderScheduling bsOrderScheduling)
    {
        bsOrderScheduling.setCreateTime(DateUtils.getNowDate());
        return bsOrderSchedulingMapper.insertBsOrderScheduling(bsOrderScheduling);
    }
 
    /**
     * 修改订单排产
     * 
     * @param bsOrderScheduling 订单排产
     * @return 结果
     */
    @Override
    public int updateBsOrderScheduling(BsOrderScheduling bsOrderScheduling)
    {
        bsOrderScheduling.setUpdateTime(DateUtils.getNowDate());
        return bsOrderSchedulingMapper.updateBsOrderScheduling(bsOrderScheduling);
    }
 
    /**
     * 批量删除订单排产
     * 
     * @param ids 需要删除的订单排产主键
     * @return 结果
     */
    @Override
    public int deleteBsOrderSchedulingByIds(Long[] ids)
    {
        return bsOrderSchedulingMapper.deleteBsOrderSchedulingByIds(ids);
    }
 
    /**
     * 删除订单排产信息
     * 
     * @param id 订单排产主键
     * @return 结果
     */
    @Override
    public int deleteBsOrderSchedulingById(Long id)
    {
        return bsOrderSchedulingMapper.deleteBsOrderSchedulingById(id);
    }
}