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