package com.tykj.dev.device.packing.task;

import com.tykj.dev.device.packing.service.PackingLibraryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;

/**
 * DATE:2021-7-14
 * Author:zsp
 */

@Service
@Slf4j
public class PackingSortService implements CommandLineRunner {
    @Autowired
    private PackingLibraryService packingLibraryService;
    @Override
    public void run(String... args) throws Exception {
        //取到所有的列装model的顺序 放进缓存中  也就是DeviceModelSort.mapModelSort
        packingLibraryService.getSortMap();

        log.info("初始化更新型号和排序号的对应map");
    }
}
