Commit 2fcdb5b4 by wangli

表重命名修改

1 parent 2af5761c
package com.dituhui.pea.order.dao; package com.dituhui.pea.order.dao;
import com.dituhui.pea.order.entity.WarehouseInfo; import com.dituhui.pea.order.entity.OrgWarehouseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface WarehouseInfoMPDao extends BaseMapper<WarehouseInfo> { public interface WarehouseInfoMPDao extends BaseMapper<OrgWarehouseInfo> {
} }
...@@ -3,7 +3,7 @@ package com.dituhui.pea.order.entity; ...@@ -3,7 +3,7 @@ package com.dituhui.pea.order.entity;
import lombok.Data; import lombok.Data;
@Data @Data
public class WarehouseInfo { public class OrgWarehouseInfo {
private Integer warehouseId; private Integer warehouseId;
private String warehouseNname; private String warehouseNname;
private String branchId; private String branchId;
......
...@@ -11,9 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -11,9 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.sql.Timestamp;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.stream.Stream; import java.util.stream.Stream;
...@@ -100,9 +98,9 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService { ...@@ -100,9 +98,9 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
private String getWarehouseLocation(String branchId) { private String getWarehouseLocation(String branchId) {
// 获取配送站location // 获取配送站location
LambdaQueryWrapper<WarehouseInfo> lqw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<OrgWarehouseInfo> lqw = new LambdaQueryWrapper<>();
lqw.eq(WarehouseInfo::getBranchId, branchId); lqw.eq(OrgWarehouseInfo::getBranchId, branchId);
WarehouseInfo w = warehouseInfoMPDao.selectOne(lqw); OrgWarehouseInfo w = warehouseInfoMPDao.selectOne(lqw);
return String.format("%s,%s", w.getX(), w.getY()); return String.format("%s,%s", w.getX(), w.getY());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!