Newspaper 1 年之前
父节点
当前提交
995d098b5d

+ 1 - 1
huimv-receive/src/main/java/com/huimv/receive/mapper/BaseWashoutPointMapper.java

@@ -15,5 +15,5 @@ import java.util.List;
  */
 public interface BaseWashoutPointMapper extends BaseMapper<BaseWashoutPoint> {
 
-    List<BaseWashoutPoint> listDest(String farmId, String visitingType);
+    List<BaseWashoutPoint> listDest(String farmId, String vistitType);
 }

+ 2 - 2
huimv-receive/src/main/java/com/huimv/receive/service/impl/BaseWashoutPointServiceImpl.java

@@ -112,8 +112,8 @@ public class BaseWashoutPointServiceImpl extends ServiceImpl<BaseWashoutPointMap
     @Override
     public Result listDest(Map<String, String> paramsMap) {
         String farmId = paramsMap.get("farmId");
-        String visitingType = paramsMap.get("visitType");
-        List<BaseWashoutPoint> baseWashoutPointList = washoutPointMapper.listDest(farmId,visitingType);
+        String vistitType = paramsMap.get("vistitType");
+        List<BaseWashoutPoint> baseWashoutPointList = washoutPointMapper.listDest(farmId,vistitType);
         List<DestVo> destVoList = new ArrayList<>();
         for (BaseWashoutPoint baseWashoutPoint : baseWashoutPointList) {
             DestVo destVo = new DestVo();

+ 1 - 1
huimv-receive/src/main/resources/mapper/BaseWashoutPointMapper.xml

@@ -19,7 +19,7 @@
     <select id="listDest" resultType="com.huimv.receive.entity.BaseWashoutPoint">
         SELECT w.location_id,l.location_name ,w.tail_location_name FROM `base_washout_point` w
         LEFT JOIN `base_location` l ON l.id = w.location_id
-        WHERE w.farm_ids LIKE concat('%',#{farmId},'%') AND w.visiting_type = #{visitingType}
+        WHERE w.farm_ids LIKE concat('%',#{farmId},'%') AND w.visiting_type = #{vistitType}
 
     </select>