| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.util.SystemInfoUtil;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.DateUtil;
|
| | |
| | | */
|
| | | @RequestMapping("getGoodsList")
|
| | | public void getGoodsList(AcceptData acceptData, String callback, Long uid, Integer page, PrintWriter out) {
|
| | | if (acceptData.getSystem() == null)
|
| | | acceptData.setSystem(SystemInfoUtil.getSystem(acceptData));
|
| | | JSONArray array = new JSONArray();
|
| | | List<PullNewGoods> list = pullNewGoodsService.listQuery((page-1)*Constant.PAGE_SIZE, Constant.PAGE_SIZE);
|
| | | if (list != null && list.size() > 0) {
|
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder()).create();
|
| | | ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(),
|
| | | acceptData.getVersion());
|
| | | paramsDTO.setBaseFanliRate(hongBaoManageService.getBaseFanliRate());
|
| | | acceptData.getVersion(),acceptData.getSystem());
|
| | | paramsDTO.setBaseFanliRate(hongBaoManageService.getBaseFanliRate(acceptData.getSystem()));
|
| | |
|
| | | for (PullNewGoods goods : list) {
|
| | | array.add(gson.toJson(GoodsDetailVOFactory.convertTaoBao(TaoBaoGoodsFactory.create(goods),paramsDTO)));
|
| | |
| | | */
|
| | | @RequestMapping("getRankList")
|
| | | public void getRankList(AcceptData acceptData, String callback, Long uid, PrintWriter out) {
|
| | | if (acceptData.getSystem() == null)
|
| | | acceptData.setSystem(SystemInfoUtil.getSystem(acceptData));
|
| | | JSONArray array = new JSONArray();
|
| | | List<UserRankings> list = userRankingsService.getRankList(0, 10);
|
| | | if (list != null && list.size() > 0) {
|
| | |
| | | */
|
| | | @RequestMapping("getShareImg")
|
| | | public void getShareImg(AcceptData acceptData, String callback, Long uid, PrintWriter out) {
|
| | | if (acceptData.getSystem() == null)
|
| | | acceptData.setSystem(SystemInfoUtil.getSystem(acceptData));
|
| | | if (uid == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("用户未登录"));
|
| | | return;
|