Commit a529dd8968cd4e6397ff863eed372db608f6d2bf

Authored by liujun001
1 parent 2106da6e

优化导入数据

Bsth-admin/src/main/java/com/ruoyi/service/impl/key/location/LinggangKeyWorkLocationServiceImpl.java
... ... @@ -44,6 +44,8 @@ import java.text.ParseException;
44 44 import java.util.*;
45 45 import java.util.stream.Collectors;
46 46  
  47 +import static com.ruoyi.common.ConstDriverProperties.BC_TYPE_OUT;
  48 +
47 49 @Slf4j
48 50 @Service
49 51 /**钥匙存放地址 Service实现类*/
... ... @@ -822,6 +824,9 @@ public class LinggangKeyWorkLocationServiceImpl extends ServiceImpl<LinggangKeyW
822 824 location.setScheduleDate(sc.getScheduleDate());
823 825 location.setSchedulingId(sc.getId());
824 826 location.setType(2);
  827 + if(Objects.equals(sc.getBcType(),BC_TYPE_OUT)){
  828 + location.setType(3);
  829 + }
825 830 return location;
826 831  
827 832 }).filter(obj -> Objects.nonNull(obj)).collect(Collectors.toList());
... ...