| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | | * 分享商品详情
|
| | | *
|
| | | * @param callback
|
| | | * @param shareId
|
| | | * 分享id
|
| | | * @param source
|
| | | * 来源
|
| | | * @param shareId 分享id
|
| | | * @param source 来源
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getDetail")
|
| | | public void getDetail(String callback, Long shareId, String source, String fingerprint, PrintWriter out) {
|
| | | public void getDetail(AcceptData acceptData, String callback, Long shareId, String source, String fingerprint, PrintWriter out) {
|
| | | try {
|
| | | if (shareId == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("传递参数不正确"));
|
| | |
| | | }
|
| | |
|
| | | // 获取商品信息
|
| | | JSONObject data = userShareGoodsRecordService.getGoodsGroupDetail(shareId);
|
| | | JSONObject data = userShareGoodsRecordService.getGoodsGroupDetail(shareId,acceptData.getSystem());
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | | } catch (Exception e) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("获取失败"));
|
| | |
| | | * 分享商品列表
|
| | | *
|
| | | * @param callback
|
| | | * @param shareId
|
| | | * 分享id
|
| | | * @param source
|
| | | * 来源
|
| | | * @param shareId 分享id
|
| | | * @param source 来源
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getList")
|
| | | public void getList(String callback, Long shareId, PrintWriter out) {
|
| | | public void getList(AcceptData acceptData, String callback, Long shareId, PrintWriter out) {
|
| | | try {
|
| | | if (shareId == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("传递参数不正确"));
|
| | |
| | |
|
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
|
| | | .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
|
| | | BigDecimal fanLiRate = hongBaoManageService.getFanLiRate();
|
| | | BigDecimal shareRate = hongBaoManageService.getShareRate();
|
| | | BigDecimal fanLiRate = hongBaoManageService.getFanLiRate(acceptData.getSystem());
|
| | | BigDecimal shareRate = hongBaoManageService.getShareRate(acceptData.getSystem());
|
| | | ConfigParamsDTO configParamsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE,
|
| | | hongBaoManageService.getFanLiRate(UserLevelEnum.superVIP));
|
| | | hongBaoManageService.getFanLiRate(UserLevelEnum.superVIP, acceptData.getSystem()));
|
| | |
|
| | |
|
| | | for (UserShareGoodsGroup goodsGroup : list) {
|