Commit aba4948f authored by youjj's avatar youjj

增加:修改和填添加出游人信息接口

parent cea189b0
......@@ -25,7 +25,7 @@ public class TourBannerBiz extends BaseBiz<TourBannerMapper,TourBanner> {
@Autowired
private RedisTemplate redisTemplate;
@Cache(key = RedisKey.CONSTANT_CODE_PREFIX_BANNER)
// @Cache(key = RedisKey.CONSTANT_CODE_PREFIX_BANNER)
public List<TourBanner> findBannerList() {
TourBanner banner = new TourBanner();
......
......@@ -37,7 +37,7 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
@Autowired
private TourTagBiz tagBiz;
@Cache(key = RedisKey.CONSTANT_CODE_PREFIX_HOTTAG)
// @Cache(key = RedisKey.CONSTANT_CODE_PREFIX_HOTTAG)
public List<TourTag> getHotTag() {
TourTag tag = new TourTag();
......
......@@ -6,10 +6,8 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.tour.biz.TourUserBiz;
import com.xxfc.platform.tour.common.TourBaseController;
import com.xxfc.platform.tour.entity.TourUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import java.util.List;
......@@ -22,12 +20,26 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
public ObjectRestResponse getTourUser(@PathVariable int isChild){
AppUserDTO userInfo = getUserInfo();
Integer id = userInfo.getId();
List<TourUser> tourUsers= baseBiz.getTourUser(id,isChild);
List<TourUser> tourUsers= baseBiz.getTourUser(id,isChild);
return ObjectRestResponse.succ(tourUsers);
}
@ApiOperation("修改")
@PostMapping(value = "/update")
public ObjectRestResponse<TourUser> update(@RequestBody TourUser tourUser){
baseBiz.updateSelectiveById(tourUser);
return new ObjectRestResponse<TourUser>();
}
@ApiOperation("添加")
@PostMapping(value = "/add")
public ObjectRestResponse<TourUser> add(@RequestBody TourUser tourUser){
baseBiz.insertSelective(tourUser);
return new ObjectRestResponse<TourUser>();
}
}
\ 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