严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
package com.northglass.service.shelftask;
 
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
 
import com.northglass.repository.LoadMachineRackDao;
import com.northglass.repository.ShelfHoistDao;
import com.northglass.repository.ShelfRankDao;
import com.northglass.repository.ShelfTaskDao;
 
@Component
@Transactional
public class ShelfTaskService {
 
    private static final Logger LOGGER = LoggerFactory.getLogger(ShelfTaskService.class);
    
    @Autowired
    private ShelfTaskDao shelfTaskDao;
    
    @Autowired
    private ShelfHoistDao shelfHoistDao;
    
    @Autowired
    private ShelfRankDao shelfRankDao;
    
    @Autowired
    private LoadMachineRackDao loadMachineRackDao;
    
//    public void createFromShelfRackToLoadMachineRackTask(Long loadMachineRackId, String shelfRankNumber) {
//        LOGGER.debug("> Start createFromShelfRackToLoadMachineRackTask");
//        LOGGER.debug("loadMachineRackId: " + loadMachineRackId);
//        LOGGER.debug("shelfRankNumber: " + shelfRankNumber);
//        
//        ShelfRank shelfRank = shelfRankDao.findShelfRankByNumber(shelfRankNumber);
//        LoadMachineRack loadMachineRack = loadMachineRackDao.findOne(loadMachineRackId);
//        
//        ShelfTask fromShelfRackToLoadMachineRackTask = new ShelfTask(
//                ShelfTaskState.WAITING, ShelfTaskType.FROM_SHELF_RACK_TO_LOAD_MACHINE_RACK, 
//                new Date(), shelfRank, loadMachineRack);
//        shelfTaskDao.save(fromShelfRackToLoadMachineRackTask);
//        
//        LOGGER.debug("> End createFromShelfRackToLoadMachineRackTask");
//    }
}