Commit 300b34ba authored by hezhen's avatar hezhen

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform into base-modify

parents 16f06aef 2539b62b
...@@ -20,10 +20,7 @@ import org.springframework.scheduling.annotation.EnableScheduling; ...@@ -20,10 +20,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableAceCache @EnableAceCache
@tk.mybatis.spring.annotation.MapperScan(basePackages = "com.xxfc.platform.app.mapper") @tk.mybatis.spring.annotation.MapperScan(basePackages = "com.xxfc.platform.app.mapper")
public class AppApplication { public class AppApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(AppApplication.class, args); SpringApplication.run(AppApplication.class, args);
} }
} }
...@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> { ...@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
Banner banner = new Banner(); Banner banner = new Banner();
banner.setIsDel(0); banner.setIsDel(0);
banner.setType(type); banner.setType(type);
return mapper.selectByExample(banner); //mapper.findByType(type);
return mapper.findBannerListByType(type);
} }
/* /*
......
...@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> { ...@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> {
@Select("select * from `banner` where is_del=#{isDel} order by rank ASC") @Select("select * from `banner` where is_del=#{isDel} order by rank ASC")
List<Banner> findBannerListByisDelOrderByRank(Banner banner); List<Banner> findBannerListByisDelOrderByRank(Banner banner);
@Select("select * from `banner` where `is_del`=0 and `type`=#{type} order by rank asc ")
List<Banner> findBannerListByType(Integer type);
} }
...@@ -49,17 +49,17 @@ public interface TourFeign { ...@@ -49,17 +49,17 @@ public interface TourFeign {
* @return * @return
*/ */
@RequestMapping(value = "/spe/stock", method = RequestMethod.GET) @RequestMapping(value = "/spe/stock", method = RequestMethod.GET)
public ObjectRestResponse<TourSpePriceVo> stock(@RequestParam Integer speId, @RequestParam Integer number, @RequestParam Integer type); public ObjectRestResponse<TourSpePriceVo> stock(@RequestParam("speId") Integer speId, @RequestParam("number") Integer number, @RequestParam("type") Integer type);
@RequestMapping(value = "/tourGood/app/unauth/usable/{id}", method = RequestMethod.GET) @RequestMapping(value = "/tourGood/app/unauth/usable/{id}", method = RequestMethod.GET)
public ObjectRestResponse<TourGood> usableGet(@PathVariable int id); public ObjectRestResponse<TourGood> usableGet(@PathVariable(value = "id") int id);
@GetMapping("/tourUser/app/unauth/getTourUsers") @GetMapping("/tourUser/app/unauth/getTourUsers")
public ObjectRestResponse<List<TourUser>> getTourUsers(@RequestParam String ids); public ObjectRestResponse<List<TourUser>> getTourUsers(@RequestParam("ids") String ids);
@GetMapping("/tourGood/verfication/entityList") @GetMapping("/tourGood/verfication/entityList")
public ObjectRestResponse<List<TourGoodVerification>> entityList(@RequestParam Map<String, Object> entity); public ObjectRestResponse<List<TourGoodVerification>> entityList(@RequestParam("entity") Map<String, Object> entity);
/** /**
* 更新发车状态 * 更新发车状态
...@@ -84,7 +84,7 @@ public interface TourFeign { ...@@ -84,7 +84,7 @@ public interface TourFeign {
* @return * @return
*/ */
@GetMapping("/tourGood/verfication/orders") @GetMapping("/tourGood/verfication/orders")
PageDataVO<TourGoodOrderVo> findTourGoodOrders(@RequestParam Map<String,Object> tourGoodOrderFindVo); PageDataVO<TourGoodOrderVo> findTourGoodOrders(@RequestParam("tourGoodOrderFindVo") Map<String,Object> tourGoodOrderFindVo);
@ApiOperation("首页旅游列表") @ApiOperation("首页旅游列表")
@GetMapping(value = "/tourGood/app/shopList") @GetMapping(value = "/tourGood/app/shopList")
......
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