| | |
| | | @GetMapping("/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.shoppingGetDetails(id); |
| | | return jinhuiCommunityService.shoppingGetDetails(id,getCommunityId()+""); |
| | | } |
| | | |
| | | |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | ApiModelProperty(value = "兑换地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String lng; |
| | | |
| | | @ApiModelProperty(value = "兑换状态(1每天 2周一到周五 3周末)") |
| | | private String businessType; |
| | | |
| | | @ApiModelProperty(value = "兑换开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty(value = "兑换结束时间") |
| | | private String businessEndTime; |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | @GetMapping("/jinhuiShopping/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id); |
| | | public R shoppingGetDetails(@RequestParam("id") String id,@RequestParam("communityId") String communityId); |
| | | |
| | | /** |
| | | * 新增 |
| | |
| | | @GetMapping("/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return jinhuiCommunityService.shoppingGetDetails(id); |
| | | return jinhuiCommunityService.shoppingGetDetails(id,getCommunityId()+""); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | @GetMapping("/shoppingGetDetails") |
| | | public R shoppingGetDetails(@RequestParam("id") String id) |
| | | public R shoppingGetDetails(@RequestParam("id") String id, |
| | | @RequestParam("communityId") String communityId) |
| | | { |
| | | return R.ok(shoppingService.getDetails(id)); |
| | | return R.ok(shoppingService.getDetails(id,communityId)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | JinhuiShopping getDetails(@Param("id") String id); |
| | | JinhuiShopping getDetails(@Param("id") String id,@Param("communityId") String communityId); |
| | | |
| | | /** |
| | | * 新增 |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value = "兑换地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "纬度") |
| | | private String lat; |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String lng; |
| | | |
| | | @ApiModelProperty(value = "兑换状态(1每天 2周一到周五 3周末)") |
| | | private String businessType; |
| | | |
| | | @ApiModelProperty(value = "兑换开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty(value = "兑换结束时间") |
| | | private String businessEndTime; |
| | | |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiShoppingVO; |
| | | import com.panzhihua.service_jinhui_community.entity.JinhuiShopping; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface JinhuiShoppingService extends IService<JinhuiShopping> |
| | | { |
| | |
| | | R getList(int pageNum,int pageSize, |
| | | String goodName, String goodType, String id); |
| | | |
| | | JinhuiShopping getDetails(String id); |
| | | JinhuiShopping getDetails(String id,String communityId); |
| | | /** |
| | | * 新增 |
| | | * @param |
| | |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiMicroVolunteeringService; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiShoppingService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public JinhuiShopping getDetails(String id) { |
| | | return baseMapper.getDetails(id); |
| | | public JinhuiShopping getDetails(String id,String communityId) { |
| | | return baseMapper.getDetails(id,communityId); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | <select id="getDetails" resultMap="itemMap"> |
| | | select |
| | | id, |
| | | good_name, |
| | | good_price, |
| | | good_type, |
| | | cover_img_url, |
| | | content, |
| | | creation_time, |
| | | update_time |
| | | from jinhui_shopping |
| | | js.id, |
| | | js.good_name, |
| | | js.good_price, |
| | | js.good_type, |
| | | js.cover_img_url, |
| | | js.content, |
| | | js.creation_time, |
| | | js.update_time, |
| | | vcc.address, |
| | | vcc.lat, |
| | | vcc.lng, |
| | | vcc.business_type, |
| | | vcc.business_start_time, |
| | | vcc.business_end_time |
| | | from jinhui_shopping as js |
| | | left join volunteer_community_config vcc on vcc.community_id=#{communityId} |
| | | where |
| | | id=#{id} |
| | | js.id=#{id} |
| | | </select> |
| | | |
| | | <insert id="addData"> |