春风项目四线(合箱线、总装线)
wujian
2024-01-18 83923ea389a172c1cf3d9cd7a3628d3692e9feaf
提交 | 用户 | 时间
d9cf6b 1 package com.jcdm.main.bs.orderScheduling.service.impl;
J 2
2aea64 3 import com.jcdm.common.utils.DateUtils;
0ae9ac 4 import com.jcdm.main.bs.orderScheduling.Query.PrepareOnlineQuery;
W 5 import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling;
6 import com.jcdm.main.bs.orderScheduling.mapper.BsOrderSchedulingMapper;
7 import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService;
d9cf6b 8 import org.springframework.beans.factory.annotation.Autowired;
J 9 import org.springframework.stereotype.Service;
0ae9ac 10
W 11 import java.util.List;
d9cf6b 12
J 13 /**
14  * 订单排产Service业务层处理
15  * 
16  * @author jiang
2aea64 17  * @date 2024-01-13
d9cf6b 18  */
J 19 @Service
0ae9ac 20 public class BsOrderSchedulingServiceImpl implements IBsOrderSchedulingService
d9cf6b 21 {
J 22     @Autowired
23     private BsOrderSchedulingMapper bsOrderSchedulingMapper;
24
25     /**
26      * 查询订单排产
27      * 
2aea64 28      * @param id 订单排产主键
d9cf6b 29      * @return 订单排产
J 30      */
31     @Override
2aea64 32     public BsOrderScheduling selectBsOrderSchedulingById(Long id)
d9cf6b 33     {
2aea64 34         return bsOrderSchedulingMapper.selectBsOrderSchedulingById(id);
d9cf6b 35     }
J 36
37     /**
38      * 查询订单排产列表
39      * 
40      * @param bsOrderScheduling 订单排产
41      * @return 订单排产
42      */
43     @Override
44     public List<BsOrderScheduling> selectBsOrderSchedulingList(BsOrderScheduling bsOrderScheduling)
45     {
d2b752 46         if(bsOrderScheduling.getDateConditions()!=null){
47             String[] conditions = bsOrderScheduling.getDateConditions();
48             bsOrderScheduling.setStartTime(conditions[0]);
49             bsOrderScheduling.setEndTime(conditions[1]);
50         }
d9cf6b 51         return bsOrderSchedulingMapper.selectBsOrderSchedulingList(bsOrderScheduling);
J 52     }
53
0ae9ac 54
W 55     /**
56      * 查询合箱上线列表
57      * @param prepareOnlineQuery
58      * @return list
59      */
60     public List<BsOrderScheduling> getPrepareOnlineList(PrepareOnlineQuery prepareOnlineQuery){
61         return bsOrderSchedulingMapper.getPrepareOnlineList(prepareOnlineQuery);
62     }
d9cf6b 63     /**
J 64      * 新增订单排产
65      * 
66      * @param bsOrderScheduling 订单排产
67      * @return 结果
68      */
69     @Override
70     public int insertBsOrderScheduling(BsOrderScheduling bsOrderScheduling)
71     {
2aea64 72         bsOrderScheduling.setCreateTime(DateUtils.getNowDate());
d9cf6b 73         return bsOrderSchedulingMapper.insertBsOrderScheduling(bsOrderScheduling);
J 74     }
75
76     /**
77      * 修改订单排产
78      * 
79      * @param bsOrderScheduling 订单排产
80      * @return 结果
81      */
82     @Override
83     public int updateBsOrderScheduling(BsOrderScheduling bsOrderScheduling)
84     {
2aea64 85         bsOrderScheduling.setUpdateTime(DateUtils.getNowDate());
d9cf6b 86         return bsOrderSchedulingMapper.updateBsOrderScheduling(bsOrderScheduling);
J 87     }
88
89     /**
90      * 批量删除订单排产
91      * 
2aea64 92      * @param ids 需要删除的订单排产主键
d9cf6b 93      * @return 结果
J 94      */
95     @Override
2aea64 96     public int deleteBsOrderSchedulingByIds(Long[] ids)
d9cf6b 97     {
2aea64 98         return bsOrderSchedulingMapper.deleteBsOrderSchedulingByIds(ids);
d9cf6b 99     }
J 100
101     /**
102      * 删除订单排产信息
103      * 
2aea64 104      * @param id 订单排产主键
d9cf6b 105      * @return 结果
J 106      */
107     @Override
2aea64 108     public int deleteBsOrderSchedulingById(Long id)
d9cf6b 109     {
2aea64 110         return bsOrderSchedulingMapper.deleteBsOrderSchedulingById(id);
d9cf6b 111     }
J 112 }