Commit f43081ed authored by hezhen's avatar hezhen

123

parent d7d0d288
...@@ -125,6 +125,10 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper, ...@@ -125,6 +125,10 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
} }
return ObjectRestResponse.succ(list); return ObjectRestResponse.succ(list);
} }
//获取路线核销信息
public ObjectRestResponse getVerification(Integer verificationId){
return ObjectRestResponse.succ(mapper.getVerification(verificationId));
}
} }
\ No newline at end of file
...@@ -65,4 +65,7 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification> ...@@ -65,4 +65,7 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
//获取时间列表 //获取时间列表
List<TourVerificationInfoVo> getSpeList(@Param("goodId")Integer goodId,@Param("siteId")Integer siteId,@Param("companyId")Integer companyId); List<TourVerificationInfoVo> getSpeList(@Param("goodId")Integer goodId,@Param("siteId")Integer siteId,@Param("companyId")Integer companyId);
//获取核销路线信息
TourVerificationInfoVo getVerification(@Param("verificationId")Integer verificationId);
} }
...@@ -45,4 +45,9 @@ public class TourVerificationController extends TourBaseController<TourGoodVerif ...@@ -45,4 +45,9 @@ public class TourVerificationController extends TourBaseController<TourGoodVerif
return baseBiz.getVerificationList(tourVerificationInfoVo); return baseBiz.getVerificationList(tourVerificationInfoVo);
} }
@GetMapping("/info/{id}")
public ObjectRestResponse getList(@PathVariable Integer id){
return baseBiz.getVerification(id);
}
} }
\ No newline at end of file
...@@ -111,5 +111,26 @@ ...@@ -111,5 +111,26 @@
p.start_time p.start_time
</select> </select>
<!--获取核销信息-->
<select id="getVerification" resultType="com.xxfc.platform.tour.vo.TourVerificationInfoVo">
SELECT
DISTINCT
v.id as verificationId,
v.spe_id as speId,
p.start_time as startTime,
p.end_time as endTime,
CONCAT(date_format(p.start_time,'%Y-%m-%d'), '~', date_format(p.end_time, '%Y-%m-%d')) as time,
s.id as siteId,
s.name as siteName,
s.company_id as companyId,
v.good_id as goodId,
g.`name` as goodName
FROM
tour_good_verification v
LEFT JOIN tour_good_site s on v.site_id=s.id
LEFT JOIN tour_good_spe_price p ON v.spe_id=p.id
LEFT JOIN tour_good g ON v.good_id=g.id
WHERE v.id=#{verificationId}
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment