|
@@ -9,6 +9,7 @@ import com.huimv.receive.entity.BaseWashoutPoint;
|
|
|
import com.huimv.receive.entity.dto.GetFlowListDto;
|
|
|
import com.huimv.receive.entity.dto.GetWashoutPointDto;
|
|
|
import com.huimv.receive.entity.dto.WashListDto;
|
|
|
+import com.huimv.receive.entity.vo.DestVo;
|
|
|
import com.huimv.receive.mapper.BaseWashoutPointMapper;
|
|
|
import com.huimv.receive.service.IBaseWashoutPointService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -108,4 +109,24 @@ public class BaseWashoutPointServiceImpl extends ServiceImpl<BaseWashoutPointMap
|
|
|
return new Result(10000, "删除成功!", true);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result listDest(Map<String, String> paramsMap) {
|
|
|
+ String farmId = paramsMap.get("farmId");
|
|
|
+ String visitingType = paramsMap.get("visitingType");
|
|
|
+ List<BaseWashoutPoint> baseWashoutPointList = washoutPointMapper.listDest(farmId,visitingType);
|
|
|
+ List<DestVo> destVoList = new ArrayList<>();
|
|
|
+ for (BaseWashoutPoint baseWashoutPoint : baseWashoutPointList) {
|
|
|
+ DestVo destVo = new DestVo();
|
|
|
+ destVo.setId(baseWashoutPoint.getId());
|
|
|
+ destVo.setLocationName(baseWashoutPoint.getLocationName());
|
|
|
+ destVoList.add(destVo);
|
|
|
+
|
|
|
+ DestVo destVo2 = new DestVo();
|
|
|
+ destVo2.setId(baseWashoutPoint.getId());
|
|
|
+ destVo2.setLocationName(baseWashoutPoint.getTailLocationName());
|
|
|
+ destVoList.add(destVo2);
|
|
|
+ }
|
|
|
+ return new Result(ResultCode.SUCCESS,destVoList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|